php - Loading an url with jquery load() with attached id value after # simply just stripped out from after hash -


i trying load specific portion of article using of jquery load() function when tab clicked. tab inside article , trying show article within first article tab being clicked. jquery code have put inside template.php of choosen template. main problem when click nothing comming inside first article under tab. using joomla2.5.11 version. please give suggestion.the jquery code trying shown below:

    $(function(){              $("h3.menuheader").click(function(){                 $(".active-tab").removeclass("active-tab");                 $(this).addclass("active-tab");                 $(".tabcontent-ul").slideup();                 $(".tabcontent").load("http://www.mpsinfoservices.com/projects/teamzstudio/web-application-development#link1",function(){                     $(".tabcontent").slidetoggle();                 });             });  }); 

unfortunately don't think you've provided enough diagnose issue. perhaps can how diagnose.

to start with, try instead:

// http://www.mpsinfoservices.com/projects/teamzstudio/web-application-development#link1 $(".tabcontent").load("http://www.google.co.uk",function(){   $(".tabcontent").slidetoggle(); }); 

then open developer tools , see if call being made load data.

if is, need consider might loading data , putting in element can't see.

so test, create new container on page near footer, know visible specific #id <div id="testid"></div> , load that. once working, confirm .tabcontent element 1 want using console.log().


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -