www.webdeveloper.com
Results 1 to 4 of 4

Thread: pack.js is causing infinite loop

  1. #1
    Join Date
    Oct 2009
    Posts
    3

    pack.js is causing infinite loop

    Hello,

    I am a beginner in JQuery. In my project, PHP5/codeigniter and JQuery have been used. When I am trying to run my webapplication, at the very first page (login page) it is going through a loop. In the log file, I can see that the controller gets called again and again. There is a line in the html file :

    http://localhost/combine/js/jquery-1...ck.js,/file.js

    I guess m.pack.js in the above link was built using jquery.pack.js. If I remove m.pack.js and comment the funtion call which is using something from m.pack.js I do not see the loop anymore. I have joined few days back and there is nobody who can help me understand the code. I am wondering if anybody can help me to understand how m.pack.js works so that
    I can figure out which part in m.pack.js is causing the problem.

    Any help is very much appreciated.

    ighosh

  2. #2
    Join Date
    Jul 2003
    Location
    The City of Roses
    Posts
    2,503
    Unfortunately we can't check your code if we can't access it. "localhost" works only on your local machine.
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

  3. #3
    Join Date
    Oct 2009
    Posts
    3
    Hi Jeff,

    I have tried to put the content of m.pack.js but I could not because of its size. Here is the part of m.pack.js :


    eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2T=\'\';2U=\'\';54=\'\';1U=\'\';1V=\'\';1W=\'\';2V=-1;.........................78:n(a){v b=/^([\\w\\-\\.]+@([\\w\\-]+\\.)+[\\w\\-]{2,4})?$/;9(a===\'\'){A F}u 9(!b.79(a)){A F}u{A 1d}},7a:n(a){v b=a.7b();v c=a.7c();v d=\'\';9(c<10){c="0"+c}9(b>11){b=b-12;d=" 7d"}u{9(b<10){b="0"+b}d=" 7e"}A(a.3C()+1)+\'/\'+a.7f()+\'/\'+a.7g()+\' \'+b+":"+c+d},4H:{4I:n(a){9(B.2s===\'7h.7i.2F\'){7j.7k("/"+a)}}},7l:n(a,b){2v(b){X\'7m\':v c=(a/1c);A c.1I(2);Y;X\'7n\':v d=(a/1c/1c);A d.1I(2);Y;X\'7o\':v e=(a/1c/1c/1c);A e.1I(2);Y}},7p:n(a){v b=(a/1c);9(b<2i){A b.1I(2)+\' 7q\'}v c=(a/1c/1c);9(c<2i){A c.1I(2)+\' 7r\'}v d=(a/1c/1c/1c);A d.1I(2)+\' 7s\'},3P:n(){9($("1F.1S")){v a=($(\'1F.1S\').17()/$(\'1F.1S\').2I());$("1F.1S").1j(\'7t\',$(\'1F.1S\').17()).1j(\'7u\',$(\'1F.1S\').2I()).17(1m.4n($(" #20").17()-13)).2M(\'7v\',\'7w\').1j(\'7x\',a.1I(2))}},3Y:n(b){9(m.8.y){4J m.8.y}9(m.8.2N){4J m.8.2N}$("#3X").1a();$("#20").1t().1a();m.8.3p=\'\';9(B.1i.E(\'19\')==-1&&b!==\'\'){m.8.U=[];m.8.y=[];m.8.2N=b.3t(/\\//g);$.S(m.8.2N,n(i,a){9(a.E(\'[\')==-1&&a.E(\']\')==-1&&a.E(\',\')==-1&&a.E(\'%5B\')==-1&&a.E(\'%5D\')==-1){m.8.U.7y(a)}u{a=a.1o(/\\[/g,\'\').1o(\'%5B\',\'\').1o(/\\]/g,\'\').1o(\'%5D\',\'\');m.8.y=a.3t(\',\')}});1U=\'\';1V=\'\';1W=\'\';9(m.8.y&&m.8.y[0]){1U=m.8.y[0]}9(m.8.y&&m.8.y[1]){1V=m.8.y[1]}9(m.8.y&&m.8.y[2]){1W=m.8.y[2]}9(m.8.y&&m.8.y[3]&&m.8.y[3]===\'z\'||m.8.y&&m.8.y[3]&&$.1L(m.8.y[3])===\'z\'){m.L.47()}9(m.8.U[0]===\'1l\'){m.1l()}u{m.8.3p=m.8.U.4K().1o(/\\,/g,\'3F\');m.8.4L=\'/\'+m.8.U.4K().1o(/\\,/g,\'/\');m.4H.4I(m.8.4L);$(\'#K J a x\').2l(\'4M\');$("#"+m.8.U[0]+" x").24(\'4M\');$("W#T J").2l(\'4t\');9(m.8.1u&&2g(m.8.1u)===\'2h\'){9(m.8.1u.4N){m.8.1u.7z();m.8.1u.4N();m.8.1u.2O=F}}9(m. 8.G&&m.8.G.23>0){9(m[m.8.G[0]]){m[m.8.G[0]].1b.2O=F}9(m[m.8.G[0]]&&m[m.8.G[0]][m.8.G[1]]){m[m.8.G[0]][m.8.G[1]].1b.2O=F}9(m[m.8.G[0]]&&m[m.8.G[0]][m.8.G[1]]&&m[m.8.G[0]][m.8.G[1]][m.8.G[2]]){m[m.8.G[0]][m.8.G[1]][m.8.G[2]].1b.2O=F}}m.8.H=\'\';m.8.1g=\'\';m.8.4O=\'\';$.S(m.8.U,n(i,a){2v(i){X 0:m.8.H=a;Y;X 1:m.8.1g=a;Y;X 2:m.8.4O=a;Y}});9(m.8.H!==\'\'){$.1R(\'/1H/16/m.\'+m.8.H+\'.16\',n(){9(m.8.1g!==\'\'){$.1R(\'/1H/16/m.\'+m.8.H+\'.\'+m.8.1g+\'.16\')}u{}})}u 9(m.8.H&&m.8.H!==\'\'){$.S(m.P.18.K,n(i,a){m.L.2c("7A: 1b 7B 4P = m."+m.8.H,"Q");9(a.q==m.8.H&&m.l.1f){m[m.8.H].1b()}u 9(a.q==m.8.H){m[m.8.H].1b()}});9(m[m.8.H]&&m.8.1g!==\'\'&&!m[m.8.H][m.8.1g]){m.L.2c("7C: 7D 4Q 16 = m."+m.8.H+"."+m.8.1g,"Q");$.1R(\'/1H/16/m.\'+m.8.H+\'.\'+m.8.1g+\'.16\')}u 9(m[m.8.H]&&m.8.1g){m.L.2c("7E: 1b 4Q 4P = m."+m.8.H+"."+m.8.1g,"Q");m[m.8.H][m.8.1g].1b()}}}$("C.3S").4R("#22"+m.8.U[0]).1a();$("C.3R").4R("#22"+m.8.U[0]).1a();9($("#22"+m.8.U[0]).2J(":4S")){$("#22"+m.8.U[0]).1a().3q()}9($("#31"+m.8.U[0]).2J(":4S")){$("#31"+m.8.U[0]).1a().3q()}m.8.G=m.8.U}m.1X()},1l:n(){9(m.P.18.7F){9(m.l.l&&m.l.l.1Z(3)==2L.3u.4T()){2L.3u.1l()}}m. 41();9(B.1i.E(\'z\')==-1){B.R=\'/z#z\'}},3r:{z:n(){$("#7G").24(\'7H\');m.z.8.4U=\'2H=1E-\'+2L.3u.4T()+\'&1f=\'+m.l.1f;m.8.4V=m.P.4k+\'/l/z\';m.1D(m.8.4V,\'2e\',m.z.8.4U,\'2f\',1d,7I,\'m.3r.4W\')},4W:n(a){9(a.2C===\'4l\'){m.l.l=a.2H;9(a.4 X){m.l.M=a.4X}u{m.l.M=a.2H}m.l.1f=a.1f;m.l.q=a.q;m.L.2x();1w("B.R = \'/#\'+m.P.18.3G;",49)}},7J:n(){}},7K:n(a,b,c,d,e,f){$("#"+a).1t();v g=d||12,3v=f||"#7L",17=e||15,3w=1m.7M(b,c)||35,1J=1m.7N(b,c)||60,3x=1J+17,3y=1J+17,r=3z(a,1J*2+17*2, 1J*2+17*2),2P=[],1T=[],4Y=2*1m.4Z/g,50={2Q:3v,"2Q-17":17,"2Q-7O":"7P"};3z.51.7Q();52(v i=0;i<g;i++){v h=4Y*i-1m.4Z/2,2R=1m.2R(h),2S=1m.2S(h);1T[i]=1/g*i;2P[i]=r.2r(50).7R(3x+3w*2R,3y+3w*2S).7S(3x+1J*2R,3y+1J*2S);9(3v=="7T"){2P[i].1j("2Q",3z.51())}}v j;(n 53(){1T.7U(1T.7V());52(v i=0;i<g;i++){2P[i].1j("1T",1T[i])}r.7W();j=1w(53,2i/g)})();A n(){7X(j);r.37()}},1b:n(){$(7Y).7Z(n(){v b=$.1K($.o(\'1e\'));9(b&&b.o.1y&&b.o.1y==\'1d\'){v c=1}u{v c=0}9(c==0&&1z.80.E(\'81 6\')!=-1){B.R=\'/1y\';A 1d}9($.o(\'1e\')){m.8.1r=$.1K($.o(\'1e\'));9(m.8.1r.o){$.S(m.8.1r.o,n(i,a){m.l[i]=a})}u{$.S(m.8.1r,n(i,a){m.l[i]=a})}9(!m.l.19||m.l.19===\'\'){m.L.19();m.L.2x();m.8.1r=$.1K($.o(\'1e\'));$.S(m.8.1r.o,n(i,a){m.l[i]=a})}m.4C(m.l.19);3D.3E()}u{m.L.19();9(B.1i.E(\'z\')==-1){m.1l()}u{m.L.2x();B.82()}}})}}})();m.1b();',62,499,'||||||||vars|if||||||||||||user||function|coo kie||id||||else|var||span|hashDataArray|login|return|location|div|class|indexOf|false|lastFunctionAr ray|primaryHash|name|li|primaryNav|set|userName|share|this|conf|info|href|each|secondary|hashFunctio nArray|append|ul|case|break|flickr|||||account||js|width|settings|lang|hide|init|1024|true|saucy|key |secondaryHash|skin|pathname|attr|circles|logout|Math|hash|replace|password|error|data|click|empty|l astEvent|text|setTimeout|accessCode|ie7up|navigator|title|closeMessage|springEmail|ajax|fb|img|addLo gicAsset|assets|toFixed|r2|evalJSON|base64Decode|springInfo|photosets|requestString|fn|ln|getScript| imageFull|opacity|targetShareId|targetFileId|targetOwner|localize|fadeIn|substring|content|layout|in fo_|length|addClass|undefined|toJSON|message||nbsp|springCode|code|log|process|GET|jsonp|typeof|obje ct|1000|live|hasClass|removeClass|optionsNav|animate|backgroundColor|4000|emailAddress|path|host|err orMessage|successMessage|switch|slow|appCookie|ps|try|console|catch|stat|flickrPhotosets|http|com|60 00|user_name|height|is|link|FB|css|hashArray|returnValue|sectors|stroke|cos|sin|currentShareId|curre ntFileId|currentFileIndex|targetFileIndex|spacing_open|resizable|west|ui|marketing_||render|expires| |domain|remove|prependTo|infoMessage|fadeOut|flickrID|api_key|41e75a6168d077ad13b1fb88833d4849|forma t|json|jsoncallback|api|services|rest|method|accountData|ad|displayName|rel|navId|show|facebook|requ est|split|Connect|color|r1|cx|cy|Raphael|prototype|localizedStrings|getMonth|config|app|_|homePage|a ddSkinAsset|togglerLength_open|togglerLength_closed|slidable|fxName|none|size|east|resizeContent|toL owerCase|marketingSections|infoSections|contentContainer|unblockUI|buttonRow|buttonSelect|statusCont ainer|processUrl|cycleColors|checkCookie|clearAppCookie|language|browserLanguage|systemLanguage|unbi nd|success|springboardDataAndCookie|fl|500|debug|warn|username|get|Flickr|count|photoset|flickrId|fl ickrName|requestData|wapiServer|ok|userdata|floor|products|secondaryNav|share_circles|history|over|s elected|aria|polite|profile|pic|uid|loggedinuser|linked|options|addDictAsset|type|eval|longstring|bo om|google|analytics|delete|toString|analyticsHash|active|preventDefault|tertiaryHash|module|senconda ry|not|hidden|get_loggedInUser|loginString|requestUrl|processLogin|email|beta|PI|pathParams|getColor |for|ticker|currentOwner|String|hasOwnProperty|Date|getMonthName|January|February|March|April|May|Ju ne|July|August|September|October|November|December|slate|wrapper|havId|outerLayout|defaults|spacing_ closed|north__togglerLength_closed|north|south|initHidden|162|345|initClosed|center|contentSelector| onresize||body||Sign|Out|clearBoth|external|noProcess|statusInner|statusMessage|Loading|progressCont ainer|progressBar|historyInit|jsonObject|cookieData|productData|footerContainer|4d6e7b|674d7b|7b4d5f |728046|16000|nocookies|historyLoad||en|infoMessaage|Error|Success|springboard|springDest|springQstr |fail|Bad|ID|photoSets|before|addFickrId|No|photo|sets|found|people|findByUsername|user_id|getList|f lickrPhotos|photoset_id|getPhotos|callback|details|pack|called|userAvatarHeader|src|avatar|50_sq|ran d|random|10000|msg|Url|encode|hover|logo|useyou|XFBML|Host|parseDomTree|dictionaries|head|stylesheet |skins|media|all|abort|url|dataType|timeout|beforeSend|parsererror|Unable|to|parse|from|the|server|E xpected|2000|failed|251|complete|explode|strlen|validateEmail|test|formatDateTime|getHours|getMinute s|PM|AM|getDate|getFullYear|me|memeo|pageTracker|_trackPageview|convertBytes|kb|mb|gb|convertBytes2| KB|MB|GB|origwidth|origheight|position|relative|ratio|push|stopPropagation|690|primary|699|loading|7 02|facebookApiKey|loginStatus|processing|3000|update_user_box|spinner|fff|min|max|linecap|round|rese t|moveTo|lineTo|rainbow|unshift|pop|safari|clearTimeout|window|ready|userAgent|MSIE|reload'.split('| '),0,{}))

    If you go to http://me.memeo.com/login#login, you will see "Get file.js" under firebug/net. m.pack.js is the last but one in that link. Please let me know if you have any question.

    Thanks,

    Indira

  4. #4
    Join Date
    Oct 2009
    Posts
    3
    I have found the problem in the file where the m.pack.js file was built from.

    Thanks.

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles