Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16715 > unrolled thread
| Started by | Ugo <ugo@nospam.it> |
|---|---|
| First post | 2012-10-18 21:31 +0200 |
| Last post | 2012-10-19 17:51 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.javascript
Jquery datapicker passing date value to an iframe page Ugo <ugo@nospam.it> - 2012-10-18 21:31 +0200
Re: Jquery datapicker passing date value to an iframe page "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-19 09:22 +0200
Re: Jquery datapicker passing date value to an iframe page Gregor Kofler <usenet@gregorkofler.com> - 2012-10-19 17:51 +0200
| From | Ugo <ugo@nospam.it> |
|---|---|
| Date | 2012-10-18 21:31 +0200 |
| Subject | Jquery datapicker passing date value to an iframe page |
| Message-ID | <508058f5$0$17944$4fafbaef@reader1.news.tin.it> |
Hi,
I'm trying to use jquery datepicker and the result I want is to select a
date from it and display the data referred to the date take from a mysql
database.
I don't have a precise idea if is better an iframe or a page reload and
unlikely my javascript skill in very low
regards
if needed i will try to explain better what I want to do
I'm sorry for my bad english
Ugo
here my current code
<script type="text/javascript">
$(function() {
$( "#tab_dati_storici_principale" ).tabs();
});
</script>
<script>
$(function() {
var opzioni_calendario_giornaliero = ({
dateFormat: 'dd/mm/yy',
maxDate: "+10",
showOn: "button",
buttonImage:
"../../../file_comuni/javascript/jquery_ui/css/images/calendar.gif",
buttonImageOnly: true,
prevText: "Ieri",
currentText: "Oggi",
monthNames:
["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio",'Agosto',"Settembre","Ottobre","Novembre","Dicembre"],
monthNamesShort:
["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],
dayNames:
["Domenica","Lunedí","Martedí","Mercoledí","Giovedí","Venerdí","Sabato"],
dayNamesShort: ['Dom','Lun','Mar','Mer;','Gio','Ven','Sab'],
dayNamesMin: ["Do","Lu","Ma","Me","Gi","Ve","Sa"],
altField : '#alt-datepicker',
altFormat : "@",
});
$("#calendario_giornaliero").datepicker(opzioni_calendario_giornaliero);
});
</script>
</head>
<body>
<section>
<div id="tab_dati_storici_principale">
<ul>
<li><a href="#tab-1">Dati giornalieri</a></li>
<li><a href="#tab-2">Dati mensili</a></li>
<li><a href="#tab-3">Dati ammuali</a></li>
<li><a href="#tab-4">Eventi significativi</a></li>
</ul>
<div id="tab-1">
<input type="text" name="datepicker"
id="calendario_giornaliero">
some code here?
</div>
<div id="tab-2">
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo
a, risus. Curabitur nec arcu. Done</p>
</div>
</div>
</section>
</body>
[toc] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2012-10-19 09:22 +0200 |
| Message-ID | <XnsA0F15F4A1FF1Ceejj99@194.109.133.133> |
| In reply to | #16715 |
Ugo wrote on 18 okt 2012 in comp.lang.javascript: > I'm trying to use jquery datepicker and the result I want is to select a > date from it and display the data referred to the date take from a mysql > database. > > I don't have a precise idea if is better an iframe or a page reload and > unlikely my javascript skill in very low There seem to be jquery groups around, where you could better ask jquery questions, overhere the use of jquery is not held in high esteem by most of us. The typical use of jquery to mask "javascript skill is very low" is exemplary. Why not first learn plain Javascript and it's debugging before trying bad javascript libraries? === Why should a date-picker pass data, that is the task of form submission, or a seperate javascript construct. Where you put the results of a form with date-data-content has nothing to do with how those date-data were aquired. It could be that you need the date serverside, or bounce it back with Ajax, or use it on another or the reloaded same page, that all depends on the task you want to implement. You could even send the date-data-value to the server as part of a javascript image-preload request, if you do not need any response to the clientside screen. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Gregor Kofler <usenet@gregorkofler.com> |
|---|---|
| Date | 2012-10-19 17:51 +0200 |
| Message-ID | <k5rsts$b8k$1@dont-email.me> |
| In reply to | #16715 |
Am 2012-10-18 21:31, Ugo meinte: > Hi, > > I'm trying to use jquery datepicker and the result I want is to select a > date from it and display the data referred to the date take from a mysql > database. The datepicker alone won't help (unless it has some fancy XHR functionality). Either a form has to be submitted after you picked the date (manually or via JS won't matter), or you trigger an XMLHttpRequest to transfer your data. Gregor
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web