parent to form to asp page to parent

parent to form to asp page to parent

am 31.12.2007 19:36:37 von Bam

Hey gang. I have searched the web, and can't find what i need. hoping
someone here can help

i have a form that pops up based on a click. the popup opens up correctly.
now what i want it to do is this.

1. submit the data to an asp page. that part i got working
2. close the popup box. have that working as well.
3. after processing the data on the asp page, direct to and refresh the
parent page that the popup was created from.

to be more specific....

i have a bracket page, where you click on the winners name to move them
over. works fine. that sends variables to a pop up box, where you enter a
score. that works fine. now when i submit, it only sneds the data to the asp
page, and even though the bottom of the asp page redirects it to the parent
page, it doesn't. it seems like it is trying to redirect to the popup that
doesn't exist anymore, so it does nothing.

i hope this makes sense to someone.



--
Thanks,
Bam

Re: parent to form to asp page to parent

am 31.12.2007 22:37:29 von Anthony Jones

"Bam" wrote in message
news:4779365f$0$28852$4c368faf@roadrunner.com...
> Hey gang. I have searched the web, and can't find what i need. hoping
> someone here can help
>
> i have a form that pops up based on a click. the popup opens up correctly.
> now what i want it to do is this.
>
> 1. submit the data to an asp page. that part i got working
> 2. close the popup box. have that working as well.
> 3. after processing the data on the asp page, direct to and refresh the
> parent page that the popup was created from.
>
> to be more specific....
>
> i have a bracket page, where you click on the winners name to move them
> over. works fine. that sends variables to a pop up box, where you enter a
> score. that works fine. now when i submit, it only sneds the data to the
asp
> page, and even though the bottom of the asp page redirects it to the
parent
> page, it doesn't. it seems like it is trying to redirect to the popup that
> doesn't exist anymore, so it does nothing.
>
> i hope this makes sense to someone.
>


The html form element in the popup box needs to specify in the target
attribute the name of the main window. You need also to have set the name
of the main window.

So the html page in the main window needs code like this:-

window.name = "myPage"

and then in the form HTML of the popup you would have:-


.. . .


Now when the form in the popup is submitted the response will be displayed
by the main window.

--
Anthony Jones - MVP ASP/ASP.NET

Re: parent to form to asp page to parent

am 01.01.2008 00:48:53 von Bam

"Anthony Jones" wrote in message
news:uHCRZV$SIHA.5980@TK2MSFTNGP04.phx.gbl...
> "Bam" wrote in message
> news:4779365f$0$28852$4c368faf@roadrunner.com...
>> Hey gang. I have searched the web, and can't find what i need. hoping
>> someone here can help
>>
>> i have a form that pops up based on a click. the popup opens up
>> correctly.
>> now what i want it to do is this.
>>
>> 1. submit the data to an asp page. that part i got working
>> 2. close the popup box. have that working as well.
>> 3. after processing the data on the asp page, direct to and refresh the
>> parent page that the popup was created from.
>>
>> to be more specific....
>>
>> i have a bracket page, where you click on the winners name to move them
>> over. works fine. that sends variables to a pop up box, where you enter a
>> score. that works fine. now when i submit, it only sneds the data to the
> asp
>> page, and even though the bottom of the asp page redirects it to the
> parent
>> page, it doesn't. it seems like it is trying to redirect to the popup
>> that
>> doesn't exist anymore, so it does nothing.
>>
>> i hope this makes sense to someone.
>>
>
>
> The html form element in the popup box needs to specify in the target
> attribute the name of the main window. You need also to have set the name
> of the main window.
>
> So the html page in the main window needs code like this:-
>
> window.name = "myPage"
>
> and then in the form HTML of the popup you would have:-
>
>


> . . .
>

>
> Now when the form in the popup is submitted the response will be displayed
> by the main window.
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>

thanks ... i think that is what i needed