Hi,
We are facing issue with opening a web link with passing a variable value as query string parameter. We have added a form button on the pdf page, on click of it we have opened a web page and we want to pass a variable value in the query string. We can not give the hard code value in querystring, as the value keeps on changing.
Please refer to the images below.
[img]http://elearning.aptaracorp.com/Amex/Testing/02.jpg[/img]
[img]http://elearning.aptaracorp.com/Amex/Testing/01.jpg[/img]
here the data will be my variable name, which contains some value. When i execute it, it passes data as a string, i want to pass its value in the query string parameter. How i can do this?
I had found one more way, is to call a function on the form button click, and in that pass the query string parameter as a variable, it works. But the problem in this case i am faceing is, in the app.launchURL command i have to provide a http path, means something like http://www.google.com, then only it works. I have that page on my local (no server), so i want to add the path as onlu page.html
//Reference code, this fun will be called on a button click
function LaunchPage()
{
app.launchURL("http://www.aptara.com/page.html?value="+data+""); //this works
app.launchURL("page.html?value="+data+""); //this dosent works
}
Please do let me know, how i should proceed. To repeat, i want to invoke a page, which is on my local system with a querystring, in which i sud pass a variable value.
Thanks,
Ajit danve
Sr. Developer
Aptara, Pune.
Open page.html in your browser and copy the URI from the location toolbar. It will probably look something like this:
file:///C:/somefolder/page.html
Then paste that into your script, with whatever parameters you want to add.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com