PHP XAJAX versus Lightbox JS

Posted on 2007-07-26
Last Modified: 2010-08-05
I could not find any fixes except on a russian bulletin board (I don't speak russian btw).

I am cutting and pasting this into a xajax page that will draw the images. And it outputs everything correctly.
But the images are not envoking lightbox, instead they are just going to the image directly.

<script type="text/javascript" src="../_js/prototype.js"></script>
<script type="text/javascript" src="../_js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="../_js/lightbox.js"></script>

<a href="image.jpg" rel="lightbox[butter]">    <img src="image.jpg" width = "120" height ="77" /></a>

I was thinking that the images are registered with lightbox on load and not on event.

Any ideas?

Thanks in advance.
Question by:bergstrom_davin
    LVL 17

    Accepted Solution

    use bable fish to translate that page and see if the russions have a valid solution:
    LVL 1

    Author Comment

    Babel fish won't translate. Taking a second look at the page I am not sure what language it is in.
    LVL 17

    Assisted Solution

    LVL 1

    Author Comment

    Couldn't get it to so I am using greybox instead since it has built in onclick commands rather than relying on a rels.

    Thanks for your input.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now