Ajax loaded pages lose needed scripts
Read through all the stickies and searched the forums without any luck. Here is what is happening.
When using the JQuery ajax to inject a page into another page, I lose
the script file access from that page. I've tried reloading the
script using $.getScript but with the JQuery UI I get a stack overflow
on line 509.
I'm not necessarily just trying to run a particular function but need the entire javascript file to reload. This is particular to the
JQuery UI date picker. I didn't see an initialize or anything in the documentation so I'm thinking I need to reload the file or something similar.
Here is the code I use for getting the external file:
$.ajax({url: 'myfile.htm',cache: false,success: function(html)
{fncLoadContent(html);}});
In the function fncLoadContent is where I need to reload the script file so that it'll populate the new page content, html, with the needed functions.
Anyone have a way of making the scripts available to files loaded
through ajax or have another idea?
thanks
^.^