$("#myid").html("<b>bold</b> <script type=\"text/javascript\" defer=\"defer\">alert(1);</script>");
Maybe this does help you, not tested. Michael On Oct 14, 10:46 am, Vikas patial <[EMAIL PROTECTED]> wrote: > Hello > > Im facing the same problem , does anyone have a solution to this > problem. > > Regards > > Vikas > > On Oct 4, 5:15 pm, joelarson <[EMAIL PROTECTED]> wrote: > > > > > Nevermind everyone, I sorted it out. > > > On Oct 3, 10:18 am, joelarson <[EMAIL PROTECTED]> wrote: > > > > The documentation notes that when using the $.ajax() functions option > > > datatype="html": > > > > "html": Returns HTML as plain text; includedscripttags are > > >evaluated > > > > however, it doesnotappear to me that this is happening. What am I > > > missing? > > > > My very simple code is here: > > > > ----------------- > > > ... > > > > $.ajax({type:"GET",dataType:"html",url:"test.htm",success:function(dta) > > > { > > > alert(dta); > > > }}); > > > ... > > > ---------------- > > > > ----test.htm-- > > > <div>hello</div> > > > <scriptlanguage="JavaScript"> > > > alert("hello?"); > > > </script> > > > -------------- > > > > I do get my alert with the content from alert(dta), but I never get an > > > alert with "hello?". What am I missing?- Hide quoted text - > > - Show quoted text -