How to get custom javascript to run

Posted By vswell Sat 31 Oct 2015
Add to Favorites0
Author Message
vswell
 Posted Sat 31 Oct 2015
Supreme Being

Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)

Group: Forum Members
Last Active: Sat 7 Nov 2015
Posts: 1, Visits: 10
658
Hi All-

I made a custom page that uses a jquery datepicker function and it was operational before adding kartris to my site. However, post-kartris, now it's not working. I tried adding the function to the <head> section of the template (which didn't work), and also tried making an external js. file that was referenced in the template. Has anyone had success in this area (or even ajax, etc)? I'm not too experienced with javascript. Here's the original function I used:

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script type="text/javascript">
$(function () {
$("[id$=Box]").datepicker({
showOn: 'button',
buttonImageOnly: true,
buttonImage: 'https://jqueryui.com/resources/demos/datepicker/images/calendar.gif'
});
});

</script>

It basically adds a datepicker calendar to the text boxes of a datalist that have "Box" as part of their ID....

Thanks!
Paul
 Posted Fri 27 Nov 2015
große Käse

große Käse - (522,024 reputation)große Käse - (522,024 reputation)große Käse - (522,024 reputation)große Käse - (522,024 reputation)große Käse - (522,024 reputation)große Käse - (522,024 reputation)große Käse - (522,024 reputation)große Käse - (522,024 reputation)große Käse - (522,024 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
It's probably to do with jquery. Kartris uses jquery, so it might be your data picker uses a different version. I think it's possible to run two different jquery versions in a page if you google.

--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top