Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer Forms: Select Stream, Play Without Changing FF Page

    http://www.basestationzero.com/IPB2.0/
    N: CodingForums
    P: htmlpass


    I've included an "Entertainment" bar on the top menu for memebers to select a radio or television broadcast stream. The problem I have is that FF will try to load a browser page with the stream's URL. I don't want this to happen. In IE, of coarse, there's no problem with this.

    Ideas?

    Code:
    
    <form name="stream">
    <select name="menu" style="font-size:9px; font-weight:normal;">
    <option value="javascript:void(0);" title="Please Select">Entertainment</option>
    <option value="javascript:void(0);">............</option>
    <option value="javascript:void(0);">~ MUSIC ~</option>
    
    <!--// ##### MUSIC ##### //-->
    <option value="http://kjzz.org:8080/livestream/connect.asx">Jazz: 91.5 KJZZ</option>
    <option value="http://a1446.l1996646747.c19966.g.lm.akamaistream.net/D/1446/19966/v0001/reflector:46747">Rock: 94.1 KZRR</option>
    <option value="http://www.club977.com/club977.asx">80s: Club .977</option>
    
    <!--// ##### TALK RADIO ##### //-->
    <option value="javascript:void(0);"></option>
    <option value="javascript:void(0);">~ TALK RADIO ~</option>
    <option value="http://www.npr.org/dmg/dmg.php?getProgramStream=true&NPRMediaPref=WM&sauid=U338850561152969963078&getUnderwriting=1&mswmext=.asx"> National Public Radio</option>
    
    <!--// ##### TELEVISION ##### //-->
    <option value="javascript:void(0);"></option>
    <option value="javascript:void(0);">~ TELEVISION ~</option>
    <option value="mms://201.238.232.211/chv">News: Santiago, Chile</option>
    <option value="http://streaming.entelchile.net/canal13">Channel 13: Santiago, Chile</option>
    <option value="mms://tfmi-wmt.gekimedia.net/tfmi-channel">Japanese MTV!</option>
    <option value="http://www.rambler-audio.ru/asx/video/rambler-tv.asx">Russian TV</option>
    
    <!--// ##### MISC. ##### //-->
    <option value="javascript:void(0);"></option>
    <option value="javascript:void(0);">~ INFORMATION ~</option>
    <option value="http://www.bloomberg.com/streams/video/LiveBTV200.asxx">Bloomberg Financial</option>
    <option value="http://www.nasdaq.com/about/marketsitetowervideo.asx">NASDAQ</option>
    
    </select><input type="button" 
    onClick="location=document.stream.menu.options[document.stream.menu.selectedIndex].value;" 
    style="height:18px; width:30px; font-family:verdana; font-size:9px;" 
    value="GO">
    </form>
    
    
    Last edited by ArcticFox; 07-29-2006 at 06:20 PM.
    <div> - putting your mind in a box since 1997

  • #2
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    AS much as I hate to say it, try using an <iframe>.

    Look you're changing the location object, why shouldn't that change where you tell it to. IE is just treating it as a special case. Don't blame Firefox for not supporting IE's special behavior.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

  • #3
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer

    Well, isn't there some hack to get FF to stand still on these clicks? Like using javascript:void(0); instead of # in standard links...


    *edit* and are you thinking of targeting an iFrame? Maybe a 1px x 1px sized one?
    <div> - putting your mind in a box since 1997

  • #4
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    *shrugs* I don't use multimedia.

    Actually an <object> element might be better suited.

    Targeting an iframe might work. Actually I was thinking of use the JavaScript to change the location of an iframe to the stream's URL.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

  • #5
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts
    Well in IE, the selection automatically brings up the media player. It does the same for FF, but FF will load a blank page (with the stream's URL) first. Then I have to click the back button to get back on the page.
    <div> - putting your mind in a box since 1997

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    It works for me in FF1.0.5. It opens the Open/Save As dialog box without opening a blank page.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #7
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer

    Wow. Can you save streaming content, glenn? Which link did you try, and do you not have something to play streaming media?
    <div> - putting your mind in a box since 1997

  • #8
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    I tried the link you posted in your first post. I have windows media player. FF is actually asking me if I want to open the streaming media in windows media player or save it, you know, the standard File Open/Save dialog box.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #9
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer

    Have you logged into the site and tried to select the content from the form? I'm thinking you just pulled the URL from the code above and tried to open in that way... I missing something?

    *and I've FF 1.5.0.5*
    <div> - putting your mind in a box since 1997

  • #10
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    I've logged in using the login info you supplied.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #11
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer

    LOL! Oh, okay.
    <div> - putting your mind in a box since 1997


  •  

    Posting Permissions

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