Javascript array to vb array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Sm9obiBCdW5keQ==?=

    #1

    Javascript array to vb array

    Hey guys, I've searched high and low for a way to populate a vb array with
    data from a javascript array. I can find 50 ways to do it with ASP but not
    one for VB. I appreciate what help you can give.
    --
    -John
    Please rate when your question is answered to help us and others know what
    is helpful.
  • Scott M.

    #2
    Re: Javascript array to vb array

    What? You want to write a VB .NET program that has JavaScript in the VB?

    You can do it with ASP but not VB? What does that mean? ASP is an
    architecture, not a language. If you did what you want in an ASP page, then
    you wrote it in, most likely VBScript. Can you post that code so we can
    understand what it is you are trying to do?

    "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
    news:F95CE8B4-1CAD-4749-9872-1BAE5AB3CA6D@mi crosoft.com...
    Hey guys, I've searched high and low for a way to populate a vb array with
    data from a javascript array. I can find 50 ways to do it with ASP but not
    one for VB. I appreciate what help you can give.
    --
    -John
    Please rate when your question is answered to help us and others know what
    is helpful.

    Comment

    • =?Utf-8?B?Sm9obiBCdW5keQ==?=

      #3
      Re: Javascript array to vb array

      I am automating a batch download of files from a web page. The url's of the
      downloads are built from a combination of values stored in arrays on the
      site. I have a windows application program built that navigates to the site,
      does some preliminary stuff, and now needs to download the files needed to
      complete the process. I have all the code for navigation and even the
      downloader built, just need this last piece. This is an example of the issue
      posted elsewhere.




      --
      -John
      Please rate when your question is answered to help us and others know what
      is helpful.


      "Scott M." wrote:
      What? You want to write a VB .NET program that has JavaScript in the VB?
      >
      You can do it with ASP but not VB? What does that mean? ASP is an
      architecture, not a language. If you did what you want in an ASP page, then
      you wrote it in, most likely VBScript. Can you post that code so we can
      understand what it is you are trying to do?
      >
      "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
      news:F95CE8B4-1CAD-4749-9872-1BAE5AB3CA6D@mi crosoft.com...
      Hey guys, I've searched high and low for a way to populate a vb array with
      data from a javascript array. I can find 50 ways to do it with ASP but not
      one for VB. I appreciate what help you can give.
      --
      -John
      Please rate when your question is answered to help us and others know what
      is helpful.
      >
      >
      >

      Comment

      • Scott M.

        #4
        Re: Javascript array to vb array

        Your problem is more complex than you think. It's not just a conversion
        between JavaScript and VB .NET. It's the persistence of the client side
        JavaScript object into the server-side processing of ASP .NET.

        You'll first need to find a way to send the JavaScript array data (not the
        array) to the server for the server-side code to extract. The most
        straight-forward way would probably be hidden form fields and an automated
        form submit function in the client-side code.



        "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
        news:10ECBB63-F2E6-4C2F-A2B8-BBA8CFD9DC60@mi crosoft.com...
        >I am automating a batch download of files from a web page. The url's of the
        downloads are built from a combination of values stored in arrays on the
        site. I have a windows application program built that navigates to the
        site,
        does some preliminary stuff, and now needs to download the files needed to
        complete the process. I have all the code for navigation and even the
        downloader built, just need this last piece. This is an example of the
        issue
        posted elsewhere.
        >

        >
        >
        --
        -John
        Please rate when your question is answered to help us and others know what
        is helpful.
        >
        >
        "Scott M." wrote:
        >
        >What? You want to write a VB .NET program that has JavaScript in the VB?
        >>
        >You can do it with ASP but not VB? What does that mean? ASP is an
        >architecture , not a language. If you did what you want in an ASP page,
        >then
        >you wrote it in, most likely VBScript. Can you post that code so we can
        >understand what it is you are trying to do?
        >>
        >"John Bundy" <jmbundy@gmail. com(remove)wrot e in message
        >news:F95CE8B 4-1CAD-4749-9872-1BAE5AB3CA6D@mi crosoft.com...
        Hey guys, I've searched high and low for a way to populate a vb array
        with
        data from a javascript array. I can find 50 ways to do it with ASP but
        not
        one for VB. I appreciate what help you can give.
        --
        -John
        Please rate when your question is answered to help us and others know
        what
        is helpful.
        >>
        >>
        >>

        Comment

        • =?Utf-8?B?Sm9obiBCdW5keQ==?=

          #5
          Re: Javascript array to vb array

          I was afraid of something like that. There are two javascript functions, one
          that selects the rows and one that retrieves them, I have some code that can
          run a javascript function but nothing along the lines of passing parameters.
          Any ideas for that?
          --
          -John
          Please rate when your question is answered to help us and others know what
          is helpful.


          "Scott M." wrote:
          Your problem is more complex than you think. It's not just a conversion
          between JavaScript and VB .NET. It's the persistence of the client side
          JavaScript object into the server-side processing of ASP .NET.
          >
          You'll first need to find a way to send the JavaScript array data (not the
          array) to the server for the server-side code to extract. The most
          straight-forward way would probably be hidden form fields and an automated
          form submit function in the client-side code.
          >
          >
          >
          "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
          news:10ECBB63-F2E6-4C2F-A2B8-BBA8CFD9DC60@mi crosoft.com...
          I am automating a batch download of files from a web page. The url's of the
          downloads are built from a combination of values stored in arrays on the
          site. I have a windows application program built that navigates to the
          site,
          does some preliminary stuff, and now needs to download the files needed to
          complete the process. I have all the code for navigation and even the
          downloader built, just need this last piece. This is an example of the
          issue
          posted elsewhere.




          --
          -John
          Please rate when your question is answered to help us and others know what
          is helpful.


          "Scott M." wrote:
          What? You want to write a VB .NET program that has JavaScript in the VB?
          >
          You can do it with ASP but not VB? What does that mean? ASP is an
          architecture, not a language. If you did what you want in an ASP page,
          then
          you wrote it in, most likely VBScript. Can you post that code so we can
          understand what it is you are trying to do?
          >
          "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
          news:F95CE8B4-1CAD-4749-9872-1BAE5AB3CA6D@mi crosoft.com...
          Hey guys, I've searched high and low for a way to populate a vb array
          with
          data from a javascript array. I can find 50 ways to do it with ASP but
          not
          one for VB. I appreciate what help you can give.
          --
          -John
          Please rate when your question is answered to help us and others know
          what
          is helpful.
          >
          >
          >
          >
          >
          >

          Comment

          • Scott M.

            #6
            Re: Javascript array to vb array

            As I said, I think you'll need to write a new JavaScript function that
            gathers the array data and sends it to the server (via a form submit,
            perhaps).

            I imagine the function would iterate over your array and add hidden form
            fields to the DOM, then when done submit the form. The server-side code
            would then just pull these submitted form values out of the Request object
            as normal.


            "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
            news:446C5630-696A-45D3-BC2A-9C58F5BD805D@mi crosoft.com...
            >I was afraid of something like that. There are two javascript functions,
            >one
            that selects the rows and one that retrieves them, I have some code that
            can
            run a javascript function but nothing along the lines of passing
            parameters.
            Any ideas for that?
            --
            -John
            Please rate when your question is answered to help us and others know what
            is helpful.
            >
            >
            "Scott M." wrote:
            >
            >Your problem is more complex than you think. It's not just a conversion
            >between JavaScript and VB .NET. It's the persistence of the client side
            >JavaScript object into the server-side processing of ASP .NET.
            >>
            >You'll first need to find a way to send the JavaScript array data (not
            >the
            >array) to the server for the server-side code to extract. The most
            >straight-forward way would probably be hidden form fields and an
            >automated
            >form submit function in the client-side code.
            >>
            >>
            >>
            >"John Bundy" <jmbundy@gmail. com(remove)wrot e in message
            >news:10ECBB6 3-F2E6-4C2F-A2B8-BBA8CFD9DC60@mi crosoft.com...
            >I am automating a batch download of files from a web page. The url's of
            >the
            downloads are built from a combination of values stored in arrays on
            the
            site. I have a windows application program built that navigates to the
            site,
            does some preliminary stuff, and now needs to download the files needed
            to
            complete the process. I have all the code for navigation and even the
            downloader built, just need this last piece. This is an example of the
            issue
            posted elsewhere.
            >

            >
            >
            --
            -John
            Please rate when your question is answered to help us and others know
            what
            is helpful.
            >
            >
            "Scott M." wrote:
            >
            >What? You want to write a VB .NET program that has JavaScript in the
            >VB?
            >>
            >You can do it with ASP but not VB? What does that mean? ASP is an
            >architecture , not a language. If you did what you want in an ASP
            >page,
            >then
            >you wrote it in, most likely VBScript. Can you post that code so we
            >can
            >understand what it is you are trying to do?
            >>
            >"John Bundy" <jmbundy@gmail. com(remove)wrot e in message
            >news:F95CE8B 4-1CAD-4749-9872-1BAE5AB3CA6D@mi crosoft.com...
            Hey guys, I've searched high and low for a way to populate a vb
            array
            with
            data from a javascript array. I can find 50 ways to do it with ASP
            but
            not
            one for VB. I appreciate what help you can give.
            --
            -John
            Please rate when your question is answered to help us and others
            know
            what
            is helpful.
            >>
            >>
            >>
            >>
            >>
            >>

            Comment

            • =?Utf-8?B?Sm9obiBCdW5keQ==?=

              #7
              Re: Javascript array to vb array

              I will try it, thanks
              --
              -John
              Please rate when your question is answered to help us and others know what
              is helpful.


              "Scott M." wrote:
              As I said, I think you'll need to write a new JavaScript function that
              gathers the array data and sends it to the server (via a form submit,
              perhaps).
              >
              I imagine the function would iterate over your array and add hidden form
              fields to the DOM, then when done submit the form. The server-side code
              would then just pull these submitted form values out of the Request object
              as normal.
              >
              >
              "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
              news:446C5630-696A-45D3-BC2A-9C58F5BD805D@mi crosoft.com...
              I was afraid of something like that. There are two javascript functions,
              one
              that selects the rows and one that retrieves them, I have some code that
              can
              run a javascript function but nothing along the lines of passing
              parameters.
              Any ideas for that?
              --
              -John
              Please rate when your question is answered to help us and others know what
              is helpful.


              "Scott M." wrote:
              Your problem is more complex than you think. It's not just a conversion
              between JavaScript and VB .NET. It's the persistence of the client side
              JavaScript object into the server-side processing of ASP .NET.
              >
              You'll first need to find a way to send the JavaScript array data (not
              the
              array) to the server for the server-side code to extract. The most
              straight-forward way would probably be hidden form fields and an
              automated
              form submit function in the client-side code.
              >
              >
              >
              "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
              news:10ECBB63-F2E6-4C2F-A2B8-BBA8CFD9DC60@mi crosoft.com...
              I am automating a batch download of files from a web page. The url's of
              the
              downloads are built from a combination of values stored in arrays on
              the
              site. I have a windows application program built that navigates to the
              site,
              does some preliminary stuff, and now needs to download the files needed
              to
              complete the process. I have all the code for navigation and even the
              downloader built, just need this last piece. This is an example of the
              issue
              posted elsewhere.




              --
              -John
              Please rate when your question is answered to help us and others know
              what
              is helpful.


              "Scott M." wrote:

              What? You want to write a VB .NET program that has JavaScript in the
              VB?
              >
              You can do it with ASP but not VB? What does that mean? ASP is an
              architecture, not a language. If you did what you want in an ASP
              page,
              then
              you wrote it in, most likely VBScript. Can you post that code so we
              can
              understand what it is you are trying to do?
              >
              "John Bundy" <jmbundy@gmail. com(remove)wrot e in message
              news:F95CE8B4-1CAD-4749-9872-1BAE5AB3CA6D@mi crosoft.com...
              Hey guys, I've searched high and low for a way to populate a vb
              array
              with
              data from a javascript array. I can find 50 ways to do it with ASP
              but
              not
              one for VB. I appreciate what help you can give.
              --
              -John
              Please rate when your question is answered to help us and others
              know
              what
              is helpful.
              >
              >
              >
              >
              >
              >
              >
              >
              >

              Comment

              Working...