[ 19 posts ] Go to page Previous1, 2

Mayank Gupta

YUI Contributor

  • Username: mzgupta
  • Joined: Sun Jul 31, 2011 1:40 pm
  • Posts: 42
  • GitHub: mzgupta
  • Gists: mzgupta
  • Offline
  • Profile
Tags:

Re: Including Calendar as a value

Post Posted: Tue Feb 21, 2012 5:33 pm
+0-
Hi John,

Sorry for late response its working some of my CSS was creating conflict,


Mayank

petrnaumenko

  • Joined: Sat Jul 14, 2012 2:54 am
  • Posts: 4
  • Offline
  • Profile

Re: Including Calendar as a value

Post Posted: Sat Jul 14, 2012 3:05 am
+0-
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

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 352
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile

Re: Including Calendar as a value

Post Posted: Sat Jul 14, 2012 11:16 am
+0-
This is a question for Mayank, since he wrote the plugin.

Mayank Gupta

YUI Contributor

  • Username: mzgupta
  • Joined: Sun Jul 31, 2011 1:40 pm
  • Posts: 42
  • GitHub: mzgupta
  • Gists: mzgupta
  • Offline
  • Profile

Re: Including Calendar as a value

Post Posted: Sat Jul 14, 2012 11:48 am
+0-
Hi Petr,

http://yuilibrary.com/gallery/show/querybuilder-extras

can you use the above plugin instead of using the one I posted here ?

Mayank

petrnaumenko

  • Joined: Sat Jul 14, 2012 2:54 am
  • Posts: 4
  • Offline
  • Profile

Re: Including Calendar as a value

Post Posted: Tue Jul 24, 2012 1:22 am
+0-
Hi Mayank,

I use the plugin from the link you posted above.

Petr

petrnaumenko

  • Joined: Sat Jul 14, 2012 2:54 am
  • Posts: 4
  • Offline
  • Profile
Tags:

Re: Including Calendar as a value

Post Posted: Mon Jul 30, 2012 11:20 pm
+0-
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

Mayank Gupta

YUI Contributor

  • Username: mzgupta
  • Joined: Sun Jul 31, 2011 1:40 pm
  • Posts: 42
  • GitHub: mzgupta
  • Gists: mzgupta
  • Offline
  • Profile

Re: Including Calendar as a value

Post Posted: Tue Jul 31, 2012 6:17 am
+0-
Hi Petr,

I'm looking in to it.

Mayank

petrnaumenko

  • Joined: Sat Jul 14, 2012 2:54 am
  • Posts: 4
  • Offline
  • Profile

Re: Including Calendar as a value

Post Posted: Tue Jul 31, 2012 10:49 am
+0-
Many thanks Mayank!

It's very important for my application. I'll be waiting for you answer.

Petr.

Mayank Gupta

YUI Contributor

  • Username: mzgupta
  • Joined: Sun Jul 31, 2011 1:40 pm
  • Posts: 42
  • GitHub: mzgupta
  • Gists: mzgupta
  • Offline
  • Profile

Re: Including Calendar as a value

Post Posted: Wed Aug 01, 2012 6:45 am
+0-
Hi Petr,

I've made fix and requested CDN push.

Mayank
  [ 19 posts ] Go to page Previous1, 2
Display posts from previous:  Sort by  
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