• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

clickTag with URL Parameters

I have these 2 functions in a Flash file banner:

ON THE TEXT BOX
on (keyPress("<ENTER>")) {
    getURL("http://www.domain.com/Landing.aspx?source=41","_blank","POST");
}

AND ON THE BUTTON
on (release) {
    getURL("http://www.domain.com/Landing.aspx?source=41", "_blank");
}

Inside the file, the text box is phone and it passes phone along with the url, like this:
http://www.domain.com/Landing.aspx?source=41&phone=VALUEFROMTEXTBOX

Now, I need to add clickTag for advertisers to track the clicks? How can I code the function to send the url (http://www.domain.com/Landing.aspx?source=41) and the parameter &phone=VALUEFROMTEXTBOX

I have tried this and it doesn't work:

on (keyPress("<ENTER>")) {
    getURL(clickTag add "&phone=" add phone);
}

That appends &phone to the end of the current URL.

Thank you in advance.
0
F4Experts
Asked:
F4Experts
1 Solution
 
vickerleungCommented:
F4Experts,

I suggest a debug method to you here

Use another variable to store the things first, trace it before putting inside the getURL

modified_url = clickTag add "&phone=" add phone;
trace (modified_url);
getURL(modified_url, "_blank", "POST");


See if the output is what you wanna have before using is more secure :)

Vicker
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now