|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Using Java to load xml file?
Hello, I hope someone can help me out with this.
I have been searching around the net trying to get some decent java to work in relation to loading an xml news file from another site(by permission of other site), and everything I have been trying isn't working.I don't know very much about java, but this is what I have been working with trying to get a news feed to show up on my html page: php Code:
I know this is supposed to extract contents from an external XML file using XML-DSO. I know there is more to go with it, but I am at a loss and am not sure how to go about getting it implemented in my pages. |
|
#2
|
|||
|
|||
|
RE: Using Java to load xml file?
First of all, this is javascript you are referring to, not java (that's a complete different language!)
If you are planning to do this on an online website, forget it and go server-side. Security settings in most IE clients won't allow you to do this! (except when the xml is from the same domain) However, for an offline page like an active desktop this is very usable; I have built a forum tracker for one of my favorite forums that uses this technique to track topics in an active desktop DHTML application. This website has been very helpfull to me to implement it and make it also work in Mozilla: http://webfx.eae.net/dhtml/xmlextras/xmlextras.html |
|
#3
|
|||
|
|||
|
RE: Using Java to load xml file?
Sorry about the mix up, I meant to put JavaScript in the topic name too but didn't for some reason.
I am doing this for an active online site to provide my visitors with a news feed from said other site.The other site has given me all the info I need to collect their xml file, but getting it posted on my page is harder then I thought it would be. Anyway, thanks for the link.I will check it out and see if they have anything there I can use. |
|
#4
|
|||
|
|||
|
RE: Using Java to load xml file?
Like I said: when the XML is coming from another domain you can't use the javascript XML DOM parser because javascript security doesn't allow you to get information from other domains.
You will have to go server-side |
|
#5
|
|||
|
|||
|
RE: Using Java to load xml file?
by the way; the easiest would be to load the XML serverside and redirect it to the client. That way the feed would come from your domain and you can use the client-side parsing bit:
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Using Java to load xml file? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|