« Return to Thread: Does this work with RubyOnRails js requests?

Does this work with RubyOnRails js requests?

by riso :: Rate this Message:

Reply to Author | View in Thread

I have a simple login form that returns a rendered partial.  When I click on a link, with the proper rel= settings, I just get directed to the link address.  If I include 'js' in the ext/iframe options, passed in on the Shadowbox.init call, I get the rendered html in a text format.

If I add the player=iframe the request is mapped incorrectly on the server side and I get the whole page returned. If I then add a js extension to the url I get the the html in a text format rendered to the shadowbox screen.

It seems that the issue is in the url mapping that rails does, and shadowbox isn't recognizing the link href format due to the lack of an extension, or shadowbox really is only able to render out html to an iframe (I find this hard to believe).

Is there a way to fix this?

Thanks for the help.

 « Return to Thread: Does this work with RubyOnRails js requests?

LightInTheBox - Buy quality products at wholesale price!