Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / July 2006



Tip: Looking for answers? Try searching our database.

js xml at client side

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
roy - 31 Jul 2006 15:51 GMT
hi,
i need some help with xml and js ...
in my html page i've to  show a grid with some data retrieved from
an xml file ...
i need to this beacuse i've to use online, on a webserver and offline
with all files on a usb key, cd, etc ...

which is the best way to accomplish this ?
i suppose a solution it could be via javascript
-locally open the xml file that contains the data e then
render then grid
now i wornder about the best way to do this ...
i've read about xsl transofrmation and so on ...
if it's possible i'h to achieve this with a cross-browser solution !

thanks much in advace for any help,suggestion,reference ...
andrew
Matt Ratliff - 31 Jul 2006 16:39 GMT
>hi,
>i need some help with xml and js ...
[quoted text clipped - 13 lines]
>thanks much in advace for any help,suggestion,reference ...
>andrew

Andrew,
   I've had some experience in these situations where I've used AJAX
to format data from a table or directly from the XML file coming from
the server.  Once your back in the client script you can parse out the
data using DOM and format it as needed for display.  The XSLT is a
good idea.  I don't have any working code using XSLT as I'm currently
in the processing of developing a site using this framework.  Here is
a link that will get you some information using AJAX:
    http://developer.mozilla.org/en/docs/AJAX

I would hold off on the XSLT until you can effectively communicate
client/server using the AJAX component.  If you need some more
information on AJAX let me know and I'll send you a couple sample
scripts.

Matt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.