Calendar and link

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hivan

    #1

    Calendar and link

    I have an Agenda with calendar: I would like than when i click over a date
    it open a link.
    The function is:
    function fAddEvent(y,m,d ,message,action ,bgcolor,fgcolo r,bgimg,boxit,h tml) {
    _agenda[y+"-"+m+"-"+d]=[message,action, bgcolor,fgcolor ,bgimg,boxit,ht ml];
    }
    My command is:
    fAddEvent(2003, 8,15," Buon Ferragosto! ","popup('a
    href=http://www.yahoo.com') ","#00ff00","re d");

    But dont work! It search the file im my own computer and not on internet.

    Someone can help me?
    Thanks.







  • Janwillem Borleffs

    #2
    Re: Calendar and link


    "hivan" <ugodardi@liber o.it> schreef in bericht
    news:fbM1b.3121 5$zN5.955466@ne ws1.tin.it...[color=blue]
    > I have an Agenda with calendar: I would like than when i click over a date
    > it open a link.
    > The function is:
    > function fAddEvent(y,m,d ,message,action ,bgcolor,fgcolo r,bgimg,boxit,h tml)[/color]
    {[color=blue]
    > _agenda[y+"-"+m+"-"+d]=[message,action, bgcolor,fgcolor ,bgimg,boxit,ht ml];
    > }
    > My command is:
    > fAddEvent(2003, 8,15," Buon Ferragosto! ","popup('a
    > href=http://www.yahoo.com') ","#00ff00","re d");
    >[/color]

    What does the popup function exactly do? IMO, the call should something
    like:

    fAddEvent(2003, 8,15," Buon Ferragosto! ",
    "http://www.yahoo.com", "#00ff00","red" );

    And fAddEvent should open up a new window using the window.open function and
    pass the action parameter as its first argument.

    JW



    Comment

    • hivan

      #3
      Re: Calendar and link

      With :

      fAddEvent(2003, 8,15," Buon Ferragosto! ","popup('a
      href=\"http:\\\ \www.yahoo.com\ "')","#00ff00", "red");

      It says: Server not available (it dont found the page on internet).

      I seen that in my agenda.js exist also a function:

      function popup(url,frame name) {
      var
      w=parent.open(u rl,framename,"t op=200,left=200 ,width=400,heig ht=200,scrollba r
      s=1,resizable=1 ");
      if (w&&url.split(" :")[0]=="mailto") w.close();
      else if (w&&!framename ) w.focus();
      }

      Maybe it depends from this function?
      Thanks again, Ivano.
      ----------------------------------------------------------------------------
      ------------------

      "Janwillem Borleffs" <jwb@jwbfoto.de mon.nl> ha scritto nel messaggio
      news:3f47d4cb$0 $28899$1b62eedf @news.euronet.n l...[color=blue]
      >
      > "hivan" <ugodardi@liber o.it> schreef in bericht
      > news:fbM1b.3121 5$zN5.955466@ne ws1.tin.it...[color=green]
      > > I have an Agenda with calendar: I would like than when i click over a[/color][/color]
      date[color=blue][color=green]
      > > it open a link.
      > > The function is:
      > > function[/color][/color]
      fAddEvent(y,m,d ,message,action ,bgcolor,fgcolo r,bgimg,boxit,h tml)[color=blue]
      > {[color=green]
      > >[/color][/color]
      _agenda[y+"-"+m+"-"+d]=[message,action, bgcolor,fgcolor ,bgimg,boxit,ht ml];[color=blue][color=green]
      > > }
      > > My command is:
      > > fAddEvent(2003, 8,15," Buon Ferragosto! ","popup('a
      > > href=http://www.yahoo.com') ","#00ff00","re d");
      > >[/color]
      >
      > What does the popup function exactly do? IMO, the call should something
      > like:
      >
      > fAddEvent(2003, 8,15," Buon Ferragosto! ",
      > "http://www.yahoo.com", "#00ff00","red" );
      >
      > And fAddEvent should open up a new window using the window.open function[/color]
      and[color=blue]
      > pass the action parameter as its first argument.
      >
      > JW
      >
      >
      >[/color]


      Comment

      • Janwillem Borleffs

        #4
        Re: Calendar and link


        "hivan" <ugodardi@liber o.it> schreef in bericht
        news:U812b.1334 02$cl3.3997027@ news2.tin.it...[color=blue]
        > With :
        >
        > fAddEvent(2003, 8,15," Buon Ferragosto! ","popup('a
        > href=\"http:\\\ \www.yahoo.com\ "')","#00ff00", "red");
        >
        > It says: Server not available (it dont found the page on internet).
        >
        > I seen that in my agenda.js exist also a function:
        >
        > function popup(url,frame name) {
        > var
        >[/color]
        w=parent.open(u rl,framename,"t op=200,left=200 ,width=400,heig ht=200,scrollba r[color=blue]
        > s=1,resizable=1 ");
        > if (w&&url.split(" :")[0]=="mailto") w.close();
        > else if (w&&!framename ) w.focus();
        > }
        >[/color]

        As mentioned before, you should call the function with
        'http://www.yahoo.com' instead of 'a href="...'


        JW



        Comment

        • hivan

          #5
          Re: Calendar and link

          Ok, thanks....


          "Janwillem Borleffs" <jwb@jwbfoto.de mon.nl> ha scritto nel messaggio
          news:3f48a1d0$0 $28910$1b62eedf @news.euronet.n l...[color=blue]
          >
          > "hivan" <ugodardi@liber o.it> schreef in bericht
          > news:U812b.1334 02$cl3.3997027@ news2.tin.it...[color=green]
          > > With :
          > >
          > > fAddEvent(2003, 8,15," Buon Ferragosto! ","popup('a
          > > href=\"http:\\\ \www.yahoo.com\ "')","#00ff00", "red");
          > >
          > > It says: Server not available (it dont found the page on internet).
          > >
          > > I seen that in my agenda.js exist also a function:
          > >
          > > function popup(url,frame name) {
          > > var
          > >[/color]
          >[/color]
          w=parent.open(u rl,framename,"t op=200,left=200 ,width=400,heig ht=200,scrollba r[color=blue][color=green]
          > > s=1,resizable=1 ");
          > > if (w&&url.split(" :")[0]=="mailto") w.close();
          > > else if (w&&!framename ) w.focus();
          > > }
          > >[/color]
          >
          > As mentioned before, you should call the function with
          > 'http://www.yahoo.com' instead of 'a href="...'
          >
          >
          > JW
          >
          >
          >[/color]


          Comment

          Working...