Gossamer Forum
Home : General : Internet Technologies :

html linking and forms

Quote Reply
html linking and forms
I have a link with this source code
<a href="javascript:{}" onMouseOver="window.status='Rate Link!'; return true;" onMouseOut="window.status=''; return true;" onclick="window.open('<%db_cgi_url%>/rate.cgi?ID=<%ID%>','rate','toolbar=no,menubar=no,location=no,directories=no,
status=no,scrollbars=no,resizeable=no,copyhistory=no,height=200,width=400')"><%Rating%></a>

Is there any way I can get the same features using a form tag,

i.e click on a form submit button and the window opens up a certain size with no scroll bars, no menu bar etc.

I want to implememt it into this script
<form action="<%db_cgi_url%>/rate.cgi" method="POST" target="_blank">
<input type=hidden name="ID" value="<%ID%>">
<input type=hidden name="Title" value="<%Title%>">

blaa blaa

<input type=submit value=Rate it class=button></form>

I am quite sure that it can be done, doing it is the problem thou.

Anybody out there spare a few minutes and post some codes please.

Last edited by:

stu2000: Aug 28, 2002, 6:21 AM
Quote Reply
Re: [stu2000] html linking and forms In reply to
Hi there, I found some coding but I can't get it to work, is there anything really obvious I am missing:-

<script>
function SUBMIT(editform)
{
preview=open("","DisplayWindow","toolbar=no,directories=no,menubar=no,location=no,directories=no");
preview.document.write(editform.file_text.value);
}
</script>


<form method="post" action="">
<input type="button" value="RATE IT" onClick="SUBMIT(this.form)">
</form>
Quote Reply
Re: [stu2000] html linking and forms In reply to
Have a play with this...

Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWindow1(record){
myWindow=window.open("","myWindow","toolbar=no,directories=no, status=no,
menubar=no,resizable=yes,scrollbars=yes,width=650,
height=400,left=50,top=50");
return true
}
// -->
</script>


<form action="<%db_cgi_url%>/rate.cgi" method="POST" target="myWindow">
blaa blaa ...
<input type="submit" value="Rate it" onclick="return openWindow1()">
</form>

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] html linking and forms In reply to
Thank you very much.

I inserted the code you provided above and it works a treat, no menu bar nothing.

Thank you for taking the time to solve my problem,

Stuart