Want to know the VBScript equivalent of a Javascript code
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   neal_ravindran
Posted On:   Tuesday, December 21, 2004 09:44 AM

Well thought this was the right place to ask a VBScript question as some of you folks may have dabbled in it a bit


I have the following Javascript code that checks to see that a form field is present in the form before I do anything with that form field (idea is to prevent javascript errors from stalling the page)


if(document.forms[0].elements['streetAddress'])

{

//do something


}



What would be the VBScript equivalent of that "if" statement above?

Re: Want to know the VBScript equivalent of a Javascript code

Posted By:   Sherbir_S  
Posted On:   Tuesday, December 21, 2004 09:29 PM



Hi Neal,
Yeah u're right. I was earlier working with VBScript. But
later on I shifted over 2 Java technologies.

So here's the exact equivalent of what u wanted :



Hope this Helps...

Cheers !!

Sherbir

About | Sitemap | Contact