Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 04-21-2009, 12:06 AM
CrackBerry User
Device(s): 9000 (Bold)
Carrier: AT&T/Cingular
 
Join Date: Apr 2009
Posts: 25
Likes Received: 2
Thanked 2 Times in 1 Post
Default Javascript OnClick Supported for <select>?

I'm designing a small (literally and figuratively) site that will solely be displayed on the Bold 9000. I have the following code:

Code:
function clickToday() {
	document.getElementById("notes").removeChild(document.getElementById("notes").lastChild);
	document.getElementById("notes").appendChild(document.createTextNode("blah blah"));
}

...

<select name="opt1" id="opt1" onChange="selectToday()" onClick="clickToday()">
The selectToday function is identical except for the created text string. The onClick and onSelect functions fine in Firefox but only the onSelect functions work on the Bold's internet browser. I've tried removing the onSelect and leaving only the onClick but that didn't work either. Does anyone know if the Bold's browser supports onClick inside of a select tag? I checked RIM's JavaScript reference and it doesn't mention it specifically.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   Javascript OnClick Supported for <select>?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes