Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 adding inc_jump_to.asp to default.asp - error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cailean
New Member

Canada
75 Posts

Posted - 05 November 2003 :  22:36:45  Show Profile
I'm trying to add the Jump-To list to my default page (cuz it's so handy!)

  • I added the code to include inc_jump_to.asp (ripped from active.asp)

  • The pull-down list appears fine but when I try to use it I get an error and nothing happens

  • The error message says "object expected" at line 208, char 52 (of the HTML source) which is line 42 of inc_jump_to.asp

  • The line in question is shown below... The green represents the 52 characters referred to in the error message

  • Response.Write	"          <select name=""SelectMenu"" size=""1"" onchange=""if(this.options[this.selectedIndex].value != '' ){ jumpTo(this) }"">" & vbNewline & _

  • I assume inc_jump is looking for something related to "SelectMenu" that is provided on active.asp but not default.asp... what is it?


  • Let me know if this makes no sense whatsoever!!!

    RichardKinser
    Snitz Forums Admin

    USA
    16655 Posts

    Posted - 05 November 2003 :  23:31:41  Show Profile
    There is a javascript function included in active.asp that you'll need to include in your default page also, it looks like this:

        <script language="JavaScript" type="text/javascript">
        <!----- 
        function jumpTo(s) {if (s.selectedIndex != 0) location.href = s.options[s.selectedIndex].value;return 1;}
    
        // -->
        </script>
    Go to Top of Page

    Cailean
    New Member

    Canada
    75 Posts

    Posted - 06 November 2003 :  00:25:21  Show Profile
    Thanks Richard!!
    Go to Top of Page
      Previous Topic Topic Next Topic  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
    This page was generated in 0.47 seconds. Powered By: Snitz Forums 2000 Version 3.4.07