Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Need some help making this firefox compatible

  1. #1
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Need some help making this firefox compatible

    Code:
    <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

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Well, as it is using VBscript and not javascript it isn't a simple task.

  3. #3
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    but can it be done and i am willing to pay for it to work

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    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.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hm... I think it would involve AJAX. Depends how widely-available E4X is though.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by queerfm
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    If you can explain what it accomplishes we will probably be able to help.

  8. #8
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

  9. #9
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Unhappy

    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?

  10. #10
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Does it refresh peirodically? And does what does the xml file look like?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •