| |
| |
| |
|
Page: 1 2 3
Comments:
<yuioyuio> hello . i need some help please .. it there a way to close a html window with javascript:window.close(); and the browser winn _not_ ask for permission to close ? <gt3> sure hope not <fatbrain> oh... ex-gf. <[Torgo]> oops <fatbrain> I think it was the -"go f*** yourself" part that mad her tick <fatbrain> I never was any good at doing conversation <fatbrain> gives me more time to spend with my mistress.... if I had one... <furtive> the one you changed cities with? <fatbrain> ya <furtive> sorry it didn't work out the way you hoped. <furtive> at least your brain's still getting fatter ;-) <fatbrain> hehe, indeed, I'm glad we broke up, now I can continue my rampage of... not beeing with anyone. <furtive> the internet wouldn't have it any other way :-P <fatbrain> ;) <fatbrain> I don't know if you guys have tried out Lisp, it's freaking awesome, that is, if you want to do something that doesn't actually do anything. <fatbrain> like a function that prints out the pascal-triangle... who'd need that!? <furtive> hehe, i haven't. I really should, maybe i should pick up a book on it. certainly got the time for it. <furtive> a site dedicating to rating the escort "experiences" from the Second Life online game: http://sl-escort-ratings.blogspot.com/ <fatbrain> test <furtive> icle <[Torgo]> nice <furtive> ;-) <Athox> hehe <Athox> pervs <Athox> oops sorry <Athox> didn't see the @ <Athox> ;D <furtive> hehe <Athox> where the hell is my gum <Athox> i know one of you took it <two|face> hey how can I monitor for an onclick event, but not sure where, could be anywhere <[Torgo]> do it on the body tag <two|face> hmm, do what? :) <[Torgo]> punch yourself <two|face> I'll try :-p <furtive> lol <two|face> hey which one of you guys was working on domapi <two|face> well I went by the website anyway and glad to see its still rockin' <two|face> I guess I should ask, how do I monitor for events and then detect an onclick event? <furtive> I need candy, bubble gum and taffy, Gonna get your *** beat nasty, Do it so your dad sees, embarr*** your whole family <Athox> was that an attempt to do rap? <furtive> it was MC Pee Pants <Athox> right <Athox> who? <Athox> :P <furtive> http://www.geocities.com/audrahammer/mcpeepants3.mp3 <Athox> not interested, was just being sarcastic <two|face> [Torgo]: I see what you mean now, thanks :-p <SibLiant_> yo.. anyone around? <furtive> yep <SibLiant_> sweet.. <SibLiant_> easy question <furtive> just the way i like 'em <SibLiant_> what method do i just to change the current page <furtive> you mean navigate to another page? <SibLiant_> using onclick event in a div statment rather than a link <SibLiant_> yeah <furtive> location.href = "foo.html" <SibLiant_> kewl.. le'me try <SibLiant_> got it.. sweet <SibLiant_> told ya it was easy.. thanks <furtive> np <two|face> so lets say I have an iframe, a user clicks a link in the iframe they are taken to a new page inside of the frame, if I wanted to find out which page that is how would I do that? document.getElementById('frameid').src is set to the first page <ht311> back <ht311> furtive: just come back from Brunoise, I like it, good enough to have more visit later on. <furtive> how was the bill? <ht311> Appetizers and Desserts is included, from 40 t0 50$ <ht311> http://www.brunoise.ca/ <furtive> that's fine <bendman> hey, can anyone tell me how to add an onClick event to an element in the DOM? <bendman> hey <bendman> anybody awake? <RoBorg> document.getElementById('moo').onclick = myFunction; or document.getElementById('moo').onclick = function(e) { ... } <bendman> hey... someone's awake! <bendman> can somebody help me with the DOM? <Thunder^> Dom Perignon '53 was an excellent year I must say <RoBorg> I meant computer screen light :p <RoBorg> what do you need to know? <bendman> I'm trying to add an onClick event to a span tag that I made with a script <RoBorg> ok <bendman> ... <RoBorg> x = document.createElement('span'); x.onclick = myFunction; <RoBorg> that kind of thing <bendman> hm.. not working, I think there's a problem with something else <bendman> is it taboo to paste code into this channel, or am I ok pasting the function I'm trying to make? <Thunder^> use pastebin.com please <RoBorg> use http://pb.html-channel.com <bendman> kk, it's on pastebin <bendman> when I add the onClick event to the style tag it breaks the one on the parent tag for some reason <bendman> http://pastebin.com/550843 <RoBorg> objListNode.childNode.onClick that looks rather odd <RoBorg> erk <RoBorg> do you mean to call that function recursively? <bendman> yeah, kinda <RoBorg> it doesn't return anything though <bendman> I'm building a tree-ish navigation widget, and this is the function to expand the list <RoBorg> [09:28] <RoBorg> try this <RoBorg> [09:28] <RoBorg> objListNode.onclick = function() { showPropList(this); } <bendman> well, it doesn't break the parent onClick event, but the child one doesn't work <RoBorg> var ref = eval(obj.id); <RoBorg> what the.... <RoBorg> paste the whole thing <RoBorg> with HTML <bendman> kk <bendman> http://pastebin.com/550850 <bendman> ignore the ridiculous json example data <RoBorg> ahhmm <RoBorg> I think the problem is with the json <RoBorg> well <RoBorg> that and var ref = eval(obj.id); <RoBorg> yeeeesss <RoBorg> you don't ever give the li's an ID <bendman> hm... <bendman> how do I reference them then? <RoBorg> oh and you have onClick instead of onclick <RoBorg> objListNode.onclick = function() {showPropList(this);} <RoBorg> objListNode.id = prop; <RoBorg> heheh <RoBorg> now the only problem left is with the JSON stuff <RoBorg> you see what you're doing there? <bendman> whats the problem there? <bendman> I can access all the data like an array <RoBorg> "var ref = eval(obj.id);" would give you "var ref = myLibrary" wthe first time around, right <bendman> yeah <RoBorg> but when you click on a sub-item you get something like "var ref = books" <RoBorg> you have no variable called books <RoBorg> it's myLibrary.books <bendman> ah crap <RoBorg> so either change the JSON to reflect this, or change the way you look up the data <bendman> well, the json is how I want it, but I don't know how I could get the next level properties... <bendman> I tried objListNode.id = ref + "." + prop; but it didn't work either <RoBorg> something like objListNode.id = obj.id + '.' + prop; should do it <RoBorg> doesn't quite work though <bendman> another weird thing... when I do it with just objListNode.id = prop; I get what looks like a list of document properties or something <RoBorg> yeah it must grab the DOM object <RoBorg> that's all the properties of one of your elements <RoBorg> w00t <RoBorg> doesn't work 100% but that's due to the JSON <RoBorg> http://pastebin.com/550865 <bendman> kk, thanks <bendman> what should the json look like then? <RoBorg> you should keep it as objects instead of mixing objects and arrays <bendman> why does it only give the property number after 2 levels? <RoBorg> because you're using arrays <bendman> now I have http://pastebin.com/550870 and it's still doing it <RoBorg> yeah that's because you have 1 : {... 2 : { ...
Return to
#javascript or Go to some related
logs:
#AllNiteCafe verlihub change hostname #teens Lukian perth univercity of Romania #php #c++ #php #linux THE SERVICES RESOLVED THE BALCOMBE STREET SIEGE
|
|