Forgot?

set REL using JS

Reply Topic
Link to this post 22 Jan 12

I am trying to fire a shadowbox window by including the rel attribute to a given link using JS, something like:


$ES('a','serveis_box').each(function(el) {
el.setAttribute('rel','shadowbox');


note: I am using mootools not JQuery that's why $ES

If i look into my dom inspector i see as all links i want are updated with the rel="shadowbox" attribute but it does not works.

any trick to script that not on the server-side ?

Link to this post 24 Jan 12

Hi pere1,

I'm afraid this is not possible what you want.
I tried to do some tests but unfortunately Firefox totally crashed.
Ninja Shadowbox needs to make use of it's scripts in order to work.
I guess the way want to approach might cause conflicts between scripts.

What you can try to do is to choose different Javascript Libraries within the settings of Ninja Shadowbox under Module Parameters.

Can you post a link to the page in question, please?

Let us know how it goes.
Thanks.

Kind regards,
John

Home Forum Joomla Extension Support Ninja Shadowbox & Ninja ShadowPanel set REL using JS