Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Need Help adding ctlSpiffyCalendarBox

    i added to the file admin/orders.php the code below

    PHP Code:
    <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
    <
    script language="javascript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script> 
    PHP Code:
    <div id="spiffycalendar" class="text"></div
    PHP Code:
    <script language="javascript">
    var 
    StartDate = new ctlSpiffyCalendarBox("StartDate""status""my_date""btnDate1","",scBTNMODE_CUSTOMBLUE);
    </script> 
    PHP Code:
    <?php <td class="main"><script language="javascript">StartDate.writeControl(); StartDate.dateFormat="yyyy-MM-dd";</script></td> ?>
    but the canlendar box doesn't work, i get the error
    document.images[objWhatCal.btnName] is undefined
    in Line 76 document.images[objWhatCal.btnName].src = eval(objWhatCal.varName+strToWhat + ".src");
    what do i add a canlendar box? is there anything i missed?

  2. #2
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help ctlSpiffyCalendarBox

    any ideas?

  3. #3
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help ctlSpiffyCalendarBox

    no one knows?

  4. #4
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help ctlSpiffyCalendarBox


  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Need Help adding ctlSpiffyCalendarBox

    More importantly, you should tell us WHY you are trying to add a calendar, and what you want it to ACCOMPLISH for you.

    People generally do not answer posts if they have no idea of what the OP is after.

    Your post (so far) waffles on about something which is of no interest or relevance to anyone else but you... because you are not telling us the REASON why you are trying to embed a calendar.
    20 years a Zencart User

  6. #6
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    i added some codes to admin/orders.php and new fields to database,
    now on the orders page in admin, i have an input field in order status update form, so i can enter a date and submit it to my database table,
    it works nice with the code <?php echo zen_draw_input_field('my_date', '', 'size="40"'); ?>

    what i want to do is to change zen_draw_input_field('my_date', '', 'size="40"') to a calendarbox, then i can select a date instead of typing a date.

    so i tried adding the code
    PHP Code:
    <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css"
    <
    script language="javascript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>  
    <div id="spiffycalendar" class="text"></div>
    <script language="javascript"> 
    var StartDate = new ctlSpiffyCalendarBox("StartDate", "status", "my_date", "btnDate1","",scBTNMODE_CUSTOMBLUE); 
    </script> 
    then i replaced
    PHP Code:
    zen_draw_input_field('my_date''''size="40"'
    with the code below
    PHP Code:
    <?php <script language="javascript">StartDate.writeControl(); StartDate.dateFormat="yyyy-MM-dd";</script> ?>
    but when i click the calendarbox icon, nothing poupup

    any help? thanks

  7. #7
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox


  8. #8
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    there's also a calendarbox on admin featured page,
    but i don't know why it doesn't work on admin orders page with the code i added above

  9. #9
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    ...

  10. #10
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    117 views, any idea?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need help adding a JSCRIPT file
    By kelly60 in forum General Questions
    Replies: 4
    Last Post: 1 Feb 2014, 11:09 PM
  2. Need help adding $_SESSION variable
    By chadderuski in forum General Questions
    Replies: 4
    Last Post: 14 Jun 2010, 04:30 PM
  3. Need Help Adding Special
    By braggweb in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 1 Jun 2009, 09:37 PM
  4. Need help adding banner to header
    By sheila123 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Apr 2009, 08:55 PM
  5. I need help with adding a button please help me
    By goheadtry in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Jun 2007, 05:23 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR