| |
| |
| |
|
Page: 1 2
<overflow> Woosta: that is exactly what Im doing <Woosta> OMG <Woosta> What have Google done? This is getting WAY too smart <Woosta> google for 'getElementByName' <overflow> something like tr=document.getElementsByName("company"); for (a=0; a<trs.length; a++) trs[a].style.display='table-row'; <overflow> Woosta: is Elements, not Element <Woosta> yup <Woosta> but try it <Ricky28269> Woosta: are you saying Google is good or bad? <overflow> Woosta: yes .. but that didn't work <Woosta> It's great <Woosta> overflow: try googling :) <Ricky28269> yeh i think so too <Woosta> Sorry <overflow> so my code is right ... <overflow> f*ck IE <Woosta> overflow: try using a style parameter that both browsers understand .. like setting the backgroundColor ... IE DOESN'T understand table-row <overflow> IE say that display property isn't valid <Ricky28269> http://en.wikipedia.org/wiki/Google_platform <-- notice the Server Hardware and Software section :) <Woosta> Ricky28269: old news :) <Ricky28269> lol <Ricky28269> thats crazy tho, 100-300 teraflops... <Woosta> overflow: then you're getting elements that can't be styled somewhere ... I don't like gEBN personallly .. <Woosta> Especially for something like that .. you should be using CSS <overflow> Woosta: yes I use CSS to set the default display property to none <Woosta> So these are table rows? <Woosta> And you want to turn them 'on'? <Ricky28269> quick non-js question: when firefox "protects" you from downloading, how do u byp*** that, besides adding a website to the allow section? lol <overflow> Woosta: right <Woosta> overflow: so set yourElement.style.display='' <Woosta> Works on all browsers that I've ever seen <overflow> Woosta: '' to show it ? <Woosta> (no value, meaning default value) <Woosta> yes <overflow> ok <Woosta> But that wont solve your 'display' property error <Woosta> Why not just turn on and off a rowgroup though? <Woosta> rather than looking for rows with a 'name' property .. which I'm not sure they're allowed to have <Woosta> `html tr <RTFS> html tr: http://www.w3.org/TR/html401/struct/tables.html#edef-TR <Woosta> nup, no name property <Woosta> `html rowgroup <Ricky28269> lmao <Ricky28269> 'html rowgroup <Ricky28269> darn doesn't work for me either :P <Woosta> Nah, it's not in there .. and the bot wants a backtick <Ricky28269> explain backtick <Woosta> backtick: ` tick: ' <Woosta> `html tbody <RTFS> html tbody: http://www.w3.org/TR/html401/struct/tables.html#edef-TBODY <Ricky28269> oh i see <Woosta> ^^ use a tbody around the rows you're turning on/off <Woosta> then you can set the display to 'none'/'' on it by ID <Ricky28269> the thing below ~ = backtick? i never knew the name <Woosta> yes <Ricky28269> i learn something new every day :P <Woosta> Any day you learn something new should be considered a successful day. <Woosta> If you go 24 hours without learning something, you've failed and wasted a day <Ricky28269> lol <Woosta> I'm serious .. even if it's as innane as 'backtick' <Ricky28269> i thought i specified that firefox should have all the extras when i installed, but apparently not cause venkman or w/e isn't in it... <Woosta> nup, venkman is an addition <Ricky28269> could soemone tell me once more, what do i use to load a txt file through javascript? i forgot to copy and paste, and my irc just froze lol <Ricky28269> nvm i logged it <TimJR88> Hello...Woosta are you around? <Woosta> I am <Woosta> I haven't looked at you email yet sorry <TimJR88> Thanks a million for the code you provided me, my favorites list system is complete now. <Woosta> cool! <TimJR88> Oh dont worry about the e-mail, I figured out what I was asking <Woosta> IIRC you just needed to grab Game[X][1] rather than Game[X][0] <TimJR88> :-) I will send you an e-mail when I get it updated on my site, I have one other thing to do before releasing it to the site, but is all done locally <TimJR88> :-) <Woosta> cool! <TimJR88> Sorry for all the faces, very excited :-P <Woosta> I'm quite happy with the control .. I've been working on it more so that it's more of a generic control <TimJR88> Oh, was the image in there just for testing? <Woosta> Yup <TimJR88> I sorta didnt use any images <Woosta> Nah! <Woosta> But I realised that there was nothing stopping you using any kind of content in there <Woosta> So I was checking out adding mimage <Woosta> images <TimJR88> Oh I see <Woosta> But they still need a little more work .. you can't see if it's highlighted yet :) <TimJR88> It works great, my partner dropped his jaw when he saw it <Woosta> LOL <TimJR88> I toyed with it a bit myself, but then reverted back to what you had <TimJR88> I tried makeing it so the 6'th item had a red background when they clicked it rather than haveing an alert <Woosta> If you're happy to, I wouldn't mind a comment on your page somewhere <!-- multiple select by rick.measham.id.au --> <Woosta> ahhh <Woosta> cool .. did you see the fade I put on there .. was having fun :) <TimJR88> But when I changed the RGB, it failed to work, it wouldnt put on a bg on the text at all <TimJR88> Yes I did, that is such a nifty touch <Woosta> It wouldn't be hard to get rid of the alert and just change it to a red fade .. <TimJR88> I will put that comment in the actual page where they select the games <Woosta> I made it grey coz it was lazy :) <Woosta> thanks :) <TimJR88> Maybe I dont understand the code <TimJR88> I tried to set the bg color of the 6;th item to red I thought i had it correct but upon changeing the RGB it wouldnt fade or do anything with a background <TimJR88> All the wells, I dont think background color really maters mate, it is functional, thats all I care right now <TimJR88> ;-) <Daegon> Anyone have any tips on how to "sort" blocks of unknown width and height into a shape that optimally uses width versus height? <Daegon> for instance, the widest bock would be upper left and N other blocks (where N is not a constant) are fit around it to take up the least amount of area? <Woosta> A very complex problem .. <Daegon> Quite. I can do it fine when all blocks have the same W, but when W is variable (changes by block), I get lost. <deltab> Daegon: that's the knapsack problem, I believe <deltab> http://en.wikipedia.org/wiki/Knapsack_problem <Woosta> Ahhh that's right .. forgot that it had a name :) <Daegon> It is a bad sign when someone ***igns a name to it :) <TimJR88> lol <TimJR88> Woosta I broke the system. :-) ... Just messin with ya, I tried to make it 'click' an item if it was already in the persons cookie, but it didnt work out so hot, why is it that the line that creates the i.onclick stuff is so complicated? <Woosta> LOL .. JS closures .. there's a fix that b0at and I were talking about, but I haven't put it in there yet <Woosta> I can set it to have defaults if you want <TimJR88> Well, okay, I will leave it to the expert ;-), I gave it a good shot I ***ure you <TimJR88> I just wanted it to have the games clicked the person has in their favorites... <TimJR88> I'll show you what I tried in pastebin <TimJR88> http://pastebin.com/411544 <TimJR88> Well I already saw one issue, change the referance to the itemURL Game[G2][1] to [0] LoL, I keep doing that <TimJR88> Please ignore my trys woosta, I see lots of issues with it now, I will let you add it if you get time. :-) <Woosta> lol <TimJR88> Woops woosta, happened to check the page on your server and am caught in an alert loop it seems <TimJR88> :-P <Woosta> there's on 32 of them <Woosta> only <Woosta> just don't reload for a few minutes <TimJR88> I finally got to the end :-P was jokeing <Woosta> I'm being naughty and playing with 'live' code :) <TimJR88> lol, you bad boy you. <Woosta> TimJR88: ok, you can safely reload now .. there are two already selected .. see the source for how they're selected .. it's at the bottom <TimJR88> Oh wow, your awesome <Woosta> The color library should be split off though .. no need to continually load it each time it's needed <Woosta> And I haven't tested opera or IE yet <TimJR88> Works fine in IE <Woosta> Opera is cool too <TimJR88> Awesome you da man! :-) <Woosta> Actually .. there's a bug in opera somewhere .. <Woosta> they don't turn off when you click them a second time <TimJR88> Ut oh <lith> Anyone here know of an easy way to parse through XML, perhaps change it into an object? <TimJR88> Woosta are you going to modify the code any more, as far as performance for what I need it for or Opera fix? <TimJR88> NOt asking to be pushy, just seeing if I can plug my stuff into it and use it yet <paste-it> "useruser" at 66.11.182.207 pasted "is savedThis needed?" (12 lines) at http://pastebin.bafserv.com/1786 <useruser> what do you think? is there a neater way to do this? <Woosta> TimJR88: I want to get it to work on Opera <useruser> ... so i guess what I'm asking is, what's the best way to get the current instance of an object inside a closure? <TimJR88> Woosta: Okay, I will check back in a day or so with ya to see if you have come up with a fix. <Woosta> I'll be writing it up as an article once it's done .. and once it's extrapolated out of the 'game' paradigm
Return to javascript or Go to some related
logs:
du svake menneske jannice
|
|