| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Comments:
<0> Woosta: Oooh, I figured it out.. IE wasn't liking the function within <script></script> tags, I put it inside a .js file and it works great :) <1> Mmmm .. strange .. <2> I want to extract some elements from html pages based on the cl*** attribute. Is it possible to use a javascript console like Firebug to get these elements and write them to a file? <3> hai <3> on On<some-event>, should i explicitly say like, i.e OnClick="javascript:document.write("some")" ? or just OnClick="document.write("some")" ? <3> is the javascript: line mandatory > <3> ? <4> no. don't put it there. <4> that is for when you use href="javascript:blahblah" <4> (as normally href's _aren't_ JS) <1> onclick, not OnClick <1> and NEVER document.write in an onclick unless you've done this long enough that you know why :) <4> Woosta, why? :x <3> Woosta, it's just an example. of course it won't be like that :) <1> document.write is only useful before window.onload <1> after that, it will create a new document and write to that
<4> interesting. <4> does the new document get a window or is it just stuck? <1> replaces the current one .. tias <5> why this failed? <a HREF="javascript: location=\"http://www.yahoo.com\";" >test</a> <6> I don't have enough middle fingers to express my disgust at that. <6> (a) Don't use href for that. (b) Don't use script for that. (c) You can't escape " with \ in HTML. <1> (d) href, not HREF <5> solve usong quote; <7> Hi...anyone know if there is a Prototype Event method that will return the [keyCode|charCode|which] property cross-browser? <7> Sorry....prototype JS lib.... <3> self.close();window.opener.do_something . will window.opener.do_something run after self.close() ? <8> how do I check if something is a int in javascript? <3> NaN ? <8> ah typof <8> +e <4> lylo, javascript executes syncronously, yes, now will it do what you want? *shrug* <9> hey pstickne! <4> hello dwees <9> got my colorthingy to work beautifully, and now I'm working on making it more functional <4> dwees, cool. there was a really cool color thing I found the other day. well, actually it was from on of buubots links. <4> `js color <4> ... <4> b0at, probablly knows <3> lol... i wrote windows, now window :/ <9> check out http://www.unitorganizer.com/websitebuilder/testing/coloradder.html <9> problem is when the color boxes get dragged out, they hide underneath the yellow box <9> I've tried changing the z-index of the colorboxes but that seems to do nada <4> dwees, they stay on tope fine for me <4> dwees, is this just in brokenuts explorer? <4> *yop <9> no in my version of firefox <4> geh <9> hrmmm.... <9> let me try explorer <9> have you dragged one over the yellow box? <9> oh wait it works in firefox <4> I'm 1.5.0.4/GNU\Linux and it works fine, yes, they stay on top <9> must be an IE dumb problem <9> let me check IE 7 <9> yeah there they go and hide in IE7 <9> the plan is to allow the user to grab a color and drop it into an element, and change the background of that element <4> if they disapears anyway, then what does it matter if they go behind when you drop them? <9> then when the element change background, the color box should jump back to its starting position <4> dwees, I would just do a dup -- eg, not move the origonal dic <4> *div <9> oh good point <4> dwees, I don't know how to do that, but there are some drag examples like that out there <9> yeah much better <9> yeah I think I know how to create a duplicate of a div <9> it's a bit of coding but shouldn't be too difficult <9> well that's another problem to deal with <10> Can anybody recommend me a rich text editor? (open source, something tinier than TinyMCE) <9> I really want the color boxes to stay on top all of the time <4> dwees, see scriptaculous and how they drag and drop (or any other of the million libraries :) <9> I'm trying to avoid libaries as much as possible because I find I don't really understand the code they've written <4> cruocitae, abiwork <4> err, abiword <9> so I can't adjust it to suit my needs <9> I have downloaded 3 different drag-drop resize etc... libraries <4> dwees, no, don't use them, see how they do it :) <9> yeah I don't understand how they do it
<4> dwees, well, you could use them. but still, see how they work even if you don't. <9> I've read like 3 of them <3> dwees, works with firefox 1.5.0.5 here <3> dwees, error on javascript console. check line 40 <9> nod <4> lylo, whack, firebug gives it a green light. <9> what's that mean? <4> it doesn't error in 1.5.0.4 but does in 1.5.0.5 <9> aah <4> unless he has some option turned on that I don't <9> so 1.5.0.5 is pickier than 1.5.0.4 <10> pstickne, link please? <10> I can't find abiwork.. <4> abiword <3> yeah... <4> my fingers screwed you over. <9> lylo is that a critical error, or can I ignore it for now? <3> dwees, wait <10> pstickne, I meant WEB based. <4> cruocitae, ohh, no clue <4> cruocitae, maybe what wordpressss uses <9> it works the way I want it to, and when I switch it to getElementByID it gives me an error right off the top <4> cruocitae, that's the only one I ever use. and because I haven't figured out how to turn the dumb thing off. <3> dwees, Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead. Source File: the_files Line: 40 <9> yeah I saw that as well <3> there <9> now I get a n Object doesn't support this property or method <9> error and the script stops <4> because it's not what you expect. maybe it's undefined. <9> I switched holdme.appendChild(newDiv) to <4> it's not good to call gEBI until after the document is loaded. <9> var divHolder = docuement.getElementById('holdme'); <9> and divHolder.appendChild(newDiv); <9> err and I spelt document correctly in my code but not here <4> you should make some support functions or use a library. <4> calling d.gEBI is boring and a waste of time <9> well I'm going to leave it with the warning error for now and work on that later <9> any clue on the problem in IE? <11> hi there <9> hey tfp <11> how can i change a part of a URL with JS? <11> is this possible with JS? <12> tfp: Err... define "change part of a URL". <9> what do you mean? <9> the URL in the address bar, or in a HTML link? <11> when i have http://www.foo.bar/hello?foo i want to change it to http://www.foo.bar/bar?foo <11> adress bar <9> oh you want short URLs <9> when the user clicks on something? <11> yes, wanted to make a bookmarklet out of it <9> <a href="http://www.foo.bar/bar?foo">click here</a> <9> is that what you mean? <9> they click there and the URL will change <11> it should be dynamically, so when i have http://www.foo.bar/hello?foo or http://www.foo.bar/hello?bar it just should change the hello <12> tfp: You want that when the user go to one URL they end up at the other? That's best handled with a server side redirect. <9> you don't want the page to change, you just want the URL in the address bar to change? <11> no in the end it should be a bookmarklet, not automatically, just when i click on it <11> dwees: yes <9> no clue tfp, sorry <9> I'm not savvy enough in any language to accomplish what you want, but I'm a rookie really <11> is there a string replace function in JS? <6> `colors # pstickne, this? <13> colors: http://color.sharewonders.com/ , www.wellstyled.com/tools/colorscheme2/index-en.html <6> tfp: The replace method of strings with a string for the first argument <6> Or a properly-escaped regex <14> Guys, is there a function to get the size of the display area of the window?? <4> b0at, yes :) <15> Guys, is there any function that gets the size of the display area of a window? <9> Wonderboy: dunno <9> you want the document size? <15> Ya <9> I think I've seen this somewhere in someone's library <9> well isn't that a hoot <9> my coloradder works beautifully now in IE, and doesn't work in IE
Return to
#javascript or Go to some related
logs:
guitarport freebsd +maildrop glibc detected free javascript ifconfig command not found fedora #php how to menuconfig saa7134-alsa seatspace #math u-boot for mx21ads #lgp
|
|