SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,101
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    printing a js calendar

    first off I know enough js to crash browsers but eventually things eventually sometimes work.

    What I am trying to do is convert a reservation script from a pop up window to having the calendar displayed in a div (popup blockers and ie7 opening in a new tab)

    All I need is to have the calandar displayed on the page.
    Code:
    <A id=anchor 
                onclick="cal.showCalendar('anchor',getDateString(document.checkaressrch.year,document.checkaressrch.month,document.checkaressrch.day)); return false;" 
                href="http://mysite.com/#" name=anchor>
    this pops a new window with the calendar.

    so I want this displayed on the same page and have tried.

    Code:
    <SCRIPT>cal.showCalendar('anchor',getDateString(document.checkaressrch.year,document.checkaressrch.month,document.checkaressrch.day)); return false;</SCRIPT>
    
    which gives errors, and
    
    <body onload="cal.showCalendar('anchor',getDateString(document.checkaressrch.year,document.checkaressrch.month,document.checkaressrch.day)); return false;">
    which obvoiusly does nothing but had to try
    If anyone knows how to acheive this I will send many thanks and virtual beers

  2. #2
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,101
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I did a view source of the pop up and have come to the conclusion that this is so far over my head that I cannot see the landing gear,
    thanks for looking,

    cheers
    loren


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
  •