Hi,
I am still having problems with this form. The revised code is below. The problems are:
- the pop up window where the asp is processed opens but does not respect the size defined. The js that defines the pop up window is:
function NewWindow(mypage, myname, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
- when cursor is in text area and I press enter the onclick event is ignored and the asp page is loaded in the main window.
Below is the script I am using for the form.
<form method="post" name="frmEnquiry" action="asp/ezine.asp" onSubmit="return FormValidator(this)">
<input type="text" name="email" size="20" value=" ... Your Email ..." onFocus="if(this.value==' ... Your Email ...')this.value='';" class="box3" onMouseOver="this.className='box3b'" onMouseOut="this.className='box3'" onClick="this.className='box3b'"><input type="submit" name="submit" OnClick="NewWindow('asp/ezine.asp','680','390','yes');return false;" value=" >> ISCRIVITI! " class="testo" style="color: #F4F4F4;border-color: #3163B7;border-width=2;background-color: #356CC8;width:120;height:17;font-family:Verdana;font-size:7pt;font-color:#000000">
</form>
Can someone spot what how to solve the 2 problems above.
DHTMLHELP
I am still having problems with this form. The revised code is below. The problems are:
- the pop up window where the asp is processed opens but does not respect the size defined. The js that defines the pop up window is:
function NewWindow(mypage, myname, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
- when cursor is in text area and I press enter the onclick event is ignored and the asp page is loaded in the main window.
Below is the script I am using for the form.
<form method="post" name="frmEnquiry" action="asp/ezine.asp" onSubmit="return FormValidator(this)">
<input type="text" name="email" size="20" value=" ... Your Email ..." onFocus="if(this.value==' ... Your Email ...')this.value='';" class="box3" onMouseOver="this.className='box3b'" onMouseOut="this.className='box3'" onClick="this.className='box3b'"><input type="submit" name="submit" OnClick="NewWindow('asp/ezine.asp','680','390','yes');return false;" value=" >> ISCRIVITI! " class="testo" style="color: #F4F4F4;border-color: #3163B7;border-width=2;background-color: #356CC8;width:120;height:17;font-family:Verdana;font-size:7pt;font-color:#000000">
</form>
Can someone spot what how to solve the 2 problems above.
DHTMLHELP
Comment