473,386 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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,fgcolor,bgi mg,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.



Jul 20 '05 #1
4 2028

"hivan" <ug******@libero.it> schreef in bericht
news:fb********************@news1.tin.it...
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,bgi mg,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

Jul 20 '05 #2
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,widt h=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" <jw*@jwbfoto.demon.nl> ha scritto nel messaggio
news:3f***********************@news.euronet.nl...

"hivan" <ug******@libero.it> schreef in bericht
news:fb********************@news1.tin.it...
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,bgi mg,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

Jul 20 '05 #3

"hivan" <ug******@libero.it> schreef in bericht
news:U8**********************@news2.tin.it...
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,widt h=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

Jul 20 '05 #4
Ok, thanks....
"Janwillem Borleffs" <jw*@jwbfoto.demon.nl> ha scritto nel messaggio
news:3f***********************@news.euronet.nl...

"hivan" <ug******@libero.it> schreef in bericht
news:U8**********************@news2.tin.it...
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,widt h=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

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Hitit | last post by:
I found the script below in internet and I want it to create a page with links for each date changing according to date. For example: For August 10, the link in calendar page should point to:...
5
by: Merex | last post by:
Hello all, I want to use the Calendar control as a popup window. I would like each day's link to execute some javascript which would set the value of a textbox on the window which opened the...
6
by: Jeff S | last post by:
I would like recommendations for implementing a calendar in an ASP.NET web site. My plan is to store date and event information (e.g,, "Spring Sale") in a database, and when the page is requested,...
0
by: maxrawson | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
2
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
0
by: Peer K | last post by:
Hello, This is driving me nuts! It's a bit hard to explain so please bare with me. I have an ASP.NET page that uses the calendar control. I use DayRender to set specific days selectable...
6
by: caine | last post by:
I have a clickable calendar, which user can select the day that they want to view the news linking to. My calendar has the clickable event day, but once the user click it, the day selected could...
4
by: gubbachchi | last post by:
Hi all, Please anybody help me solve this problem. I am stuck up with this from past 2 weeks. I am developing an application where, when the user selects date from javascript datepicker and enters...
1
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I...
1
by: swethak | last post by:
Hi, I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.