Ultimately it is best to seperate your markup from you javascript (I am a bit guilty of not doing this at times). Having markup in the script can lead to messy errors like this.
So you could put your markup in the html and display it as none and give it an id, then with jquery you can select it and set the style to display block. This way your content is in one place, and you control the content in another. Matt. On Feb 12, 8:34 am, Hamish Campbell <[email protected]> wrote: > I agree with Sid, Firebug would be the best way to go. You've got HTML > inside javascript which could reside in a number of different file > types. Unless you've got an IDE that code colours encapsulated quoted > strings within other strings (can't think of one), you'll just have to > debug on the output side. > > Curious to know how it worked in Firefox though. > > On Feb 11, 9:25 pm, Sid Bachtiar <[email protected]> wrote: > > > No, but you can inspect the area where you expect to see the missing > > element, which would reveal the problem. > > > On Wed, Feb 11, 2009 at 9:21 PM, anru chen <[email protected]> wrote: > > > > how? > > > > will firebug give any error message? > > > > regards > > > > On Wed, Feb 11, 2009 at 5:45 PM, Sid Bachtiar <[email protected]> > > > wrote: > > > >> Should be easy to spot using firebug. Or firebug lite in IE > > > >> On Wed, Feb 11, 2009 at 4:58 PM, ctx2002 <[email protected]> wrote: > > > >>> thought this is helpful to other developers too. > > > >>> I am developing a jquery script. > > >>> I am use this $("<a>").html("<img alt='example' src='example.jpg></ > > >>> img>") > > >>> to dynamically adding a "img" tag inside "a" tag. (note, > > >>> src='example,jpg has no closing single quote ). > > > >>> in firefox, "img" tag showed up, but in IE and opera "img" tag did not > > >>> show up, > > >>> so i have spent 2-3 hours try to find out why? > > >>> then finally found out that "closing single quote problem". > > > >>> my question is, are there any tools to prevent this type of error? > > >>> or any good practices to prevent this type of error. > > > >> -- > > >> Blue Horn Ltd - System Development > > >>http://bluehorn.co.nz > > > -- > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
