javascript - Error: Syntax error, unrecognized expression: a[rel= {myString} ] -


i working on small application , got stuccked on small error.

firebug:

error: syntax error, unrecognized expression: a[rel=!a1=0,1000,0,0,0,1,0,0.4]     jquery.1.11.js (line 1471) throw new error( "syntax error, unrecognized expression: " + msg ); 

what app does:

[not important] sends form data php processinf , retrieves , display received data.

after data displayed adds link variables store data [ in case user needs send page queries other user]

at page load process repeated [script sends data; php process data; send etc]. problem error in firebug. idea?

this of code:

after form submit , data received:

function addtolink(){     /* set vars manually not important */     var tip = 0;     var suma = 1000;     var pai = 0;     var cdm = 0;     var bdm = 0;     var fdb = 1;     var sni = 0;     var mbp = 0;      var qlink = tip+','+suma+','+pai+','+cdm+','+bdm+','+fdb+','+sni+','+mbp ;         window.location = tpl2[0]+'#!'+'a1='+qlink; /* adds #!a1=0,1200,0,0,0,0,0,0 */ } 

after page has loaded [ $(document).ready( //]:

var permalink = window.location.tostring().split('#!');             if(permalink[1]){             var nrvars = permalink[1].split('&');             var data = [];                  for(var i= '0'; < nrvars.length ; i++ ){                     var qq = nrvars[i].split('=');                     var vform = qq[1].split(',');                         /*                          ** working here fvorm //                         ** setting tip_date , pia , other vars used below                         */                      var f = ['cs.'+tip_date+'&suma='+vform[1]+'&persintretinere='+pia+'&condmunca='+cod_munca+'&bonuridemasa='+vform[4]+'&functiedebaza='+fdb+'&salfixneimpozabil='+imp+'&contrambp='+vform[7]];                     data.push(f);                 }                 runlink( data ); // function makes query , displays data again on page freshly loaded.             }    

just in case gets problem: downgrade jquery 1.7. worked me. if doesen`t work, try ... real odd thing.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -