Strona główna forum Wsparcie Problemy z działaniem jQuery

jQuery

Wszystkie problemy związane z działaniem sklepu...

Post 15 sty 2012, o 23:27

Posty: 61
Gadu-Gadu: 0

Witam
Mam problem z wtyczką jQuery. Tzn zainstalowałem wysuwany Facebook. Ale kiedy dodałem jQuery do pliku page.xml
<action method="addJs"><script>jquery-1.4.2.min.js</script></action>
facebook działa ale przestała działać nawigacja w zakładkach tzn. nie rozwijają się podkatalogi.
Ma ktoś pomysł jak sobie z tym poradzić?

jQuery

PostTeraz jest 20 kwi 2024, o 15:03
Google

Posty: 427
Lokalizacja: Internet

Post 16 sty 2012, o 09:12

Posty: 98
Lokalizacja: Opole
Gadu-Gadu: 0

Sprawdź w jakiejś konsoli js (typu Firebug czy inne narzędzia developerskie) jaki jest błąd, wtedy dopiero się można zorientować co się stało.

Przypuszczam jednak, że nastąpił konflikt Prototype z jQuery. Wpisz sobie na końcu pliku z jquery taki tekst:
jQuery.noConflict();
http://magento.kamilborkowski.pl/

Post 16 sty 2012, o 11:01

Posty: 61
Gadu-Gadu: 0

Witam
Napewno wystąpił konflikt z Prototype.
Jednak gdy stosuje się do instrukcji jak to pogodzić to dalej mam to samo nawet po wyczyszczeniu cache.
Inaczej jest gdy zastosuje się do instrukcji z http://blog.baobaz.com/pl/blog/prototype-i-jquery-w-magento
Wtedy zakładki działają ale wysuwany panel jeszcze nie.

Post 16 sty 2012, o 11:37

Posty: 1575
Gadu-Gadu: 0

Coś mi sie zdaje ze masz dwie deklaracje pliku jquery na stronie. sprawdź html i sprawdź dokładnie, jak bedą dwie, wywal jedną
hosting-magento.pl / magentohosting.eu - szybki hosting Magento
https://www.mage24.pl/ - twój sklep Magento 2 w 5 minut

Post 16 sty 2012, o 11:51

Posty: 61
Gadu-Gadu: 0

Jedna jest. Tylko 1.4.2

Post 16 sty 2012, o 22:06
jemoon Avatar użytkownika
Administrator

Posty: 529
Lokalizacja: Gdańsk
Gadu-Gadu: 0

witam,
Odpal stronkę w Chrome i pokaż co znajdziesz w konsoli (Ctrl + Shift + J)

Post 17 sty 2012, o 00:47

Posty: 61
Gadu-Gadu: 0

Według instrukcji:

Resource interpreted as Other but transferred with MIME type undefined.
Resource interpreted as Other but transferred with MIME type undefined.
jquery-1.3.2.min.js:19Uncaught SyntaxError: Unexpected token :
getslider.js:1Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
js.js:308Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
prototype.js:2309Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
form.js:28Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
prototype.js:5713Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
GET http://iposciel.pl/images/auctions.gif 404 (Not Found)
2Unsafe JavaScript attempt to access frame with URL http://iposciel.pl/ from frame with URL http://widget.gadu-gadu.pl/index.php?id ... aec7b3941f. Domains, protocols and ports must match.
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
Unsafe JavaScript attempt to access frame with URL http://iposciel.pl/ from frame with URL https://plusone.google.com/_/+1/fastbut ... C_resizeMe. Domains, protocols and ports must match.
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
4event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
16event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:302Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:287Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:272Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:272Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:272Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:272Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:272Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:272Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:261Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:261Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:261Uncaught ReferenceError: toggleMenu is not defined
http://iposciel.pl/:261Uncaught ReferenceError: toggleMenu is not defined
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier
Resource interpreted as Other but transferred with MIME type undefined.
core.php:2Uncaught SyntaxError: Unexpected identifier

Post 17 sty 2012, o 06:55

Posty: 61
Gadu-Gadu: 0

Zrobiłem. Działa już wszystko za wyjątkiem tego, że na stronie głównej rozjechał mi się baner. Zamiast pokazywać pokoleji banery on pokazuje wszystkie 3 naraz.
http://www.iposciel.pl

Post 17 sty 2012, o 07:02

Posty: 61
Gadu-Gadu: 0

I towarzyszy temu dziwna rzecz. Mianowicie kiedy usówam cache to zawsze po usunięciu pojawiają się pliki spowrotem. Nie zawsze w identycznej formie. Czyli nieraz jest mniej folderów tak jakby cały czas coś się działo na sklepie.

Post 17 sty 2012, o 12:12

Posty: 61
Gadu-Gadu: 0

Zamykam temat. Problemem była wtyczka jQuery, zainstalowana z magento connect. Dałem 1.4.2 do page. motywu
<action method="addJs"><script>jquery-1.4.2.min.js</script></action>
na końcu pliku jQuery dodałem
var $j = jQuery.noConflict();
Następnie dodałem uruchamianie pliku odpowiedzialnego za wysuwany box ustawiając w nim:
zamiast $ dałem $j
Problem z banerem na stronie głównej spowodowany był usunięciem wtyczki jQuery z magentoconnect. Plik odpowiedzialny za poprawne działanie dodałem do page motywu tak aby uruchamiał go jQuery 1.4.2
Wszystko śmiga aż miło :)


Powrót do Problemy z działaniem



cron