Loading ...
Sorry, an error occurred while loading the content.

Sometimes work sometimes does not

Expand Messages
  • berkay_unal
    Hi, I have the following code when i click on the dates it sometimes redirects sometimes does not. What might be the problem. Thanks var cal1; function init()
    Message 1 of 2 , Mar 1 6:39 AM
    • 0 Attachment
      Hi,

      I have the following code when i click on the dates it sometimes
      redirects sometimes does not. What might be the problem. Thanks

      var cal1;

      function init() {
      cal1 = new YAHOO.widget.Calendar("cal1","cal1Container");

      cal1.onSelect = function(){
      aaa = this.selectedDates[0];
      this.clear
      window.location = "index.php?date="+aaa;
      }

      cal1.render();


      }
    • Cecil Vermule
      The line that reads this.clear should actually read this.clear(); If that works, I m glad to have helped. If not, can you give a working example and also
      Message 2 of 2 , Mar 1 8:07 AM
      • 0 Attachment
        The line that reads "this.clear" should actually read "this.clear();"
         
        If that works, I'm glad to have helped.  If not, can you give a working example and also give a little bit more of a description? (Such as browser, if there a specific way it is redirecting vs. not.)

         
        On 3/1/06, berkay_unal <berkayunal@...> wrote:
        Hi,

        I have the following code when i click on the dates it sometimes
        redirects sometimes does not. What might be the problem. Thanks

        var cal1;

        function init() {
        cal1 = new YAHOO.widget.Calendar("cal1","cal1Container");

                               cal1.onSelect = function(){
                               aaa = this.selectedDates [0];
                               this.clear
                               window.location = "index.php?date="+aaa;
                               }

                               cal1.render();


        }






        Yahoo! Groups Links

        <*> To visit your group on the web, go to:
           http://groups.yahoo.com/group/ydn-javascript/

        <*> To unsubscribe from this group, send an email to:
           ydn-javascript-unsubscribe@yahoogroups.com

        <*> Your use of Yahoo! Groups is subject to:
           http://docs.yahoo.com/info/terms/





      Your message has been successfully submitted and would be delivered to recipients shortly.