Results 1 to 4 of 4

Thread: Ajax Content script with one "default" page like in AjaxTabsContent

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

    Question Ajax Content script with one "default" page like in AjaxTabsContent

    1) Script Title:
    Dynamic Ajax Content

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem:

    How to use the #default page concept we have on DD Ajax Tabs Content script?
    quote:
    <li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>

    It will be very useful for me and many other people!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The reason that Ajax Tabs has a default content is that it is hard coded into the target division. In fact, the demo page for Ajax Content already has default content (from the demo's source):

    Code:
    <div id="rightcolumn"><h3>Choose a page to load.</h3></div>
    The red part is the default content. Here in Step 2 from the demo page, I've added different 'default' content (red):

    Normal link:
    Code:
    <a href="javascript:ajaxpage('test.htm', 'contentarea');">test</a>
    <div id="contentarea">Here's some different 'default' content<br>You can have images:<br>
    <img src="some.jpg"><br>
    Or, whatever HTML content you like here.</div>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for reply, John!
    But in Ajax Tabs Content we can "return" to default content by clicking the "Intro" tab without reloading the main page.
    That is what we want.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Who's we? Anyways, you could make up a page with that content on it as well, easiest way.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •