Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 3.30 seconds.
Search: Posts Made By: gsnedders
Forum: JavaScript programming 08-14-2010, 03:37 PM
Replies: 3
Views: 4,325
Posted By gsnedders
At an even simpler level, you can pass a Function...

At an even simpler level, you can pass a Function object to Window.setTimeout, like:


function recall(tim, myurl)
{
setTimeout(function() { window.location.replace(myurl) }, 1000);
}
Forum: JavaScript programming 08-09-2010, 02:26 AM
Replies: 8
Views: 2,721
Posted By gsnedders
The change between x87 and SSE2 is reflected in...

The change between x87 and SSE2 is reflected in the default compiler flags for all major compilers, FWIW.



Or maybe more down to the lack of 64-bit Flash. On x86-64 you do get real performance...
Forum: JavaScript programming 08-08-2010, 07:28 PM
Replies: 8
Views: 2,721
Posted By gsnedders
The vast majority of applications compiled for...

The vast majority of applications compiled for x86 (in its 32-bit form) use x87 floating point maths, which has 80 bits of precision, and hence can result in different results than if IEEE-754 FP was...
Forum: JavaScript programming 08-08-2010, 06:57 PM
Replies: 4
Views: 1,676
Posted By gsnedders
All browsers have a named getter on the Window...

All browsers have a named getter on the Window object that provides access to some elements: IE < 9 and Opera < 10.70 provide access to everything with @id and @name; HTML5 says: "a, applet, area,...
Forum: JavaScript programming 08-08-2010, 06:50 PM
Replies: 9
Views: 1,450
Posted By gsnedders
Of some relevance: all browser-based JS...

