Re: Glitch with tables and AjaxUpdateContainer

Ramsey Gurley <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
On Jul 20, 2012, at 11:17 AM, Ray Kiddy wrote:

> 
> It is great when this stuff works, but, boy, is it a PITA when it does not. Does anyone have a fix strategy for Ajax issues, other than head-scratching and random changing things around to see what might work?


Validate your html :-) 

http://validator.w3.org/


> 
> So, here is something I spent entirely too much time dealing with. These two display the same. One may obviously be more correct HTML, but neither one makes browsers do bad things.
> 
> This does NOT work:
> 
> <table>
> 	<wo:form>
> 		<wo:loop>
> 			<tr>
> 				<td><AUC /></td>
> 			</tr>
> 		</wo:loop>
> 		<tr><td><wo:submit /></td></tr>
> 	</wo:form>
> </table>
> 
> This DOES work:
> 
> <wo:form>
> 	<table>
> 		<wo:loop>
> 			<tr>
> 				<td><AUC /></td>
> 			</tr>
> 		</wo:loop>
> 		<tr><td><wo:submit /></td></tr>
> 	</table>
> </wo:form>
> 
> What. The-F. Ever!
> 
> Really annoying, but there it is. No idea why. But fine.
> 
> - ray

When the <form> element (or some other block element) is inserted there, I suspect the browser automatically closes the table tag. Here's another page I refer to a lot:

http://www.w3schools.com/tags/ref_byfunc.asp

Tables should only contain table elements. Except td/th. Those can contain whatever you want.

The problems I've primarily had with AUC come from inserting html entities when serving as application/xhtml+xml mime type.

https://bugzilla.mozilla.org/show_bug.cgi?id=445166

We should really convert all the html entities in wonder to numbered entities instead. (example: &nbsp; -> &#160; )

Ramsey



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.