Jump to content

Editing a script to use with Acrobat


DBookatay

Recommended Posts

I found a JS $_GET script that extracts information from the url, like php does, but I need help editing it.

 

The first script is:

function jsGet(type){
if(location.href.match(type)){
return location.href.split(type+'=')[1].split('&')[0];
}}

document.write(jsGet('vin'));

 

In a .html page if the url is www.test.html?vin=354 the page displays "354" fine.

 

I am learning to create pdfs with Acrobat 9 and know that it supports javascript,but uses

event.value = something;

How can I edit the first script to display the "354" in a chosen field?

 

 

Did I explain myself properly?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.