On 18/06/12 14:21, Chris Green wrote:
Yes, probably, but the Wiki allows me to create lots of useful web information quickly and easily. I've not found any other way of putting information up that's anywhere near as quick and efficient.
Sorry, I wasn't suggesting that you should get rid of the wiki (although it could have been read that way): you'll have the same issues with most frameworks I am sure.
Yes, I have played a little with jQuery, I'll maybe do some more playing with it and see how I get on.
Well using your colour example, the way I see it: - You write an include file (that will either be included within your wiki plugin or from another script which will be called directly with POST data), which has a function that: -- checks for form data, and validates it then stores is -- uses the form data, or the previously stored value, or a default, to determine the "current" colour choice -- creates the HTML to show the current colour choice and a form for selecting a new one. - Your wiki plugin uses the above function to build the output - The form submits asynchronously via jQuery to a new script (outside the wiki logic). It includes the above script and uses it to update the database and create new HTML, returning that HTML for jQuery to update the current browser window without any redirects or screen refreshes.
All the work is done in one script, it's just included from two different places.