Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Load

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #46345
    nuodas159
    Participant

    $(document).ready(function()
    {
    $(‘.line’).each(function() {
    var wrapperHeight = $(this).load().parent().height();
    var messageHeight = $(this).height();
    var newblockHeight = wrapperHeight – messageHeight ;
    $(this).height(newblockHeight);
    });
    });

    Hello, how to fix that on wrapperHeight would work load? I mean when I add .load this function isin’t working.

    #142513
    Alen
    Participant

    You have to pass arguments to `.load()` function: http://api.jquery.com/load/

    #142515
    nuodas159
    Participant

    Then how to do?

    #142517
    Alen
    Participant

    What are you trying to do? From the code sample it’s unclear.

    #142521
    nuodas159
    Participant

    I want to do when this

    wrapperHeight = $(this).parent

    is loaded than will get from that element height.

    #142544
    ryantay
    Participant

    I’m not entirely clear on what you’re trying to do, but I’m pretty sure load() is not the function you’re looking for – load() is used for ajax requests.

    #142657
    nuodas159
    Participant

    Am without load functions works perfect, but when I push F5 the code isn’t working. I mean when I use F5(refresh) than wrapperHeight doesn’t working.

    #142743
    nuodas159
    Participant

    Any help?

    #142788
    chrisburton
    Participant

    Do you have a link?

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.