0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

How to call RokBox via jscript

    • AndrewG's Avatar
    • AndrewG
    • Jr. Rocketeer
    • Posts: 25
    • Thanks: 0

    How to call RokBox via jscript

    Posted 16 years 4 months ago
    • Hi All

      I have RokBox standalone installed and it works great except one thing - I need to call it from jscript function. How can I do this?

      what I need is to call it as jscript with a page URL as an argument.

      Please, advise, if there is a way of doing this

      Thanks
    • Ragdata's Avatar
    • Ragdata
    • Elite Rocketeer
    • Posts: 614
    • Thanks: 0
    • Software Engineer

    Re: How to call RokBox via jscript

    Posted 16 years 4 months ago
    • I THINK you're gonna be pushing it uphill with a pointy stick to get this working mate.

      While I haven't been through the RokBox code with a fine-toothed comb (it's packed and a little difficult to read), I can tell you that it APPEARS to work in the same way as other libraries that offer similar functionality.

      That is, on page load, an init function is called which scans the page for the rel="rokbox[675 450] (gallery)" attributes of link tags and sets the appropriate wheels in motion based upon these.

      Now, you may be able to spend a few sleepless days attempting to read the RokBox (or similar) code and attempt to find a way to force-feed the script a set of values through your own custom init function ...

      Personally, I'd probably look for another way to achieve what you're after.

      Unless, of course, someone else has a magic answer.
    • Ragdata's Rubber Duck
      www.ragdata.net/
    • AndrewG's Avatar
    • AndrewG
    • Jr. Rocketeer
    • Posts: 25
    • Thanks: 0

    Re: How to call RokBox via jscript

    Posted 16 years 4 months ago
    • Thanks, it looks as i need to look for some better solutions. I have been using facebos and greybox as well. greybox is the easiest to implement, but looks really ugly comparing with RokBox, which generates a crazy set of divs on the bottom of the page (before a body closing tag).
    • Ragdata's Avatar
    • Ragdata
    • Elite Rocketeer
    • Posts: 614
    • Thanks: 0
    • Software Engineer

    Re: How to call RokBox via jscript

    Posted 16 years 4 months ago
    • To understand the technology, I tore my way through Thickbox. Definately not as pretty as RokBox (then again, what is) but gave me a good handle on the technique. It sits on top of the JQuery library rather than mootools - but offers plenty of options so that you can "pretty it up" if you find a way to do what you want with it.

      See my post on their forum for information on how to resolve conflicts.
    • Ragdata's Rubber Duck
      www.ragdata.net/

Time to create page: 0.086 seconds