| |
| |
| |
|
Page: 1 2 3
Comments:
<POLICE^> helpme <POLICE^> <input name="" type="button"> (href ...) <POLICE^> link <diesl0w> anyone wanna view some weird character encoded escape() to help me determine what it is <adrian^-^> hi <adrian^-^> what's the right way to do: document[imgName].onmouseout = "imgOff('"+imgName+"')"; because it doesnt work this way..:( <SufiBlade> what on earth is imgOff? why is it in quotes? <adrian^-^> it is a function <adrian^-^> how should it be ? <SufiBlade> you dont write functions inside quotes <SufiBlade> imgOff(imgName); <adrian^-^> doesnt work that way :( <SufiBlade> whats imgName? <adrian^-^> can i paste about 8 lines ? <SufiBlade> use the website <SufiBlade> http://pastebin.com/ <SufiBlade> paste it there <adrian^-^> http://pastebin.com/657291 <adrian^-^> so: document[imgName].onmouseout = imgOn(imgName); and document[imgName].onmouseout = imgOff(imgName); do not work <SufiBlade> what is imgName? <adrian^-^> the name of some <img> <adrian^-^> <image> <SufiBlade> name? whats name? example? <adrian^-^> <img name='img01'> <adrian^-^> and so on til img17 <SufiBlade> ok first try this. give the image some Id. and then : <SufiBlade> document.getElementById(imgId).onmouseout = imgOff(imgId); <SufiBlade> or, im not sure of this, but might work: docuement.getElementByNames(imgName).onmouseover....etc etc <adrian^-^> http://pastebin.com/657315 could someone explain why: document[img].onmouseout = function(){imageOff(img)}; doesnt do anything really please ? <daVinciIT> morning all. how to play sound with javascript on FireFox. thank you. <SufiBlade> pile em up <oriceon> Hello <oriceon> Someone could tell me how could i find if an <ul> </ul> contain <li> ? <SufiBlade> hmm iterating through the DOM nodes <VaranG|aN> SufiBlade: DOM = Document Object Model <VaranG|aN> the XML uses it <SufiBlade> and js can use xml <Thunder^> Isabel23: You got a msg script virus on your mIRC - get rid of it! <ht311> Kara25 got a DDC send file virus too. i kick and ban hime <MarkP> If I have the name of a form element in a variable, is there a difference between how I can reference the element in FF and IE? <[Torgo]> no <MarkP> document.form1.elements[name] works in FF, but not IE <[Torgo]> yes, it does. <[Torgo]> validate your html <MarkP> Someone please ban Isabel123 <[Torgo]> and 'name' is a poor choice for a variable name <MarkP> What? She's a frickin porn bot <[Torgo]> how about you leave the ops duties to us? <MarkP> Ok, fine. Sorry <[Torgo]> k <MarkP> anyway, when I try to reference it, it comes back as undefined <[Torgo]> validate your html <[Torgo]> http://validator.w3.org/ <[Torgo]> looks like you are right <ht311> I kick one that send virus around this morning <MarkP> is starting an element name with an underscore that big a deal? <ht311> if it didn't work, it means that you not suppose to do it. <[Torgo]> should work fine <MarkP> Ok. I fixed all the errors except for the underscores in the IDs, but when I try to refer to the form elements, it is still coming back as undefined <MarkP> and those are the ids of divs, not the form elements <[Torgo]> did you validate your markup? <MarkP> Yes <[Torgo]> then you have a logic error or typo <[Torgo]> the base technology works fine <[Torgo]> put it up on nomorepasting.com <MarkP> http://nomorepasting.com/paste.php?pasteID=60779 <MarkP> the error is on line 17 <MarkP> It works fine in FF <[Torgo]> try using nm or elementName instead of name <MarkP> I'll try that, but by the time it gets to this function, it has already gone through another function that does the same thing. <MarkP> still doesn't work <MarkP> I changed it to elName <MarkP> Wait a minute. <MarkP> These form elements are being created dynamically. Could that have something to do with it? <[Torgo]> if they are not attached to the form correctly, absolutely <MarkP> How do I attach them to the form? <ht311> and they name may still screw up in IE <ht311> i think i run into that with id start with _ <MarkP> Torgo, how do I attach the form elements to the form <MarkP> I fixed the underscores and put them at the end of the IDs <Pilum> Generally, with appendChild() <MarkP> ok. I have to appendChild the form element to both the form AND the html element that positions it correctly? <VaranG|aN> Hello MarkP, Pilum <VaranG|aN> Hello ht311 <ht311> hi <VaranG|aN> how are you ? <enigmaa> How do i make my website replace example.gif by example2.gif on a mouse rollover? <enigmaa> <-newbie <Pilum> MarkP: No. Not as long as the positioning element is inside the form in the html structure. <Pilum> enigmaa: document.image['imgname'].src='example2.gif'; <VaranG|aN> lol @ enigmaa <VaranG|aN> I like this qoute <VaranG|aN> <- newbie <VaranG|aN> <- object <enigmaa> Pilum let me try that <mogul> Who has a javascript that i can put him on a website and when somebody tries to close the site , the javascript to make dupes ? please <VaranG|aN> Hello mogul <mogul> hy <enigmaa> Pilum i can't get it to work <Pilum> "the javascript to make dupes"? Rephrase please. <Pilum> enigmaa: Url? <mrtony21> I have a question... <Pilum> Yes? <mrtony21> is there a way to get the text part of an html document without the tags? <mrtony21> var timmy = parent.window.getBrowser().selectedBrowser.contentWindow.document.getElementsByTagName("P"); <mrtony21> alert(timmy.item(0).innerHTML); <mrtony21> that is what i am using to get the text of a paragraph in a website.. <mogul> oke <Pilum> Eww. <Pilum> What's that supposed to be? Jscript .NET? <mrtony21> no javascript in the context of mozillafirefox <mrtony21> erm I am new to this.. <mrtony21> what i need to do is to get the whole text of the page i am looking at into a string variable.. <mrtony21> without the tags and such <Pilum> alert(timmy[0].innerHTML) for starters <enigmaa> Pilum i noticed you the website <Pilum> Too bad I ignore those then. <enigmaa> a /msg perhaps ? <mrtony21> okay, granted.. but it is returning the text with the tags .. is there a way of getting tagless text or do I have to remove the tags using some function. <Pilum> You want _all_ text on the entire site? <Pilum> enigmaa: No. <mrtony21> yes with no tags, just the words <enigmaa> Pilum ok, then, could you please explain me what's wrong with this: <enigmaa> <td width="62" align="left" valign="top" background="file:///C|/Documents and Settings/Administrator/My Documents/My Webs/adastrarocket/images/menu-background.gif"><a href="./index.html" onmouseover="document.home-menu.src='images/home2-menu.gif'" <enigmaa> onmouseout="document.home-menu.src='home-menu.gif'"><img src="file:///C|/Documents and Settings/Administrator/My Documents/My Webs/adastrarocket/images/home-menu.gif" name="home-menu" width="62" height="45" border="0" /></a></td> <Pilum> Loop through the entire DOM tree and check for text nodes. Or do a regexp search to filter out the tags. <mrtony21> are htmlparagraphelements part of the text nodes? <Pilum> No. <Pilum> They usually contain text nodes, but they aren't text nodes. <mrtony21> ok last question then, so will text found in paragraphelements be captured aswell (even if they are not declared as text nodes?)) <Pilum> enigmaa: Firstly, use a pastebin next time. Second, don't use file:/// for src, and thirdly, you're not doing what I told you to. <Pilum> mrtony21: Not familiar with the DOM are you? <mrtony21> no today im looking at it for the first time <mrtony21> i am doing a context search extention for firefox <mrtony21> all i wanted to know was if text can be retrieved cleanely and with no tags so i can research further how to do it (knowing that it is possible0 <Pilum> You should start your swimming lessons in the shallow end of the pool. You're diving in head-first from the 15m diving board into rocky seas. <mrtony21> :) its true.. <mrtony21> 10x anyways <mrtony21> i will do abit more research <Pilum> http://www.mozilla.org/docs/dom/ <Pilum> Similar at http://msdn.microsoft.com/ <mrtony21> yes thats what i am looking at <mrtony21> if i understood correctly then <mrtony21> if i traverse the DOM tree for the textnodes <mrtony21> i still wont capture all the words in the documents because <mrtony21> certain text can be in Paragraph tags without the text nodes explicitly declared <mrtony21> or text area for that matter <enigmaa> Pilum what am I not doing, that you told me? <enigmaa> i removed all of the file:/// stuff <enigmaa> but, i still cant get to change the images on rollover
Return to
#javascript or Go to some related
logs:
#mirc burger 423kcal nombay #php Jenny Darba #AllNiteCafe pilonadil cyst
klibido SIGSEGV #linux #php
|
|