[UPHPU] Convert a site to ajax
Kyle Waters
unum at unum5.org
Tue Jul 24 10:37:46 MDT 2007
Orson Jones wrote:
> I think I can keep my existing backend and simply add an option to not
> display headers/navigation/footers (Just the stuff that is updating.)
> Then I would have some javascript that would rewrite the links/forms to
> pull/update the content ajax style.
>
>
Sorry I have never used a toolkit for my ajax work(except dirks
three files) so I can't help you there, but I'm trying to understand
what you are saying. In other posts you say you want the site to work
even if the ajax is turned off but that seems inconsistent with the above.
The way I handle menus is server side includes or if I'm already
using php I use php includes. That way I'm able to reuse code and not
use nasty frames.
Personally I don't like to use get requests unless I think it is
something the user will want to copy and past to someone else. So in
the case of navigation I think get requests are often a good idea, but
in terms of forms and submitting information I prefer post.
Anyways if you are dynamically changing your main content with
javascript the site will not work if someone turns off javascript. If
you do not need to refresh the page with out user intervention I would
avoid javascript. I'd really recommend looking at the php.net site I
think they have a great implementation.
Kyle
ps how not to do it: http://unum5.org/javascript-resource/
--
no amount of fear can stop the rise of free media, or free software (they are the same, after all)
Jonathan Swartz
CEO Sun Microsystems
More information about the UPHPU
mailing list