So I'm trying to make an app, and I need to make dynamic changes to the page. Can this possibly be done when a user slicks submit on an HTML form? If so, how? How do you stop it from actually sending the form, how do you include the values from two dropdown lists in the function called?
Second question: is it possible to refer to a JS function that appears in the page? To avoid having to make layouts over and over again, I essentially used nested PHP includes to generate the pages, and i have no access to the header tag from the generated page.
Reference: http://gdex.tk/cont/?i=0003
The image is JS-generated using the jsDraw2D library. I want to draw an arrow from point x to point y when the user presses go on the form. It should also change who's turn it is and what the last move was, but that I know how to do.
PS
If anyone knows a good way to check if the path created passes once through every point, (If the path created is a Hamiltonian path) please share.
----------
Edit:
PPS
I've only made sure the design works on Google Chrome, and I know the design is faulty on internet Explorer. If you can suggest improvements, again, please share.
Second question: is it possible to refer to a JS function that appears in the page? To avoid having to make layouts over and over again, I essentially used nested PHP includes to generate the pages, and i have no access to the header tag from the generated page.
Reference: http://gdex.tk/cont/?i=0003
The image is JS-generated using the jsDraw2D library. I want to draw an arrow from point x to point y when the user presses go on the form. It should also change who's turn it is and what the last move was, but that I know how to do.
PS
If anyone knows a good way to check if the path created passes once through every point, (If the path created is a Hamiltonian path) please share.
----------
Edit:
PPS
I've only made sure the design works on Google Chrome, and I know the design is faulty on internet Explorer. If you can suggest improvements, again, please share.
Last edited: