Calendar and link

H

hivan

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,fgcolor,bgimg,boxit,html) {
_agenda[y+"-"+m+"-"+d]=[message,action,bgcolor,fgcolor,bgimg,boxit,html];
}
My command is:
fAddEvent(2003,8,15," Buon Ferragosto! ","popup('a
href=http://www.yahoo.com')","#00ff00","red");

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

Someone can help me?
Thanks.
 
J

Janwillem Borleffs

hivan said:
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,fgcolor,bgimg,boxit,html) {
_agenda[y+"-"+m+"-"+d]=[message,action,bgcolor,fgcolor,bgimg,boxit,html];
}
My command is:
fAddEvent(2003,8,15," Buon Ferragosto! ","popup('a
href=http://www.yahoo.com')","#00ff00","red");

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
 
H

hivan

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,framename) {
var
w=parent.open(url,framename,"top=200,left=200,width=400,height=200,scrollbar
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 said:
hivan said:
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,fgcolor,bgimg,boxit,html)
{
_agenda[y+"-"+m+"-"+d]=[message,action,bgcolor,fgcolor,bgimg,boxit,html];
}
My command is:
fAddEvent(2003,8,15," Buon Ferragosto! ","popup('a
href=http://www.yahoo.com')","#00ff00","red");

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
 
J

Janwillem Borleffs

hivan said:
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,framename) {
var
w=parent.open(url,framename,"top=200,left=200,width=400,height=200,scrollbar
s=1,resizable=1");
if (w&&url.split(":")[0]=="mailto") w.close();
else if (w&&!framename) w.focus();
}

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


JW
 
H

hivan

Ok, thanks....


Janwillem Borleffs said:
hivan said:
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,framename) {
var
w=parent.open(url,framename,"top=200,left=200,width=400,height=200,scrollbar
s=1,resizable=1");
if (w&&url.split(":")[0]=="mailto") w.close();
else if (w&&!framename) w.focus();
}

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


JW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top