Thursday, June 19, 2008

...the method that JavaScript applications relate to HTML and XHTML documents?

i have java script it keeps telling me it is not enabled i have followed all the help but no luck if you can help plain easy stages please

i had a global variable - and saved the grand total to the variabl total.. this is how i did it

var total=0; // global variable

function Button (form){

total += parseInt(price[sha]);

}

function test (){
document.write ("the answer" + total + " ! ");
}

what i am thinking is that- the in function Button() the the total value gets stored in the variable total- and since it is a global variable it would be substituted.. but when i called this variable from the function test()- all what i got was a 0.

can you please write a code using exactly the above functions - to access the total varible ..

plzz help :(

in a function called " value1 " i am adding a set of values which is in an array ;

total += parseInt(price[sha]);

and the the variable total is declared out side the function above as ; var total=0;
within the function value1 i could out put the variable total- then the actual total gets displayed.

but when i created another function called " sum() " and called the variable value- the total value which was calculated in the function value1 - is not getting displayed instead the value 0- displays .. (this is bcoz i initialized "total to 0 - but when i removed the 0 from this it didnt work)

how do i get the value which was stored in the variable "total" in function value1() ..

can u give me the code for this ?

plzz help :(

hey i am from Bangalore-India.and i want to lean web designing.There are a number of courses offered here.I wanted to know if there are eniough cauz they are all 1 to 2 months.And also will this be enough cauz i want to become a freelancer

they teach. HTML
. Javascript
. Macromedia Flash 8
. Macromedia Dreamweaver
. Fundamentals of Computer- Multimedia and Internet
. Concepts of Graphics
. Photoshop CS 2 with Image ready
. 3D max 9
so ineed to learn c# and c++ also right

i stored some numbers in a javascript array as folows ;
var num=new Array();

num[0]="55";
num[1]="12";
num[2]="23"; so on....

now i want to add all these values and store it in a variable .. how do i do it ????

what will be the coding for this ??

i think you have to put a for loop - but after that how to write the coding .. can some one tell me the code for this .

plzz help :(

No comments: