When I try to use Ajax in a window openened by ‘window.open(’’);’
it doesn’t work. There is no exceptions raised as far as I can see
(debugging with FireBug).
However, if I refresh the window once it has popped up it does work. Is
there something I’m missing?
Use the web browser to find out, for sure, what the URL is of your
popup window after it opens. View source to see what the javascript tag
looks like. Combine the two in your head to ensure that the .js file is
reachable by the combined URL.
One other suggestion - please, please do not ‘bump’ your post to the
top after only 50 minutes of waiting. That’s just rude.
Use the web browser to find out, for sure, what the URL is of your
popup window after it opens. View source to see what the javascript tag
looks like. Combine the two in your head to ensure that the .js file is
reachable by the combined URL.
One other suggestion - please, please do not ‘bump’ your post to the
top after only 50 minutes of waiting. That’s just rude.
Thanks for this suggestion, but the URL isn’t the problem as I’ve tried
pasting the JS source in and still no avail.
Also, apologies for re-posting so soon.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.