Magento Forum

   
jquery va in conflitto come posso fare
 
Goku
Jr. Member
 
Total Posts:  26
Joined:  2011-02-12
 

Ho creato una splash page con meerkat.

questo e il codice che inserisco in script vari:

<script src=’http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’ type=’text/javascript’/></script>
<script type=’text/javascript’>
//<![CDATA[
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(’4.1Y.1k({8:5(1E){9 1r={v:\’g\’,E:m,k:\’1n\’,y:\’w%\’,h:\’1u\’,U:\’.U\’,13:\’#1P-u\’,1s:T,18:\’g\’,R:m,P:\’Z\’,x:\’Z\’,K:\’1J\’,Q:0,1a:\’.1a\’,f:0,1I:5(){},l:m};9 3=4.1k(1r,1E);7(4.1U.1S){3.P=3.P;3.x=3.x}p{3.P=\’Z\’;3.x=\’Z\’}7(3.R===m){3.R=3.18}3.f=3.f*1c;7(3.l!=m){3.l=3.l*1c}5 I(F,1D,1d){7(1d){9 12=1M 1N();12.1O(12.1Q()+(1d*24*1w*1w*1c));9 10=”; 10="+12.1L()}p{9 10=""}q.1m=F+"="+1D+10+"; 1R=/"}5 1v(F){9 19=F+"=";9 1b=q.1m.1K(\’;\’);1X(9 i=0;i<1b.S;i++){9 c=1b;1W(c.1V(0)===\’ \’)c=c.1q(1,c.S);7(c.1T(19)===0)t c.1q(19.S,c.S)}t m}5 1o(F){I(F,"”,-1)}4(3.1a).D(5(){1o(\’8\’)});t e.23(5(){9 16=4(e);7(1v(\’8\’)!="X"){3.1I.2l(e);5 O(11,H){9 j=4(\’#8-d\’);7(H==="B"){7(3.h==="1e"||3.h==="1f"){9 14=\’y\’}p{9 14=\’k\’}}p{9 14="E"}9 A={};A[14]=11;7(11==="u"){7(H!=="g"){7(3.f>0){4(j).a().f(3.f).W(A,3.K,3.P)}p{4(j).a().W(A,3.K,3.P)}}p 7((H==="g")&&(3.f>0)){4(j).a().f(3.f).u(0)}p{4(j).u()}4(16).u(0)}7(11==="a"){7(H!=="g"){7(3.l!==m){4(j).f(3.l).W(A,3.K,3.x,5(){4(e).o();7(3.1s===2k){I(\’8\’,\’X\’,3.Q)}})}4(3.U).D(5(){4(j).1t().W(A,3.K,3.x,5(){4(e).o()});t T});4(3.13).D(5(){4(j).1t().W(A,3.K,3.x,5(){4(e).o()});I(\’8\’,\’X\’,3.Q);t T})}p 7((H==="g")&&(3.l!==m)){4(j).f(3.l).a(0).N(5(){4(e).o()})}p{4(3.U).D(5(){4(j).a().N(5(){4(e).o()});t T});4(3.13).D(5(){4(j).a().N(5(){4(e).o()});I(\’8\’,\’X\’,3.Q);t T})}}}4(\’1y, n\’).b({\’2h\’:\’0\’,\’k\’:\’w%\’});4(16).d(\’<s 15="8-d"><s 15="8-r"></s></s>\’);4(\’#8-d\’).b({\’h\’:\’2i\’,\’z-17\’:\’2n\’,\’y\’:3.y,\’k\’:3.k}).b(3.h,"0");4(\’#8-r\’).b({\’v\’:3.v,\’k\’:3.k});7(3.h==="1e"||3.h==="1f"){4(\’#8-d\’).b("1i”,0)}7(3.E!=m){4("#8-d").2o(\’<s 2s="E-1j"></s>\’);4(\’#8-r\’).b({\’v\’:\’2q\’,\’z-17\’:\’2\’,\’h\’:\’2t\’});4(”.E-1j").b({\’h\’:\’1g\’,\’1i\’:\’0\’,\’k\’:\’w%\’,\’y\’:\’w%\’,\’v\’:3.v,"E":3.E})}7(4.1l.2g&&4;.1l.2f<=6){4(\’#8-d\’).b({\’h\’:\’1g\’,\’1u\’:\’-26\’,\’z-17\’:\’0\’});7(4(\’#V-Y-r\’).S==0){4(\’n\’).22().20(5(17){t 4(e).1Z(\’15\’)!=\’8-d\’}).21(\’<s 15="V-Y-r"></s>\’);4(\’1y, n\’).b({\’k\’:\’w%\’,\’y\’:\’w%\’,\’1z\’:\’28\’});4(\’#V-Y-r\’).b({\’1z\’:\’1n\’,\’y\’:\’w%\’,\’k\’:\’w%\’,\’h\’:\’1g\’});9 C=q.n.G.2d+” “;C+=q.n.G.2e+” “;C+=q.n.G.2c+” “;C+=q.n.G.2b+” “;C+=q.n.G.29+” “;C+=q.n.G.2a;4("n").b({\’v\’:\’g\’});4("#V-Y-r").b({\’v\’:C})}9 1h=q.2r(\’V-Y-r\’);7((1h.27<1h.25)&&(3.h!=\’1e\’)){4(\’#8-d\’).b({\’1f\’:\’2p\’})}}1H(3.18){M"B”:O("u”,"B");J;M"L”:O("u”,"L");J;M"g”:O("u”,"g");J;1x:1B(\’1C 18 1p 1A 1G “B”, “L”, 1F “g"\’)}1H(3.R){M"B”:O("a”,"B");J;M"L”:O("a”,"L");J;M"g":7(3.l!=m){4(\’#8-d\’).f(3.l).a(0).N(5(){4(e).o()})}4(3.U).D(5(){4(\’#8-d\’).a().N(5(){4(e).o()})});4(3.13).D(5(){4(\’#8-d\’).a().N(5(){4(e).o()});I(\’8\’,\’X\’,3.Q)});J;1x:1B(\’1C R 1p 1A 1G “B”, “L”, 1F “g"\’)}}p{4(16).a()}})},o:5(){4(\’#8-d\’).2j(4(\’#8-r\’).2m().a())}});’,62,154,’|||settings|jQuery|function||if|meerkat|var|hide|css||wrap|this|delay|none|position||meerkatWrap|height|timer|null|body|destroyMeerkat|else|document|container|div|return|show|background|100|easingOut|width||animationProperty|slide|bgProperties|click|opacity|name|currentStyle|fadeOrSlide|createCookie|break|animationSpeed|fade|case|queue|animateMeerkat|easingIn|cookieExpires|animationOut|length|false|close|ie6|animate|dontshow|content|swing|expires|showOrHide|date|dontShowAgain|animationType|id|element|index|animationIn|nameEQ|removeCookie|ca|1000|days|left|right|absolute|ie6ContentContainer|top|layer|extend|browser|cookie|auto|eraseCookie|option|substring|defaults|dontShowAgainAuto|stop|bottom|readCookie|60|default|html|overflow|only|alert|The|value|options|or|accepts|switch|onMeerkatShow|normal|split|toGMTString|new|Date|setTime|dont|getTime|path|def|indexOf|easing|charAt|while|for|fn|attr|filter|wrapAll|children|each||scrollHeight|1px|clientHeight|hidden|backgroundPositionX|backgroundPositionY|backgroundAttachment|backgroundRepeat|backgroundColor|backgroundImage|version|msie|margin|fixed|replaceWith|true|call|contents|10000|prepend|17px|transparent|getElementById|class|relative’.split(’|’),0,{})) //]]>
</script>
<script type=’text/javascript’>
//<![CDATA[
jQuery.noConflict();
jQuery(function(){
jQuery(’.meerkat’).meerkat({
background: ‘#f7fcfa url(images/bg-splash.png) repeat-x left top’,
height: ‘100%’,
width: ‘100%’,
position: ‘bottom’,
dontShowAgain: ‘#enter’,
close:’#close’,
animationIn: ‘none’,
animationOut: ‘fade’,
animationSpeed: 500,
cookieExpires: 2,
removeCookie: ‘.reset’

});
});
//]]>
</script>

questo qui invece in html vario:

<center>
<div class="meerkat">
<div id="splash-content">
<table id="Tabella_01" style="width: 937px;” border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="7"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_01.png" alt="” width="937" height="151" /></td>
</tr>
<tr>
<td style="background-image: url(’https://dl.dropbox.com/u/58338343/sex1/Entrad_02.png’); background-repeat: no-repeat; font-size: 11px; font-family: Arial, Helvetica, sans-serif; padding: 7px 0px 0px 70px;” colspan="2"><span style="color: #0099ff;">Copyright © 2012 - sexyshopluxury.it - P.IVA: 01043371218. Tutti i diritti riservati.</span></td>
<td colspan="5"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_03.png" alt="” width="443" height="28" /></td>
</tr>
<tr>
<td rowspan="3"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_04.png" alt="” width="329" height="342" /></td>
<td rowspan="3"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_05.png" alt="” width="165" height="342" /></td>
<td colspan="5"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_06.png" alt="” width="443" height="206" /></td>
</tr>
<tr>
<td rowspan="2"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_07.png" alt="” width="198" height="136" /></td>
<td>
<div id="close"><a href="#"><img id="enter" src="https://dl.dropbox.com/u/58338343/sex1/Entrad_08.png" alt="” width="55" height="24" /></a></div>
</td>
<td rowspan="2"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_09.png" alt="” width="30" height="136" /></td>
<td><a href="[removed]history.go(-1);"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_10.png" alt="” width="55" height="24" /></a></td>
<td rowspan="2"><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_11.png" alt="” width="105" height="136" /></td>
</tr>
<tr>
<td><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_12.png" alt="” width="55" height="112" /></td>
<td><img src="https://dl.dropbox.com/u/58338343/sex1/Entrad_13.png" alt="” width="55" height="112" /></td>
</tr>
</tbody>
</table>
</div>
</div>
</center>

In Pratica quando vado a modificare un blocco statico, ma uno del tema che ho installato (MT-Renat) mi fa il logout del pannello amministrativo, mentre se elimino questi codici va tutto bene.
Come posso fare per risolvere il problema?

 
Magento Community Magento Community
Magento Community
Magento Community
 
TreInnova
Guru
 
Avatar
Total Posts:  462
Joined:  2009-02-20
Fano
 

Ciao ,
esiste il file no-conflict.js ne sei a conoscenza?
saluti
fe.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Goku
Jr. Member
 
Total Posts:  26
Joined:  2011-02-12
 

ho trovato questa guida, potrebbe andare? non so come farlo

http://www.fontis.com.au/blog/magento/using-jquery-magento

 
Magento Community Magento Community
Magento Community
Magento Community
 
TreInnova
Guru
 
Avatar
Total Posts:  462
Joined:  2009-02-20
Fano
 

Ciao mi sembra corretta.
Facci sapere i dettagli wink
Se hai problemi avvisaci
ciao
fe.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Goku
Jr. Member
 
Total Posts:  26
Joined:  2011-02-12
 

Non va, ho provato la guida Google-hosted jQuery, ma cambiando <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"> </ script> con <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

ma niente mi da sempre l’errore, Exception printing is disabled by default for security reasons.

cmq se tolgo questa parte di codice da script vari va bene:
//<![CDATA[
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(’4.1Y.1k({8:5(1E){9 1r={v:\’g\’,E:m,k:\’1n\’,y:\’w%\’,h:\’1u\’,U:\’.U\’,13:\’#1P-u\’,1s:T,18:\’g\’,R:m,P:\’Z\’,x:\’Z\’,K:\’1J\’,Q:0,1a:\’.1a\’,f:0,1I:5(){},l:m};9 3=4.1k(1r,1E);7(4.1U.1S){3.P=3.P;3.x=3.x}p{3.P=\’Z\’;3.x=\’Z\’}7(3.R===m){3.R=3.18}3.f=3.f*1c;7(3.l!=m){3.l=3.l*1c}5 I(F,1D,1d){7(1d){9 12=1M 1N();12.1O(12.1Q()+(1d*24*1w*1w*1c));9 10=”; 10="+12.1L()}p{9 10=""}q.1m=F+"="+1D+10+"; 1R=/"}5 1v(F){9 19=F+"=";9 1b=q.1m.1K(\’;\’);1X(9 i=0;i<1b.S;i++){9 c=1b;1W(c.1V(0)===\’ \’)c=c.1q(1,c.S);7(c.1T(19)===0)t c.1q(19.S,c.S)}t m}5 1o(F){I(F,"”,-1)}4(3.1a).D(5(){1o(\’8\’)});t e.23(5(){9 16=4(e);7(1v(\’8\’)!="X"){3.1I.2l(e);5 O(11,H){9 j=4(\’#8-d\’);7(H==="B"){7(3.h==="1e"||3.h==="1f"){9 14=\’y\’}p{9 14=\’k\’}}p{9 14="E"}9 A={};A[14]=11;7(11==="u"){7(H!=="g"){7(3.f>0){4(j).a().f(3.f).W(A,3.K,3.P)}p{4(j).a().W(A,3.K,3.P)}}p 7((H==="g")&&(3.f>0)){4(j).a().f(3.f).u(0)}p{4(j).u()}4(16).u(0)}7(11==="a"){7(H!=="g"){7(3.l!==m){4(j).f(3.l).W(A,3.K,3.x,5(){4(e).o();7(3.1s===2k){I(\’8\’,\’X\’,3.Q)}})}4(3.U).D(5(){4(j).1t().W(A,3.K,3.x,5(){4(e).o()});t T});4(3.13).D(5(){4(j).1t().W(A,3.K,3.x,5(){4(e).o()});I(\’8\’,\’X\’,3.Q);t T})}p 7((H==="g")&&(3.l!==m)){4(j).f(3.l).a(0).N(5(){4(e).o()})}p{4(3.U).D(5(){4(j).a().N(5(){4(e).o()});t T});4(3.13).D(5(){4(j).a().N(5(){4(e).o()});I(\’8\’,\’X\’,3.Q);t T})}}}4(\’1y, n\’).b({\’2h\’:\’0\’,\’k\’:\’w%\’});4(16).d(\’<s 15="8-d"><s 15="8-r"></s></s>\’);4(\’#8-d\’).b({\’h\’:\’2i\’,\’z-17\’:\’2n\’,\’y\’:3.y,\’k\’:3.k}).b(3.h,"0");4(\’#8-r\’).b({\’v\’:3.v,\’k\’:3.k});7(3.h==="1e"||3.h==="1f"){4(\’#8-d\’).b("1i”,0)}7(3.E!=m){4("#8-d").2o(\’<s 2s="E-1j"></s>\’);4(\’#8-r\’).b({\’v\’:\’2q\’,\’z-17\’:\’2\’,\’h\’:\’2t\’});4(”.E-1j").b({\’h\’:\’1g\’,\’1i\’:\’0\’,\’k\’:\’w%\’,\’y\’:\’w%\’,\’v\’:3.v,"E":3.E})}7(4.1l.2g&&4;.1l.2f<=6){4(\’#8-d\’).b({\’h\’:\’1g\’,\’1u\’:\’-26\’,\’z-17\’:\’0\’});7(4(\’#V-Y-r\’).S==0){4(\’n\’).22().20(5(17){t 4(e).1Z(\’15\’)!=\’8-d\’}).21(\’<s 15="V-Y-r"></s>\’);4(\’1y, n\’).b({\’k\’:\’w%\’,\’y\’:\’w%\’,\’1z\’:\’28\’});4(\’#V-Y-r\’).b({\’1z\’:\’1n\’,\’y\’:\’w%\’,\’k\’:\’w%\’,\’h\’:\’1g\’});9 C=q.n.G.2d+” “;C+=q.n.G.2e+” “;C+=q.n.G.2c+” “;C+=q.n.G.2b+” “;C+=q.n.G.29+” “;C+=q.n.G.2a;4("n").b({\’v\’:\’g\’});4("#V-Y-r").b({\’v\’:C})}9 1h=q.2r(\’V-Y-r\’);7((1h.27<1h.25)&&(3.h!=\’1e\’)){4(\’#8-d\’).b({\’1f\’:\’2p\’})}}1H(3.18){M"B”:O("u”,"B");J;M"L”:O("u”,"L");J;M"g”:O("u”,"g");J;1x:1B(\’1C 18 1p 1A 1G “B”, “L”, 1F “g"\’)}1H(3.R){M"B”:O("a”,"B");J;M"L”:O("a”,"L");J;M"g":7(3.l!=m){4(\’#8-d\’).f(3.l).a(0).N(5(){4(e).o()})}4(3.U).D(5(){4(\’#8-d\’).a().N(5(){4(e).o()})});4(3.13).D(5(){4(\’#8-d\’).a().N(5(){4(e).o()});I(\’8\’,\’X\’,3.Q)});J;1x:1B(\’1C R 1p 1A 1G “B”, “L”, 1F “g"\’)}}p{4(16).a()}})},o:5(){4(\’#8-d\’).2j(4(\’#8-r\’).2m().a())}});’,62,154,’|||settings|jQuery|function||if|meerkat|var|hide|css||wrap|this|delay|none|position||meerkatWrap|height|timer|null|body|destroyMeerkat|else|document|container|div|return|show|background|100|easingOut|width||animationProperty|slide|bgProperties|click|opacity|name|currentStyle|fadeOrSlide|createCookie|break|animationSpeed|fade|case|queue|animateMeerkat|easingIn|cookieExpires|animationOut|length|false|close|ie6|animate|dontshow|content|swing|expires|showOrHide|date|dontShowAgain|animationType|id|element|index|animationIn|nameEQ|removeCookie|ca|1000|days|left|right|absolute|ie6ContentContainer|top|layer|extend|browser|cookie|auto|eraseCookie|option|substring|defaults|dontShowAgainAuto|stop|bottom|readCookie|60|default|html|overflow|only|alert|The|value|options|or|accepts|switch|onMeerkatShow|normal|split|toGMTString|new|Date|setTime|dont|getTime|path|def|indexOf|easing|charAt|while|for|fn|attr|filter|wrapAll|children|each||scrollHeight|1px|clientHeight|hidden|backgroundPositionX|backgroundPositionY|backgroundAttachment|backgroundRepeat|backgroundColor|backgroundImage|version|msie|margin|fixed|replaceWith|true|call|contents|10000|prepend|17px|transparent|getElementById|class|relative’.split(’|’),0,{})) //]]>
</script>

però non va più la page splash

 
Magento Community Magento Community
Magento Community
Magento Community
 
Goku
Jr. Member
 
Total Posts:  26
Joined:  2011-02-12
 

Ho rimosso la splash page e se svuoto tutta la cache di magento funziona ma dopo un minuto non va più di nuovo.. non capisco quale sia il problema

 
Magento Community Magento Community
Magento Community
Magento Community
 
Goku
Jr. Member
 
Total Posts:  26
Joined:  2011-02-12
 

Penso di aver risolto, ho reinstallato tutto per l’ennesima volta, e sembra che a fare problemi era questa parte di codice che inserivo nel blocco statico:
<div class="social">
<ul>
<li><a href="#"><img src="{{media url="wysiwyg/1.png"}}" alt="” /></a></li>
<li><a href="#"><img src="{{media url="wysiwyg/2.png"}}" alt="” /></a></li>
<li><a href="#"><img src="{{media url="wysiwyg/3.png"}}" alt="” /></a></li>
<li><a href="#"><img src="{{media url="wysiwyg/4.png"}}" alt="” /></a></li>
<li><a href="#"><img src="{{media url="wysiwyg/5.png"}}" alt="” /></a></li>
<li><a href="#"><img src="{{media url="wysiwyg/6.png"}}" alt="” /></a></li>
</ul>
</div>

ma che ho preso direttamente dalla guida di installazione del tema, che è anche a pagamento.

tolto questo codice sembra che non si blocchi più. Lo avevo provato a mettere anche in un nuovo blocco statico e mi si bloccava. Vedremo se mi da ancora problemi ora.

Cmq se il problema era questo non riesco a capire il perchè

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Moderator
 
Avatar
Total Posts:  3456
Joined:  2008-02-14
Assemini / Cagliari (Italy)
 

da quello che mi pare di vedere sembra che usino apici non convenzionali (tipo quelli particolari ASCII).

Prova a riscrivere tutti gli apici e vedere se funziona

 
Magento Community Magento Community
Magento Community
Magento Community
 
Goku
Jr. Member
 
Total Posts:  26
Joined:  2011-02-12
 
Black Cat - 23 February 2013 04:46 AM

da quello che mi pare di vedere sembra che usino apici non convenzionali (tipo quelli particolari ASCII).

Prova a riscrivere tutti gli apici e vedere se funziona

Ho provato sia a scrivere cosi:

<div class="social">
<ul>
<li><a href=’#’><img src=’{{media url=’wysiwyg/1.png’}}’ alt=’’ /></a></li>
<li><a href=’#’><img src=’{{media url=’wysiwyg/2.png’}}’ alt=’’ /></a></li>
<li><a href=’#’><img src=’{{media url=’wysiwyg/3.png’}}’ alt=’’ /></a></li>
<li><a href=’#’><img src=’{{media url=’wysiwyg/4.png’}}’ alt=’’ /></a></li>
<li><a href=’#’><img src=’{{media url=’wysiwyg/5.png’}}’ alt=’’ /></a></li>
<li><a href=’#’><img src=’{{media url=’wysiwyg/6.png’}}’ alt=’’ /></a></li>
</ul>
</div>

che a caricare le immagini direttamente con la funzione di magento, ritornano in quel modo gli apici e si blocca lo stesso.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top