I am trying to add graphics without refreshing the page. This works ok when I load the graphics by some other means, but if I load the graphics using onmousedown(), the graphic is loaded, but the rest of the page disappears.
<div STYLE="solid red 1px; " id="playarea1" style=" margin: 75px 35px 35px 155px; width: 1600px; height: 600px; background-color: #FFFFCC" onmousedown="drawShape()">
thanks for your advice. I have spent the last two hours looking at the link ad have learnt something about DOM. The link is good if you would like to do lots with textboxes. Could you give me a pointer of how I would use DOM to place a graphic on a <DIV>.
Place the cursor in the grid and press the left mouse button. A black horizontal line should be drawn from the nearest cross, but of course, the existing window is unloaded. During the design, the data will come from the user. The next step will be to save the data in a database and load it as the playarea window is loaded.
This is only a test script and needs to be tided up.
Bookmarks