JScript and VBscript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christopher Brandsdal

    JScript and VBscript

    If I have a .ASP page that runs JScript code - is it possible to include an
    ..ASP page that runs VBscript???


  • Atrax

    #2
    Re: JScript and VBscript

    no, you can't mix two languages the way you're asking.


    you could convert one into a WSC and use that, or you could use <script
    runat="server"> rather than ASP delimiters...





    _______________ _______________ __________
    Atrax. MVP, IIS


    newsflash : Atrax.Richedit 1.0 now released.


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    • Christopher Brandsdal

      #3
      Re: JScript and VBscript

      Thanks ;)

      "Atrax" <atrax@dontspam atrax.co.uk> skrev i melding
      news:OvvWVVUxDH A.2676@tk2msftn gp13.phx.gbl...[color=blue]
      > no, you can't mix two languages the way you're asking.
      >
      >
      > you could convert one into a WSC and use that, or you could use <script
      > runat="server"> rather than ASP delimiters...
      >
      >
      >
      >
      >
      > _______________ _______________ __________
      > Atrax. MVP, IIS
      > http://rtfm.atrax.co.uk/
      >
      > newsflash : Atrax.Richedit 1.0 now released.
      > http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      • Dave Anderson

        #4
        Re: JScript and VBscript

        "Atrax" wrote:[color=blue]
        >
        > you could convert one into a WSC and use that, or you could use
        > <script runat="server"> rather than ASP delimiters...[/color]

        Server.Execute( ) is also available...


        --
        Dave Anderson

        Unsolicited commercial email will be read at a cost of $500 per message. Use
        of this email address implies consent to these terms. Please do not contact
        me directly or ask me to contact you directly for assistance. If your
        question is worth asking, it's worth posting.


        Comment

        • Roland Hall

          #5
          Re: JScript and VBscript

          Be aware of the execution order:
          1.. Script in <SCRIPT> elements in nondefault languages
          2.. Inline script
          3.. Script in <SCRIPT> elements in the default language
          --
          Roland

          This information is distributed in the hope that it will be useful, but
          without any warranty; without even the implied warranty of merchantability
          or fitness for a particular purpose.


          Comment

          • Dave Anderson

            #6
            Re: JScript and VBscript

            "Roland Hall" wrote:[color=blue]
            >
            > Be aware of the execution order...[/color]

            Curiously enough, this can be "circumvent ed". A function (or Function or
            Sub) can be called from any block regardless of which one defines it -- and
            regardless of the "execution order".



            --
            Dave Anderson

            Unsolicited commercial email will be read at a cost of $500 per message. Use
            of this email address implies consent to these terms. Please do not contact
            me directly or ask me to contact you directly for assistance. If your
            question is worth asking, it's worth posting.


            Comment

            • Guest's Avatar

              #7
              JScript and VBscript

              help & support, searching for information stored on this
              computor,reciev ing genetic failure.[color=blue]
              >-----Original Message-----
              >If I have a .ASP page that runs JScript code - is it[/color]
              possible to include an[color=blue]
              >..ASP page that runs VBscript???
              >
              >
              >.
              >[/color]

              Comment

              • Guest's Avatar

                #8
                JScript and VBscript

                help & support,searchi ng for information on this
                computor,reciev ing genetic failure[color=blue]
                >-----Original Message-----
                >If I have a .ASP page that runs JScript code - is it[/color]
                possible to include an[color=blue]
                >..ASP page that runs VBscript???
                >
                >
                >.
                >[/color]

                Comment

                • Bob Barrows

                  #9
                  Re: JScript and VBscript

                  anonymous@discu ssions.microsof t.com wrote:[color=blue]
                  > help & support, searching for information stored on this
                  > computor,reciev ing genetic failure.[/color]

                  Yes! It's obvious a mutation has occurred ...

                  Bob
                  --
                  Microsoft MVP -- ASP/ASP.NET
                  Please reply to the newsgroup. The email account listed in my From
                  header is my spam trap, so I don't check it very often. You will get a
                  quicker response by posting to the newsgroup.


                  Comment

                  • Bob Barrows

                    #10
                    Re: JScript and VBscript

                    anonymous@discu ssions.microsof t.com wrote:[color=blue]
                    > help & support,searchi ng for information on this
                    > computor,reciev ing genetic failure[/color]

                    The mutation is spreading! Quick, someone call the CDC! ;-)
                    --
                    Microsoft MVP -- ASP/ASP.NET
                    Please reply to the newsgroup. The email account listed in my From
                    header is my spam trap, so I don't check it very often. You will get a
                    quicker response by posting to the newsgroup.


                    Comment

                    • Mike Florio

                      #11
                      Re: JScript and VBscript

                      Only limitation is that you can't pass a querystring to Server.Execute( ).


                      "Dave Anderson" <GTSPXOESSGOQ@s pammotel.com> wrote in message
                      news:%23qoqo3Yx DHA.3140@TK2MSF TNGP11.phx.gbl. ..[color=blue]
                      > "Atrax" wrote:[color=green]
                      > >
                      > > you could convert one into a WSC and use that, or you could use
                      > > <script runat="server"> rather than ASP delimiters...[/color]
                      >
                      > Server.Execute( ) is also available...
                      >
                      >
                      > --
                      > Dave Anderson
                      >
                      > Unsolicited commercial email will be read at a cost of $500 per message.[/color]
                      Use[color=blue]
                      > of this email address implies consent to these terms. Please do not[/color]
                      contact[color=blue]
                      > me directly or ask me to contact you directly for assistance. If your
                      > question is worth asking, it's worth posting.
                      >
                      >[/color]


                      Comment

                      • Dave Anderson

                        #12
                        Re: JScript and VBscript

                        "Mike Florio" wrote:[color=blue]
                        >
                        > Only limitation is that you can't pass a querystring to
                        > Server.Execute( ).[/color]

                        I'd say there are a few more. The calling script shares no variables or
                        functions with the one being executed, for example.


                        --
                        Dave Anderson

                        Unsolicited commercial email will be read at a cost of $500 per message. Use
                        of this email address implies consent to these terms. Please do not contact
                        me directly or ask me to contact you directly for assistance. If your
                        question is worth asking, it's worth posting.


                        Comment

                        • Roland Hall

                          #13
                          Re: JScript and VBscript

                          "Dave Anderson" wrote:[color=blue]
                          > "Roland Hall" wrote:[color=green]
                          > > Be aware of the execution order...[/color]
                          >
                          > Curiously enough, this can be "circumvent ed". A function (or Function or
                          > Sub) can be called from any block regardless of which one defines it --[/color]
                          and[color=blue]
                          > regardless of the "execution order".[/color]

                          Ok but wouldn't that require having knowledge of the order of execution?

                          --
                          Roland

                          This information is distributed in the hope that it will be useful, but
                          without any warranty; without even the implied warranty of merchantability
                          or fitness for a particular purpose.



                          Comment

                          • Roland Hall

                            #14
                            Re: JScript and VBscript


                            "Bob Barrows" wrote:[color=blue]
                            > anonymous@discu ssions.microsof t.com wrote:[color=green]
                            > > help & support, searching for information stored on this
                            > > computor,reciev ing genetic failure.[/color]
                            >
                            > Yes! It's obvious a mutation has occurred ...[/color]

                            You crack me up! (O:=


                            Comment

                            • Mark Schupp

                              #15
                              Re: JScript and VBscript

                              > Ok but wouldn't that require having knowledge of the order of execution?

                              No. Put the code in the different language into subroutines or functions
                              (not inline). Then call those functions in the desired order from inline
                              code in whichever language that you want to be "dominant".

                              --
                              Mark Schupp
                              Head of Development
                              Integrity eLearning



                              "Roland Hall" <nobody@nowhere > wrote in message
                              news:uNcIPWpxDH A.3196@TK2MSFTN GP11.phx.gbl...[color=blue]
                              > "Dave Anderson" wrote:[color=green]
                              > > "Roland Hall" wrote:[color=darkred]
                              > > > Be aware of the execution order...[/color]
                              > >
                              > > Curiously enough, this can be "circumvent ed". A function (or Function or
                              > > Sub) can be called from any block regardless of which one defines it --[/color]
                              > and[color=green]
                              > > regardless of the "execution order".[/color]
                              >
                              > Ok but wouldn't that require having knowledge of the order of execution?
                              >
                              > --
                              > Roland
                              >
                              > This information is distributed in the hope that it will be useful, but
                              > without any warranty; without even the implied warranty of merchantability
                              > or fitness for a particular purpose.
                              >
                              >
                              >[/color]


                              Comment

                              Working...