[jQuery] Re: Fixing divs with jquery (adding /div)

2007-10-29 Thread Gordon
There is no reliable way of fixing that in JavaScript, which is strongly dependant on having a well-formed DOM structure to work with. Besides, it would be a waste of processor cycles on the client side. Surely it couldn't be difficult for the server side developers to fix the scripts that

[jQuery] Re: Fixing divs with jquery (adding /div)

2007-10-29 Thread Corey Frang
You could simply wrap the php file in another php file that does ob_start() then includes the other php file, ob_get_contents(), edit the code appropriately and then dump it. Would be my suggestion... Broken DOM leads to many problems, one of which is jQuery wont be able to find selectors

[jQuery] Re: Fixing divs with jquery (adding /div)

2007-10-28 Thread Benjamin Sterling
Maurice, I really would suggest that you get with the booking app developer and have them fix it. This is, assuming you guys made no change to the app, a bug in the app and would/should fall back to them. Did you call them to find out if this is a known issue and if they will send you an updated

[jQuery] Re: Fixing divs with jquery (adding /div)

2007-10-28 Thread polyrhythmic
The only way to attempt to accomplish that would be to read the innerHTML, append the /div in text, and rewrite the innerHTML for the select_chalet_content divs. However, since the HTML is improper and the divs are not closed, jQuery could potentially grab anything to *everything* after div