can javascript do this

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

    can javascript do this

    I have a .net page where I display a list of items and allow the user to
    select one or more items and place the items in another text box as being
    selected by clicking an arrow. I currently have two arrows, one to remove
    the selected items from the source box and place them in the destination box
    and another arrow to take the selected items from the destination box and put
    them back in the source textbox. Just wondering if there is a way to do this
    without posting back to the server? I
    Thanks Paul.
    --
    Paul G
    Software engineer.
  • Gregory A. Beamer \(Cowboy\) - MVP

    #2
    Re: can javascript do this

    Yes you can.

    There are numerous examples out there. I think the AJAX controls on
    www.asp.net have an example of doing exactly what you want. If not there, I
    believe it is still somewhere on the ASP.NET site.

    You can also use AJAX to avoid the appearance of post back on any pages you
    want to seem more dynamic for the user.

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    Subscribe to my blog


    or just read it:


    *************** *************** **************
    | Think outside the box! |
    *************** *************** **************
    "Paul" <Paul@discussio ns.microsoft.co mwrote in message
    news:C54EC387-2C35-436B-B690-A31FA5E71527@mi crosoft.com...
    >I have a .net page where I display a list of items and allow the user to
    select one or more items and place the items in another text box as being
    selected by clicking an arrow. I currently have two arrows, one to remove
    the selected items from the source box and place them in the destination
    box
    and another arrow to take the selected items from the destination box and
    put
    them back in the source textbox. Just wondering if there is a way to do
    this
    without posting back to the server? I
    Thanks Paul.
    --
    Paul G
    Software engineer.

    Comment

    • =?Utf-8?B?UGF1bA==?=

      #3
      Re: can javascript do this

      Yep trying to reduce the number of postbacks on the entire form. I
      downloaded the ajax tool kit several months ago so will check it. I am not
      sure how often they update the toolkit with new ajax controls but I may need
      to grab the newest version.
      thanks.
      --
      Paul G
      Software engineer.


      "Gregory A. Beamer (Cowboy) - MVP" wrote:
      Yes you can.
      >
      There are numerous examples out there. I think the AJAX controls on
      www.asp.net have an example of doing exactly what you want. If not there, I
      believe it is still somewhere on the ASP.NET site.
      >
      You can also use AJAX to avoid the appearance of post back on any pages you
      want to seem more dynamic for the user.
      >
      --
      Gregory A. Beamer
      MVP, MCP: +I, SE, SD, DBA
      >
      Subscribe to my blog

      >
      or just read it:

      >
      *************** *************** **************
      | Think outside the box! |
      *************** *************** **************
      "Paul" <Paul@discussio ns.microsoft.co mwrote in message
      news:C54EC387-2C35-436B-B690-A31FA5E71527@mi crosoft.com...
      I have a .net page where I display a list of items and allow the user to
      select one or more items and place the items in another text box as being
      selected by clicking an arrow. I currently have two arrows, one to remove
      the selected items from the source box and place them in the destination
      box
      and another arrow to take the selected items from the destination box and
      put
      them back in the source textbox. Just wondering if there is a way to do
      this
      without posting back to the server? I
      Thanks Paul.
      --
      Paul G
      Software engineer.
      >
      >
      >

      Comment

      • Gregory A. Beamer \(Cowboy\) - MVP

        #4
        Re: can javascript do this

        If you have VS2008, just download SP1 for VS2008 and you have all but the
        futures bits included.

        --
        Gregory A. Beamer
        MVP, MCP: +I, SE, SD, DBA

        Subscribe to my blog


        or just read it:


        *************** *************** **************
        | Think outside the box! |
        *************** *************** **************
        "Paul" <Paul@discussio ns.microsoft.co mwrote in message
        news:EF6F0F94-482D-4132-8FCC-ADEF4AB6267D@mi crosoft.com...
        Yep trying to reduce the number of postbacks on the entire form. I
        downloaded the ajax tool kit several months ago so will check it. I am
        not
        sure how often they update the toolkit with new ajax controls but I may
        need
        to grab the newest version.
        thanks.
        --
        Paul G
        Software engineer.
        >
        >
        "Gregory A. Beamer (Cowboy) - MVP" wrote:
        >
        >Yes you can.
        >>
        >There are numerous examples out there. I think the AJAX controls on
        >www.asp.net have an example of doing exactly what you want. If not there,
        >I
        >believe it is still somewhere on the ASP.NET site.
        >>
        >You can also use AJAX to avoid the appearance of post back on any pages
        >you
        >want to seem more dynamic for the user.
        >>
        >--
        >Gregory A. Beamer
        >MVP, MCP: +I, SE, SD, DBA
        >>
        >Subscribe to my blog
        >http://feeds.feedburner.com/GregoryBeamer#
        >>
        >or just read it:
        >http://feeds.feedburner.com/GregoryBeamer
        >>
        >************** *************** ***************
        >| Think outside the box! |
        >************** *************** ***************
        >"Paul" <Paul@discussio ns.microsoft.co mwrote in message
        >news:C54EC38 7-2C35-436B-B690-A31FA5E71527@mi crosoft.com...
        >I have a .net page where I display a list of items and allow the user to
        select one or more items and place the items in another text box as
        being
        selected by clicking an arrow. I currently have two arrows, one to
        remove
        the selected items from the source box and place them in the
        destination
        box
        and another arrow to take the selected items from the destination box
        and
        put
        them back in the source textbox. Just wondering if there is a way to
        do
        this
        without posting back to the server? I
        Thanks Paul.
        --
        Paul G
        Software engineer.
        >>
        >>
        >>

        Comment

        • =?Utf-8?B?UGF1bA==?=

          #5
          Re: can javascript do this

          still have 2005, found a javascript function that seems to work well for
          moving items back and forth between list boxes.
          --
          Paul G
          Software engineer.


          "Gregory A. Beamer (Cowboy) - MVP" wrote:
          If you have VS2008, just download SP1 for VS2008 and you have all but the
          futures bits included.
          >
          --
          Gregory A. Beamer
          MVP, MCP: +I, SE, SD, DBA
          >
          Subscribe to my blog

          >
          or just read it:

          >
          *************** *************** **************
          | Think outside the box! |
          *************** *************** **************
          "Paul" <Paul@discussio ns.microsoft.co mwrote in message
          news:EF6F0F94-482D-4132-8FCC-ADEF4AB6267D@mi crosoft.com...
          Yep trying to reduce the number of postbacks on the entire form. I
          downloaded the ajax tool kit several months ago so will check it. I am
          not
          sure how often they update the toolkit with new ajax controls but I may
          need
          to grab the newest version.
          thanks.
          --
          Paul G
          Software engineer.


          "Gregory A. Beamer (Cowboy) - MVP" wrote:
          Yes you can.
          >
          There are numerous examples out there. I think the AJAX controls on
          www.asp.net have an example of doing exactly what you want. If not there,
          I
          believe it is still somewhere on the ASP.NET site.
          >
          You can also use AJAX to avoid the appearance of post back on any pages
          you
          want to seem more dynamic for the user.
          >
          --
          Gregory A. Beamer
          MVP, MCP: +I, SE, SD, DBA
          >
          Subscribe to my blog

          >
          or just read it:

          >
          *************** *************** **************
          | Think outside the box! |
          *************** *************** **************
          "Paul" <Paul@discussio ns.microsoft.co mwrote in message
          news:C54EC387-2C35-436B-B690-A31FA5E71527@mi crosoft.com...
          I have a .net page where I display a list of items and allow the user to
          select one or more items and place the items in another text box as
          being
          selected by clicking an arrow. I currently have two arrows, one to
          remove
          the selected items from the source box and place them in the
          destination
          box
          and another arrow to take the selected items from the destination box
          and
          put
          them back in the source textbox. Just wondering if there is a way to
          do
          this
          without posting back to the server? I
          Thanks Paul.
          --
          Paul G
          Software engineer.
          >
          >
          >
          >
          >
          >

          Comment

          • Gregory A. Beamer \(Cowboy\) - MVP

            #6
            Re: can javascript do this

            The cool thing about client side stuff, is you can always upgrade the
            backend and still continue to use the client stuff. Glad you found something
            that works.

            --
            Gregory A. Beamer
            MVP, MCP: +I, SE, SD, DBA

            Subscribe to my blog


            or just read it:


            *************** *************** **************
            | Think outside the box! |
            *************** *************** **************
            "Paul" <Paul@discussio ns.microsoft.co mwrote in message
            news:E18F7092-99F0-4805-A6C5-E2F2D0417A4F@mi crosoft.com...
            still have 2005, found a javascript function that seems to work well for
            moving items back and forth between list boxes.
            --
            Paul G
            Software engineer.
            >
            >
            "Gregory A. Beamer (Cowboy) - MVP" wrote:
            >
            >If you have VS2008, just download SP1 for VS2008 and you have all but the
            >futures bits included.
            >>
            >--
            >Gregory A. Beamer
            >MVP, MCP: +I, SE, SD, DBA
            >>
            >Subscribe to my blog
            >http://feeds.feedburner.com/GregoryBeamer#
            >>
            >or just read it:
            >http://feeds.feedburner.com/GregoryBeamer
            >>
            >************** *************** ***************
            >| Think outside the box! |
            >************** *************** ***************
            >"Paul" <Paul@discussio ns.microsoft.co mwrote in message
            >news:EF6F0F9 4-482D-4132-8FCC-ADEF4AB6267D@mi crosoft.com...
            Yep trying to reduce the number of postbacks on the entire form. I
            downloaded the ajax tool kit several months ago so will check it. I am
            not
            sure how often they update the toolkit with new ajax controls but I may
            need
            to grab the newest version.
            thanks.
            --
            Paul G
            Software engineer.
            >
            >
            "Gregory A. Beamer (Cowboy) - MVP" wrote:
            >
            >Yes you can.
            >>
            >There are numerous examples out there. I think the AJAX controls on
            >www.asp.net have an example of doing exactly what you want. If not
            >there,
            >I
            >believe it is still somewhere on the ASP.NET site.
            >>
            >You can also use AJAX to avoid the appearance of post back on any
            >pages
            >you
            >want to seem more dynamic for the user.
            >>
            >--
            >Gregory A. Beamer
            >MVP, MCP: +I, SE, SD, DBA
            >>
            >Subscribe to my blog
            >http://feeds.feedburner.com/GregoryBeamer#
            >>
            >or just read it:
            >http://feeds.feedburner.com/GregoryBeamer
            >>
            >************** *************** ***************
            >| Think outside the box! |
            >************** *************** ***************
            >"Paul" <Paul@discussio ns.microsoft.co mwrote in message
            >news:C54EC38 7-2C35-436B-B690-A31FA5E71527@mi crosoft.com...
            >I have a .net page where I display a list of items and allow the user
            >to
            select one or more items and place the items in another text box as
            being
            selected by clicking an arrow. I currently have two arrows, one to
            remove
            the selected items from the source box and place them in the
            destination
            box
            and another arrow to take the selected items from the destination
            box
            and
            put
            them back in the source textbox. Just wondering if there is a way
            to
            do
            this
            without posting back to the server? I
            Thanks Paul.
            --
            Paul G
            Software engineer.
            >>
            >>
            >>
            >>
            >>
            >>

            Comment

            Working...