- This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Load
$(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.
You have to pass arguments to `.load()` function: http://api.jquery.com/load/
Then how to do?
What are you trying to do? From the code sample it’s unclear.
I want to do when this
wrapperHeight = $(this).parent
is loaded than will get from that element height.
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.
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.
Any help?
Do you have a link?