Results 1 to 4 of 4

Thread: opening 2 pages in 2 different div with ajaxpage

  1. #1
    Join Date
    Feb 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question opening 2 pages in 2 different div with ajaxpage

    The title say almost every things. for a email i will explain why. i am new to website building, so sorry for any thing i do that is newbie.

    i am looking to be able to click one button which allow the user to open 2 pages. i have 2 different div classes set up. content and contentlink. the content is where all the page information going to be the contentlink one is going to just have some thing like this.

    About_Us/Started.

    so it shows you where abouts you are in the link with links. any help that i get is greatful thanks in advance.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You need to provide a link to your site or to the scripts you are using. Otherwise, we can't help.

    The simple answer to this is to include both functions in the event. For example:
    <... onclick="openit('a'); openit('b');">

    That should probably work. If it does not, the scripts may need to be rewritten.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Feb 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well the site is not online as i am writing it at the moment. i am running xampp on my machine.

    but here is what i am trying to do but it down work

    <a href="javascript:ajaxpage('login.php','content')",href="javascript:ajaxpage('./Toplinks/loginlink.php','contenttop')">Login</a>

    if there is any thing else u require less let me know.

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

    Default

    Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

    Warning: Please include a link to the DD script(s) in question in your post. See this thread for the proper posting format when asking a question.


    That said, there are various ways to set it up, here's one:

    Code:
    <a href="login.php" onclick="ajaxpage(this.href,'content');ajaxpage('./Toplinks/loginlink.php','contenttop');return false;">Login</a>
    In it, login.php will load into content and ./Toplinks/loginlink.php will load into contenttop.

    Also, if javascript is disabled, the link will fire normally. This will switch the page to login.php, which may or may not be a good thing, let me know.
    - 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
  •