/    Sign up×
Community /Pin to ProfileBookmark

Javascript – Modal window

Hi all,
This is Harish, a newbee to this forum. I’m into web-applications. One problem bought me to this forum..

The scenario is, I’m having a “pageA.asp” in which on button click I’m opening a modal window using “pageB.asp”. This is because why I don’t want user to make any mistake unless and untill he is on PageB.asp. This is the only reason I made it modal.
Now the problem starts, as soon as I’m done with manipulation on PageB.asp, when I try to post it, I mean (when i click save button), it doesn’t get post.
I even tried changing the button type from “button” to “submit” and vice versa, but in vain. Infact changing button to submit, it tries to submit the page and opens a new window for me with same “pageB.asp”, what I want, that it should get post in the same window itself.
Please help !!

Any, any help would be appreciated !!

Thanx in advance
harry

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@ricpApr 24.2007 — You cannot submit from a modal dialog, what you need to do is put an iframe into the modal, then the form code inside that and submit from there.
×

Success!

Help @harsha_21aug 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 6.18,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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