XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 15th, 2004, 08:47 AM
JohnC525 JohnC525 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 JohnC525 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Call SQL Server from XSLT.

Hello.

I'm trying to modify an XSLT page that contains a submit button. The submit button ultimately executes some JS. However, I would like to execute a SQL Server Query to check some data when the button is pressed, but prior to the code in the JS function executes. How would I do that?

It is my understanding I cannot execute any ASP or VBScript code from within the XSLT. Is there some JS that will allow me to execute an ASP page then return to the JS.

Thanks in advance for you help.

John.

Reply With Quote
  #2  
Old January 25th, 2004, 02:33 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Short answer: no.

More useful answer: ASP/VBScript runs on the server, Javascript runs on the client. The only way the two can communicate with each other is through http requests/responses. This means either you're going to have to submit the form to get your SQL to run, or you going to have to use Javascript to make an asynchronous (hidden to the user) request to an ASP page that executes the SQL and returns a response that the Javascript uses for whatever.

The easier option by far is to post the form, do your processing, and return your results. If you want to persue the asynchronous Javascript option you can start a new thread in the HTML, Javascript & CSS forum or I can move this one over there for you.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Call SQL Server from XSLT.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway