Click to See Complete Forum and Search --> : Please help!


katie_lostsoul
01-20-2003, 08:21 AM
Every time I download a java script and put it on my web site it works fine....that is, until I upload it to my account.
I just downloaded a java script from http://javascript.internet.com/

It's a script that when the user clicks on the pull down menu they have a few choices to chose from. They click on it, and they do not have to click go...I downloaded the script and followed the instructions....it doesn't work!

Can anybody please help?!

khalidali63
01-20-2003, 08:44 AM
Originally posted by katie_lostsoul
I downloaded the script and followed the instructions....it doesn't work! [/B]

Unless you put your page's link or post the "Changes" you made its almost impossible for some one just guess that what you might have done wrong..

cheers

Khalid

katie_lostsoul
01-20-2003, 08:46 AM
LOL I know, sorry. I have a question: is it possible that there might be conflicting scripts? (Ie.. banner at top of page?) or what about this: the script had 5 links made on it already I believe...if I put more on it, could this do anything?

khalidali63
01-20-2003, 08:53 AM
if the code is correct then you can have (theoretically) as many scripts you want on a page and unless you wrote worn code,there shouldn't be any problem adding any more values to an existing ListBox

katie_lostsoul
01-20-2003, 08:56 AM
Hmm...ok well can I give you the link?
it's
http://www.angelfire.com/theforce/katietrfan/tr4

and I am just testing it here, but on that link above, in the drop down menu (Tomb Raider 2) should go to :

http://www.angelfire.com/theforce/katietrfan/tr2

could you check the source? that would be great.

khalidali63
01-20-2003, 09:07 AM
Here you go

checkout the attached zip file

Khalid

katie_lostsoul
01-20-2003, 09:08 AM
Thanks a bunch...I'm just opening it now....

katie_lostsoul
01-20-2003, 09:10 AM
Ok....does it work for you? Because it still doesn't work for me!

khalidali63
01-20-2003, 09:17 AM
It does work for me because I can get to the desired page for tomb raider 2.
all the other pages do no exist at your host site.
Did u change n e thing?
or I should say just open the enzipped page at your desk top or in a folder do not make any changes and then avoiding the menus select the tombraider 2 from list box and see

katie_lostsoul
01-20-2003, 09:20 AM
Huh? You kind of lost me hehe I"m at school right now so I can't access my web page directory...but the two links I gave you are just tests right now...the other pages aren't uploaded...I wanted to make sure it worked this time before uploading...

so TR2 works for you? How come when I click on it it doesn't work for me???

khalidali63
01-20-2003, 09:25 AM
if you have not made any changes at all the code I sent to you then I a lost too.

Try this zip file

katie_lostsoul
01-20-2003, 09:27 AM
It works! It works! what did you do?!

khalidali63
01-20-2003, 09:29 AM
I did not save the changes in the previous file..
oooooops
:D

katie_lostsoul
01-20-2003, 09:30 AM
huh? oooh hehe ok
ok, thanks so much! Now how do I do the other links???

khalidali63
01-20-2003, 09:33 AM
thats all beentaken care of make sure the urls of the pages in the listBox do exist at your upload directory.

Khalid

katie_lostsoul
01-20-2003, 05:59 PM
Thanks so much! :) :) :) {{{{{hugs}}}}}}}}

Now....on other pages I have the same java script...but different links in it...how do I make them work too?

khalidali63
01-20-2003, 06:56 PM
follow the same pattern and make sure the url in the option value field is a valid one and that the page does exist in your webservers root directory.

Khalid

katie_lostsoul
01-21-2003, 06:26 PM
Thanks a bunch....I re-did it and guess what? Now it doesn't work!!! :mad: :mad: :mad: :mad: :mad: :mad: :mad:
Could you please look at the code again? I'm so sorry to bother you.

http://www.angelfire.com/theforce/katietrfan/tr4.html

to go to

http://www.angelfire.com/theforce/katietrfan/tr2.html

Thanks

khalidali63
01-21-2003, 10:44 PM
you need to ad this function in all of your pages.and make sure all of the urls are valid url.

cheers

Khalid


/*
Added by Khalid Ali
To handle drop down list boxes changes
*/
function reDirectTo(){
var listBox = document.form1.site;
var index = listBox.selectedIndex;
var url = listBox[index].value;
document.location.href = url;
}

katie_lostsoul
01-22-2003, 03:04 PM
Do I just stick this code anywhere on the pages that have the menu?

khalidali63
01-22-2003, 04:20 PM
between head tags is the best candidate place.Though I'd tempt to make an external file and just import that file in every page.


Khalid

katie_lostsoul
01-22-2003, 04:27 PM
It's been taken care of??? I don't see anymore attachments...so do I just copy and paste the code into wherever on the page???????

khalidali63
01-22-2003, 04:37 PM
yes...:-)
the old copy and paste to rescue..

Khalid

katie_lostsoul
01-22-2003, 04:38 PM
Okey dokey! Thanks a bunch...I"ll keep ya' updated :)

khalidali63
01-22-2003, 04:41 PM
I am not finding much time to come to forum lately,if you come across n e questions feel free to email me.I'll respond as soon as I can

Khalid

katie_lostsoul
01-23-2003, 02:04 PM
Hopefully I'll catch ya'...I pasted the code into the head section, but for some reason it didn't work. I am using Dream Weaver..that's what I have been using for the past year to make my web site in, and it doesn't work. I also tried the code in the body tag, but still no luck...how come it worked that one time?! GrrR! :mad:

khalidali63
01-23-2003, 02:07 PM
complete all of your code for all the related pages and put that javascript code in the head section, then email me the all files ziped.And I'll see what is it that is now allowing it to work for you.
k_ali@shaw.ca

katie_lostsoul
01-23-2003, 02:10 PM
Okey dokey....give me five mintes...

katie_lostsoul
01-23-2003, 02:19 PM
Alright, I just sent it. I just sent TR4.html and TR2.html I won't bother sending the others because I would just like to get one of the links working first...lol Like I said before, I have re-done my site so many times because of java scripts, this time I'm doing it more slowly! hehe

Thanks a bunch, I owe you a big one :)