|
-
Sep 13th, 2005, 09:08 AM
#1
Thread Starter
Hyperactive Member
ASP include files in javascript[resolved]
Guys
Is it possible to execute asp code held in an include file from javascript?
I need to pass some validation before the asp code is executed and a form is submitted.
Cheers
Last edited by thebloke; Sep 16th, 2005 at 08:24 AM.
The Bloke
www.blokeinthekitchen.com
making cooking cool for blokes
-
Sep 14th, 2005, 10:30 AM
#2
Re: ASP include files in javascript
Yes, perhaps, using XMLHTTP, but you'd have to elaborate on what you mean by 'pass some validation'...
-
Sep 15th, 2005, 10:55 AM
#3
Thread Starter
Hyperactive Member
Re: ASP include files in javascript
I just want to know can I execute some server side code from javascript?
The Bloke
www.blokeinthekitchen.com
making cooking cool for blokes
-
Sep 15th, 2005, 11:20 AM
#4
Re: ASP include files in javascript
You can execute a whole page, passing it querystrings and everything, through XMLHTTP.
-
Sep 15th, 2005, 01:13 PM
#5
Re: ASP include files in javascript
You cannot directly call ASP functions from client-side JavaScript, if that's what you mean. (Although Mozilla has a SOAP extension that does exactly that.)
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 16th, 2005, 04:23 AM
#6
Thread Starter
Hyperactive Member
Re: ASP include files in javascript
Right, I don't know anything about xmlhttp or soap so I'm kind of scuppered.
The Bloke
www.blokeinthekitchen.com
making cooking cool for blokes
-
Sep 16th, 2005, 05:12 AM
#7
Thread Starter
Hyperactive Member
Re: ASP include files in javascript
Ok, here's a slightly different angle.
Can I execute a javascript function using asp? For example
VB Code:
<%if x > 0 then
return thisfunction();
end if%>
The Bloke
www.blokeinthekitchen.com
making cooking cool for blokes
-
Sep 16th, 2005, 08:25 AM
#8
Thread Starter
Hyperactive Member
Re: ASP include files in javascript[resolved]
Never mind, I've sorted it.
The Bloke
www.blokeinthekitchen.com
making cooking cool for blokes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|