Official Nelly Furtado Fans Forum & Message Board

Chat with fans from all around world, get the latest Nelly Furtado news, pictures, audio, songs, videos, widgets! Your one stop Nelly shop!

Nelly news direct to your email:

The images displayed here have been created by users of this forum © 2008


View more photos in the Nelly Furtado Flickr group (Please join and add your photos to the group, they will then appear here)

Go Back   The Only Nelly Furtado Fans Forum > Other > Other topics

Notices

Other topics Non-Nelly related discussion.

Reply
 
Thread Tools Display Modes
Old 28th Sep 06   #1
stewie Griffin
Bronze Member
 
stewie Griffin's Avatar
 
Join Date: 11th Aug 06
Location: Sydney NSW
Age: 25
Posts: 565
stewie Griffin is a jewel in the roughstewie Griffin is a jewel in the rough
Send a message via MSN to stewie Griffin
Hhhhheeeellllllpppppppp

I have to resit a javascript test the first week back from them holidays. One of the areas I'm particularly struggling with is calling a function.

Does anyone know any good online tutorials or books?
__________________
The X Files-I Want To Believe. July 24 2008
stewie Griffin is offline   Reply With Quote
Old 28th Sep 06   #2
Nico
Accidents don't happen
 
Nico's Avatar
 
Join Date: 13th Sep 04
Location: Spaced out
Age: 23
Posts: 3,719
Nico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond repute
Send a message via AIM to Nico Send a message via MSN to Nico
Re: Hhhhheeeellllllpppppppp

Post your code and I might be able to help.
Nico is offline   Reply With Quote
Old 28th Sep 06   #3
stewie Griffin
Bronze Member
 
stewie Griffin's Avatar
 
Join Date: 11th Aug 06
Location: Sydney NSW
Age: 25
Posts: 565
stewie Griffin is a jewel in the roughstewie Griffin is a jewel in the rough
Send a message via MSN to stewie Griffin
Re: Hhhhheeeellllllpppppppp

Quote:
Originally Posted by Nico View Post
Post your code and I might be able to help.

Good Luck, i seriously hate javascript.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?xml version="1.0"?><HTML xmlns="<A href="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Comparing</TITLE">http://www.w3.org/1999/xhtml"><HEAD><TITLE>Comparing</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<SCRIPT type=text/javascript>
<!--
function newcar(){
var mycar="Honda"
var paycheck="35,000";
window.alert ("you need $" + paycheck + " to get a" +mycar);
}

function newcar(){
var mycar="Holden";
var paycheck="20,000";
window.alert("You need$" + paycheck " to get a "+mycar);
}

function newcar(){
var mycar="Bike";
var paycheck="10,000";
window.alert("You need$" + paycheck " to get a "+mycar);
}

//-->
</SCRIPT>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>press refresh to start again </BODY></HTML>
__________________
The X Files-I Want To Believe. July 24 2008
stewie Griffin is offline   Reply With Quote
Old 28th Sep 06   #4
Nico
Accidents don't happen
 
Nico's Avatar
 
Join Date: 13th Sep 04
Location: Spaced out
Age: 23
Posts: 3,719
Nico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond reputeNico has a reputation beyond repute
Send a message via AIM to Nico Send a message via MSN to Nico
Re: Hhhhheeeellllllpppppppp

And what exatly are you trying to do? Call one of these functions? Like when you click on a button or link or something?

Like this?
Code:
<a href="#" onclick="newcar();">New car</a>

And there are two plus signs missing in two of your functions.
Code:
function newcar(){
var mycar="Holden";
var pay cheque="20,000";
window.alert("You need$" + pay cheque +" to get a "+mycar);
}

function newcar(){
var mycar="Bike";
var pay cheque="10,000";
window.alert("You need$" + pay cheque +" to get a "+mycar);
}
EDIT:

Also, don't give multimple functions the same name in the same document.
Nico is offline   Reply With Quote
Old 28th Sep 06   #5
stewie Griffin
Bronze Member
 
stewie Griffin's Avatar
 
Join Date: 11th Aug 06
Location: Sydney NSW
Age: 25
Posts: 565
stewie Griffin is a jewel in the roughstewie Griffin is a jewel in the rough
Send a message via MSN to stewie Griffin
Re: Hhhhheeeellllllpppppppp

Thanks for the help, best get back to it.

Michael
__________________
The X Files-I Want To Believe. July 24 2008
stewie Griffin is offline   Reply With Quote
Old 28th Sep 06   #6
Arabesque
Palladium member
 
Arabesque's Avatar
 
Join Date: 12th Jun 05
Location: Melbourne,Australia
Age: 17
Posts: 2,382
Arabesque has a reputation beyond reputeArabesque has a reputation beyond reputeArabesque has a reputation beyond reputeArabesque has a reputation beyond reputeArabesque has a reputation beyond reputeArabesque has a reputation beyond repute
Send a message via MSN to Arabesque
Re: Hhhhheeeellllllpppppppp

WOW ! good luck! That looks very hard
__________________
Arabesque is offline   Reply With Quote
Old 28th Sep 06   #7
Vicious
Retired administrator
 
Vicious's Avatar
 
Join Date: 13th Jan 02
Location: Belgium
Age: 25
Posts: 6,921
Vicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond repute
Send a message via ICQ to Vicious Send a message via MSN to Vicious
Re: Hhhhheeeellllllpppppppp

Also, who wrote the code, cause it really looks like nothing

Your second line should be:
Code:
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Comparing</TITLE>
Haven't looked at the JS code, but Nico already went over that.
__________________
Vicious is offline   Reply With Quote
Old 28th Sep 06   #8
stewie Griffin
Bronze Member
 
stewie Griffin's Avatar
 
Join Date: 11th Aug 06
Location: Sydney NSW
Age: 25
Posts: 565
stewie Griffin is a jewel in the roughstewie Griffin is a jewel in the rough
Send a message via MSN to stewie Griffin
Re: Hhhhheeeellllllpppppppp

Sadly I wrote the code, not surprisingly I failed the test the first time around.
__________________
The X Files-I Want To Believe. July 24 2008
stewie Griffin is offline   Reply With Quote
Old 29th Sep 06   #9
Vicious
Retired administrator
 
Vicious's Avatar
 
Join Date: 13th Jan 02
Location: Belgium
Age: 25
Posts: 6,921
Vicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond reputeVicious has a reputation beyond repute
Send a message via ICQ to Vicious Send a message via MSN to Vicious
Re: Hhhhheeeellllllpppppppp

well, if you ever need some help with anything like that, go to http://www.w3schools.com

I'm quite experienced in HTML & Javascript and such, but that site still helps me every day
__________________
Vicious is offline   Reply With Quote
Old 29th Sep 06   #10
stewie Griffin
Bronze Member
 
stewie Griffin's Avatar
 
Join Date: 11th Aug 06
Location: Sydney NSW
Age: 25
Posts: 565
stewie Griffin is a jewel in the roughstewie Griffin is a jewel in the rough
Send a message via MSN to stewie Griffin
Re: Hhhhheeeellllllpppppppp

Thanks
__________________
The X Files-I Want To Believe. July 24 2008
stewie Griffin is offline   Reply With Quote
Reply

Bookmarks
Digg del.icio.us StumbleUpon Google


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 16:00.


Powered by vBulletin® Version 3.7.0 Beta 6
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.