This support forum belongs to the Query Builder Gallery Module.
Query Builder has a bug tracker here: http://github.com/jafl/yui-modules/issues
| Page 2 of 2 | [ 19 posts ] | Go to page Previous1, 2 |
|
Hi John,
Sorry for late response its working some of my CSS was creating conflict, Mayank |
|
Hi John,
I try to make calendar item and init it by appendNew. The value is the next: 2_1,between,14.07.2011,14.07.2012. The problem is only 14.07.2011 is shown like this: [2_1][between][now] + - where now is the today with format dd.mm.yyyy The question: how to pass values into appendNew to make it like this [2_1][between][14.07.2011][14.07.2012] + - Thanks an advance for your answer. Regards, Petr |
|
This is a question for Mayank, since he wrote the plugin.
|
|
Hi Petr,
http://yuilibrary.com/gallery/show/querybuilder-extras can you use the above plugin instead of using the one I posted here ? Mayank |
|
Hi Mayank,
I use the plugin from the link you posted above. Petr |
|
Hi Mayank,
The problem still exists. Simple example to illustrate this problem: Code: <!DOCTYPE HTML> <html> <head> <title>YUI 3 QueryBuilder Example</title> <meta http-equiv=content-type content="text/html; charset=utf-8"> <script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.5.1/build/cssreset/reset-min.css"> </head> <body class="yui3-skin-sam"> <script type="text/javascript"> YUI({gallery:"gallery-2012.05.23-19-56",debug:true}) .use( "gallery-querybuilder-extras", function(Y) { var var_list = [ { name : 'date', type : 'calendar', text : 'date', date_format:'%c', calendar_config: { height : "215px", width : "200px", visible : true, showPrevMonth : true, showNextMonth : true, date : new Date() } }]; var ops = { calendar : [ { value : 'equal', text : 'Is' }, { value : 'between', text : 'Between', start_date : new Date(79,5,24), end_date : new Date(79,5,24), multipleValue : true } ] }; var query = new Y.QueryBuilder(var_list, ops); query.render('#query'); query.appendNew('date', ['equal', 'Sun, Jul 01, 2012 12:00:00 PM +0400']); query.appendNew('date', ['between', 'Fri, Jun 01, 2012 12:00:00 PM +0400', 'Sat, Jun 09, 2012 12:00:00 PM +0400']); }); </script> <form name="query_form"><div id="query"></div></form> </body> </html> So my question is still not answered: How to use appendNew with calendar type in query builder? Petr |
|
Hi Petr,
I'm looking in to it. Mayank |
|
Many thanks Mayank!
It's very important for my application. I'll be waiting for you answer. Petr. |
|
Hi Petr,
I've made fix and requested CDN push. Mayank |
| Page 2 of 2 | [ 19 posts ] | Go to page Previous1, 2 |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group