Joomla 1.6 - Select Button - Javascript Error

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 4 months ago #3822

Display / Content Menus / ...
Click on Select button get following error:

uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOM3Node.compareDocumentPosition]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://brain-home2/Jonathan/Joomla%201.6/media/system/js/mootools-core.js :: anonymous :: line 2176" data: no]

following Ajax GET.

Please Log in or Create an account to join the conversation.

  • Posts: 81567
  • Thank you received: 13077
  • MODERATOR
13 years 4 months ago #3823

It seems to be a new bug with joomal 1.6... If you try to load a popup dynamically with the code SqueezeBox.fromElement(this); it throws that error...That's shouldn't be the case since it's the standard way of loading popups dynamically with the modal library of mootools.
Not sure if we can fix that on our end.
For the "parent category" popup, no problem, we can just remove it and use the standard way of loading popups.
But for the associated modules popup, the link URL is changed dynamically and thus needs to be loaded dynamically.

Please Log in or Create an account to join the conversation.

  • Posts: 81567
  • Thank you received: 13077
  • MODERATOR
13 years 4 months ago #3824

After some digging,

It seems that by changing the code:
SqueezeBox.fromElement(this);
to:
SqueezeBox.fromElement(this,{parse:'rel'});
It works for both joomla 1.5 and joomla 1.6

Could you confirm that on your end by editing the file adminsitrator/components/com_hikashop/views/menus/tmpl/form.php and doing that change ?
For us, that did the job.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 4 months ago #3830

Work for me as well in both 1.5 and 1.6.

Also had to make same change in:
administrator/components/com_hikashop/views/modules/tmpl/form.php

Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum