Displaying 1 result from an estimated 1 matches for "my_controller_url".
2008 Nov 07
1
RJS show as 'try...' in AJAX update
...ng to display Javascript code after an Ajax call. It is
executing the JS code, but it''s also displaying it. It shows as:
try {
alert(...);
} catch ..
...
my controller code:
render :update do |page|
page.alert message_var
end
my Javascript code:
new Ajax.Updater("div_id", my_controller_url,
{ asynchronous: true,
evalScripts: true,
method: ''get'',
parameters: query_string
}
);
In the prototype documentation, it says AJax.Updater''s evalScripts will
eval anything in <script> tags, and they will not be displa...