Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object required error

Status
Not open for further replies.

joyceda59

Technical User
Apr 3, 2007
29
0
0
CA
Hi,

I tried split this string. For some reason, i keep getting an object required error pointing to the first line in the code below. Plz help!

strList1 = document.getElementById("serverSelect")
list1 = Replace(strList1, "/", "")
list1 = Replace(list1, " ", "")
 
Even though html and vbs (and javascript) do not have steep learning curve, you cannot advance, all the same, by pure imagination and by bending the technology to your liking. One still has to read the basic before working on it. You keep asking (many times already) questions on fundamentally wrong ground.

[1] document is client-side object which has no place on the server. If your script is on the server-side, you sure have object required error on the first line.
[2] Even your script is on the user-agent (client) and you're prepared to use vbs client-side, the first line produces an object which is not ready to be "replace" as a string. You have to get the string in the first place like:
[tt]document.getElementById("serverSelect").value[/tt]
for some object (not even every possible object, far from it).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top