Hi, I'm making an AJAX call to load prototype.js
I then call eval on the request's response text ie success: function(req){ eval(req.responseText) } This works to load most javascript, but prototype in particular is confusing me. This error is getting thrown: Node has no properties by the following prototype source (line 1526): if (!window.Node) var Node = { }; if (!Node.ELEMENT_NODE) { Debug statements immediately before this section show window.Node != null Node == null As far as I understand javascript that should be impossible since window.Node == Node as long as you're operating at the base level name space, ie window, not in a function etc. Obviously none of these shenanigans show up when I load prototype normally with a script tag. Is it really possible that eval is behaving differently than the javascript interpreter? Isn't it just a hook into the javascript interpreter? Thanks for the help, this is driving me nuts with curiosity! Carl --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---