Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Insert values and also Submit!

Status
Not open for further replies.

fireburner69

Programmer
Aug 22, 2002
108
GR
I have a html page that load in an iframe another page from another server that has a login form.
I am trying simple with javascript to load the values and submit the form. But always it says Access Denied!

I have search the net and found out that for security reason someone does not have permision when a html page is located in another server!

I would like to ask if there is anyway to automatic submit the form with the values I want!

I have seen something with VBS but I am not sure if VBS has the access to do this thing!

Thanks for your time.
 
>>I would like to ask if there is anyway to automatic submit the form with the values I want!

Not if its post method, but it might be possible if the form is using get method...

Known is handfull, Unknown is worldfull
 
Exploits excluded, cross-domain scripting is not possible.

You can eventually submit form from your site to another... try both GET and POST. Some scripts may ignore GET for sensitive information, some sites may ignore POST coming from different domain etc.
 
Actually I do not want to submit automatic!
I mean I want to see the page! But I am trying to make the submit with javascript of VBS! I do not want to fake the submit! with GET or POST! (although I know post is not working). But I want to auto submit the form after I have entered the values with javascript!
'
Is there anyway to do this with VBS?
 
>>But I want to auto submit the form after I have entered the values with javascript!


is what i a trying to say, u cannot fill in the values using javascript, therefore i suggested the get method...

Known is handfull, Unknown is worldfull
 
Are you submitting from another frame in the same frameset? Then use parent.loginFrame.document.loginForm.submit(), where loginFrame is the frame where the page loads, and loginForm is the name of the form on the page.

--Chessbot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top