...

View Full Version : auto resize window on form request (auto)



druss016
06-18-2009, 01:38 PM
I have a form typically, html that has an action of a .php url opening in "_blank" to catch data, I want that window that is being opened to automatically resize itself, I tried js with ...onClick='formCatcher();' ...ok when i use that js function instead of form submit action the window can resize itself like i want but the php page does not catch the data. So, is there a way to include code in the php page so that everytime the page is visited it resizes, or if not that then how?


How about:
<body onLoad="autoResizer();">

function autoResizer() {
...a function to resize window?...
}



or this?:

<form name=form1 method=post action=http://url.com/catcher.php target=myNewWin>
<input type=text name=aNumber value='enter'>
<input type=button value=' Submit ' nClick='sendme();'>
</form>

<script>
function sendme()
{
window.open("","myNewWin","width=500,height=300,toolbar=0");
var a = window.setTimeout("document.form1.submit();",500);
}
</script>

</body>


i HAVE RESOLVED THIS PROBLEM BUT THANKS!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum