Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26322 > unrolled thread

ajax loading content

Started bygrzessiek <grzesiek76@poczta.onet.pl>
First post2014-12-13 20:15 +0100
Last post2014-12-14 05:38 +0700
Articles 3 — 3 participants

Back to article view | Back to comp.lang.javascript


Contents

  ajax loading content grzessiek <grzesiek76@poczta.onet.pl> - 2014-12-13 20:15 +0100
    Re: ajax loading content "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-12-13 20:50 +0100
    Re: ajax loading content JJ <jj4public@vfemail.net> - 2014-12-14 05:38 +0700

#26322 — ajax loading content

Fromgrzessiek <grzesiek76@poczta.onet.pl>
Date2014-12-13 20:15 +0100
Subjectajax loading content
Message-ID<m6i37b$hi5$1@speranza.aioe.org>
hey,

I load HTML using jquery .load().

In this HTML loaded, I have a div with scroll (CSS overflow: auto).

Below that div I have a simple piece of code.

Why it does not work:

$(document).ready(function(){
$('#ajaxLoadedDiv').scrollTop(100);
});

and it works:

$(document).ready(function(){
$('#ajaxLoadedDiv').html('some content');
});

Thanks,
g.

[toc] | [next] | [standalone]


#26323

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2014-12-13 20:50 +0100
Message-ID<XnsA402D4177D795eejj99@194.109.133.133>
In reply to#26322
grzessiek <grzesiek76@poczta.onet.pl> wrote on 13 dec 2014 in 
comp.lang.javascript:

> hey,
> 
> I load HTML using jquery .load().

Oh please, this NG is about Javascript proper,
please go elsewhere for this jquery crap.


> In this HTML loaded, I have a div with scroll (CSS overflow: auto).
> 
> Below that div I have a simple piece of code.
> 
> Why it does not work:
> 
> $(document).ready(function(){
> $('#ajaxLoadedDiv').scrollTop(100);
>});
> 
> and it works:
> 
> $(document).ready(function(){
> $('#ajaxLoadedDiv').html('some content');
>});
> 
> Thanks,
> g.
> 



-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#26324

FromJJ <jj4public@vfemail.net>
Date2014-12-14 05:38 +0700
Message-ID<1av38o5mhgf84$.1hakazh3dm36w$.dlg@40tude.net>
In reply to#26322
On Sat, 13 Dec 2014 20:15:06 +0100, grzessiek wrote:
> hey,
> 
> I load HTML using jquery .load().
> 
> In this HTML loaded, I have a div with scroll (CSS overflow: auto).
> 
> Below that div I have a simple piece of code.
> 
> Why it does not work:
> 
> $(document).ready(function(){
> $('#ajaxLoadedDiv').scrollTop(100);
> });

Because there's no content.

> and it works:
> 
> $(document).ready(function(){
> $('#ajaxLoadedDiv').html('some content');
> });

Because you put a content.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web