Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default javascript problem!

    I have JavaScript question. on my page, I have two videos I want to link to,
    one low bandwidth, one high bandwidth. I want to have a dropdown menu for the
    user to select either low or high bandwidth, and a button that will play the
    video with bandwidth selected. the code I have is as follows:

    <script type="text/JavaScript">
    //video select//
    function gothere(){
    var box = document.noacvideoselect.bandwithselect.options;
    var where_to = box.value;
    if (where_to == ""){return}
    else {window.location = where_to;}
    }
    </script>

    <form name="noacvideoselect">
    <select name="bandwithselect">
    <option selected="selected">--select a bandwidth--</option>
    <option value="/~thackray/flash/noac2006flash_highqual.exe">High
    Bandwith</option>
    <option value="/~thackray/flash/noac2006flash_lowqual.exe">Low
    Bandwidth</option>
    </select>
    <input type="button" value="Play Movie!" onclick="goThere()" />
    </form>

    this is not working correctly. I think there is a problem with my JavaScript,
    but I am not sure what it is. can you help me? thanks!


    jmack159 Guest

  2. Similar Questions and Discussions

    1. problem with Acrobat 3D and Javascript
      I try to make invisible an object in 3D annotation, but I have the following error "node has no properties". My code: var a3d = getAnnots3D(0); if...
    2. javascript problem in CF 7 MX and IE 6.0
      I've got a javascript pull down menu on my pages and they work fine on regular HTML pages, but in Coldfusion pages, they render whitespace as...
    3. PHP & Javascript problem
      Hi, This is more a javascript than a PHP problem, but anyway, if anyone can help.... I have a script that will dynamically create a series of...
    4. javascript problem
      This is probably a no brainer, but I am having no luck at getting this to work. I'm creating functions that will validate form data fields. For...
    5. Javascript Problem in IE
      All buttons with javascript in Web pages do not work in IE5.0 and IE6.0. My Windows version is XP. Is there any software crashes ? Crash with Norton...
  3. #2

    Default Re: javascript problem!

    Try document.location.href instead of window.location.

    Why wouldn't you just provide a link to the low and high quality versions though?
    VVebbie Guest

  4. #3

    Default Re: javascript problem!

    that didnt work. i wanted to use this method because i plan to later use the same script to do the task, but with several more files.
    jmack159 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139