Of some relevance: all browser-based JS implementations represent JS numbers as 32-bit integers when possible, primarily on performance grounds (integer maths is simply quicker to execute than double...
Forum: JavaScript programming 06-16-2010, 09:16 PM
Replies: 11
Views: 902
Posted By gsnedders
To post something with my Opera-employee hat on...

To post something with my Opera-employee hat on for once: we're unlikely to implement non-standard extensions to ECMAScript, as we believe having open standards leads to be better, more open, web.
Forum: HTML & CSS 05-20-2010, 06:14 PM
Replies: 5
Views: 712
Posted By gsnedders
We (i.e., Opera) support border-radius in 10.5x,...

We (i.e., Opera) support border-radius in 10.5x, with no vendor prefix. IE9 will do likewise, and WebKit and Gecko will support it with no prefix sometime soonish.
Forum: JavaScript programming 03-10-2010, 11:52 AM
Replies: 8
Views: 2,721
Posted By gsnedders
Not only is Math.PI an approximation to a double,...

Not only is Math.PI an approximation to a double, but Math.sin is defined only to return an implementation defined approximation of the sin function: it only has guaranteed return values for ±0,...
Forum: Post a JavaScript 02-05-2010, 04:06 PM
Replies: 6
Views: 2,447
Posted By gsnedders
Will this not enter an infinite loop if you have...

Will this not enter an infinite loop if you have a non-tree DOM in IE?
Forum: Post a JavaScript 02-01-2010, 11:50 AM
Replies: 29
Views: 3,217
Posted By gsnedders
Yes, what is done internally in JS engines is a...

Yes, what is done internally in JS engines is a lookup for the property on the built-in String prototype object, passing "this" as a String object whose internal property primitive is a reference to...
Forum: Post a JavaScript 01-31-2010, 10:21 PM
Replies: 29
Views: 3,217
Posted By gsnedders
They do. "foo".bar is the same as (new...

They do. "foo".bar is the same as (new String()).bar, similar things are true for Number and Boolean literals.
Forum: Post a JavaScript 01-31-2010, 09:57 AM
Replies: 29
Views: 3,217
Posted By gsnedders
You make reference to some isNaN there, but in a...

You make reference to some isNaN there, but in a small function like that I'd probably just have the check (val !== val) in the conditional.

As for why NaN is a Number primitive, the standard...
Forum: PHP 01-12-2010, 03:47 PM
Replies: 2
Views: 1,551
Posted By gsnedders
The former will match the literal octet 0x3C...

The former will match the literal octet 0x3C (which in ASCII has the representation "<"), which will work for all ASCII-supersets such as ISO-8859-*, UTF-8, Windows-1252 and others, but won't work in...
Forum: JavaScript programming 01-12-2010, 03:40 PM
Replies: 8
Views: 2,623
Posted By gsnedders
No, you have to use the removeChild operation on...

No, you have to use the removeChild operation on the parent of the Node you want to remove, so for example:


var y=XML.getElementsByTagName("id")[ID];
var z=y.parentNode;
z.removeChild(y);
Forum: JavaScript programming 01-12-2010, 03:37 PM
Replies: 9
Views: 869
Posted By gsnedders
clearTimeout's argument is an arbitrary Number...

clearTimeout's argument is an arbitrary Number literal. You're trying to clear it based upon a string, containing the name of the variable you want. The following should work:

...
Forum: DOM and JSON scripting 01-05-2010, 07:49 PM
Replies: 6
Views: 6,169
Posted By gsnedders
I haven't had time to actually take a look at...

I haven't had time to actually take a look at this, but there's a whole load of elements which you can't set innerHTML on in IE, including elements like table and tbody, so if you're setting it on...
Forum: DOM and JSON scripting 12-15-2009, 06:52 PM
Replies: 3
Views: 1,208
Posted By gsnedders
If you only care about current browsers, then...

If you only care about current browsers, then document.querySelectorAll("[id^=MSZONECELL_WEBPARTWQ]") works.
Forum: HTML & CSS 12-15-2009, 06:42 PM
Replies: 4
Views: 824
Posted By gsnedders
As far as I know no browser requires them to be...

As far as I know no browser requires them to be present (and indeed, a lot of the web would break if you did, so a browser with such a requirement would be unusable). Equally, they are optional in...
Forum: JavaScript programming 12-15-2009, 06:35 PM
Replies: 2
Views: 2,348
Posted By gsnedders
You want to cancel the default action for the...

You want to cancel the default action for the click event, so you want onclick to return false.

<a onclick="confirmDelete('deletePost.php?id=17'); return false;" href=''><img src='delete.png'...
Forum: DOM and JSON scripting 11-08-2009, 10:46 PM
Replies: 3
Views: 1,133
Posted By gsnedders
What do you mean by other windows? It's not...

What do you mean by other windows? It's not entirely clear what you're trying to do. Like, where is this other window? How is it created?
Forum: DOM and JSON scripting 11-07-2009, 12:10 PM
Replies: 3
Views: 1,133
Posted By gsnedders
What do you mean by multiple windows? Are you...

What do you mean by multiple windows? Are you using frames/iframes? If you are, and the frame/iframe is on the same domain and subdomain as you, then you can do something like:

...
Forum: Geek News and Humour 09-26-2009, 10:48 PM
Replies: 3
Views: 2,058
Posted By gsnedders
Both Chrome and Chrome Frame require XP SP2 or...

Both Chrome and Chrome Frame require XP SP2 or above. (Firefox and Opera both support 2000 and XP-pre-SP2.)
Forum: Geek News and Humour 09-26-2009, 05:41 PM
Replies: 3
Views: 2,058
Posted By gsnedders
Hmm, I wonder how much help this will be, as you...

Hmm, I wonder how much help this will be, as you still have the fundamental issue of whether you can convince a user to download another piece of software to use your site, and it doesn't circumvent...
Forum: JavaScript programming 09-26-2009, 05:34 PM
Replies: 4
Views: 4,302
Posted By gsnedders
Be careful about relying upon the click event for...

Be careful about relying upon the click event for things like this: it is not guaranteed the click event will be fired when the value changes (for example, you can toggle checkboxes in all browsers...
Forum: JavaScript programming 09-26-2009, 05:27 PM
Replies: 4
Views: 734
Posted By gsnedders
document.foobar only works for applet, embed,...

document.foobar only works for applet, embed, form, iframe, img, or object (without a descendant that is either an embed or object element) elements with "foobar" as their name attribute; applet or...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 08:06 PM.