Is there anyway to do
new Ajax.Request('mailing-list-users.html',
{
method: 'get',
evalScripts: true,
onSuccess: function(transport){
var response = transport.responseText || "no response text";
$('content').innerHTML = response;
},
onFailure: function(){ alert('Something went wrong...') },
onException: function(v1, v2){ alert('Something went wrong... ' +
v2) }
});
where mailing-list-users.html content is simply
"<script type="text/javascript" src="http://convert.rss-to-
javascript.com/?src=http%3A%2F%2Fgroups.google.com%2Fgroup
%2Farchitecture-rules-users%2Ffeed%2Frss_v2_0_topics.xml"></script>"
If you goto
http://convert.rss-to-javascript.com/?src=http%3A%2F%2Fgroups.google.com%2Fgroup%2Farchitecture-rules-users%2Ffeed%2Frss_v2_0_topics.xml
you'll see that it is HTML. However transport.responseText is
returning "" when evalScripts: true. when evalScripts: false,
"<script type="text/javascript" src="http://convert.rss-to-
javascript.com/?src=http%3A%2F%2Fgroups.google.com%2Fgroup
%2Farchitecture-rules-users%2Ffeed%2Frss_v2_0_topics.xml"></script>"
is returned.
If this is incorrect usage, is there any other way to get this done?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---