Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Ajax Help...

  1. #1
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default Ajax Help...

    Hello,

    Right of got the Navigation sorted but how do I make some content appear when you first load the page? Because if i just put some in the DIV you wont be able to go back to it...

    Please Help!

    Tom
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  2. #2
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    2,009

    Latest Awards:

    Default

    Type up your welcome page content in the div, then copy and paste the content on to a page called home.html then in the navigation have a link to home, just remember when you update the welcome text copy and paste it into the home.html file.

  3. #3
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Thats just messy though
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  4. #4
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    2,009

    Latest Awards:

    Default

    Quote Originally Posted by Jaffa Cakes! View Post
    Thats just messy though
    How is it messy? Dont you mean your lazy.

  5. #5
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Its messy because you then have two instances of the file, when you could possible have just 1 or even none...

    Also, yes I am very lazy :]
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  6. #6
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    2,009

    Latest Awards:

    Default

    Quote Originally Posted by Jaffa Cakes! View Post
    Its messy because you then have two instances of the file, when you could possible have just 1 or even none...

    Also, yes I am very lazy :]
    Lol its just copy and pasting.

  7. #7
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Mhmmm fine
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  8. #8
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Use the onLoad tag in <body>..

    e.g

    <body onLoad="mypagefunctionajaxthing('homepage.html')">

  9. #9
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    If the script in m head tag is:

    Code:
    <script type="text/javascript">
    function setBackgroundImage(url) {
            document.body.style.backgroundImage = 'url(' + url + ')';
    }
    </script>
    and the code for the link is:
    Code:
    <a href="javascript:void(0)" onclick="open_url('pages/testing/test.html','rboxs');">Go to page 1</a>
    What would I change 'mypagefunctionajaxthing' to?
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  10. #10
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    <body onLoad="open_url('pages/testing/test.html','rboxs');">

Page 1 of 2 12 LastLast

Posting Permissions

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