i am trying to make a control panel for my site, but i have no idea on what logic to use.
for example my control panel has an add user button,what i would like to happen is that when a user clicks on that button.. the page will show up on a specific <div></div> with out refreshing the page.
The logic i was thinking was:
1.to use an iframe and load all the relevant pages their(which i don’t know the PRO’s and CON’s)
2.Use FLASH, for the control panel(which i don’t know the PRO’s and CON’s)
3.Use javascript or a JS library like JQuery which i don’t know what to call it..
the question is what logic would i use, or you can advise something more secured and netter. thanks
If you expect people to frequently add users from this page, it might be wise to just load the form necessary for adding users into the DOM to begin with, and toggle its visibility when the admin clicks on this button.
The last option you mentioned, loading data asynchronously with jQuery (or any JS library), would also be pretty trivial. There are numerous ways you could do that, but one simple method is to just use the Ajax
.loadmethod: