View Full Version : Beginner Stuck already! please help?
jonnybinthemix
10-07-2004, 05:54 AM
hi guys
as im sure yove worked out, im a beginner and already im stuck!!
I know a little html, and a little java, from a while back when i studied at college.
I have started a nice simple web page in html. But i want people to be able to add theyre work holiday on the site.
I have downloaded a java applet called plugins1.js which is a calender that adds the dates clicked on into a list of dates on the right.
The first problem is how do i call that js file to load in the middle of my page using html?
I just want the webpage to load and the calender to come up on the page.
Then the next problem is making a button that emails the list of dates to me. but hey, first things first!! lol
Can anyone help me?
thankyou
jon
Horus_Kol
10-07-2004, 06:13 AM
Quick pointer:
Java does not equal javascript...
if you have a .js file, then you have a javascript file - this is all run on the client.
Java is a server side language - which sends a completed page/applet to the user.
That done, I'll answer your question now:
external script files need to be referenced in the head section:
<head>
...
<script type='text/javascript' src='scripts/plugins1.js'></script>
...
</head>
getting it into the page is the next step - you will probably have to have a <div> element with a specific ID - what does the readme say for the script?
jonnybinthemix
10-07-2004, 06:55 AM
hi mate
thanks for your help, sorry abotu the double post.
I have noticed in my html i have a <HEAD> but no </HEAD> However the page works fine!
It was created visualy in dreamweaver and not writte by code, so where do i put the line you have written for me?
Sorry if im stupid, but i am trying to learn! lol
here are the files i got with the calender if it helps...
Horus_Kol
10-07-2004, 09:21 AM
your basic shell for a web page is:
<doctype ... >
<html>
<head>
information about the page and links to scripts and styles
</head>
<body>
content
</body>
</html>
I have just looked at their demo code, and I think that this is actually a very poorly written script - the external file calls functions that have to be defined within the html document...
I'd recommend having a look around for something else.
(also, I'd be rather dubious about any page-creating software that did not close the <head> properly).
jonnybinthemix
10-07-2004, 10:51 AM
hmm,
i would love to use this applet as it is Exactly what im looking for, would it be very difficult to impliment, ill look for something else, but how will i know if its easy to use or not?
Thanks
Jon
Horus_Kol
10-07-2004, 11:44 AM
well, it would mean that you would have to write some javascript into your page for the script to work.
as for "simple" scripts - look for something that has a readme or walk through on how to insert it into your page - if it takes up only a couple of paragraphs, or you can understand it, then you know it is simple...
If you really want to push on, we coudl figure out exactly how to get that script into your page - but you'll have to wait until saturday for me - i'm too busy to have more than a glance at teh script for now.
jonnybinthemix
10-08-2004, 03:57 AM
Thankyou so much for your help.
I can be patient as i appreciate that you are busy, so i can wait how ever long you need.
I would really appreciate it if we could get this one working as it is perfect for what i want. but i just have no clue how to go about it.
Thanks
Jon
Horus_Kol
10-08-2004, 04:15 AM
okay then - i'll be around tomorrow morning.
jonnybinthemix
10-08-2004, 04:25 AM
ok mate, id appreciate it.
If i tell you what im looking for....
Ideally (if its possible!!) i want that calender with the little box on the right hand side to pop up on the holiday page of the site, then people can click 1 or multiple days, then they can click book, and it will email th elist of day sin the box on the right, along with a little note to theyre line manager, who can then autorise theyre holday.
Is that in any way remotely possible?!
Thanks
jonnybinthemix
10-11-2004, 03:48 AM
sorry about saterday my friend, i got called away on an urgent family outing! as im sure you aware, theres no getting out of these things!! hehe
Any chance you could have a quick glance at this today?
Thankyou
Jon
jonnybinthemix
10-13-2004, 03:30 AM
i am still banging my head against a wall wth this if anyone can help?
thanks
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.