Search:
Type: Posts; User: tirna
Search :
Search took 0.07 seconds.
A 2d array is essentially an array of arrays.
try
<html>
<head>
<script type="text/javascript">
should be
var test = parseFloat(document.getElementById("input").value);
I find it hard to believe you are a noobie if you actually wrote the code you posted.
You just need to do some Basic Debugging 101 (post 1) to fix your code.
If you have Firebug installed in...
I see you have the same post on another forum.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html...
I think too many noobies fall into the trap of trying to use jQuery, which is nothing more than a bunch of prewritten javascript, before having a good grasp of plain javascript. They then end up...
google something like "javascript currency" and you'll get a truckload of hits telling you how.
It's only a tiny bit of extra code.
Why load the whole jQuery framework into memory for a relatively simple task like this?
You could also use a "lookup" table to get the price for the quantity.
<html>
<head>
<title></title>
<script type="text/javascript">
var tblPrices = [
...
document.write will overwrite the original page if called after the page has finished loading.
Try something like this:
<html>
<head>
<title>In Class Lab 1 - Random Number...
Are you aware that although your images swap after 5 secs. in all browsers. the crossfading appears to only work in IE?
Read These For More
pop()
shift()
as a general rule, if you know the number of iterations then use a FOR loop. If the number of iterations is not known, use a WHILE loop. Your while loop has at least 2 extra lines of code in it.
You can use .substring() to break the data into its 3 parts and then re-assemble the componentz in the order you want.
quantityTxt.onclick = calcAmount();
should be
quantityTxt.onclick = calcAmount;
For each array you are over writing the previous value in the element.
Therefore after the array elements have been assigned values
$array1[$counter]['ticket'] = "333333"
and
...
one option is to replace the php code with
<div>
<a href="" onclick="showPhoneNo(this);return false;">Show phone number</a>
</div>
and add this function to your javascript...
It's telling you you need to add an alt attribute to your <img>
Looks like this homework exercise has been doing the rounds in various forums over the last couple of weeks ;)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
...
do you understand the concepts of commas and full stops in punctuation? I was starting to turn blue by the time I go to the end of your post because I couldn't take a breath and now I feel too weak...
Can't be done unless the page in the iframe is on the same domain as the parent page.
Why are you trying to "hack" into a web page on another domain by accessing its elements?
It's one I have bookmarked from another forum. It was very helpful for me :)
If it's a single level menu this description of how to centre floated menus of known and unknown widths might help.
yes it is.
just use the variable name where you want its value instead of enclosing the variable name within quotes.
since bgColor is deprecated, the more correct way nowadays is
var...
You are setting the bgColor to the string 'colorme' instead of the value contained in the variable colorme.
btw - bgColor is a long time deprecated now, and the way they use eval() is certainly...