Posted by: BadBall3r47
Actually Iggy is retiring. :(: /
Posted by: ApocalypeX
EDIT: wait what script are you talking about? Duardos request or your request?Yeah, the one I was mentioning about the post-position-in-the-thread kind of script.
Posted by: littlerat
I can't really see how XML would make it faster than what it is now. XML would just add a lot of needless characters to the document. Though I can't see why CDBData needs to be constructed client side. It would put a little more strain in the server side, but it would save up to a kilobyte on the transfer.In my opinion, the client-side script should collect up a list of all of the usernames in a thread, construct an XML document, eg.
<CDBData>
<!-- send -->
<user name="littlerat" />
<user name="ApocalypeX" />
etc...
</CDBData>
Server-side will read it, select only those styles which were requested, and send back another XML file, this time something like:
<CDBData>
<!-- receive -->
<user name="littlerat" />
<title text="exampleTitle" color="#FF0000" />
<titleBar bgColor="#FFFFFF" borderColor="#000000" linkColor="#00FF00" msgTxt="exampleText" bgImgSrc="http://google.com/pic.jpg" />
<post color="#FFFFFF" font="calibri" />
<avatar src="http://google.com/pic2.jpg" />
</user>
etc...
</CDBData>Plus, doesn't CDB not work in Chrome? With XML, you could at least use it to apply user styles without that server-side JavaScript.