You should separate out the HTML from the JavaScript - the $.get is
only getting the URL in to the page, I'm fairly sure it doesn't
execute any JS.

You should load the HTML, then load in the JS using something like
$.getScript.

That might help.

On Apr 23, 9:10 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have this code
>
>         // loads modules for the selected tab.
>         function loadAllModules() {
>                 $.get('draw_modules.php',
>                         {},
>                         function(data){
>                                 $("#container").empty().append(data);
>                         });
>         }
>
> The page "draw_modules.php" creates some HTML and also some
> Javascript.  The HTML gets loaded fine, but the JS doesn't get
> executed on PC IE 7.  The JS is stuff like:
>
> document.getElementById('ce10').checked = true;
>
> What is a better way of running the JS on IE?  If my question doesn't
> make sense, please let me know what else I can include.
>
> Much thanks, - Dave

Reply via email to