/    Sign up×
Community /Pin to ProfileBookmark

submitting https opener form

hi, there’s this page, it’s in a secure location (https). this page has a form that uses method=post. i am trying to submit this form from a popup window (opener.myForm.submit()) but it is not working.

the form appears to submit and i don’t get any js errors, but it doesn’t actually transmit any information.

does anyone know what is the cause behind this?

thanks,
tom

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@10basetomauthorMay 13.2003 — hi dave,

i tried top.opener.document.myForm.submit() but it still doesn't submit data.

no, the popup is not https. it is a bookmarklet that looks something like this:

javascript:void(window.open('javascript:str="<html><body><form><input type=button value=submit onClick=top.opener.document.myForm.submit()></form></body></html>"','test','width=300,height=200'))

i'm able to manipulate all the form elements in the opener window from the bookmarklet popup, but it doesn't seem like i can submit the form from the said popup. i'm using IE 6.

(note: i had to stuff all the html into the bookmarklet because IE didn't allow me to manipulate the form elements from an external popup file for security reasons.)

have you come across a scenario like this before? i'm wondering if my problem relates to method=post and/or https.

thanks,

tom
×

Success!

Help @10basetom spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...