With Jquery 1.1.1 Firefox 1.5 - Fails Firefox 2.0 - Fails IE 6.0 - Fails IE 7.0 - Fails
With Jquery 1.0.4 Firefox 1.5 - Works Firefox 2.0 - Works IE 6.0 - Works IE 7.0 - Works Seems to be fairly consistant at least across these browsers. -----Original Message----- From: Brandon Aaron [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 7:48 AM To: [EMAIL PROTECTED]; jQuery Discussion. Subject: Re: [jQuery] cant append() form objects Is this just in IE or in other browsers too? -- Brandon Aaron On 1/24/07, Jeremy Dill <[EMAIL PROTECTED]> wrote: > > > After upgrading from 1.0.4 to 1.1.1 the following code no longer works. > Please tell me if there is a solution to this issue. > > -------------------------------WORKING HTML TEST > PAGE------------ > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> <title>test</title> <style> > .layerbox{font-size:8pt;text-align:left;padding:10px;margin:20px;borde > r:1px solid #B2C5EC; background-color:#FCFCFC;float:left; > clear:left;height:200px;width:200px} > </style> > <script type='text/javascript' > src='/js/jquery111.js'></script> > </head> > > <body> > <div id='content'></div> > <script language="JavaScript"> > function appLayer(id){ > //create layerbox > var layerbox=document.createElement('div'); > layerbox.id=id+"_layer"; > layerbox.className="layerbox"; > $("#content").prepend(layerbox); > this.divName=layerbox.id; > this.layerobj=layerbox; > //create form > var frm=document.createElement('form'); > frm.id=id+"_form"; > frm.name=id+"_form"; > frm.action = "index.php"; > frm.method = "post"; > this.frm=frm.id; > //-------HERE IS THE PROBLEM-----/// > $("#"+this.divName).append(frm); > //-------APPEND DOESNT WORK FOR FORM OBJECT------/// > //create main div > var main=document.createElement('div'); > main.id=id+"_main"; > main.className="morebox"; > main.innerHTML="This box should get created, but it doesnt because > form didnt get created"; $("#"+this.frm).prepend(main); } tst=new > appLayer('Test'); </script> </body> </html> > ----------------------------END PAGE----------------- > > The form object does not get created. I don't have any problems > appending other objects such as divs, but the form object won't work anymore. > > It works fine in 1.0.4. Try it out. > > Thanks in advance. > > Jeremy > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/