Results 1 to 2 of 2

Thread: Divs loading at same time?

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

    Default Divs loading at same time?

    Hi Guys,

    Anybody know if there is a way of having a Div (That contains an image) and another Div (That contains just text) to load at the SAME time but clicking on a button (For example 'Next' or 'Back').

    Thanks!

    Mark

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

    Default

    What do you mean by "load"? Does this mean that you want the display property changed so that it changes from invisible to visible?
    Or are you loading external content?

    The first should not be very hard because even if they load at "different" times it will not be noticable to the eye-- it will be very fast.

    The general way to do this is to put two commands together, either as a new combined function or just as a list, separated by a semi-colon like: load('div1');load('div2');, of course depending on the existing scripts you're using.


    If you are loading the content from an external source, there is no way to force two different external pages to load at the same time because one might take longer, there might be some delay on the server, or any other number of reasons. You could load one then delay displaying it until the other loads.


    Generally, one way to approach this is to NOT load two-- just load one div. You can put your two divs into one by nesting them then just load that single div. Here's an example:
    Code:
    <div>
       <div>
       My Image.
       </div>
       <div>
       My Text.
       </div>
    </div>

    If this is a question about a specific page or script, please link to the page on your site or the source for the script (or both if possible) if you do need more help.
    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

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
  •