Sorry, i didnt realize that i was writing in spanish. Here is the traduction:
I had a trhouble with the .html() method, it seems to dont perform successfully the append of <script> tags. Althought this code seems to run fine, even if the html_data contains <script> tags $(document).ready(function() { $.ajax({ type: "POST", url: "someurl.php", dataType: "html", success: function(html_data) { $ ('#changeMe').html(html_data); } }); }); in some cases use to crash my application, just after the execution of the script in the html_data. I couldnt find the conditions of the crash but i change the jQuery library 1.2.3 in the line 152 changin this: head.removeChild( script ); for this: try{ head.removeChild( script ); } catch(e){ } and voila. fixed para ie6 pd: I try to include the 1.2.6 before do this, but it brought me a lot of conflicts with the prototype library, so i decide to implement this solution. On 6 sep, 17:59, "kara swisher" <[EMAIL PROTECTED]> wrote: > sarah palinhttp://www.gpirate.com/search?q=sarah+palin > > 2008/9/6 µseless <[EMAIL PROTECTED]> > > > > > tube un problema similar con el .html(), cuando metia codigo > > javascript dentro del contenido me tiraba errores. > > Estaba usando la version 1.2.3, la version 1.2.6 no la podia usar > > porque me traia conflictos que no pude solucionar con Prototype. > > Finalmente termine debugeando la version 1.2.3 de jQuery y cambie en > > la linea 152 > > esto: > > head.removeChild( script ); > > por esto: > > try{ > > head.removeChild( script ); > > } > > catch(e){ > > > } > > y voila. fixed para ie6 > > > Joe ha escrito: > > > Dear friends, > > > > i am working in a site, in which i have used jquery scripts. > > > In Jquery the .html() is not working. I used .html() to print the > > > output to one div from one file. > > > If i use .html() in ie6 means the site in keep on loading..... > > > > Please help me to fix the error. > > > > It is very *Urgent*