Solved

Calling client-side javascript from server-side vbscript ?

Posted on 2009-04-13
3
343 Views
Last Modified: 2012-05-06
My question is very simple, but yet difficult:

- I have a vbscript which asks a user for username and password. This is done in a form.
- This form is submitted using the "get"-function to the same .asp-page as it was called from.
- The .asp-page decodes the parameters from the submit-call and does an authenication check against Active Directory.

- If the authentication check is OK (the username/password-pair are validated by the Active Directory) I want to call a client-side javascript function which maps network drives using the username and password as authentication parameters. (Disregard security issues here, the users are already authenticated though the use of a VPN-tunnel).

How can I do this ?  Calling a client-side javascript directly from server-side vbscript is not a trivial task as far as I have understood..

Any help would be appreciated.






0
Comment
Question by:toyman61
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 24129414
Ajax is perfect for this.

The client calls/executes a server side application, passing whatever information is needed, and the response is returned to the client using a callback technique.

Take a look at:

http://www.experts-exchange.com/Q_24292688.html
0
 

Author Comment

by:toyman61
ID: 24185660
HonorGod: Ajax is excactly what I was looking for. Thanx!!

0
 
LVL 41

Expert Comment

by:HonorGod
ID: 24193344
You are very welcome.  Thank you for the grade and points.

Good luck & have a great day.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question