XML and Postback issue

Discussion in 'ASP .Net' started by Erik Lautier, Aug 21, 2007.

  1. Erik Lautier

    Erik Lautier Guest

    Hi,

    I've got a dynamically generated dropdownlist of sizes, which, when
    selected, shows current inventory for that size. I originally just
    called to the server when the size was changed to display inventory,
    but I wanted it to happen more seamlessly, so I wrote the data to an
    XML file when the overall product page was visited and accessed it
    that way...the problem is that it's still posting back to get the XML
    data. What's I'm looking for is a way to do this without calling back
    to the server at all. Any ideas?

    Thanks,

    Erik
     
    Erik Lautier, Aug 21, 2007
    #1
    1. Advertising

  2. You could convert it to a client side data island and access the data
    locally

    http://www.w3schools.com/xml/xml_data_island.asp

    Regards

    John Timney (MVP)
    http://www.johntimney.com
    http://www.johntimney.com/blog


    "Erik Lautier" <> wrote in message
    news:...
    > Hi,
    >
    > I've got a dynamically generated dropdownlist of sizes, which, when
    > selected, shows current inventory for that size. I originally just
    > called to the server when the size was changed to display inventory,
    > but I wanted it to happen more seamlessly, so I wrote the data to an
    > XML file when the overall product page was visited and accessed it
    > that way...the problem is that it's still posting back to get the XML
    > data. What's I'm looking for is a way to do this without calling back
    > to the server at all. Any ideas?
    >
    > Thanks,
    >
    > Erik
    >
     
    John Timney \(MVP\), Aug 21, 2007
    #2
    1. Advertising

  3. Erik Lautier

    Erik Lautier Guest

    Thanks John, I had a look at the link. Is it possible to pull one
    cell at a time from the island? While I'd be pulling the shirt size
    and quantity into the XML which would generate a table six rows tall
    by two columns wide, I'd only need to pull the quantity for one size
    at a time.

    Also, will this not work in Firefox?

    Erik


    On Aug 21, 6:39 pm, "John Timney \(MVP\)"
    <> wrote:
    > You could convert it to a client side data island and access the data
    > locally
    >
    > http://www.w3schools.com/xml/xml_data_island.asp
    >
    > Regards
    >
    > John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
    >
    > "ErikLautier" <> wrote in message
    >
    > news:...
    >
    > > Hi,

    >
    > > I've got a dynamically generated dropdownlist of sizes, which, when
    > > selected, shows current inventory for that size. I originally just
    > > called to the server when the size was changed to display inventory,
    > > but I wanted it to happen more seamlessly, so I wrote the data to an
    > > XML file when the overall product page was visited and accessed it
    > > that way...the problem is that it's still posting back to get the XML
    > > data. What's I'm looking for is a way to do this without calling back
    > > to the server at all. Any ideas?

    >
    > > Thanks,

    >
    > > Erik
     
    Erik Lautier, Aug 22, 2007
    #3
  4. take a look at the xml parsing example - its probably better suited to what
    your seeking. Specifically the Parsing an XML String - A Cross browser
    Example section.

    http://www.w3schools.com/xml/xml_parser.asp

    Regards

    John Timney (MVP)
    http://www.johntimney.com
    http://www.johntimney.com/blog


    "Erik Lautier" <> wrote in message
    news:...
    > Thanks John, I had a look at the link. Is it possible to pull one
    > cell at a time from the island? While I'd be pulling the shirt size
    > and quantity into the XML which would generate a table six rows tall
    > by two columns wide, I'd only need to pull the quantity for one size
    > at a time.
    >
    > Also, will this not work in Firefox?
    >
    > Erik
    >
    >
    > On Aug 21, 6:39 pm, "John Timney \(MVP\)"
    > <> wrote:
    >> You could convert it to a client side data island and access the data
    >> locally
    >>
    >> http://www.w3schools.com/xml/xml_data_island.asp
    >>
    >> Regards
    >>
    >> John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
    >>
    >> "ErikLautier" <> wrote in message
    >>
    >> news:...
    >>
    >> > Hi,

    >>
    >> > I've got a dynamically generated dropdownlist of sizes, which, when
    >> > selected, shows current inventory for that size. I originally just
    >> > called to the server when the size was changed to display inventory,
    >> > but I wanted it to happen more seamlessly, so I wrote the data to an
    >> > XML file when the overall product page was visited and accessed it
    >> > that way...the problem is that it's still posting back to get the XML
    >> > data. What's I'm looking for is a way to do this without calling back
    >> > to the server at all. Any ideas?

    >>
    >> > Thanks,

    >>
    >> > Erik

    >
    >
     
    John Timney \(MVP\), Aug 22, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Psych971
    Replies:
    5
    Views:
    4,631
    bruce barker
    Dec 17, 2004
  2. =?Utf-8?B?Q2hhZA==?=

    Postback not being set to True on first postback

    =?Utf-8?B?Q2hhZA==?=, Apr 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    510
    =?Utf-8?B?Q2hhZA==?=
    Apr 4, 2005
  3. gce
    Replies:
    2
    Views:
    1,722
  4. Replies:
    3
    Views:
    2,879
  5. Erik Wasser
    Replies:
    5
    Views:
    465
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page