Activity Stream
48,167 MEMBERS
6906 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member

    Default 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

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    imdber.org justpaste.me
    Show the code or better, a link to where this page is.

  4.     
    #3
    Member
    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>
    and here is the page with image:
    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&amp;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>

  5.     
    #4
    Member
    ah well never mind. i used iframes instead Javascript codes and it worked.

  6.     
    #5
    Member
    You can use curl with php.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My site will not load in Windows 7 will load on XP
    By DJboutit in forum Webmaster Discussion
    Replies: 2
    Last Post: 12th May 2012, 07:56 PM
  2. JQuery set iframe load limit ?
    By Porsche_maniak in forum Webmaster Discussion
    Replies: 2
    Last Post: 19th Jan 2012, 02:27 PM
  3. JQuery help
    By xElliex in forum Web Development Area
    Replies: 5
    Last Post: 25th Aug 2011, 10:38 PM
  4. jquery live function ?
    By Porsche_maniak in forum Web Development Area
    Replies: 2
    Last Post: 15th Mar 2011, 08:14 PM
  5. Anyone who knows Javascript / jquery / Css
    By Czechi in forum Completed Transactions
    Replies: 5
    Last Post: 17th Aug 2010, 06:41 AM

Tags for this Thread

BE SOCIAL