Results 1 to 5 of 5
Hybrid View
-
13th Feb 2012, 09:44 AM #1OPMember
jquery help(with .load() function)
hi.
i have a page with an image and with some social bookmarking buttons(fb like,google +,digg,stumble upon).
when i open this page it shows all the buttons as wanted.
but i want to display this page in another page and for that i am using jquery's .load() function. the problem is when it loads the page with the image digg and stumble upon buttons does not appear.
is there any solution to this problem?Arpit15 Reviewed by Arpit15 on . jquery help(with .load() function) hi. i have a page with an image and with some social bookmarking buttons(fb like,google +,digg,stumble upon). when i open this page it shows all the buttons as wanted. but i want to display this page in another page and for that i am using jquery's .load() function. the problem is when it loads the page with the image digg and stumble upon buttons does not appear. is there any solution to this problem? Rating: 5
-
13th Feb 2012, 10:31 AM #2MemberWebsite's:
imdber.org justpaste.meShow the code or better, a link to where this page is.
-
13th Feb 2012, 02:27 PM #3OPMember
i cannot show you the full code but here the script that calls for the page with image:
Code:<script> $(document).ready(function(){ $("#pic").load("http://localhost/Z11/img.php?id=6"); $("img[height=120]").click(function(){ $("img[height=120]").removeAttr('class'); var id=$(this).attr('id'); $("#pic").load("http://localhost/Z11/img.php?id="+id); $(this).attr('class','mark'); })}); </script>
Code:<img src='http://localhost/Z11/uploads/a240982a13a2a0669a94125341ef01c3.jpg' class='mpic'><div id='social'> <div class='d'><g:plusone size='tall' href='http://localhost/Z11/img/5/'></g:plusone></div> <div class='d'><su:badge layout="5" location='http://localhost/Z11/img/5/'></su:badge></div> <div class='d'><fb:like href='http://localhost/Z11/img/5/' layout='box_count'></fb:like></div> <div class='d'><a class="DiggThisButton DiggMedium" href='http://digg.com/submit?url=http%3A%2F%2Flocalhost%2FZ11%2Fimg%2F5%2F&title=http%3A%2F%2Flocalhost%2FZ11'></a></div> </div> <div id='fb-root'></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script> <script type="text/javascript" src='http://widgets.digg.com/buttons.js'></script> <script type="text/javascript" src='https://platform.stumbleupon.com/1/widgets.js'></script>
-
17th Feb 2012, 03:53 PM #4OPMember
ah well never mind. i used iframes instead Javascript codes and it worked.
-
19th Feb 2012, 02:20 PM #5Member
You can use curl with php.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
My site will not load in Windows 7 will load on XP
By DJboutit in forum Webmaster DiscussionReplies: 2Last Post: 12th May 2012, 07:56 PM -
JQuery set iframe load limit ?
By Porsche_maniak in forum Webmaster DiscussionReplies: 2Last Post: 19th Jan 2012, 02:27 PM -
JQuery help
By xElliex in forum Web Development AreaReplies: 5Last Post: 25th Aug 2011, 10:38 PM -
jquery live function ?
By Porsche_maniak in forum Web Development AreaReplies: 2Last Post: 15th Mar 2011, 08:14 PM -
Anyone who knows Javascript / jquery / Css
By Czechi in forum Completed TransactionsReplies: 5Last Post: 17th Aug 2010, 06:41 AM
themaRegister - register to forums...
Version 3.45 released. Open older version (or...