Hi Ilkka, thanks; I must admit that I'd prefer to find a simpler solution, but if everything else fails your solution would indeeed help me to get along.
Thanks again, greetings Stefan On 09.02.2010 19:10, Ilkka Oksanen wrote: > Hi Stevan, > > This is not Qooxdoo related proposal but if you have the date as a sting > in one format and want just to convert it to another format can't you > just do: > > var date = "Tue Feb 09 2010 00:00:00 GMT+0100"; > var m=[]; > > m["Jan"]="01";m["Feb"]="02";m["Mar"]="03";m["Apr"]="04";m["May"]="05";m["Jun"]="06"; > m["Jul"]="07";m["Aug"]="08";m["Sep"]="09";m["Oct"]="10";m["Nov"]="11";m["Dec"]="12"; > > f = date.match(/^\w+ (\w+) (\d+) (\d+)/); > > var newdate = f[3] + "/" + m[f[1]] + "/" + f[2]; > > alert(newdate); > > Or similar. > > -ilkka > > On Tue, Feb 9, 2010 at 7:13 PM, Stefan Volbers <[email protected] > <mailto:[email protected]>> wrote: > > Hi there, > > since the form api changed in qooxdoo 1.0, there seems to be no > (documented) way to read the value which is entered into the DateField's > input widget. > > Actually I need to transmit the literal value displayed in the DateField > to the database backend ("2010/02/09"), not the javascript date object > string ("Tue Feb 09 2010 00:00:00 GMT+0100"). This breaks on the qooxdoo > 1.0 migration. Plus, I export a data report into a pdf, parameters are > coded into GET parameters; this breaks, too, and forces me to handle > different data consumers. Way too much hassle, so I'd prefer to stay > with the classic date representation. > > This thing cost me nearly the entire last night (trying to fix the pdf > report class, ultimately finding that the solution breaks in IE7...). > > No idea if DateField's getContentElement() method would the way to go, > and I'm sick of trial-and-error for today, so I'd really appreciate any > clue... > > Greetings, > Stefan ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
