AvantGo quirks of the day

Thursday, January 14, 2010 , Posted by Johnny Fuery at 1:39 AM

Originally Published 2004-11-05 10:09:24

These don't work in client 5.5 (they do, of course, in IE):



divelement.style.visibility='hidden';

divelement.innerHTML='some random content';



Use these instead:

divelement.appendChild(document.createTextNode('whassssssup'));

divelement.style.display='none';



Also, the 5.3 and later version of the sessionPOD:

avantgo.preferences.setStringValueForKey("key", myValue);

myValue = avantgo.preferences.getStringValueForKey("key");



--



Ran into an interesting problem yesterday in both IE and Avgo -- we left the language=Javascript declaration out of the script tag and everything failed without any script errors. We just got a blank page.

Currently have 0 comments:

Leave a Reply

Post a Comment