yes

working in live site
I will be able to add others easily now
thank you so much

f

On Jun 12, 10:38 am, fib <[email protected]> wrote:
> wow
> that appears to work
>
> really appreciated - amazing how you can get so excited over a line of
> code
>
> very happy - will report when put into the main site
> thank you so much for your time
> fib
>
> On Jun 12, 10:15 am, Ca-Phun Ung <[email protected]> wrote:
>
>
>
> > Hm, the demo page is really slow to load up for me. I couldn't see the page
> > in action but managed to view source. The problem I think is to do with the
> > getter and setter code above as it assumes the ID's are always there. Try to
> > do a check for each input first before calling the code... i.e.:
>
> > if ($("#datepk-back-mkt-em").length) {
>
> >     // do marketing code
>
> > }
> > On Fri, Jun 12, 2009 at 4:57 PM, fib <[email protected]> wrote:
>
> > > Thank you for your response
> > > can you see enough from this
> > >http://studio3.org/demo/
>
> > > thank you in advance
> > > I want to use several across a site and need to know how to do it
>
> > > fib
>
> > > On Jun 12, 9:24 am, Ca-Phun Ung <[email protected]> wrote:
> > > > Hi,
>
> > > > Other than the fact that "ChangeMonth" should be "changeMonth", I could
> > > not
> > > > see a problem with the code pasted above. Do you have an example page
> > > online
> > > > demonstrating your page not working?
>
> > > > Thanks.
>
> > > > On Thu, Jun 11, 2009 at 9:49 PM, fib <[email protected]> wrote:
>
> > > > > Hi all
> > > > > I know this is a bit of a rookie question but I am using 1 header file
> > > > > across the site and have different date pickers which need different
> > > > > options on different pages
>
> > > > > I have 2 working one's currently
>
> > > > > BUT
> > > > > there is only ever the first one in the includes file working
> > > > > therefore one page works the other only works if I add both
> > > > > datepickers to the html
>
> > > > > I am aware this has got to be really simple but my brain has shut down
>
> > > > > some code for this bit is below
> > > > > in this case the marketing page works
>
> > > > > when I swap the order the util page works
>
> > > > > thank you in advance for your time
> > > > > embarrassed
> > > > > fib
>
> > > > > ////////////////////////////////////////////////////////////////////
>
> > > > >    //marketing
> > > > >    $("#datepk-back-mkt-em").datepicker({
> > > > >      ChangeMonth: true,
> > > > >      numberOfMonths: 3,
> > > > >      dateFormat: 'yymmdd',
> > > > >      defaultDate: +31,
> > > > >      duration: 'slow',
> > > > >      firstDay: 1
> > > > >    });
> > > > >    //getter
> > > > >    var altFormat = $('#datepk-back-mkt-em').datepicker('option',
> > > > > 'altFormat');
> > > > >    //setter
> > > > >    $('#datepk-back-mkt-em').datepicker('option', 'altFormat', 'DD, d
> > > > > MM yy');
> > > > >    //getter
> > > > >    var altField = $('#datepk-back-mkt-em').datepicker('option',
> > > > > 'altField');
> > > > >    //setter
> > > > >    $('#datepk-back-mkt-em').datepicker('option', 'altField',
> > > > > '#displayreal');
> > > > >    //end marketing
>
> > > > >    // util ss
> > > > >    $("#datepk-back-ss-util").datepicker({
> > > > >      ChangeMonth: true,
> > > > >      numberOfMonths: 3,
> > > > >      dateFormat: 'yymmdd',
> > > > >      defaultDate: -31,
> > > > >      duration: 'slow',
> > > > >      firstDay: 1
> > > > >    });
> > > > >    //getter
> > > > >    var altFormat = $('#datepk-back-ss-util').datepicker('option',
> > > > > 'altFormat');
> > > > >    //setter
> > > > >    $('#datepk-back-ss-util').datepicker('option', 'altFormat', 'DD, d
> > > > > MM yy');
> > > > >    //getter
> > > > >    var altField = $('#datepk-back-ss-util').datepicker('option',
> > > > > 'altField');
> > > > >    //setter
> > > > >    $('#datepk-back-ss-util').datepicker('option', 'altField',
> > > > > '#displayrealpost');
> > > > >    //end sairas util ss
> > > > > ///////////////////////////////////////////////////////////////
>
> > > > --
> > > > Ca-Phun Ung
> > > > +http://yelotofu.com
> > > > + hongkong, zce, jquery, jqueryui, php, css, html
>
> > --
> > Ca-Phun Ung
> > +http://yelotofu.com
> > + hongkong, zce, jquery, jqueryui, php, css, html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to