Click to See Complete Forum and Search --> : Big Help Here!


iceafreak99
04-24-2003, 05:34 PM
Ok I got a frame that looks like this...

<FRAMESET frameSpacing=0 rows=75,* frameBorder=0>
<FRAME name="bar" marginwidth=0 marginheight=0 noresize src="forkover.php?show=timer" scrolling="no" >
<FRAME name="advert" marginwidth=0 marginheight=0 noresize src="forkover.php?show=forkover" scrolling="auto">
</FRAMESET><noframes>FRAME error.</noframes>
</html>

heres the url too it so you can understand....
http://wbwtest.skaterinc.com/forkover.php?show

Ok now the top frame is a countdown, in the bottom fill in the form and press submit. the next page can't be loaded in framses, so what I want to do is when the user presses submit on the fourm I want the top frame named "bar" to detach to a new window so time still goes and have the one the we pressed submit on to have its own window also. Please help I seen it done I know its possible.

If anyone has PayPal ill pay them $10 for helping me.

Cheers
Andrew

Jona
04-24-2003, 05:38 PM
You mean open a new window with the page on the left frame in it, the page on the right frame opened in a new window, and load a new page in the main window (without frames)?

If anyone has PayPal ill pay them $10 for helping me.

Much as I'd like to get paid, this forum is free--but then again, I guess it's not illegal.... :) (BTW, I don't have PayPal.)

iceafreak99
04-24-2003, 05:41 PM
LMAO could you please word better, I got lost in the left and right.

Originally posted by Jona
You mean open a new window with the page on the left frame in it, the page on the right frame opened in a new window, and load a new page in the main window (without frames)?



Much as I'd like to get paid, this forum is free--but then again, I guess it's not illegal.... :) (BTW, I don't have PayPal.)

Jona
04-24-2003, 05:43 PM
I was just trying to figure out what you wanted... Okay, frameset. Top & bottom. You click a link and it opens the top frame in a new window, right? That link also opens the bottom frame in a new window, right? That link also makes the main window (where the link was clicked) open a new page without frames. Correct?

iceafreak99
04-24-2003, 05:45 PM
Its not a link the submit button on the bottom fram click that, the top goes into a new window, the bttom fram (which u click submit on the form) goes into a seperate window.

Heres a easy wording:
I just want the frames to detach when I press submit.

Jona
04-24-2003, 05:48 PM
<input type=submit value="Submit" onclick="top.location.href='my_location.html';">

iceafreak99
04-24-2003, 05:49 PM
Originally posted by Jona
<input type=submit value="Submit" onclick="top.location.href='my_location.html';">

Nope ur net getting me, the top one needs to stay the same so the countdown is still going.

Jona
04-24-2003, 05:51 PM
<input type=submit value="Submit" onClick="top.frames['bottomFrameName'].location.href='your_page.html';">

iceafreak99
04-24-2003, 05:55 PM
First off, I want the bottom one to open its own window and so that the top fram with the countdown is all by its self with nothing under it.

Heres my form code help u understand more.

<form action='https://www.e-gold.com/sci_asp/payments.asp' method='POST' name='spend' onSubmit="return formcheck()">
<input type='hidden' name='PAYEE_ACCOUNT' value='670175'>
<input type='hidden' name='PAYEE_NAME' value='Gold Reject'>
<input type='hidden' name='PAYMENT_UNITS' value='1'>
<input type='hidden' name='PAYMENT_METAL_ID' value='1'>
<input type='hidden' name='STATUS_URL' value='http://wbwtest.skaterinc.com/process.php'>
<input type='hidden' name='PAYMENT_URL' value='http://wbwtest.skaterinc.com/pay.php?pay=good'>
<input type='hidden' name='NOPAYMENT_URL' value='http://wbwtest.skaterinc.com/pay.php?pay=bad'>
<input type='hidden' name='PAYMENT_URL_METHOD' value='LINK'>
<input type='hidden' name='NOPAYMENT_URL_METHOD' value='LINK'>
<input type='hidden' name='BAGGAGE_FIELDS' value='referral lurl lname'>
<input type='hidden' name='referral' value=''>
<input type='hidden' name='SUGGESTED_MEMO' value='Gold Reject Pay'>
<input type='hidden' name='PAYMENT_AMOUNT' value='.60'>
<table width="500" border="0" cellpadding="4" cellspacing="0" class="text">
<tr>
<td align="right"><strong>This Spend:</strong></td>
<td>60 cents</td>
</tr>
<tr>
<td align="right"><strong>Link Name:</strong></td>
<td><input name="lname" type="text" id="lname"></td>
</tr>
<tr>
<td align="right"><strong>Link URL:</strong></td>
<td><input name="lurl" type="text" id="lurl"></td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td><input name="act" type="submit" value="HURRY UP AND LET ME PAY!" id="act">
</tr>
</table></form>

iceafreak99
04-24-2003, 06:03 PM
Jona if you can do this, your my IDOL! :D

Jona
04-24-2003, 06:10 PM
Your code actually doesn't help me understand (it's just a form). If you mean this: <input type=submit value="Submit" onclick="window.open(top.myTopFrame.location.href);top.location='my_new_frameless_page.html';">

iceafreak99
04-24-2003, 06:12 PM
I want the form to stay in the same window, because if you look at <form action=

I need it to follow that and its hidden field so keep that in same window. But when I press submit the top fram detaches itself.

Lost?

Jona
04-24-2003, 06:14 PM
Originally posted by iceafreak99
Lost?

Totally!

iceafreak99
04-24-2003, 06:17 PM
Ok ill try to explain this the best I can...

You see the page I made lets call the top frame "a"
and the bottom page "b"

Well since "a" has a timer it needs to stay the same.

In "b" there is a form that the user has to fill out, he fills out and presses the submit button, the top frame detaches itself from the bottom and now there both in seperate windows.

Andrew

Jona
04-24-2003, 06:20 PM
Ooooooohhhh!!!! Is that all you wanted? Golly...

<form target="_self">

Will that work for ya?

iceafreak99
04-24-2003, 06:23 PM
<form action='https://www.e-gold.com/sci_asp/payments.asp' method='POST' name='spend' onSubmit="return formcheck()" target="_self">

Didnt work :(

satyed on same page.

Here u try:
http://wbwtest.skaterinc.com/forkover.php?show


Thanks.

Jona
04-24-2003, 06:25 PM
Works for me. You lose the frames when you get an error, though. Try fixing your ASP...

If it still won't work after that. Try target="thisFrameName" But "_self" should work......

iceafreak99
04-24-2003, 06:27 PM
What does it do when u do it?

Tell me what it does.

Jona
04-24-2003, 06:29 PM
In IE6, it works, the form submits and loads a page in the bottom frame. However, the frameset is lost when an error occurs in your ASP.

iceafreak99
04-24-2003, 06:45 PM
First off, I want the bottom to load in a new window not the same. Thats not my ASP so dont worry,

iceafreak99
04-24-2003, 06:47 PM
I set it to _blank and it opens in a new window which is good, but the top fram and bottom fram are still together any way to get rid of the bottom frame on submit?

Jona
04-24-2003, 06:49 PM
Okay, <form target="_blank" onsubmit="top.location.href='my_noframe_page.html';">

Jona
04-24-2003, 07:32 PM
<html><head>
<script>
function doit(){
var timer=window.open("someUrl.html","timer","width="+screen.width+",height="+screen.height/2);
window.resizeTo(screen.width, screen.height/2);
window.moveTo(0, screen.height/2);
}
</script>
</head><body>
<form onsubmit="doit()">
<input type=submit>
</form></body></html>