Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-01-2013, 02:47 PM   PM User | #1
gerdydog
New to the CF scene

 
Join Date: Jan 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
gerdydog is an unknown quantity at this point
Help Calendar wont appear

Hi,

Can someone please help me. If you go to the following web address: http://www.belfast-hen-stag.co.uk//h...-hotel-belfast you will see a button called "check dates". When you push this a drop down calendar is meant to appear but all that is happening is that the loading circle is spinning.

Can someone please tell me if this is a javascript problem.

Thanks for you time.

Gerard
gerdydog is offline   Reply With Quote
Old 01-02-2013, 03:38 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,362
Thanks: 18
Thanked 347 Times in 346 Posts
sunfighter is on a distinguished road
Any time you change the web page you have to use javascript or some framework like jquery or mootools. So yes this is a js problem, but I can't find it. Here's what your button looks like:
Code:
<span class="button button-white trigger open">
<button class="reservation" name="check-button" value = "Check dates" type = 'button'>Check dates</button>
</span>
I see no onclick instructions so I assume it's controlled by jquery, But can't find it in the html of the page. Here are some external sheets the code calls. You might want to look there. Hope you can do a search across all files.
Code:
  <script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/media/system/js/core.js" type="text/javascript"></script>
  <script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="/media/system/js/modal.js" type="text/javascript"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
  <script src="/components/com_k2/js/k2.js" type="text/javascript"></script>
  <script src="/administrator/components/com_jhotelreservation/assets/utils.js" type="text/javascript"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="/administrator/components/com_jhotelreservation/assets/jquery-ui.min.js" type="text/javascript"></script>
  <script src="/administrator/components/com_jhotelreservation/assets/js/jquery.blockUI.js" type="text/javascript"></script>
  <script src="/administrator/components/com_jhotelreservation/assets/image.js" type="text/javascript"></script>
  <script src="/components/com_jhotelreservation/assets/js/jquery.opacityrollover.js" type="text/javascript"></script>
  <script src="/components/com_jhotelreservation/assets/js/jquery.galleriffic.js" type="text/javascript"></script>
  <script src="/components/com_jhotelreservation/assets/js/jhotelreservationcalendar.js" type="text/javascript"></script>
  <script src="/media/system/js/calendar.js" type="text/javascript"></script>
  <script src="/media/system/js/calendar-setup.js" type="text/javascript"></script>
  <script src="/components/com_jhotelreservation/assets/js/search.js" type="text/javascript"></script>
  <script src="http://www.belfast-hen-stag.co.uk/templates/gk_finance_business/js/menu.gkmenu.js" type="text/javascript"></script>
  <script src="http://www.belfast-hen-stag.co.uk/templates/gk_finance_business/js/gk.scripts.js" type="text/javascript"></script>
  <script src="/media/system/js/validate.js" type="text/javascript"></script>
  <script src="http://api.recaptcha.net/js/recaptcha_ajax.js" type="text/javascript"></script>
I'd start here:
Code:
  <script src="/media/system/js/calendar.js" type="text/javascript"></script>
  <script src="/media/system/js/calendar-setup.js" type="text/javascript"></script>
sunfighter is offline   Reply With Quote
Old 01-03-2013, 01:07 AM   PM User | #3
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 453 Times in 451 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
If that is the list of external scripts you are including, I'm surprised your page works at all - I count two versions of jQuery PLUS mootools

have a look here for some reasons why this is a bad idea
xelawho is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:22 AM.


Advertisement
Log in to turn off these ads.