| |
| |
| |
|
Page: 1 2 3
Comments:
<0> Lo dave-e <1> yo <2> SufiBlade: peer really like you today <3> [22:50] * SufiBlade has quit IRC (Read error: Connection reset by queer dial up) <4> there a way I can reference an object by its name in the 'global' namespace <4> like I can do window["myThing"].blah <4> can I use such a pattern outside of an html app? <4> ie, a WScript app <4> nevermind, got it :D <5> any way to remove all the childs of an element with out looping? <6> sk8ing: drop the element itself and recreate it? <5> nah, I used the loop <6> cool <7> hi ppl! <7> just a simple question here, why does this work perfectly in IE and not in Mozilla: document.getElementById("myDiv").innerHTML = document.getElementById("text_intro").innerText; ? <7> And yes, JavaScript is enabled in both browsers...
<7> Mozilla tells me it is undefined tho... can't figure it out <6> innerText is an IE only thing <7> same with innerHTML I guess... <6> no <6> although there is no w3c standard for either, innerHTML is supported by most brownsers, innerText isn't <7> Well... for some resaon, if I try with both as innerHTML, it still doesn't do anything <6> then you're doing something wrong? waiting until the onload event? <7> yep, triggered by a button <6> and if you just alert the innerHTML of text_intro it looks fine? <7> and I know it gets to the script correctly in both browsers, it's like the script simply has no effect in Mozilla, works fine in IE <6> must be more to it than that. you got a link? <6> is text_intro unique, you didn't use the id twice by accident? <7> it's unique <6> i'm running out of ideas then, but it just takes as simple proof of concept to see that the innerHTNL works <7> it alerts it right in IE <7> nothing in Mozilla tho <6> and the script debugger? <7> JavaScript Console is empty <6> is your html well formed? <6> (running out of ideas) <7> hehe yeah I appreciate the effort <6> paste the code to a pastebin or post a link <7> It's not online but gimme a sec <7> hrmm... pastebin is slow today ;) <6> nomorepasting.com <7> <script type="text/javascript"> <---- That should be fine ... right ? <7> http://pastebin.com/726761 <7> there you go <6> yeah <6> slow indeed <8> I've got this app http://200.77.150.248/TempusOptimus/?op=inputTeacher&byp***Config&site=200.77.150.248/domuslocus1 and I need to "SELECT" multiple CELLS with a drag (ie mouseover WITH left click), how can I do it? I've tried detecting event.which but it doesn't work... <6> use a toolkit, it's too late for me to be explaining stuff like that at night <7> furtive: ? <7> were you talking to me ? <6> Ralph_3D: use .value instead of innerHTML on the textara <6> textarea <7> ok, I'll give it a try <6> no, i was talking to StarkHalo <7> well... that was it! <6> you see, you need to use .value instead of .innerHTML because you don't really put html between textarea tags. <7> Oh ok <7> but innerHTML would be valid with a div for example <7> am I right ? <6> absolutely <6> or a span, or a p, etc... <7> oh ok, thanks <7> that will be very usefull <6> it's like trying to use innerHTML in an input <6> hehe <6> i'm usually faster about these things but i hven't been coding js in way too long...half a year? <6> bleh <7> Well, I was just testing some things out, but the objective is to have a textarea where someone enters HTML and then see a preview in a div below <7> so there will be html code entered in the textarea, and then will be displayed (properly formated) inside the div. <6> cool <7> same here, haven't done js in a while, not an "advanced" js coder either but still... couldn't have figured it <7> I'm basically building an online html editor where you can insert tags using buttons like <br> or <ul>... you know, basic stuff like that <6> yeah, a lot of those out there <7> yeah, found some pretty useful info <6> evening <2> evening, just finished Castlevania: Harmony of Dissonance <2> a gba game
<6> ah, started playing it... wasn't into it much <6> went back to playing bubble bobble instead <2> I like castlevania a lot <7> used to have the old castlevania on nintendo <7> loved it <2> you have to play the ps2 2d one <6> get a DS Lite. ..awesome <6> k, going to watch some battlestar galactica, l8r <2> i am sick of waiting for the card, I guess I gonna flash it <2> later <6> you ordered from UK? <6> i want one too... maybe next paycheck. <2> I ordered on us site, seem they hand off the order to the uk, and uk support never answer my mail <2> i ordered on 2nd <6> damn <2> don;t buy this card, it have sleep issue, get the p***card3 <2> gonna do a charge back i guess <6> cool <6> l8r <9> sup <9> can you ***ign an onmouse* event to an element? <2> myelement.onmousemove = myhandler; <2> or myelement.onmousemove = function(e) {myhandler(e);} <9> thanks, later <10> hey guys <11> hey <12> mornin all <12> who is awake <12> seen roborg <7> yo <12> hi ralph w***up <7> nothin much, trying to figure out some js issues <7> you ? <12> just wakin up <7> I have a textarea and want to insert some more text where the cursor is positioned ... it that possible ? <12> dont know i come here to give people a break <7> :P <7> just chillin I see <11> is there a way to access a directory in the web root without doing the ../ thing <12> use google <11> i dont think thats in google...not easy to find <12> u can always try <13> hello... can anybody gimme a hand? <11> take evian's <13> ok <12> lol <12> SufiBlade i dont know if mine fits <13> i'd like to refresh a popup after the page that opened the popup has refreshed... <11> :-/ <12> or u think my hand is big enuff? <13> in the main window i click on the button, and then it opens the popup and refreshes the page... i would like to refresh the popup when this pages gets refreshed.. <11> how did u open the popup? <11> i think a name is given to the popup window <11> so call that window by its name and set its location to reload it <13> right... i gave a name to the popup.. <13> but how will i know when the parent window has refreshed? <13> the flow i want is: <13> PARENT- onclic="openPopup('popupName'); window.location.reload()" <13> click <13> so.. what happens is that the popup is opened and then the page is refreshed... what i'd like to do is to refresh the popup when the page finishes this refresh... <13> got it? <11> hmm <11> thats tricky <11> maybe u can use a cookie to store the value that popup is already opened <13> in truth, i'd like to know if there's a way to see, thru the popup, if the parent window has been loaded and to fire an action when it happens.. <14> yoo <15> hello, there is written <15> http://www.w3schools.com/htmldom/dom_obj_body.asp <15> scrollTopSets or returns the distance between the top edge of the body and the topmost portion of the content visible in the window <15> it doesnt work in opera.. is there any other way to get such info ? <5> uhm... I have an object that has a member function that I would like to p*** to another function, but I want to p*** it as part of that object
Return to
#javascript or Go to some related
logs:
#linux #php #windows #java #c++ lickerpicker #AllNiteCafe MSBuild include directories #chatzone #MissKitten
|
|