1

I have been trying to figure out how I can render a page in rails without refreshing the application.html.erb. I only want to refresh a the part that goes in the <=% yeald %> part and no other. I did this using ajax but I am using latex code on my pages(mathjax) that will not compile unless the page is refreshed, so ajax does not work in my case.

I have searched for tutorials but have not found a clear way to do this. So is this possible, render a page as partial without using ajax?

Thanks.

1 Answer 1

3

If you want to reload part of a web page you only have two options - use Javascript (AJAX), or use an iframe.

If you use Javascript to update parts of the page you need to tell MathJax to reparse the page after you have changed it.

To do that see this related question here:
How to recall or restart MathJax?

1
  • Thank you so much, seems like I wasted a whole lot of time on something that is impossible:) Thanks again.
    – baron aron
    May 28, 2012 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.