Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

peter
Guest
On the JavaScript / DOM side of things, what would you like Microsoft to include in version 7?


Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Well, include all functions that other browsers include, that it does not. Like, I believe you said that it doesn't support .createTreeWalker().

Jim

Jim Avatar
Josh was here.

****
Studio Member

740


September 2005
Everything. Support it all. :D


Team Studio

Team Studio Avatar

******
Administrator

120


June 2005
Hehe...how about insertAfter(); (I hope that exists)
XDD

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Hmm.... O_o That'd be a damn awesome function.... maybe Peter can prototype it? ;)

All you ahve to do is Object.nextSibling.insertBefore() though.

Team Studio

Team Studio Avatar

******
Administrator

120


June 2005
But for lazy, wannabe coders like me:

Object.insertAfter(); is better :P

Moose

Moose Avatar

****
Senior Member

449


August 2005
I came up with insertAfter() talking to Shin a while ago. Do what CD said the secret sexy version of inserting after. :P
Greg says:
Coding music...
Greg says:
Hmm...
Greg says:
I wouldn't rule it out. :P
Chris 3.0 [New features? Yes.] says:
:P
Greg says:
If you think about machine code it's a bunch of 1s and 0s
Chris 3.0 [New features? Yes.] says:
Anything is possible.
Greg says:
Yeah try to code Metallica
Chris 3.0 [New features? Yes.] says:
:P Yeah, I'll get right on that... right after I learn to fly.

Spektral

Spektral Avatar

*
New Member

0


July 2009
I would love for it to be compatable with all CSS.
I would also enjoy a free default spyware, popup, and virus blocker.
Links based on most often visited sites.
Stop fucking up every now and then. No errors, ever, EVER!

I think that's all that matters, and if that were implemented than bye bye FF will go.


Nate

Nate Avatar

**
Official Member

85


July 2007
braxis said:
I would love for it to be compatable with all CSS.
I would also enjoy a free default spyware, popup, and virus blocker.
Links based on most often visited sites.
Stop fucking up every now and then. No errors, ever, EVER!

I think that's all that matters, and if that were implemented than bye bye FF will go.
He said on the DOM / JS side of things.
And same as Alien.

hpmad

hpmad Avatar



858


September 2005
Firefox's DOM inspector is pretty awesome. IE might have that too... I wish, then I would use IE :D

Jim

Jim Avatar
Josh was here.

****
Studio Member

740


September 2005
hpmad said:
Firefox's DOM inspector is pretty awesome. IE might have that too... I wish, then I would use IE :D


Check a few threads down. There's a toolbar that has it.


peter
Guest
cddude229 said:
Hmm.... O_o That'd be a damn awesome function.... maybe Peter can prototype it? ;)

All you ahve to do is Object.nextSibling.insertBefore() though.


FF supports extending the DOM, IE doesn't. But here you go :P...

<span>fdsfs<i id="a">fdsfs</i><i>fdsfs</i></span>

<script type="text/javascript">
<!--

Node.prototype.insertAfter = function(newNode){
     if(newNode){
          if(this.parentNode){
               if(this.nextSibling)){
                    this.parentNode.insertBefore(newNode, this.nextSibling);
               } else {
                    this.parentNode.appendChild(newNode);
               }
          }
     }
}

document.getElementById("a").insertAfter(document.createTextNode("weeeee"));

//-->
</script>



Last Edit: Sept 28, 2005 15:36:23 GMT by peter

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
:P Well damn, I thought IE did.... stupid IE.... >_> :P

Nice code though Peter.

peter
Guest
cddude229 said:
:P Well damn, I thought IE did.... stupid IE.... >_> :P

Nice code though Peter.


Why I hate IE so much, you can't extend the DOM, can't prototype to the Node, only allows basic stuff like Date, String, Function, Array etc

IE doesn't even support some sort of Get and Set method :-/


Last Edit: Sept 28, 2005 15:44:29 GMT by peter

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Get? Like PHP $_GET? >_>

newBookmarkLockedFalling