text box navigation?

liunx

Guest
I would like to use a text box (see name typed in ) and a go button to navigate from a home page- index. html to other folders in the web site- tommy.html, alex.html ect... I am using yahoo sitebuilder and can only use html. i tried to do it myself. can't get it to work. anyone can help me thank you<!--content-->Right... sheesh, I dunno what's wrong with it. :(<br />
<br />
You can see it here. (<!-- m --><a class="postlink" href="http://www.pauljunior.no-ip.com/research/namesnav.php">http://www.pauljunior.no-ip.com/research/namesnav.php</a><!-- m -->)<!--content-->How about not making your site rely on JavaScript and use something more traditional like an unordered list of links?<!--content-->thank you for your reply<br />
I'm not sure what an unordered lisk of links is.<br />
a list of any kind does not work for me. <br />
security is not an issue<br />
I don't think I can use jave script?<br />
yahoo sitebuilder program gives you a drop down box to insert html<br />
I can do this on the index.html page and on the folder page- tommy.html, jerry.html ect...<br />
am I out of luck?<!--content-->I'm not sure what's wrong with this, but it's not working. :(<br />
<br />
But to use it, you would have to be able to manually enter the Script into your page.<!--content-->Hi,<br />
I manually typed the code on sitebuilder. the text box appeared when viewed in browser. when I typed in the name- tommy it stated the page was not ment to be viewed in browser, so I published the index.html page and the tommy.html to to internet via sitebuilder and when I typed in tommy (with and without .htm) on the internet i received a message - done but error on the page. the index.html page is named keyny. thank you for getting me this far and responding again.I'm a factory worker- Queens ny, and I must go to bed now to get up in the morning<br />
thank you for your helpl<br />
jerry<!--content-->The names in the script that I linked to in my first post are different from the ones you need.<br />
<br />
Also, as I said, the script isn't working. I ran it through JS lint, FB JS Console, I stared at it for a while, and I still can't see what's wrong with it.<br />
<br />
Lastly, can we see the code you're working with? If you didn't modify it at all, then it's not going to work, and if you did, we'll need to see it. ;)<!--content-->Hi,<br />
thank you again<br />
the folders I want to link to (like jerry.html, TOMMY.html ect....)will be simple web pages created in yahoo sitebuilder over time.<br />
<br />
only the name is typed in the text box- not .html?<br />
<br />
the index.html is www,keyny.com . view- click sourse?<br />
you can see the code if you instruct me on how I can let you see it. <br />
thank you<br />
jerry<!--content-->Originally posted by xizor8 <br />
Hi,<br />
thank you again<br />
the folders I want to link to (like jerry.html, TOMMY.html ect....)will be simple web pages created in yahoo sitebuilder over time.<br />
<br />
only the name is typed in the text box- not .html?<br />
<br />
the index.html is www,keyny.com . view- click sourse?<br />
you can see the code if you instruct me on how I can let you see it. <br />
thank you<br />
jerry <br />
Yes, only the name is typed in. Although, for reasons that boggle my mind, the script isn't working. It only works properly with the first name in the array, but no others.<br />
I've posted in the JS section - maybe I can figure this out.<!--content-->again,<br />
thank you,<br />
jerry<!--content-->Well I rewrote it and still no go; I haven't a clue why. But Fredmv came up with something that does work. Which is located here. (<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=28446">http://forums.webdeveloper.com/showthre ... adid=28446</a><!-- m -->)<!--content-->thank you, thank you,<br />
I don't have it working yet<br />
browser on internet said 'done but with errors'<br />
I will keep going over it until I find the typing mistake<br />
thank you again<br />
jerry<!--content-->In the code below, the character highlighted in red should be changed to an apostrophe (') (Without the parentheses).<br />
<br />
alert('That name, ' + who + ; is recognized.');<!--content-->hi,<br />
I made the change<br />
thank you for your reply<br />
now a microsoft internet explorer box pops up with bing<br />
'that name is not recognized'<br />
if i type into the browser <!-- w --><a class="postlink" href="http://www.keyny.com/jerry">www.keyny.com/jerry</a><!-- w --> thepage comes up<br />
<br />
could this have to do with the yahoo sitebuilder program<br />
I could put their nav bars on my index.html page (jerry, tommy or make up two more) and it would work.<br />
<br />
thank you <br />
jerry<!--content-->If you want it to go to the page, change the following line<br />
<br />
alert('That name, ' + who + ' is recognized.');<br />
<br />
to this line<br />
<br />
window.location.href=http://www.webdeveloper.com/forum/archive/index.php/who+".html";<br />
<br />
That should do it.<!--content-->hi,<br />
it works, thank you<br />
<br />
i have two questions<br />
can the text box ignore case<br />
can the not recognize look more like it's coming from keyny then the browser<br />
<br />
mostly, i wish i didn't have to reply thank you half asleep, <br />
i am very thankful<br />
thank you<br />
jerry<!--content-->Originally posted by xizor8 <br />
i have two questions<br />
can the text box ignore case<br />
<br />
Yup, it sure can. <br />
Change this following line<br />
<br />
if(n[¡].trim().toLowerCase() == who)<br />
<br />
To<br />
<br />
if(n[¡].trim().toLowerCase() == who.toLowerCase())<br />
<br />
<br />
Originally posted by xizor8 <br />
can the not recognize look more like it's coming from keyny then the browser<br />
Not sure I follow. Do you want maybe the text displayed on your page, rather than the alert?<br />
<br />
Originally posted by xizor8 <br />
mostly, i wish i didn't have to reply thank you half asleep, <br />
i am very thankful<br />
thank you<br />
jerry <br />
No problemo, glad I'm able to help. ;)<!--content-->hi'<br />
almost there.<br />
on sitebuilder program- view in browser, the text box works perfect. I can type in jerrY and it takes me to the page.<br />
<br />
on the internet from keyny.com- index.html, lower case letters work fine in the text box <br />
of the three folders- tommy.html, alex.html, jerry.html, only th tommy page can be reached with capital letters.I published and republished the whole site with no luck.<br />
<br />
the pop up with a bing not recognized box is fine. I get this when I type in just some name- bob, where there is no folder<br />
the 404, which I don't like, only seems to come up when I type in alex or jerry in capital letters. <br />
in the browser on the internet i can type tommY and I get the page.<br />
<br />
thank you<br />
jerry<!--content-->Ah, I see what you mean. I haven't run into this kind of problem before, so I'm not sure if this will fix it, but try changing this line<br />
<br />
window.location.href=http://www.webdeveloper.com/forum/archive/index.php/who+".html";<br />
<br />
To this<br />
<br />
window.location.href=http://www.webdeveloper.com/forum/archive/index.php/who.toLowerCase()+".html";<br />
<br />
Again, not really sure if this will work or not, but it's the only thing I can think of.<!--content-->
 
Back
Top