M
Matt Jensen
Howdy all
Hopefully I can explain my problem straightforwardly.
In it's simplest explanation, what I want to do is have a hyperlink that,
when clicked, executes some client side JavaScript and then saves every form
element value and reloads the page (with the 'save' being much the same as
what is achieved by an AutoPostBack="True" attribute on a web/html control).
Actually it doesn't matter which order the JavaScript or 'save' executes in
if that helps.
FYI, the JavaScript hyperlink opens a new window. The new window performs
functionality relevant to the window that opened it, and when finished, I
need the window that opened it to refresh to show the new data, but I don't
want it to lose any values that may have been entered in form elements by
the user.
Maybe the solution is for the hyperlink to open the new window and then
perform a (.NET) postback (in order to save the form element values) in the
background... Is this possible or feasible?
Or can the hyperlink do a postback, then somehow popup the window...
Or can the popup window cause the window that opened it to do a postback via
window-to-window JavaScript (the main question I have though with this
option is will it just post the form back and not execute any button
actions?).
FYI, the main window has some buttons on it, however I don't want any of
their functions executed when the popup is opened, I just want the element
states maintained.
Maybe I should just play, it seems like the solution could more complicated
than what I might find through trial and error though, and I was hoping that
one of you might know the best solution.
Anyway, thanks for any help.
Cheers
Matt
Hopefully I can explain my problem straightforwardly.
In it's simplest explanation, what I want to do is have a hyperlink that,
when clicked, executes some client side JavaScript and then saves every form
element value and reloads the page (with the 'save' being much the same as
what is achieved by an AutoPostBack="True" attribute on a web/html control).
Actually it doesn't matter which order the JavaScript or 'save' executes in
if that helps.
FYI, the JavaScript hyperlink opens a new window. The new window performs
functionality relevant to the window that opened it, and when finished, I
need the window that opened it to refresh to show the new data, but I don't
want it to lose any values that may have been entered in form elements by
the user.
Maybe the solution is for the hyperlink to open the new window and then
perform a (.NET) postback (in order to save the form element values) in the
background... Is this possible or feasible?
Or can the hyperlink do a postback, then somehow popup the window...
Or can the popup window cause the window that opened it to do a postback via
window-to-window JavaScript (the main question I have though with this
option is will it just post the form back and not execute any button
actions?).
FYI, the main window has some buttons on it, however I don't want any of
their functions executed when the popup is opened, I just want the element
states maintained.
Maybe I should just play, it seems like the solution could more complicated
than what I might find through trial and error though, and I was hoping that
one of you might know the best solution.
Anyway, thanks for any help.
Cheers
Matt