Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 0.65 seconds.
Search: Posts Made By: krycek
Forum: DOM and JSON scripting 03-30-2007, 09:59 PM
Replies: 9
Views: 1,857
Posted By krycek
You are correct for DOMNodeRemoved, but not...

You are correct for DOMNodeRemoved, but not DOMNodeRemovedFromDocument... the former should fire on the element actually being removed, whereas the latter should fire on any element in that subtree....
Forum: DOM and JSON scripting 03-30-2007, 03:01 AM
Replies: 9
Views: 1,857
Posted By krycek
Dammit. I have come to the conclusion that...

Dammit. I have come to the conclusion that Firefox supports DOMNodeRemoved, but not DOMNodeRemovedFromDocument. Sucks... :(

[Edit:] And additionally, it appears that DOMNodeRemoved is not fired...
Forum: DOM and JSON scripting 03-30-2007, 02:40 AM
Replies: 9
Views: 1,857
Posted By krycek
Hmmm. Seems like I may be misunderstanding the...

Hmmm. Seems like I may be misunderstanding the specs, or the implementation, or whatever...

I read the W3C DOM event spec page (http://www.w3.org/TR/DOM-Level-2-Events/events.html) as meaning that...
Forum: DOM and JSON scripting 03-30-2007, 02:15 AM
Replies: 9
Views: 1,857
Posted By krycek
Unfortunately, I do have to move the iframes...

Unfortunately, I do have to move the iframes around in the document tree, and despite racking my brains for some hours I can't see any way around that.

Also, the iframes are editable rather than...
Forum: DOM and JSON scripting 03-29-2007, 03:14 PM
Replies: 9
Views: 1,857
Posted By krycek
Dammit... open since 2004! :( Thanks for...

Dammit... open since 2004! :(

Thanks for locating that bug report liorean - seems I didn't use exactly the right keywords to find it myself.

As there doesn't seem to be any workaround, I'm now...
Forum: DOM and JSON scripting 03-29-2007, 06:00 AM
Replies: 9
Views: 1,857
Posted By krycek
Exclamation appendChild clears iframe contents in Firefox

Hi all

I'm experiencing a rather annoying issue.

I have an iframe. I want to move this iframe elsewhere in the document tree. So, I use appendChild (or insertBefore)... however, doing this...
Forum: JavaScript programming 11-01-2006, 04:22 PM
Replies: 4
Views: 850
Posted By krycek
document.sampleform["id[15]"].click()

document.sampleform["id[15]"].click()
Forum: JavaScript programming 10-28-2006, 01:09 AM
Replies: 1
Views: 1,220
Posted By krycek
Okay, for anyone who's interested (and for anyone...

Okay, for anyone who's interested (and for anyone else who runs into this problem in the future!) I'm found the solution.

All that is required is:


if (thing.className) thing.className =...
Forum: JavaScript programming 10-27-2006, 04:33 PM
Replies: 1
Views: 1,220
Posted By krycek
Exclamation IE7 CSS update problem when changing attributes and using selector-based rules

I have some code that relies upon the manipulation of element attributes. A very simple example is to use mousedown to set a "state" attribute to "down", and then mouseup to set it back to "default"....
Forum: JavaScript programming 09-26-2006, 05:54 PM
Replies: 8
Views: 1,074
Posted By krycek
I tried that already... no joy :(

I tried that already... no joy :(
Forum: JavaScript programming 09-26-2006, 04:16 PM
Replies: 8
Views: 1,074
Posted By krycek
I actually came darn close to that, but I never...

I actually came darn close to that, but I never thought of using an image. The problem I ran into is that I can create the script element dynamically in both Firefox and IE, but only Firefox supports...
Forum: JavaScript programming 09-25-2006, 11:24 AM
Replies: 8
Views: 1,074
Posted By krycek
Thanks guys - I just discovered this upon testing...

Thanks guys - I just discovered this upon testing in IE. So it looks as if XHR is the only way to go.

mrhoo - I think you meant synchronous XHR instead of synchronous Ajax ;)

But yeah - that's...
Forum: JavaScript programming 09-22-2006, 11:49 AM
Replies: 8
Views: 1,074
Posted By krycek
Never mind... I was being thick, as usual :) ...

Never mind... I was being thick, as usual :)

I had started off by using the onload event of the script element that I was dynamically creating - however, I had been adding the onload function as...
Forum: JavaScript programming 09-22-2006, 11:06 AM
Replies: 8
Views: 1,074
Posted By krycek
Question Detecting when dynamically-added script has loaded (NOT Ajax)

For various reasons, I have a need to add JavaScript files to a page *after* the initial page has loaded. I am doing this by creating a new script element and setting the src attribute, which works...
Forum: JavaScript programming 09-15-2006, 11:25 AM
Replies: 7
Views: 1,586
Posted By krycek
I'd assumed that you would apply my comments to...

I'd assumed that you would apply my comments to IE as appropriate...

Anyway, your event handler should be returning the value that your function returns, not just calling the function and then...
Forum: JavaScript programming 09-13-2006, 11:33 AM
Replies: 7
Views: 1,586
Posted By krycek
Yes, as I mentioned above, you need to "stop...

Yes, as I mentioned above, you need to "stop propagation and prevent the default action (and return false)".

e.g.

event.stopPropagation();
event.preventDefault();
return false;
Forum: JavaScript programming 09-11-2006, 01:05 AM
Replies: 7
Views: 1,586
Posted By krycek
You can use the onmousewheel handler in IE, or...

You can use the onmousewheel handler in IE, or the DOMMouseScroll event in Mozilla/Opera.

To work out the wheel delta:


if (event.wheelDelta) wheelDelta = event.wheelDelta / 120 *...
Forum: JavaScript programming 09-01-2006, 05:58 AM
Replies: 7
Views: 1,348
Posted By krycek
heheh, you just beat me to posting... I've just...

heheh, you just beat me to posting... I've just in the past couple of hours managed to get it working by doing just that. I'm using a combination of an onload procedure that finds all inputs and...
Forum: JavaScript programming 09-01-2006, 04:21 AM
Replies: 7
Views: 1,348
Posted By krycek
Well, I could do that, and I could also run...

Well, I could do that, and I could also run backwards up the tree checking for onfocus handlers... but that would mean adding focus handlers to all input elements.

I've tried to do that...
Forum: JavaScript programming 09-01-2006, 01:39 AM
Replies: 7
Views: 1,348
Posted By krycek
That would be great... except that Firefox...

That would be great... except that Firefox doesn't seem to know about DOMFocusIn and DOMFocusOut. At least, they don't do anything when I change my focus and blur listeners to them.

Now, I know...
Forum: JavaScript programming 09-01-2006, 12:17 AM
Replies: 7
Views: 1,348
Posted By krycek
I can't figure out why this isn't working. Focus...

I can't figure out why this isn't working. Focus bubbles in Firefox - right? (well, I can bubble focus up through divs with no problem.) I'm just not picking up a focus event in a parent div when a...
Forum: JavaScript programming 08-31-2006, 05:50 PM
Replies: 1
Views: 1,507
Posted By krycek
I know that jkd has written a function to do...

I know that jkd has written a function to do this. I have the code, but I can't really post it here on his behalf, as it's not mine... I'll let him know about this thread though.
Forum: JavaScript programming 08-31-2006, 12:00 PM
Replies: 4
Views: 743
Posted By krycek
This might help you with Firefox: Granting...

This might help you with Firefox: Granting JavaScript access to the clipboard in Firefox (http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard).

Unfortunately, I don't know how it...
Forum: JavaScript programming 08-30-2006, 09:01 PM
Replies: 7
Views: 1,348
Posted By krycek
Question onfocus bubble problem, and finding related blur element (Firefox)

I have a div which is able to take the focus, as it has a tabindex. When clicked on, a focus event fires, and when something else is clicked, a blur event fires. All fine and dandy so far.

Now, I...
Forum: JavaScript programming 08-26-2006, 04:35 PM
Replies: 2
Views: 737
Posted By krycek
Cool, that's what I was after. I knew about...

Cool, that's what I was after. I knew about currentStyle but I didn't know about getComputedStyle.

Thanks jkd! :thumbsup:
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 07:55 PM.