Lightbox issues :(

  • andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #1 by andrew
Lightbox issues :( was created by andrew
Hi, the joomdle plugin works great, love it! but i have a problem - my moodle website uses a lightbox to open images and i would like these to open in the parent window. Now, i have managed to get this working when manually inserting moodle into joomla by using my own iframe; it works great. However, when using the joomdle plugin, the lightbox doesn't load. I imagine this is something to do with the ajax code of joomdle but im totally lost as to what could be causing this.

Im i trying to implement the impossible?

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

  • andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #2 by andrew
Replied by andrew on topic Lightbox issues :(
here is the script that should load:

Slimbox 2 example page

GET jquery.min.js

304 Not Modified

ajax.googleapis.com

32.7 KB

173.194.66.95:443


14ms

GET jquerynoconflict.js

304 Not Modified

humbersidefireelearning.com

20 B

83.142.230.108:80


17ms

GET slimbox2.js

304 Not Modified

humbersidefireelearning.com

4.4 KB

83.142.230.108:80


30ms

GET autoLinkImg.js

304 Not Modified

humbersidefireelearning.com

849 B

83.142.230.108:80


33ms

GET jquery.min.js

304 Not Modified

ajax.googleapis.com

32.7 KB

173.194.66.95:443


15ms

GET jquerynoconflict.js

304 Not Modified

humbersidefireelearning.com

20 B

83.142.230.108:80


22ms

GET autoLinkImg.js

304 Not Modified

humbersidefireelearning.com

849 B

83.142.230.108:80


17ms

GET showHide.js

304 Not Modified

humbersidefireelearning.com

1.3 KB

83.142.230.108:80


17ms

GET yui_combo.php?rollup/3....&rollup/-1/mcore-min.js

200 OK

humbersidefireelearning.com

86.3 KB

83.142.230.108:80


145ms

GET javascript-static.js

200 OK

humbersidefireelearning.com

66.8 KB

83.142.230.108:80


100ms

GET footer

304 Not Modified

humbersidefireelearning.com

529 B

83.142.230.108:80


212ms

GET yui_combo.php?m/-1/them...tstrap/bootstrap-min.js

200 OK

humbersidefireelearning.com

1.9 KB

83.142.230.108:80


116ms

GET yui_combo.php?m/-1/bloc...ation/navigation-min.js

200 OK

humbersidefireelearning.com

3.0 KB

83.142.230.108:80


142ms

GET yui_combo.php?3.15.0/pl...nt-tap/event-tap-min.js

304 Not Modified

humbersidefireelearning.com

5.1 KB

83.142.230.108:80


130ms

GET yui_combo.php?m/-1/core...croll/lockscroll-min.js

200 OK

humbersidefireelearning.com

488 B

83.142.230.108:80


77ms

GET yui_combo.php?m/-1/core...er/loader/loader-min.js

200 OK

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

  • andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #3 by andrew
Replied by andrew on topic Lightbox issues :(
here is the script that does load:

GET yui_combo.php?rollup/3....&rollup/-1/mcore-min.js

200 OK

humbersidefireelearning.com

86.3 KB

83.142.230.108:80


92ms

GET javascript-static.js

200 OK

humbersidefireelearning.com

66.8 KB

83.142.230.108:80


88ms

GET yui_combo.php?m/-1/them...tstrap/bootstrap-min.js

200 OK

humbersidefireelearning.com

1.9 KB

83.142.230.108:80


80ms

GET yui_combo.php?m/-1/bloc...ation/navigation-min.js

200 OK

humbersidefireelearning.com

3.0 KB

83.142.230.108:80


73ms

GET yui_combo.php?m/-1/core...croll/lockscroll-min.js

200 OK

humbersidefireelearning.com

488 B

83.142.230.108:80


75ms

GET yui_combo.php?m/-1/core...er/loader/loader-min.js

200 OK

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

  • andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #4 by andrew
Replied by andrew on topic Lightbox issues :(
Right, i'm getting somewhere now. My lightbox works for the first iframe that joomdle loads. It look like subsequent page navigation's within the iframe are loaded dynamically using ajax. So what i would need to do is have the ajax script call my ligthbox script every time a new page is sent through. If anybody could let me know where script is that deals with this it would be greatly appreciated.

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

  • andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #5 by andrew
Replied by andrew on topic Lightbox issues :(
Ok, for anybody reading i managed to get my lightbox script to load by calling it from the autoheight script in the joomdle plugin. There might be a better way to call this but it works!

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

More
11 years 10 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Lightbox issues :(
Hi.

I am sorry but I cannot help you more, although it seems you sorted it out :)
I am not much into Javascript, so I don't even understand what you did. If you share your modifications I can try to learn a little ;)

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

  • andrew
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 10 months ago #7 by andrew
Replied by andrew on topic Lightbox issues :(
Antonio, you wont learn much from me tbh :) . My js skills are somewhat limited. All i did here was use the slimbox2 code (available online) to load the lightbox in the parent frame. What i hadn't realized was that the content within the joomdle iframe was loading dynamically. To combat this i found the autoheight script which I new loaded everytime a new age was opened and then simply apended the call to the slimbox2 script to the end of this code.

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

More
11 years 9 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Lightbox issues :(
Thanks for the info. If anyone comes around with a similar problem, I'll direct them to you ;)

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