Jump to content

Run a Javascript on webviewer


xoomaster

This topic is 6268 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm sorry I don't have an answer for this question. But I did read that javascript will 'work' in web viewer if it is installed in your web browser.

I am interested in finding a solution to post fields to a web site to automatically generate the response page and perhaps javascript could do it. I read this page recently:

from a blog regarding javascript posting

http://timjoh.com/javascript-post-variables-to-forms/

"It’s possible, and in fact very easy, to send POST variables with Javascript. I’m posting it here because I had some trouble coming up with a solution.

The only thing you have to do is to put an HTML form on a site, and use Javascript to submit it. If you don’t want the form to be visible, you can have the fields hidden. Here is a sample HTML code:

Use this JS function to submit the form:

function jsPost() {

document.theForm.submit();

}

It can be called in any way, for instance in a hyperlink:

Submit

Or as an event, like on body load:

"

so my idea is that I generate a custom page with the correct field values then post them to the page im trying to generate.

Maybe someone who knows something about this subject could interject here.

Thanks, Lea

Link to comment
Share on other sites

This topic is 6268 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.