|
-
Aug 11th, 2003, 03:01 PM
#1
Thread Starter
Addicted Member
new to HTML
Code:
<html>
<head>
<title>Calendar</title>
<br><center><A HREF="C:\Program Files\Project1\switch.exe">Switching Application</A></center>
OK
i am a newbie to HTML and javascript
i want to put a link on a page
and click the link and have it open my file
it does that
but will prompt me first
to run from current location or save
if i delete the switch.exe
it only opens the project folder
and then i have to double click to activate the exe
is there a way to put the link or icon on my page
to auto start the exe when clicked
without a prompt or opening another folder
annie
-
Aug 11th, 2003, 03:17 PM
#2
Nope - otherwise, malicious people out there would have a field day.
On a side note - you're missing the <body> tags
-
Aug 11th, 2003, 03:23 PM
#3
Thread Starter
Addicted Member
ok thanks
i am adding the <body> now
just wanted to see if there was another way
thanks cheers
annie
-
Aug 15th, 2003, 01:08 AM
#4
Originally posted by axion_sa
Nope - otherwise, malicious people out there would have a field day.
On a side note - you're missing the <body> tags
Internet Explorer's quirks rendering engine is so horrible, it will let mistakes like this go by. You can also change the <body> or <html> tags for that matter to <****>
-
Aug 15th, 2003, 07:32 AM
#5
Thread Starter
Addicted Member
I was able to download a free javascript calendar online. What i have done was include this in a VB application i developed. My users want to be able to view a calendar and show events. This version i downloaded is perfect.
BUT
it saves all the events in cookies
im afraid that my users may delete the cookies
i would like to use this javascript and possibly alter the code and pass the events to a database for a more secure feeling. will javascript allow me to pass values from a html form to a database.
here is the code i use to include the file
Code:
Private Sub Command1_Click()
With WebB
.Navigate "G:\ED\ALL\saf\calendar.html"
End With
End Sub
HERE IS SOME CODE
but here is the link to the zip file i used
http://javascript.internet.com/calen...-calendar.html
any sugguestions
annie 
Code:
<html>
<head>
<title>Calendar</title>
<br><center><A HREF="C:\Program Files\Project1">Switching Application</A></center>
<script language="javascript" src="cengine.js"></script>
<script language="javascript" src="other_scripts.js"></script>
<script language="javascript">
<!--
var mo = "";
var year = "";
var currentmonth = today.getMonth();
var currentyear = today.getFullYear();
//cookies are not found
if(document.cookie == "") {
mo = today.getMonth();
year = today.getFullYear();
} else {
mo = getCookie('whichmonth');
//correct cookie is NOT set
if(mo == null) {
mo = today.getMonth();
year = today.getFullYear();
//alert number of reminders to user
alertReminders();
}
//correct cookie is set
else {
mo = getCookie('whichmonth');
year = getCookie('whichyear');
}
}
//set a session cookie
setCookie('whichmonth',mo);
setCookie('whichyear', year);
someone suggested
to try to transfer the data that was passed by javascript to a hidden field.
Make database connection and insert data from hidden field to the database.
but i have another question
ok...that wont be a problem
to make the DB connection and insert the data from the field to the DB
but what do i need to transfer from javascript
i mean what will i need to adjust
like do i still save it to a cookie
and the pass the info from the cookie to a hidden field????
-
Aug 15th, 2003, 10:45 AM
#6
Lively Member
with Javascript? is it even possible to store things in a database using Javascript? gosh, i guess its time to crack down on old JS.
My suggestion to you (only works if you've got a real host, and a good one)- look for a PHP calendar script. theres plenty at www.hotscripts.com

-morrowasted
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|