From: Edward S. <eh...@po...> - 2014-01-07 15:56:25
|
Hi Umanda, It looks like the slideshow in 1) has the same problem at Internet Archive: https://web.archive.org/web/20131230013555/http://www.cmb.ac.lk/ So the good news is you are not alone. If you pull up the JavaScript console you should see an error like this: Uncaught TypeError: Object function (selector,context){return new jQuery.fn.init(selector,context)} has no method 'isPlainObject’ You can see on line 36 of the HTML that jQuery v1.4.2 is being loaded correctly, as it is on the original page: <script type='text/javascript' src='/web/20131230013555js_/http://www.cmb.ac.lk/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script> But on line 170 you can see Wayback’s boilerplate is loading jQuery again, but an older version (v1.3.2), which seems not to have the isPlainObject method, which causes the error above. Also, this reload probably stomps on any jQuery plugins that have been installed. I don’t know what the best solution here is, but it seems to me there are (at least) three options: 1) From a brief search It looks like [1] jQuery takes backwards compatibility pretty seriously. So if Wayback must have a jQuery dependency perhaps it could simply be upgraded to use the latest version in git [2]. 2) It looks like it’s possible for multiple versions of jQuery to co-exist on the same page [3]. So perhaps Wayback could be updated to use jQuery in this way, so that it doesn’t interfere with archived pages that also use jQuery? 3) Perhaps Wayback should test to see if jQuery could be loaded before re-loading it? This is what was recommended in a previous bug report [4]. //Ed [1] http://stackoverflow.com/questions/281438/how-good-is-jquerys-backward-compatibility [2] https://github.com/internetarchive/wayback/tree/master/wayback-webapp/src/main/webapp/js [3] http://stackoverflow.com/questions/1566595/can-i-use-multiple-versions-of-jquery-on-the-same-page [4] https://webarchive.jira.com/browse/ACC-118?jql=project%20%3D%20ACC%20AND%20component%20%3D%20Wayback%20AND%20text%20~%20%22jquery%22 On Jan 7, 2014, at 10:04 AM, Umanda Dikwatta <abe...@gm...> wrote: > Hello, > > > > I'm using Heritrix 3.1.0 and wayback 1.8 in order to crawl and re-create the web sites.I have following seed urls. > > > > 1) http://www.cmb.ac.lk > > 2) http://www.pdn.ac.lk > > 3) http://www.kln.ac.lk > > > > When I'm trying to re-create these web sites, slide show which is in the main page of first 2 sites are not working. Also, > > A drop down menu which is activated in the mouse over of main menu in the 3rd site also not working. In all these cases the relevant > > files are in the crawl log and successfully crawled. As I saw in the code > > > > http://www.cmb.ac.lk - slide show works using http://www.cmb.ac.lk/wp-content/plugins/widgetkit/widgets/slideshow/js/slideshow.js > > > http://www.pdn.ac.lk - slide show works using skitter.js(http://www.pdn.ac.lk/assist/js1/jquery.skitter.min.js) This js file is > > in the archive. > > http://www.kln.ac.lk - This main menu drop down is working using the javascipt below. > <script type="text/javascript"> > > var megamenu = new jaMegaMenuMoo ('ja-megamenu', { > > 'bgopacity': 0, > > 'delayHide': 300, > > 'slide': 0, > > 'fading': 1, > > 'direction':'down', > > 'action':'mouseover', > > 'tips': false, > > 'duration': 300, > > 'hidestyle': 'fastwhenshow' > > }); > > </script> > > Therefore, is this a limitation with wayback machine. Please help me. > > > > Regards > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk_______________________________________________ > Archive-access-discuss mailing list > Arc...@li... > https://lists.sourceforge.net/lists/listinfo/archive-access-discuss |