Post: BUYING - Visual Basic Help - DropDown Box? - PAYING WELL.
05-29-2011, 12:52 AM #1
ARIISSEK
:nyan: Kaffy :nyan:
(adsbygoogle = window.adsbygoogle || []).push({}); I'm trying to use a ComboBox to set the value for a drop down box, but the drop down doesn't have an ID. The code is:

<select class="gwt-ListBox" style="" gwtdebugid="signup-flow-choose-timezones"><option value="">Now select a timezone:</option><option value="">------</option>
<option value="Pacific/Honolulu">(GMT-10:00) Hawaii Time</option>
<option value="America/Anchorage">(GMT-09:00) Alaska Time</option>
<option value="America/Los_Angeles">(GMT-08:00) Pacific Time</option>
<option value="America/Denver">(GMT-07:00) Mountain Time</option>
<option value="America/Phoenix">(GMT-07:00) Mountain Time - Arizona</option>
<option value="America/Chicago">(GMT-06:00) Central Time</option>
<option value="America/New_York">(GMT-05:00) Eastern Time</option></select>

How can I get it to work? Paying 200k - 1m vBux depending on help.
(adsbygoogle = window.adsbygoogle || []).push({});
05-29-2011, 01:49 AM #2
Originally posted by EWL View Post
I'm trying to use a ComboBox to set the value for a drop down box, but the drop down doesn't have an ID. The code is:

<select class="gwt-ListBox" style="" gwtdebugid="signup-flow-choose-timezones"><option value="">Now select a timezone:</option><option value="">------</option>
<option value="Pacific/Honolulu">(GMT-10:00) Hawaii Time</option>
<option value="America/Anchorage">(GMT-09:00) Alaska Time</option>
<option value="America/Los_Angeles">(GMT-08:00) Pacific Time</option>
<option value="America/Denver">(GMT-07:00) Mountain Time</option>
<option value="America/Phoenix">(GMT-07:00) Mountain Time - Arizona</option>
<option value="America/Chicago">(GMT-06:00) Central Time</option>
<option value="America/New_York">(GMT-05:00) Eastern Time</option></select>

How can I get it to work? Paying 200k - 1m vBux depending on help.


Sorry what? this is HTML? Are you trying to use Visual Basic to set the property of the object? does getElementById("") Work if it had an ID? because if that works Im sure I could help further.
05-29-2011, 01:50 AM #3
ARIISSEK
:nyan: Kaffy :nyan:
Originally posted by Relevant View Post
Sorry what? this is HTML? Are you trying to use Visual Basic to set the property of the object? does getElementById("") Work if it had an ID? because if that works Im sure I could help further.




Getelementbyid works if there is an ID, but there isn't, and yah, that's HTML.
05-29-2011, 01:54 AM #4
Originally posted by EWL View Post
Getelementbyid works if there is an ID, but there isn't, and yah, that's HTML.


getElementsByTagName("option")

more help here You must login or register to view this content.
05-29-2011, 02:06 AM #5
ARIISSEK
:nyan: Kaffy :nyan:
Originally posted by Relevant View Post
getElementsByTagName("option")

more help here You must login or register to view this content.


Tried it, nope.


I need to get the <select class="gwt-ListBox" style="" gwtdebugid="signup-flow-choose-timezones" part so I can set the value.
05-29-2011, 02:20 AM #6
Originally posted by EWL View Post
Tried it, nope.


I need to get the <select class="gwt-ListBox" style="" gwtdebugid="signup-flow-choose-timezones" part so I can set the value.




our_object = [w/e goes here].getElementsByClassName("gwt-ListBox")

That would be the same as if you got it by id.

if our_object.hasAttribute("value")
out_object.setAttribute("value","Pacific/Honolulu");
05-29-2011, 09:25 PM #7
ARIISSEK
:nyan: Kaffy :nyan:
No, that doesn't help.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo