Professional Web Applications Themes

Pop up calendar - PERL Beginners

Hi, I have a form with a date field (created by CGI::Quickform). I would like to add a pop up calendar so I can pick dates easily. Does anybody know how I can do that? Is there any module I can use for that? Regards, Melis __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions./new_mail...

  1. #1

    Default Pop up calendar

    Hi,

    I have a form with a date field (created by
    CGI::Quickform). I would like to add a pop up calendar
    so I can pick dates easily. Does anybody know how I
    can do that? Is there any module I can use for that?

    Regards,

    Melis



    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - 50x more storage than other providers!
    http://promotions./new_mail
    Melis Guest

  2. #2

    Default Re: Pop up calendar

    On Mon, 12 Jul 2004 00:29:52 -0700 (PDT), com (Melis
    Mutlu) wrote:
     

    Since you are using CGI, you may as well use javascript.
    There are quite a few javascript calendar date pickers out there,
    go to http://javascriptsource.com and search for them.

    There are modules for this in Perl for Tk, but that is of little
    use with a browser interface.


    --
    I'm not really a human, but I play one on earth.
    http://zentara.net/japh.html
    Zentara Guest

  3. #3

    Default RE: Pop up calendar

    Melis Mutlu <com> wrote:

    : I have a form with a date field (created by
    : CGI::Quickform). I would like to add a pop up
    : calendar so I can pick dates easily. Does
    : anybody know how I can do that? Is there any
    : module I can use for that?

    If you can use a Javascript solution. I like
    this one. I have never used it in production though.

    http://dynarch.com/mishoo/calendar.epl

    HTH,

    Charles K. Clarkson
    --
    Mobile Homes Specialist
    254 968-8328

    Charles Guest

  4. #4

    Default RE: Pop up calendar


     [/ref]

    This idea will give you a calander embedded inside the webpage.
    If you want a seperate window to pop-up i think
    that's also possible without the use of java etc.

    anyway...


    There is a program called cal(1) which produces output like:

    July 2004
    Su Mo Tu We Th Fr Sa
    1 2 3
    4 5 6 7 8 9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30 31



    doesn't quite look right after copy past...

    this is not portable to Win32 unless there is a perl module that
    will give you similar results.

    you can wrap the data into a <FORM > structure.

    first :
    while (`cal`){
    push (array , $_);
    }

    then:
    foreach (array);
    dates = split (/\s/, $_);
    push (dates , '<br />');
    }


    now you have each item in a seperate element on dates along with an extra
    '<br />' to
    help us see where the line breaks are- you can add form data based on the
    contents of the
    dates array.


    foreach (dates){
    $data .= '< formsubmitdata >'. $_ .'<otherstuff>';
    if ($_ is a linebreak){
    $data . = '</tr><tr>'; #if wrapped in a table?
    }

    not well written, but i think it will give an idea of what you might do.

    the concatonation operator '.' makes life much easier when i try this stuff



    i'll try to do this myself i think :)


    thanks,
    willy
    William Guest

  5. #5

    Default Re: Pop up calendar

    On Mon, 12 Jul 2004 00:29:52 -0700 (PDT)
    Melis Mutlu <com> wrote:

     


    You might want to look at, and adapt


    HTML::Calendar::Simple - A simple html calendar
    DESCRIPTION
    This is a simple module which will make an HTML representation of a
    given month. You can add links to individual days, or in fact, any sort
    of information you want.

    but as it involves installing a module somewhere, it may not suit.

    Randal Schwartz uses a similar module in
    http://www.stonehenge.com/merlyn/WebTechniques/col66.html and Bill Jones wrote http://backpan.cpan.org/authors/id/S/SN/SNEEX/cal.perl_v2A

    I don't think you will get an off the shelf answer to your requirement. It's not too dificult to write your own.




    --
    Owen


    ----------------------------------------------------------------
    __0 http://www.pcug.org.au/~rcook/rr.html for rides
    _ \<,_
    (_)./(_) http://www.bom.gov.au/weather/act/forecasts.shtml
    ---------------------------------------------------------------
    Owen Guest

Similar Threads

  1. 2006 calendar needed for photo calendar
    By brians@wsu.edu in forum Adobe Indesign Macintosh
    Replies: 0
    Last Post: June 12th, 03:57 PM
  2. Web Calendar
    By hou5tonNews in forum Dreamweaver AppDev
    Replies: 6
    Last Post: April 13th, 07:53 AM
  3. Pop-up Calendar
    By Stephen Cairns in forum ASP Database
    Replies: 4
    Last Post: April 16th, 02:42 PM
  4. calendar
    By Big in forum FileMaker
    Replies: 3
    Last Post: December 11th, 06:53 PM
  5. ASP:Calendar CSS
    By Michael Pearson in forum ASP.NET General
    Replies: 0
    Last Post: July 30th, 05:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139