Results 1 to 2 of 2

Thread: Completely Changing the Contents of a Divide

  1. #1
    Join Date
    Aug 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Completely Changing the Contents of a Divide

    What I'm trying to do is be able to altnernate between preset div-contents that may be completely different in structure. For example, one set of contents is a simple `<script language="javascript" src="foo.js"></script>", while another is a form made with a JavaScript/AJAX-combo. What I'm trying to do is have a form that takes information that the script uses, and the two being swapped out on the client-side, to speed up the process and save the server from repeatedly resending the page: another benefit is that the single, multipurposed page is added to search-engines.

    Perhaps I ought to have both loaded at once, and have the change-button make one of them invisible?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Perhaps I ought to have both loaded at once, and have the change-button make one of them invisible?
    Aye. Be careful to provide a separate full page containing the other for non-JS browsers though -- a server-side language can make this more efficient.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •