Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing value from vbscript to javascript

 
Zye Valfzaurk
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day to all.

I just want to ask if there is a way to pass variable values from vbscript to javascript or calling a vbscript function using javascript.
I know that vbscript is server side and javascript is clientside. Is there any way for them to communicate?

Basically this is what I want to do.
I want to get values from a table in my SQL server using vbscript, and then use these retrieved values as select options using javascript. I just want to ask if this possible, and please teach me how if it is.

Any response would be greatly appreciated. Thanks.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make a backend, call it with Ajax.

Eric
 
Zye Valfzaurk
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it not possible to do it using VBscript and javascript alone?..... I mean without using ajax,php,etc....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic