Results 1 to 4 of 4

Thread: Sub Directories

  1. #1
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Sub Directories

    I have a page within my website, located on a page similar to the one below (as an example):

    http://www.examplewebsite.com/uk/searcha/1/1.html

    The page loads fine when entered through a hyperlink, but a drop down box I have that should load the page when selected does not? It brings up the index page of searcha:

    http://www.examplewebsite.com/uk/searcha.html

    Curiousy the drop down box does load page:

    http://www.examplewebsite.com/uk/searcha/1.html

    Is there a limit to how many sub directories you can have within drop down boxes?

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Can you give a URL or source-code to demonstrate your problem? I think you have a JavaScript problem but need your source to verify that and know what kind.

  3. #3
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    I'm pretty sure it has something to do with the javascript code i'm using for the drop down box:

    Code:
    <form name="jumpy">
    <p><select style="width:350px" name="example" size="1" onChange="gone()">
    <option value="">Select</option>
    <option value="http://www.exampledomain.com/uk/searcha/1/1.html">Avon</option>
    <option value="http://www.exampledomain.com/uk/searcha/1/2.html">Bedfordshire</option>
    <option value="http://www.exampledomain.com/uk/searcha/1/3.html">Berkshire</option>
    </select>
    <script language="javascript">
    <!--
    
    /*Jumpy combo box credit:
    JavaScript Kit (www.javascriptkit.com)
    Over 200+ free JavaScripts here!
    */
    
    function gone()
    {
    location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
    }
    //-->
    </script>
    </p>
    </form>


    I'm using the drop down box on url:

    www.exampledomain.com/uk/searcha/1.html

  4. #4
    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

    Works fine here, perhaps something else on your page(s) is messing it up.

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

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
  •