Jump to content

LightBox2 and error "No route Passed"


MVS105

Recommended Posts

First of all, I'm sorry for my poor English. But I'm sure you can understand.

I am using scripts Lightbox2

Calling the scripts are in template.tpl

/* This is required, so phpVMS can output the necessary libraries it needs */
echo $page_htmlhead; 
?>

<?php /*Any custom Javascript should be placed below this line, after the above call */ ?>

<link rel="stylesheet" href="/lib/lightbox/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/lib/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="/lib/lightbox/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/lib/lightbox/js/lightbox.js"></script>

if I put in this position (see above) shows the error "No route Passed", but lightbox work correctly.

if I put them before (see code below)

<link rel="stylesheet" href="/lib/lightbox/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/lib/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="/lib/lightbox/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/lib/lightbox/js/lightbox.js"></script>

<?php 
/* This is required, so phpVMS can output the necessary libraries it needs */
echo $page_htmlhead; 
?>

<?php /*Any custom Javascript should be placed below this line, after the above call */ ?>

No error appears but lightbox does not work.

Of course, the error appears when I go to book flight (addbid)

Report: install/checkinstall.php

phpVMS Virtual Airline Administration Software

Install Check

phpVMS Build Number: 934

Checking PHP version

[OK] PHP version is 5.2.13.x

ASP Tags

[OK] ASP-style tags are disabled

Checking connectivity...

[OK] Can contact outside servers

Checking for SimpleXML module...

[OK] SimpleXML module exists!

Checking file hashes for corrupt or mismatched files

[OK] No errors found!

-- Checked 183 files, found 0 errors

Link to comment
Share on other sites

  • Administrators

You need to use a lightbox which is compatible with jQuery. You're using prototype which conflicts with that, and will cause errors. By placing it below, you're overriding jquery, which is breaking the site.

So I'd find a lightbox which can be used with jquery (there are quite a few, colorbox, etc), and place those includes where it says to in the file

Link to comment
Share on other sites

You need to use a lightbox which is compatible with jQuery. You're using prototype which conflicts with that, and will cause errors. By placing it below, you're overriding jquery, which is breaking the site.

So I'd find a lightbox which can be used with jquery (there are quite a few, colorbox, etc), and place those includes where it says to in the file

Thank you very much for your answer

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...