| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> meh, thanks to IE being ****ty, xhr is one of the few places I tolerate innerHTML <1> IE is not on the cutting edge Firefox is , but I wish firefox would get even closer to the edge. <2> i wish it'd fix memory leaks <2> i've had it reach over 600mb of ram <1> I have been working with the embedded mozilla widget in gtk very cool you can make your own kiosk browser. nice so far. <1> and not too hard to get the basics up and going. <1> and works with all the plugins that I have worked with so far. <2> there's always xulrunner too <1> I have not gotten to work with that yet <2> it's not bad <2> firefox without any gui <3> speaking of which... <3> anyone know of a method to develop one xml based source tree for plugins and have it work in IE and Firefox? <3> translate the xml/js to XUL and <language X>? <3> maybe an activex xul wrapper?
<3> BHO xul intepreter? <3> BHO lua interpreter? <4> var a = document.getElementById( 'checkbox_retrive' ).checked == true ? 1 : 0; isnt this the right way to set a var 1 if checked, else 0 ? <5> Jippi: you don't need the == true <4> Error: uncaught exception: [Exception... "Index or size is negative or greater than the allowed amount" code: "1" nsresult: "0x80530001 (NS_ERROR_DOM_INDEX_SIZE_ERR)" location: "http://back/security/groups/manage/1/ Line: 59"] <4> is what ff gives me :| <4> ah, nm <2> :/ <6> does IE finally have a working DOM api? <6> especially importNode and stuff? <7> whats the best way to embed javascript in a page to execute ASAP, without using the body:onload event handler? <7> I wish each element had an onload or ondisplay event handler or somethin <6> no event handlker <6> just plain <8> zardinuk: any code outside of a function will be executed as soon as it is read <8> but you won't be able to access the DOM until the page has rendered <8> so using onload is the best option - that's why the event is there <6> nobody here using IE 7? ;> <7> GarethAdams: i suppose I can attach the onload handler from anywhere in the page, right? <6> yes <6> document.onload=myfunc; <8> zardinuk: better is to add an event listener <8> otherwise, you'll end up completely replacing an existing onload <7> it's to pre-load an image, is there a better way? I'm thinking just embedding the image at the bottom of the page with width 1 or something <8> for a mouseover or something? <7> yep <7> I'm just re-formatting the imageready output <8> use CSS <7> use CSS? <7> don't pre-load? <8> 1 sec <8> there's a very neat trick <8> you make your image a background to the element you're putting the image in. Except, you make the background twice as big - with the hover and normal states both in the same image <8> but, you set the size of the element to only show half of the combined image <7> that's a neat trick <7> then align top or bottom? <8> then, using CSS, you change the background-position on :hover to show the other half <8> http://www.alistapart.com/articles/sprites <7> that's neat but it's too bad imageready can't automatically do that for me, seems like a headache for this navigation menu, I'm always updating <2> ick <2> http://www.alistapart.com/d/sprites/ala-blobs3.html <2> doesnt look so good in safari <8> Ratty_: it's not meant to <8> keep reading til the next example <2> oh <2> i just clicked randomly <2> http://www.alistapart.com/d/sprites/ala-blobs2.html <2> ah yeah <8> http://www.alistapart.com/d/sprites/ala-blobs2.html <8> yeh <7> you can ***ign a background-image to IMG tags, I wonder if that will be sufficient pre-loading <7> just set background-image to the over state <9> sup sup <8> you shouldn't use <img> tags in nav menus anyway <8> backgrounds on <a> tags are the most semantic way <10> hi, I was wondering why my close browser button won't work... I used onClick='window.close()' as my code.. anyone got clues to why it doesn't close? <2> you can only close windows that were opened with javascript <10> Ratty_: Thank you for your response, is there a way I can close a window that isn't opened by a javascript? <2> click the x <10> Ratty_: no other method?
<2> it's a security thing <2> so nope <10> icic <10> can I make a javascript that will change to another page and then use window.close? <10> would that work? <11> nope - if you didn't open it, you can't close it <12> hi <12> does someone know the command to draw lines and boxes with javascript ? <0> lines and boxes? no such thing <12> yes <0> you either need MS VML or standard SVG <12> ?? <11> or Canvas <12> i just want to make a simple color select box (in a small popup) <12> so the user can select a color for text <11> define: create elements using the Document Object Model and style them appropriately <12> insin: so i there are no graphic functions in javascript at all ?? <12> i know dom a bit ... but how to draw over dom ? <12> the only thing i can do is with css.. (because i just need boxes with different colors) <11> not in a cross browser fashion - don't think of it as drawing, think of it in terms of a web page - create elements with DOM and lay them out with CSS <12> so javascript does not supports any drawing <12> (lines boxes ..) <3> chck out zorn <3> googe zorn vector javascript <12> insin: so when creating a popup window ... how to place some content in it ? <13> define: much in the same way bitmap editors dont support html, css and JS <12> bewest: that needs an plugin ? <3> no <13> nope <3> just javascript <3> also check out dhtml slants <0> bewest: is that that disgusting thing that uses piles and piles of absolute divs with borders to simulate line-drawing? <12> bewest: how can they draw ? <13> heh <3> frb-work: probably :-) <3> define: I don't know <3> piles and piles of small absolutely positioned divs <12> lol <3> most likely <13> yeah, it does <3> use canvas <11> var yourWindow = window.open(...); and use yourWindow.document the same way you would use document in any other window <3> or something simlar <12> ok.. so the only question that remains is how to print a few <div id="color0"></div> in a popup window ?? <11> for what you want, you really don't need to draw things - just create a web page on the fly <11> var d = yourWindow.document.createElement("div"); d.style.color = "#f00"; yourWindow.document.appendChild(d); <12> insin: THANKS <3> what are you needing to draw anyway? <3> I don't get it <3> if you want charts, there are way to do that <11> have you tried googling for "javascript colour picker"? there are tons of them <12> bewest: i just need a color picker (a popup window where i see many small boxes with different colors) <3> ah <12> bewest: where the user can choose a color <3> I disagree with the new window bit, but I might just be contrarian <3> go to http://amazon.com/ and mouse over the middle tab at the top <12> bewest: that shows me a window for a short time <12> bewest: how do they do this ? <3> magic :-) <3> a short time? <12> :b <3> and it's not a window <3> it's more of a lightbox <3> also see <12> as long as i don't remove the mouse <3> http://particletree.com/features/lightbox-gone-wild/ <14> is b0at still mia ? <14> can i do "if((x-=1)<=0){return false;}" ? <3> what would that do? <3> do you mean if( x != -1) ? <3> or <3> if (x-- < 1) ? <12> increment x by one and then test if it is smaller or equal zero <14> it minuss 1
Return to
#javascript or Go to some related
logs:
#mysql #asm hybserv Invalid servername.
#lisp udevd event file exists gentoo #math peachy_ qt3 qt4 mythtv suse-10 change-mac-address Cedega CVS.deb
|
|