Jump to content
php.lv forumi

jquery load() ar bounc effectu


ziedinjsh

Recommended Posts

Tam '#test' saturs ir pirms mēģini viņu kustināt ar effect? varbūt vispirms vajag ielādēt Tavu test.php un tad tik izmantot effect? Domāju, ka tādā kārtībā, kā Tev norādīts, varētu būt problēmas.

 


$('#test').load('test.php', function(){
$(this).effect("bounce", { times:4, distance:200 }, 400);
});

 

 

btw, debuggers errorus neuzrāda?

Edited by ezis
Link to comment
Share on other sites

Tam '#test' saturs ir pirms mēģini viņu kustināt ar effect? varbūt vispirms vajag ielādēt Tavu test.php un tad tik izmantot effect? Domāju, ka tādā kārtībā, kā Tev norādīts, varētu būt problēmas.

 


$('#test').load('test.php', function(){
$(this).effect("bounce", { times:4, distance:200 }, 400);
});

 

 

btw, debuggers errorus neuzrāda?

errora tur visticamākais nebūs jo fails tiek ielādēts par ko varētu būt vienīgais ziņojums..sooo.. problēma nav faila ielādē bet tajā $(this) tādēļ vajadzība ir norādīt kuram elementam tad piesaistam to effect()..

p.s mans variants strādā.. nebiju sliņķis..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...