i'm trying to use an underline in an object name in vbscript like oIE.document._form.field.value but it isn't working, says illegal character or something
how am i supposed to use this form if the name has an underline in it? i tried getElementById because i'm no real vbs coder and it looked so much like javascript but it didn't work
>>1
use JScript instead.
it doesn't have any problems with oIE.document._form.field.value
.
and that way even if your form happened to be called something like +"',-
, you could just do oIE.document['+"\',-'].field.value
.
i'm using this vbscript to have a clickable file on my desktop i can use to start my commonly used apps when i get to work
so far we've all been using a batch script but we recently added some citrix apps so it makes things easier to have them logged in too
i work in a very restricted environment so batch and wsh are all we can use
oh and btw i solved this by having sendkeys tab down to the submit button instead of submitting it through it's object which had a _name
> i work in a very restricted environment so batch and wsh are all we can use
JScript is in WSH, you idiot.
>>4
yeah, that works, until a single link or form element is added which breaks your whole script.