Javascript and VBscript in same asp page, possible?

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

    Javascript and VBscript in same asp page, possible?

    Hello!

    Please, could anyone say, can one combine javascript and vbscript in same
    asp page? I am in situation where I must run some code in javascript and some
    of it in vbscript. Can I change somehow to run code in vbscript and when it
    is executed back to javascript? Help is very much appreciated.

    Thanks!

    Peter
  • joker

    #2
    Re: Javascript and VBscript in same asp page, possible?

    All you have to do is

    <script language="JavaS cript" runat=server>
    //Sever side Jscript goes here
    </script>

    <script language="vbscr ipt" runat=server>
    //Sever side VB Script goes here
    </script>

    <script language="JavaS cript">
    //Client side Jscript goes here
    </script>

    <script language="vbscr ipt">
    //Client side VB Script goes here assuming you have an IE only audience
    </script>

    Peter wrote:
    [color=blue]
    > Hello!
    >
    > Please, could anyone say, can one combine javascript and vbscript in same
    > asp page? I am in situation where I must run some code in javascript and some
    > of it in vbscript. Can I change somehow to run code in vbscript and when it
    > is executed back to javascript? Help is very much appreciated.
    >
    > Thanks!
    >
    > Peter[/color]

    Comment

    • mark | r

      #3
      Re: Javascript and VBscript in same asp page, possible?

      what about having asp write variables in an external .js file... i still
      havent worked out a way to do this.

      mark
      [color=blue]
      > All you have to do is
      >
      > <script language="JavaS cript" runat=server>
      > //Sever side Jscript goes here
      > </script>
      >
      > <script language="vbscr ipt" runat=server>
      > //Sever side VB Script goes here
      > </script>
      >
      > <script language="JavaS cript">
      > //Client side Jscript goes here
      > </script>
      >
      > <script language="vbscr ipt">
      > //Client side VB Script goes here assuming you have an IE only audience
      > </script>
      >
      > Peter wrote:
      >[color=green]
      > > Hello!
      > >
      > > Please, could anyone say, can one combine javascript and vbscript in[/color][/color]
      same[color=blue][color=green]
      > > asp page? I am in situation where I must run some code in javascript and[/color][/color]
      some[color=blue][color=green]
      > > of it in vbscript. Can I change somehow to run code in vbscript and when[/color][/color]
      it[color=blue][color=green]
      > > is executed back to javascript? Help is very much appreciated.
      > >
      > > Thanks!
      > >
      > > Peter[/color]
      >[/color]


      Comment

      • joker

        #4
        Re: Javascript and VBscript in same asp page, possible?

        Change the Extension to .asp and use the same technique I just described.

        mark | r wrote:
        [color=blue]
        > what about having asp write variables in an external .js file... i still
        > havent worked out a way to do this.
        >
        > mark
        >
        >[color=green]
        >>All you have to do is
        >>
        >><script language="JavaS cript" runat=server>
        >>//Sever side Jscript goes here
        >></script>
        >>
        >><script language="vbscr ipt" runat=server>
        >>//Sever side VB Script goes here
        >></script>
        >>
        >><script language="JavaS cript">
        >>//Client side Jscript goes here
        >></script>
        >>
        >><script language="vbscr ipt">
        >>//Client side VB Script goes here assuming you have an IE only audience
        >></script>
        >>
        >>Peter wrote:
        >>
        >>[color=darkred]
        >>>Hello!
        >>>
        >>>Please, could anyone say, can one combine javascript and vbscript in[/color][/color]
        >
        > same
        >[color=green][color=darkred]
        >>>asp page? I am in situation where I must run some code in javascript and[/color][/color]
        >
        > some
        >[color=green][color=darkred]
        >>>of it in vbscript. Can I change somehow to run code in vbscript and when[/color][/color]
        >
        > it
        >[color=green][color=darkred]
        >>>is executed back to javascript? Help is very much appreciated.
        >>>
        >>>Thanks!
        >>>
        >>>Peter[/color]
        >>[/color]
        >
        >[/color]

        Comment

        Working...