Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Combo Box Event problem..

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-04, 12:21
peto813 peto813 is offline
Registered User
 
Join Date: Jun 2004
Posts: 31
Combo Box Event problem..

Hi, I have a webpage coded in PHP that uses a comboBox. I simply wish to know what code is used to fire an event when a particular value is selected. is it OnChange() ? OnClick()?
Thank you in Advance..
Regards
Reply With Quote
  #2 (permalink)  
Old 10-14-04, 08:53
rajesh_r_r rajesh_r_r is offline
Registered User
 
Join Date: Jan 2004
Location: India
Posts: 168
You can use OnClick()

regards
Rajesh
__________________
Freelance and Technology Consultant
-------------------
Dreams are for ever
-------------------
Reply With Quote
  #3 (permalink)  
Old 10-14-04, 18:09
peto813 peto813 is offline
Registered User
 
Join Date: Jun 2004
Posts: 31
Well, it fires the event when i click the comboBox, but not when I select a value! HELP!!
Reply With Quote
  #4 (permalink)  
Old 10-15-04, 07:45
rajesh_r_r rajesh_r_r is offline
Registered User
 
Join Date: Jan 2004
Location: India
Posts: 168
Sorry it was my mistake.
You have to use onChange()
eg:

<script language="JavaScript">
function winopen()
{
alert("changed");
}
</script>
<form NAME="frm" METHOD="POST" ACTION="">
<SELECT NAME="openwin" onChange="winopen();">
<OPTION VALUE="1">Hello</OPTION>
<OPTION VALUE="2">Go</OPTION>
</SELECT>
</form>

Regards
Rajesh
__________________
Freelance and Technology Consultant
-------------------
Dreams are for ever
-------------------
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

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