Jump to content

JQuery for Bootstrap and "no route Passed"


Tato123

Recommended Posts

Hello everyone,

I'm doing the new skin using Bootstrap for my company, but I have some serious problems.

In layout.tpl file I need to call jquery.js

<code> <script src = "<? php echo SITE_URL?> / lib / skins / Virtualiroma2 / js / jquery.js"> </ script> </ code>

Most likely the script is in conflict with that in the file called core_htmlread.tpl

<script type = "text / javascript">

var baseurl = "<? php echo SITE_URL;?>";

GeoURL var = "<? php echo GEONAME_URL;?>";

</ script>

<link rel = "stylesheet" media = "all" type = "text / css" href = "<? php echo fileURL ('lib / css / phpvms.css')?>" />

<meta http-equiv = "Content-Type" content = "text / html; charset = <? php echo Config :: Get ('page_encoding');?>" />

<script type = "text / javascript" src = "http://ajax.googleap...jquery.min.js"> </ script>

<script type = "text / javascript" src = "http://ajax.googleap...ery-ui.min.js"> </ script>

<script type = "text / javascript" src = "http://maps.google.c...s?sensor=true"> </ script>

<script type = "text / javascript" src = "<? php echo fileURL ('lib / js / jquery.form.js');?>"> </ script>

<script type = "text / javascript" src = "<? php echo fileURL ('lib / js / phpvms.js');?>"> </ script>

<script type = "text / javascript" src = "<? php echo fileURL ('lib / js / jquery.dataTables.js');?>"> </ script>

<? php

echo $ MODULE_HEAD_INC;

If you recall from the script file layout.tpl when I try to book a flight "addbid" the system responds with "no route passed".

If off the script, the system works properly.

Does anyone know how to help me upgrade JQuery or if there is any solution?

I tried to search the forum, there are many similar post but was not able to solve the problem.

Thank You and Good Year 2015 to all

Link to comment
Share on other sites

You can either get rid of your own call to jQuery, or replace the file included with phpVMS and update the head tpl. I would opt for the first as you can't be certain a newer version of jQuery is compatible with the phpVMS code.

Which is extremely frustrating when you need the current version.

Link to comment
Share on other sites

You can either get rid of your own call to jQuery, or replace the file included with phpVMS and update the head tpl. I would opt for the first as you can't be certain a newer version of jQuery is compatible with the phpVMS code.

Hi Tom,

if I remove the call, menus do not work , if I use the call phpvms, menus do not work too because Bootstrap's Javascript requires jQuery version 1.9.1 or higher,

Link to comment
Share on other sites

Both true. Try replacing the core_head one with a newer version (still from Google CDN). It should still be available for bootstrap here. You'll probably just want to go through your site and check things that phpVMS uses jQuery for are still working.

Link to comment
Share on other sites

I tried with the above but nothing

I plugged in the script file core_htmlhead

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

but the system answe "No route passed"

Have you removed your own reference to jQuery?

Link to comment
Share on other sites

  • Administrators

You can take a look here -> https://github.com/DavidJClark/phpvms_5.5.x/commit/bff6cd07674635a389c0336264664506644bf489 <- I made some changes to allow the functions from phpVMS to work with newer versions of jquery, not pretty right now but it does work. You may want to take a look at that and see if you can work it into your site.

Link to comment
Share on other sites

Try this, it worked for me

In your header you will have something like this

<script>
$(document).ready(function() {
//Retina Image
$('img.retina').retina('@2x');
//LayerSlider Settings
$('#layerslider').layerSlider({
skinsPath : 'images/layerslider_skins/',
skin : 'borderlessdark',
slideDelay : 5800,
slideDirection : 'fade',
thumbnailNavigation : false,
navButtons : false,
navStartStop : false,
navPrevNext : true,
hoverPrevNext : true,
pauseOnHover : false,
responsive : true
});
</script>

Place this line of code in so it looks like this "var $j = jQuery.noConflict();"

<script>
$(document).ready(function() {
//Retina Image
$('img.retina').retina('@2x');

//LayerSlider Settings
$('#layerslider').layerSlider({
skinsPath : 'images/layerslider_skins/',
skin : 'borderlessdark',
slideDelay : 5800,
slideDirection : 'fade',
thumbnailNavigation : false,
navButtons : false,
navStartStop : false,
navPrevNext : true,
hoverPrevNext : true,
pauseOnHover : false,
responsive : true
});

var $j = jQuery.noConflict();

</script>

Now replace the $ with jQuery so now it will look like this

<script>
jQuery(document).ready(function() {
//Retina Image
jQuery('img.retina').retina('@2x');
//LayerSlider Settings
jQuery('#layerslider').layerSlider({
skinsPath : 'images/layerslider_skins/',
skin : 'borderlessdark',
slideDelay : 5800,
slideDirection : 'fade',
thumbnailNavigation : false,
navButtons : false,
navStartStop : false,
navPrevNext : true, 
hoverPrevNext : true,
pauseOnHover : false,
responsive : true
});

var $j = jQuery.noConflict();

</script>

Report back and let me know. If not send me a pm of your header and I will have a look at it for you

Link to comment
Share on other sites

  • 2 months later...

You can take a look here -> https://github.com/D...4664506644bf489 <- I made some changes to allow the functions from phpVMS to work with newer versions of jquery, not pretty right now but it does work. You may want to take a look at that and see if you can work it into your site.

I have this error

Strict Standards: Non-static method SchedulesData::setBidOnSchedule() should not be called statically in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\newvar\core\common\SchedulesData.class.php on line 785

Bid added

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...