Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Value of Session Parameter is not Correct

807600May 14 2007 — edited May 14 2007
I am running some connection code that gets data for a user input number, the previous record data and the next record data. This is to produce an affect of backward and forward functions.

Every thing works fine for the data result. I store these values to session parameters. Just for testing I assign the values to a couple of button labels and the values are correct.

However, when I try to use these values in my backward and forward buttons on my HTML page it does not always work. I have onclick functions assigned to the buttons which use the following script. On simple numbers like 817739, 861250 etc. it works fine, but if I type in 861027-403 I gives strange results. For some reason it dose not know what to do with the "-".

The following script using(861027-403) produces an output of:
prevdwgno = "860262"
nextdwgno = "860622"

Should be(this is what my test button lables have which is correct):
prevdwgno = "861027-401"
prevdwgno = "861027-405"
<SCRIPT type="text/javascript"><!--
		function setNewDwgPrev(){		
			alert(${prevdwgno});
			document.getdrawingnumber.dwgno.value = ${prevdwgno};
			//document.getdrawingnumber.getDwgButton.click();	
		}
		function setNewDwgNext(){		
			alert(${nextdwgno});
			document.getdrawingnumber.dwgno.value = ${nextdwgno};
			//document.getdrawingnumber.getDwgButton.click();	
		}
		
    //--></SCRIPT>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2007
Added on May 14 2007
3 comments
99 views