-
Refreshing XML data islands
I am trying to come up with a method of refreshing an XML data island without
having to reload my page.
The way the system currently works, is I have an embedded xml object that,
when the ASP page is originally loaded, calls another ASP page which writes
back to it, xml data retrieved from a database:
<xml id="MyXML" src="process.asp"></xml>
I data-bind this data island to some tables and fields, creating a master
detail affair...but I would like to have a button that when clicked, causes
a refresh of the data island, without physically retrieving the whole page
again.
I have tried setting the xml object's SRC property to "", then back to the
original PROCESS.ASP, but no go. The XMLDocument property is readonly, so
that does not seem like an option.
Anyone care to throw out some ideas to try?
rod..
-
Re: Refreshing XML data islands
Well, it seems like the XMLDocument isn't so 'read-only'....apparently you
can call the LoadXML method, and change things...so ignore my previous post,
since I seem to have answered my own question.
"Rod Sanford" <rod@celerus.com> wrote:
>
>I am trying to come up with a method of refreshing an XML data island without
>having to reload my page.
>
>The way the system currently works, is I have an embedded xml object that,
>when the ASP page is originally loaded, calls another ASP page which writes
>back to it, xml data retrieved from a database:
>
><xml id="MyXML" src="process.asp"></xml>
>
>I data-bind this data island to some tables and fields, creating a master
>detail affair...but I would like to have a button that when clicked, causes
>a refresh of the data island, without physically retrieving the whole page
>again.
>
>I have tried setting the xml object's SRC property to "", then back to the
>original PROCESS.ASP, but no go. The XMLDocument property is readonly,
so
>that does not seem like an option.
>
>Anyone care to throw out some ideas to try?
>
>rod..
-
Re: Refreshing XML data islands
You can use the XMLHttpRequest object or remote scripting to make a
background call to the server to retrieve the XML file contents.
"Rod Sanford" <rod@celerus.com> wrote in message
news:3bb9c4eb$1@news.devx.com...
>
> I am trying to come up with a method of refreshing an XML data island
without
> having to reload my page.
>
> The way the system currently works, is I have an embedded xml object that,
> when the ASP page is originally loaded, calls another ASP page which
writes
> back to it, xml data retrieved from a database:
>
> <xml id="MyXML" src="process.asp"></xml>
>
> I data-bind this data island to some tables and fields, creating a master
> detail affair...but I would like to have a button that when clicked,
causes
> a refresh of the data island, without physically retrieving the whole page
> again.
>
> I have tried setting the xml object's SRC property to "", then back to the
> original PROCESS.ASP, but no go. The XMLDocument property is readonly, so
> that does not seem like an option.
>
> Anyone care to throw out some ideas to try?
>
> rod..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|