Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change code to asp

Status
Not open for further replies.

nonprogrammer

Technical User
Dec 28, 2005
143
US
is there a way to change this
Code:
<img src=team1.png name=imgteam1 onMouseDown=selectteam(imgpick0,imgteam1,txtpick0,1)>

to something like
Code:
<input name=imgteam1 type="text" value="<% = rspick("field6") %>" onMouseDown=selectteam (imgpick0,imgteam1,txtpick0,1)>
I tried this and it kind of works I just need to replace the "input" to be just text and change the (imgpick0,imgteam1,txtpick0,1)> to something like
(<% = rspick("field5") %>,<% = rspick("field6") %>,txtpick0,1)>

 
did you try...may be that should work...

or try to dim new variables...

imgpick0= rspick("field5")

and so on...then you can have the selectteam (imgpick0,imgteam1,txtpick0,1) same as before...

-DNG
 
I tried it, it does not give me any errors. But what is supposed to happen when you click on, is supposed to put it on another box
for example if you click on field5 it goes on the next box.
field5

field5

field6

I can get this with the images

I also don't want input, could I put anything else besides input?
 
i am not completely sure of what you are trying to do here...may be you want to use the DIV tags...

-DNG
 
Sorry I forgot to mention this also uses a javascript, so I think I should post the question at that forum.
 
The javascript part shouldn't matter. Basically what your trying to do is just out some ASP variables in the propoer places. The easiest way to check if it came out ok (and isn't an error in the javascrit) is to view source o nthe page and just look at what the ASP code generated.

One thing you mayneed to do is add quotes around the two values your adding to the javascript. Otherwise it will likely assume those were supposed to ba variable names and resolve them to an "undefined" value. Placing quotes around them will force them to be treated as strings (unless they are numbers, in which case you don't need the quotes, of course).

-T

barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top