Storing a parameter in JavaScript

bigcougar

New Member
How can a person store a value after a JavaScript has been executed, to pass it on to another function?

I tried defining global variables outside the functions. I then assign them the desired value within a function. However, when I run the second function the value of the global variable is read from its initialization line.:confused:

(sorry for posting this twice)
 

bigcougar

New Member
OK, I found a way around it.......

Two more questions:

1. MENU WIDTH
How can I fix the width of a combo box? Setting the width did not help.

page:
http://www.troutsalmonchar.com/ART_BC_LKS_Roche.php?cat=BC

If you click on Ontario and then BC the width of the box changes according to the longest entry in it.

This is the php code:
Code:
echo "<select name=Rivers id=Rivers onChange='PageLoad();'>List of Rivers</option>";
while($nt=mysql_fetch_array($result)){
echo "<option value=$nt[W_Page]>$nt[W_Name]</option>";
}
echo "</select>"
--------------------------------------------------

2. JAVASCRIPT CODE

I have JavaScript that I want to hold in an external file.
Unfortunately as soon as I do that, code no longer works.:confused:
I put the link in the head just as it is supposed to be, but no luck so far.

The main file is .php. It also calls two other php files. The scripts are in a .js file

Any idea why I get this problem?
 
Top