Results 1 to 6 of 6

Thread: ASP inside local script

  1. #1

    Thread Starter
    Lively Member Ceri's Avatar
    Join Date
    Sep 2000
    Posts
    72

    ASP inside local script

    I want to write ASP indise local script tags so that I can make dynamic functions, obviously this is not possible because I tried doing it and i had errors, is there anyway around this. e.g.

    <script language=jscript>

    JScript here

    <%

    ASP code here

    %>


    JScript here

    </script>

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    That should work. Just make sure your ASP is generating valid client side code that you're not trying to have your ASP script use or read any of the client side variables or script.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Or instead of using a script tag literal, use Response.Write to create the script tag as well.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  4. #4
    New Member
    Join Date
    Jun 2001
    Location
    bucharest
    Posts
    5
    It's not such a good method to use a scritpt inside another, that's why you have this problems. Respect this rule and problems we'll disapeared.

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Rules like that are meant to be bent. Especially for creating dynamic dropdown lists. Or writing server side data into client side arrays so they can be accessed after the page is rendered.

    Follow what JoshT and myself have said and you can do what your trying to do.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  6. #6

    Thread Starter
    Lively Member Ceri's Avatar
    Join Date
    Sep 2000
    Posts
    72

    Smile cheers....

    cheers guys, i think i'll take the easy way out and write the remote script inside local script.

    Thanks again.

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