/    Sign up×
Community /Pin to ProfileBookmark

Ok I got a frame that looks like this…

[CODE]<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>[/CODE]

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

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

to post a comment
JavaScript

22 Comments(s)

Copy linkTweet thisAlerts:
@JonaApr 24.2003 — 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.[/quote]

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.)
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — LMAO could you please word better, I got lost in the left and right.

[i]Originally posted by Jona [/i]

[B]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.) [/B]
[/QUOTE]
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — 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?
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — 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.
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — <input type=submit value="Submit" onclick="top.location.href='my_location.html';">
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — [i]Originally posted by Jona [/i]

[B]<input type=submit value="Submit" onclick="top.location.href='my_location.html';"> [/B][/QUOTE]


Nope ur net getting me, the top one needs to stay the same so the countdown is still going.
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — <input type=submit value="Submit" onClick="top.frames['bottomFrameName'].location.href='your_page.html';">
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — 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.

[CODE]<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>[/CODE]
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — Jona if you can do this, your my IDOL! ?
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — 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';">
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — 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?
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — [i]Originally posted by iceafreak99 [/i]

[B]Lost?[/B][/QUOTE]


Totally!
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — 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
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — [i]Ooooooohhhh!!!![/i] Is that all you wanted? Golly...

<form [b]target="_self"[/b]>

Will that work for ya?
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — <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.
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — Works for me. You lose the frames when you get an error, though. Try fixing your ASP...

If it [i]still[/i] won't work after that. Try target="thisFrameName" But "_self" should work......
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — What does it do when u do it?

Tell me what it does.
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — In IE6, it works, the form submits and loads a page in the bottom frame. [i]However,[/i] the frameset is lost when an error occurs in your ASP.
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — First off, I want the bottom to load in a new window not the same. Thats not my ASP so dont worry,
Copy linkTweet thisAlerts:
@iceafreak99authorApr 24.2003 — 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?
Copy linkTweet thisAlerts:
@JonaApr 24.2003 — Okay, <form target="_blank" onsubmit="top.location.href='my_noframe_page.html';">
Copy linkTweet thisAlerts:
@JonaApr 25.2003 — <i>
</i>&lt;html&gt;&lt;head&gt;
&lt;script&gt;
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);
}
&lt;/script&gt;
&lt;/head&gt;&lt;body&gt;
&lt;form onsubmit="doit()"&gt;
&lt;input type=submit&gt;
&lt;/form&gt;&lt;/body&gt;&lt;/html&gt;
×

Success!

Help @iceafreak99 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.17,
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,
)...