Results 1 to 8 of 8

Thread: ASP include files in javascript[resolved]

  1. #1

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    Resolved 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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: ASP include files in javascript

    Yes, perhaps, using XMLHTTP, but you'd have to elaborate on what you mean by 'pass some validation'...

  3. #3

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    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

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: ASP include files in javascript

    You can execute a whole page, passing it querystrings and everything, through XMLHTTP.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  6. #6

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    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

  7. #7

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    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:
    1. <%if x > 0 then
    2.  
    3. return thisfunction();
    4.  
    5. end if%>
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  8. #8

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    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
  •  



Click Here to Expand Forum to Full Width