Rein Henrichs
2008-Jul-30 17:45 UTC
Re: jQuery.post gets some code but the code isn''t evaluated
> jQuery.post("/plans/<%= @plan.id %>/add_learning_objective?name=" + > objective_name)You need to specify the type option as "script" to have it executed. (See the docs for jQuery.ajax(), where it is the dataType option. The "type" option in $.post is passed to $.ajax as the dataType option) Rein --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- Re: jQuery.post gets some code but the code isn't evaluated
- Issues implementing jquery-form plugin for displaying image via an ajax call in my rails poc
- jquery, format.js and IE
- CSRF protection not working with jquery ajax post request
- How to enable div that was hide using JQuery