View Full Version : Need some help making this firefox compatible
queerfm
09-11-2006, 03:09 AM
<script language="VBScript" type="text/VBScript">
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("http://www.queerfm.net/XMLSongs.xml")
set x=xmlDoc.getElementsByTagName("Event")
</script>
</strong></div></th>
</tr>
<tr>
<td width="142"><strong><font face="Verdana" style="font-size: 8pt"> Artist:</font>
<font face="Verdana" style="font-size: 8pt" color="#FF0000">
<script language="VBScript" type="text/VBScript">
set x=xmlDoc.getElementsByTagName("Artist")
document.write(x.item(0).getAttribute("name"))
</script>
</font>
</td>
</tr>
<tr>
<td width="142"><strong><font face="Verdana" style="font-size: 8pt"> Title:</font>
<font face="Verdana" style="font-size: 8pt" color="#FF0000">
<script language="VBScript" type="text/VBScript">
set x=xmlDoc.getElementsByTagName("Song")
document.write(x.item(0).getAttribute("title")+ "")
</script>
</font>
</td>
</script></strong>
Would any one help me fix this i would like to make it work in firefox as well as ie, infact i would like it to work in all browsers
blm126
09-11-2006, 11:11 AM
Well, as it is using VBscript and not javascript it isn't a simple task.
queerfm
09-13-2006, 03:26 AM
but can it be done and i am willing to pay for it to work
codeexploiter
09-13-2006, 06:00 AM
I don't think FireFox allow the execution of client-side script in VBScript. Your script works client-side.
You can refer to http://www.mozilla.org/support/firefox/faq for more details.
You can do that using Javascript.
Hm... I think it would involve AJAX. Depends how widely-available E4X is though.
jscheuer1
09-15-2006, 07:40 AM
but can it be done and i am willing to pay for it to work
You can pay FireFox all the money you like but, it still won't run client-side VBscript. :)
What does it do anyway? Does look like Ajax might be able to duplicate in javascript - Like Twey says. But, it would probably be easier to just write something from scratch that was cross browser to do what you want than to try to 'translate' the existing code.
blm126
09-16-2006, 04:07 PM
If you can explain what it accomplishes we will probably be able to help.
queerfm
09-22-2006, 08:23 AM
ok the script works with a xml script that shows what is playing on our radio station. the script then gets the xml and founds the artist and song and places them where they need to be shown on the website
codeexploiter
09-22-2006, 09:59 AM
posted by: queerfm
script works with a xml script that shows what is playing on our radio station. the script then gets the xml and founds the artist and song and places them where they need to be shown on the website
But the main question remains unanswered, why VBScript in the Client-side? :confused:
blm126
09-22-2006, 11:08 AM
Does it refresh peirodically? And does what does the xml file look like?
queerfm
10-21-2006, 11:08 AM
ok this is what i would like it to do. i have a xml file that jazler.com radio software uploads to my site. The thing is i can't change it to txt or html due to we send the same xml code to satellite TV Networks, so people can view what song is on air.
i would also like it to update after a certant time.
I was thinking if i could make the xml show in flash that would work or maybe if you could show the xml in an image?
also i need this code to work for all major browsers...
Thankz
blm126
10-21-2006, 03:11 PM
What does the XML file look like?
queerfm
11-01-2006, 09:22 AM
looks like this
<Schedule System="Jazler">
<Event status="happening" startTime="09:58:53" eventType="idle">
<Announcement Display="Sorry, service not available. Try again later."/>
<Song title="">
<Artist name="">
<Media runTime=""/>
<Expire Time=""/>
</Artist>
</Song>
</Event>
</Schedule>
codeexploiter
11-01-2006, 09:42 AM
hi queerfm,
Instead of doing the XML data processing in the client side. You can do it in the Server Side using ASP without much trouble.
As i mentioned in my earlier post FF will simply skip the client side VBScript code if you embed that in a web page.
But if you want to process the XML file using a server side tool like PHP or ASP, since you are trying with VBScript i think ASP is the best method to do so.
queerfm
11-04-2006, 10:10 PM
well that would be great but i have one small problem well its not a big problem but i have a windows server and a linux. but my Radio station is on the linux how would i link the two?
And i did not make that VB Script i got it off the people that make the software.
So would you have a demo i could use?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.