/    Sign up×
Community /Pin to ProfileBookmark

Pass variable in querystring

Hey Gang….I am trying to pass a value in a querystring.
When a user clicks on a checkbox a function would be called. This function would send the user to the next page and pass the variable. Below is what I have:

[CODE]
function ClickMe()
{
location.href=”webpage3456.asp?FishId=” + event.srcElement.parentElement.pk + “&CustomerId=” + event.srcElement.parentElement.pk1

}
[/CODE]

[CODE]
Response.Write(“<tr align=””center”” BGCOLOR=””473c8b”” onclick=ClickMe() pk1='” & CustomerId & “‘ & pk=” & RS(“FishId”) & ” style=cursor:hand onmouseout=HoverOff4() onmouseover=HoverOn4() class=DataInfo>” & vbCrlf)
[/CODE]

When I try passing the variable using a checkbox it does not work.
The variable is being passedd as “UNDEFINED”.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorJul 08.2007 — It looks like you try to use a sort of a rusty IE only way to reach an element's value... can you bring us more details? What in fact are you trying to pass?
×

Success!

Help @ASPSQLVB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...