I am trying to develop a resize module i can include on my pages that calculates the size of input fields based on the screen resolution... 
I can already detect the screen resolution, and i have the width / height multiplier for every resolution i need to support... my problem is this...
I want the include file to be totally universal so heres my plan
I will use CSS styles to set the current text box size... i want the javascript to then detect the screen size and apply the correct multiplier to the textbox size...
Where i run into issues is getting the current textbox size and adding it to itself, it seems i cannot use the current textbox size because the javascript is loading before the text boxes themselves...
I am triggering this java on the BODY ONLOAD event....
[CODE=javascript]frmMain.txtLogi n.style.width=f rmMain.txtLogin .style.width*in tWidthMultiplie r[/CODE]
the input box would be coded like this
[HTML]<input type=text name=txtLogin style="height:2 0; width:200; font-size:12" />
[/HTML]
Thanks in advance for any help you can add.
					I can already detect the screen resolution, and i have the width / height multiplier for every resolution i need to support... my problem is this...
I want the include file to be totally universal so heres my plan
I will use CSS styles to set the current text box size... i want the javascript to then detect the screen size and apply the correct multiplier to the textbox size...
Where i run into issues is getting the current textbox size and adding it to itself, it seems i cannot use the current textbox size because the javascript is loading before the text boxes themselves...
I am triggering this java on the BODY ONLOAD event....
[CODE=javascript]frmMain.txtLogi n.style.width=f rmMain.txtLogin .style.width*in tWidthMultiplie r[/CODE]
the input box would be coded like this
[HTML]<input type=text name=txtLogin style="height:2 0; width:200; font-size:12" />
[/HTML]
Thanks in advance for any help you can add.
 
	
Comment