Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   How to update html values using a textbox (https://www.cableforum.uk/board/showthread.php?t=9402)

daft_vader 13-03-2004 21:05

How to update html values using a textbox
 
Hi

Hope somebody could help

I would like to be able to update the values contained in "Width" + "Height" paremeters in the following html code by typing in values from a textbox on the same web page.

<applet code="******.class" width=350 height=226>

How would I go about this?

Any help would be great

Thanks

Daft

threadbare 13-03-2004 21:36

Re: How to update html values using a textbox
 
Quote:

Originally Posted by daft_vader
Hi

Hope somebody could help

I would like to be able to update the values contained in "Width" + "Height" paremeters in the following html code by typing in values from a textbox on the same web page.

<applet code="******.class" width=350 height=226>

How would I go about this?

Any help would be great

Thanks

Daft

you would need to set width and height as variables

Alan Waddington 13-03-2004 21:42

Re: How to update html values using a textbox
 
Try this http://www.javaworld.com/javatips/jw-javatip80_p.html

OK, the example is aimed at resizing from the java applet, but you could just as easily get put a textbox on a form and set the form Submit method to call a javascript function to read the values out of the textbox(es) and set the height & width as in the above example


All times are GMT. The time now is 14:33.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum