Yup, I tried appending first and then adding the src attribute after, still same error.
I think I am going to bail out on the iframe implementation, and just do a regular DOM insertion. I'm sick of battling with IE. -- Josh ----- Original Message ----- From: Benjamin Sterling To: jquery-en@googlegroups.com Sent: Thursday, October 04, 2007 11:49 AM Subject: [jQuery] Re: Obscure ie6 error when appending iframe Josh, Did you try appending without the src attribute, just to make sure the page being loaded is not the issue? On 10/4/07, Josh Nathanson < [EMAIL PROTECTED]> wrote: Hey all, When trying to create an iframe on the fly and append it into the dom, I'm getting an error in IE6: "Expected ':'" (that's a colon). Works fine in FF of course. The basic code: var i = $("<iframe src='" + el.id + "' name='panelframe' id='panelframe'></iframe>"); $("#paneldiv").append(i); When I comment out the append part, it works fine, so it's not a problem creating the iframe node, just appending it. Anyone have a clue? Googling didn't turn up much. I'm afraid it might be a security concern, but after getting the error in IE6, it goes ahead and loads the page into the iframe and appends to the div anyway. -- Josh -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com