Using JavaScript variable in freemarker
anjibman <[email protected]> Wed, 21 Aug 2013 21:04:14 -0700 (PDT)
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All.
I have Java Date type field return from back end using jQuery AJAX. It can
be access as like
var accessDate = response.book.accessDate;
alert(accessDate);
Since its value is in millisecond i need to display in webpage as
mm/dd/yyyy. I didn't find easy way to do through JavaScript so I am planning
to use freemarker date function something like
${response.book.accessDate?date?string.short}
how can i copy JavaScript var to freemarker data-model to do date
formatting?
--
View this message in context: http://freemarker.624813.n4.nabble.com/Using-JavaScript-variable-in-freemarker-tp4654735.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk