/    Sign up×
Community /Pin to ProfileBookmark

How can i add a get parameter

Hi

i need to add a get parameter in a link , but the link is in this format:
<a href=”javascript:exec(0,<%=id_text%>,’inc’,’img’)”>Delete</a>

i try :
<a href=”javascript:exec(0,<%=id_text%>,’inc’,’img’, myparameter)”>Delete</a>

But the link stop to work

how can i add a new get parameter and what the exec method does?

Thank´s in advance

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaMay 06.2005 — [font=Trebuchet MS]Is the exec function predefined, or are you using a custom-built function? If the latter, could you post the function&#8217;s code?[/font]
Copy linkTweet thisAlerts:
@PalrosMay 06.2005 — I don't know how to apply this to your function, but to add a get parameter to a normal url, you just add a ? and the variables. like this:

http://www.webdeveloper.com/forum/newreply.php?do=newreply&noquote=1&p=364175

is the url for this posting page. Everything after the ? is the get data. This can either be hard corded into a link, dynamically created by a client side or server side script, or automatically added by the browser as result of submiting a form.

So it really depends where the url is specified for the exec() function. I can't really tell from the snippet you posted.
Copy linkTweet thisAlerts:
@amrigoauthorMay 09.2005 — sorry i was thinking that was the exec method from javascript, but it was a user defined functin just to pass get paramaters so it was easy to add a new one

thank´s a lot

best regards
×

Success!

Help @amrigo 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.29,
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,
)...