Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > Developer's Forum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2009, 01:06 AM
CrackBerry User
Device Model: 9000 (Bold)
Carrier: AT&T/Cingular
 
Join Date: Apr 2009
Posts: 27
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



 
 Site Support | Accessory Order Support | App Store Support | Advertise | Newsletter | About Us

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

The names RIM and BlackBerry are registered Trademarks of Research in Motion Limited.
CrackBerry.com is in No Way Affiliated with Research in Motion Limited.
Copyright ©2007-2009 Smartphone Experts. Terms and Conditions. Privacy Policy. All rights reserved.