![]() |
I cant make the datetime picker run on my school project
Hi Java script Gurus.
I've been trying to figure out how to run the date_time picker java script but seems like it doesen't like me :-) date and time picker should run when you select MATH and click Date taken text box here is my problematic web: Code:
<html>Code:
<html> |
Why would you use eval() like this
Code:
eval("document.getElementById(\"thetbl"+i+"\").style.display='none'");Code:
document.getElementById("thetbl"+i).style.display='none'; |
devnull69
Quote:
thank you for your attention, that code has been advised to me by someone, I don't see any error on the javascript console regarding to that. I may do change that and use your helpful advise, but for now my main concern is to make the datetime picker work. |
In the one that you say *DOES* work you have
Code:
<script type="text/javascript" language="javascript" src="images/prototype-1.js"></script>Almost surely, the datepicker.js code *RELIES* upon those LIBRARIES (because that is what they are). So if the libraries aren't there, the datepicker.js code falls flat on its face. Mind you, I don't know this for a fact, since you don't bother to show us the code for datapicker.js, but it's a logical place to start from. In the future, when you want help with code, you need to post *ALL* the relevant code. Here, you didn't even bother to post datepicker.js. In general, if there is a lot of code to be shown, the best way to do so is to give us the URL of some page we can go look at. Oh...and repeat this MANTRA 100 times, at least: Quote:
|
And one more mantra to repeat 100 times:
Code:
language="JavaScript" is very very obsolete; I will not use it. |
Okay, mea culpa on one point. You did, indeed, give us a link to where you got datepicker.js from.
But when I go look at that page http://www.htmldrive.net/edit_media/2010/201009/20100902/Date%20Time%20Picker/datepicker.htm and do a VIEW==>>SOURCE indeed I see all those libraries, just as you showed them. So...you need them. |
Hi Old Pedant,
Many thanks on your advises, I have changed the lines the you said that are improper to use and also I have connected the libraries of date&time picker that I did before (I failed to post it previously) Here it is, but still I cant make it work: Code:
<html> |
| All times are GMT +1. The time now is 09:27 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.