24Sep/040
so much for separation of code and UI
Just found this little gem in an application I’m working on. This code makes the baby Jesus cry.
function setFind(findStr)
{
window.document.getElementById('<asp :Literal ID="searchWordsJsPath" Runat="server" />').value = findStr;
window.document.<asp :Literal ID="searchFormJsPath" Runat="server" />.submit();
}
</asp></asp>
ahhhhhhhhh, nothing like mixing client-side script with server side script to make thing interesting. All this to avoid the page “flicker”.
n.b. If I hear one more person complain tell me how they hate the ‘flicker” in web applications I’m going to pop and convert the whole frickin’ thing over to a WinForms application. It’s what they really want, but the clients use Mac’s. Maybe we should do the whole thing in Swing/AWT?


