Possible problem with JQuery depracated getPreventDefault()/event.returnValue

Permalink
I have a problem with one of my clients website as I can't see the toolbar and my scrolling menu is missing when I login. In this website I use a JQuery scrolling list as a menu. I used Any List Scroller JQuery plugin by musings.it

It worked pretty well until December and, since then, I haven't been able to identify the real reason for this. The only message I get from Firefox's FireBug is "Use of getPreventDefault() is deprecated. Use defaultPrevented instead."

In Chrome, I get "event.returnValue is deprecated. Please use the standard event.preventDefault() instead."

I have no idea if this is related to my problem or if it lies on another conflict between different JQuery callings.

Any one has a take on this?

Thx

View Replies:
core77 replied on at Permalink Reply
concrete5 comes with jQuery 1.7.2. So if that's ok for you simply don't include it in your template. Because it's automatically loaded from c5.

When you need another jQuery Version try to load your custom version like this:
<?php  if (!$c->isEditMode()) { ?>   <script type="text/javascript" src="<?php echo $this->getThemePath(); ?>/your_jquery_here"></script>  <?php  } ?>


So it's loaded only for the frontend view, which your users see and not for backend editing.

Tell me please if that works.
//Edit: For me the mentioned code does the job :-)
xingyijuan replied on at Permalink Reply
Thank you vladd,

it didn't help on my problem, but it did help me to rule out JQuery for the possible culprit!

I'm starting to think that my problem lies within my page_list blocks. You see I have two different page listings on this site (http://www.jeanbrillant.com/).

The first one is the one you see at the bottom of the page, that permits you to navigate though the artists work. It is a simple page_list block that uses the ALS JQuery plugin for scrolling.

The other one is a straight page_list block in a page accessible only through sing-in, with no jQuery attached to it. Neither of them appear when signing in!

While troubleshooting, I've commented out the ALS navigation one to see if it was causing the problem. It does help for my landing page, as I'm able to see the tool bar when signed in. But, once I go to the page with the other listing, the tool bar AND the page listing are missing!

So, I still haven't solved my problem although I am getting closer!

Thank you again!
mhawke replied on at Permalink Reply
mhawke
If you PM me a username and password to the site, I can log in and see what's up. Without logging in, we are blind. That's the only way we can help you. The common issue when using outside jQuery add-ons is including more than one jQuery script call.

jQuery is called all the time, front-end or back-end so you don't need to call it, but some jQuery add-ons insist on calling it, especially external forms services. These need to be isolated in iframes sometimes.