I am getting a type mismatch error when I try to call a javascript function from a vbscript function. It is possible to do this without getting an error? The error comes up and has the function as the type mismatch
@Phil_KarrasDec 29.2003 — #vbscript probably won't call to JS directly, after all microsoft developed vbscript to get away from JavaScript since JS was not developed at MS.
On the other hand, you might be able to fool it. I do not know vbscript so I may or may not be able to help with that.
You might try calling a vbscript function that sets a timer value used in the standard html? Create a div with an ID? Find something you can do with VBscript that JS can either access (like a <div ID='test01'>) or read and you should be able to get around any problem of vbscript not being able to directly call a JS function.
Now in JS have a function that continually checks for the value or the presence of the div and then fires the needed function on that.
@stoodderDec 29.2003 — #hmmyea actually i think you can call a function, though ive nver worked with VBscipt(just starting) i do know asp and javascript a bit, i know in asp you can call a javascript funciton, i cant remmeber exactly how, but that might help your problem with vbscript, not to mention asp is alot like vbscript in a way.
@Khalid_AliDec 29.2003 — #[i]Originally posted by Phil Karras [/i]
[B]vbscript probably won't call to JS directly, after all.......[/B][/QUOTE]
Please do not misslead a member seeking help.
Though I am not an MS developer,I know what I am talking about when I said in my post above that it can be done.As a matter of fact its as easy as it can be,I can provide the solituon,of course if the original poster is still interested..?
@Phil_KarrasDec 30.2003 — #Sorry Dude I do the best I can, I told him I didn't know vbscript. Now, if you know better please don't tease us, just give the poor guy the solution.