www.uburst.com www.uburst.com

"inserting select box/go-to navigation "

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Modify uDirectory Scripts
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"inserting select box/go-to navigation "
Posted by Beth on Jun-13-00 at 10:29 PM (EST)
I'm trying to insert a javascript "go_doc()" jump to/navigation box at the top of each page. I've tried using single quotes instead of double quotes and still get the error "go_doc is not defined". Any suggestions?
Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: inserting select box/go-to navi..., Bill Weiner, Jun-14-00, (1)
inserting select box/go-to navigati..., Beth, Jun-15-00, (2)
RE: inserting select box/go-to navi..., Bill Weiner, Jun-16-00, (3)
AAAAAAGGGGGGGGHHHHHHHH!!!!!!!, Beth, Jun-16-00, (4)
RE: AAAAAAGGGGGGGGHHHHHHHH!!!!!!!, Bill Weiner, Jun-17-00, (5)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: inserting select box/go-to navigation"
Posted by Bill Weiner on Jun-14-00 at 05:59 AM (EST)
I think the problem is that go_doc() is not a standard JavaScript function....so you will need to implement and add that JavaScript function to your page also.

(When implementing that function, you can probably just do something like:

location.replace('newpage.html');

or

window.location.href = 'newpage.html';

....where 'newpage.html' is the page that you want to link to.)

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "inserting select box/go-to navigation"
Posted by Beth on Jun-15-00 at 12:49 PM (EST)
I'm not following you - I inserted the form for the select box in the Additional HTML/Top and under the form I've got:
SCRIPT LANGUAGE=\'JavaScript\'
!-- Activate Cloaking Device
function go_doc()
{
top.window.location.href=document.forms[0].section.options[document.forms[0].section.selectedIndex].value;
document.forms[0].section.selectedIndex = 0;
}
// End Hiding --
/SCRIPT

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: inserting select box/go-to navigation"
Posted by Bill Weiner on Jun-16-00 at 06:10 AM (EST)
Based on the fact that you are getting a "go_doc() is undefined error", it leads me to believe that your "go_doc" JavaScript function is not being seen for some reason.

For the "$top_html" field, we do perform a validation to removed the following special characters:

\n and \r (line feed and carriage returns)
| (the bar character/delimiter)
" (double-quotes)

But all other characters (greater-thans, less-thans, single quotes, etc.) will be left alone. So I believe the characters that you are using in your JavaScript function are ok.

I do question, however, the following line:

SCRIPT LANGUAGE=\'JavaScript\'

It may just be how you entered it so that it can be displayed in this forum, but just in case.... In that line, do you really have the backslashes? That is, I don't think you need them. I believe the line should just be:

SCRIPT LANGUAGE='JavaScript'

(and of course with the greater-thans and less-thans - which don't show up in this forum - around everthing).

So double-check that.

Otherwise, try viewing the source of the HTML page that is actually generated in your listings. See what actual HTML is being inserted at the top - or send me the URL and I will take a look at it - We may just see something there.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "AAAAAAGGGGGGGGHHHHHHHH!!!!!!!"
Posted by Beth on Jun-16-00 at 05:01 PM (EST)
Can I email you the url (and password to get to the site), rather than post it? It's still in the almost-ready stage. I'm sure this is something really stupid that I'm just not seeing.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "RE: AAAAAAGGGGGGGGHHHHHHHH!!!!!!!"
Posted by Bill Weiner on Jun-17-00 at 06:42 AM (EST)
Sure. Send us an email or submit a support request at:

http://www.uburst.com/supportform.html

And we'll take a look at it.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.