@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13



Comments:

<0> so long since i last used javascript. can't hardly remember anything.. :S
<1> `ie hoverhack @ Wartex
<2> Wartex, ie hoverhack: www.xs4all.nl/~peterned/csshover.html (working example: www.xs4all.nl/~peterned/examples/cssmenu.html )
<1> `rollover @ Wartex
<2> Wartex, rollover: http://wellstyled.com/css-nopreload-rollovers.html , http://devilock.mine.nu/pixie/
<0> ok thanks
<3> How to change the display property of a <div> object using JavaScript ?
<3> <div id="Address" style="display:none">
<4> element.style.display="[whatever]";
<3> Maybe
<3> document.Address.display = none;
<3> ?
<3> thanks Flannel
<4> so, in that case, document.getElementById("Address").style.display="";
<3> cool
<5> where can i find a web proxy written in php?



<5> i want to launch a website that lets users anonymously open websites
<5> but i dont have my own server, so i think i need the proxy written in php
<6> chaitat: I suggest you don't ... it'll take about five minutes for the URL to get around, and then you'll get hordes of people using it to byp*** porn filters. You're bandwidth bills will go through the roof. (And isn't this rather off-topic for #javascript?)
<5> Dorward, i am sorry
<7> i'm looking for a good javascript testing framework: i've just started playing with selenium and i'm impressed so far -- is there anything else out there that's at least as cool or cooler (and just as free) ?
<8> hi guys
<8> does anyone here know of a javascript script that allows one to select text from a table from a single column only ?
<9> anyone have an idea why this is returning null even though the element exists?: var htmlloc = document.getElementById("html_loc");
<10> "travail101" at 66.180.175.30 pasted "preload-redirect" (59 lines) at http://erxz.com/pb/2002
<11> I tried to get this working unsing snippets from a tutorial on image preloading...
<11> but I'm new to javascript and have obviously left something out, because it doesn't redirect after loading the images to cache
<12> why when I set out an asynchronous request to a PHP page that outputs only XML, do I have to look in the responseText instead of respon***ML (which is always null????)
<8> is it possible to get selected text as html code ?
<5> dpy, seletec text in what?
<5> airwave,
<5> airwave, ... i dont know actullay but what i have done is.... for IE -> xmlDocument = new ActiveXObject('Microsoft.XMLDOM'); xmlDocument.loadXML(xmlhttp.responseText);
<5> for firefox
<5> well
<5> but i have to redefined the loadXML
<5> airwave, can you give me your email address? I will send you a sample code
<5> airwave, are you there?
<5> airwave, but the answer for you might be... to use responseText instead and create an xml object from that
<13> how do you change the options in a drop-down box?
<5> using ... some method which one of that is what i am going to send you via email, if you tell me your email?
<5> emes, ... .selectedIndex = some number?
<5> aOption.selectedIndex = 5?
<5> emes, you want to change all options in that?
<13> chaitat: I want to change the list of options
<5> i see
<5> first off, you should clear the list
<5> emes, you know how to do that?
<13> chaitat: nope
<5> ems, quite easy
<5> ems, for IE, selectObject.innerText = '';
<5> for FF, selectObject.textContent = '';
<5> ems, ok?
<13> um, what about safari?
<5> well
<5> let me try first
<14> textContent?
<13> why isn't there a .clearOptions()? :(
<5> pst[away, textContent for Firefox
<5> innerText for IE
<14> you could while(e.firstChild) e.removeNode(e.firstChild)
<5> pst[away, oh how's difference?
<5> pst[away, i really want to know
<14> chaitat, I didn't even know textContent existed :P
<5> pst[away, yeah! ... quite hard to find from google
<5> pst[away, i have found it when i was working on a wysiwyg editor
<14> ahh.I see. it doesn't define a way to actual create new notes (other than a text node)
<8> is there a quick way of turning a string containing html markup into plain text ?
<14> But very cool. In the W3C too :p
<14> dpy, what kind of markup? and how should it converted?
<8> you know, things like tags and stuff
<8> I only want the plain text
<5> dpy, try .innerText
<8> I think I was looking for that
<5> dpy, : >
<5> dpy, .innerText for IE, .textContent for FF, : >
<5> dpy, maybe you have to set thost string to an html object



<13> pst[away: so i do that to remove the current options, how do I add new ones?
<5> liek span
<5> dpy, and then get the innerText from span
<5> dpy, and hidden the span by display: none
<14> emes, I would use appendNode(new Option, etc) but that _will not work in IE_ or Minefield 3. Minefield is well, ultra-edge beta and IE creates the items but doesn't show any content.
<5> emes, to add new one, for IE. option = new Option(name, value); selectObject.add(option);
<8> .textContent gives undefined here
<5> emes, for FF the same but ... selectObject.add(option, null);
<5> emes, ok?
<8> chaitat: I get undefined
<13> chaitat: thanks
<13> chaitat: what i'm ultimately aiming to do is update the options with ajax
<5> emes, you should give me your email
<5> emes, i will give you my sample code
<5> emes, in php and javascript (xmlhttprequest) for automatically updating the dropdownlist
<8> http://rafb.net/paste/results/bTNBDH81.html <-- chaitat do you see the 'txt' variable ? the goal is to turn that thing back into plain text (after I have filtered out some of the content)
<15> The paste bTNBDH81 has been copied to http://erxz.com/pb/2004
<5> dpy, wait a min or two : >
<5> dpy, for example
<5> dpy, input: <b>h</b> i ---> output: h i
<5> dpy, right?
<8> yes
<16> &nbsp; => ' ' too, right?
<5> dpy, there is a way
<5> wait
<8> and I intend to do something like filtering out e.g. <b>h</b> before that
<5> dpy, i have fallen into this problem
<16> A simply regex could handle basic stuff (if you are sure there is no HTML-like entities hiding inside of the HTML tags)
<5> pst, no we can't
<5> pst, the practical way is to use the web browser's power
<8> yes that's my idea
<16> chaitat, innerHTML + contentText (or what it was)
<8> more robust anyway
<16> chaitat, but that's not IE
<17> im using firefox, and i have a button with an onclick method, which serves as my submit button, and it does form validation which works fine if you click it, but if you press enter on the form it byp***es the button
<17> how do i prevent this without a hack, i want a definite surfire way to fix this problem
<18> validate onsubmit instead
<17> ah
<17> i knew i was doing something wrong
<17> thanks very much Munter
<17> you have been of much help
<17> so i ***ume the type is still button or no?
<17> right now its <input type="button">, not <input type="submit">
<5> dpy, txt = x.innerText?
<5> dpy, doesn't work?
<17> doesnt innerText get the "Inner Text" for xml, like, <whatever x="bob">This is what it would get</whatever>
<16> http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-textContent
<16> (textContent, not innerConnet is W3C)
<5> pst, :D
<6> jimbo: Replace the button with a normal submit button. Get rid of all the JavaScript on it. Set an onsubmit handler on the form element that returns false if you want to cancle the submission.
<8> chaitat: the goal is to do: txt = x.innerHTML then modify the html in txt then turn txt into plain text
<19> why this code doesn't find an object ?
<19> var c=document.getElementById("test");alert(c);
<8> chaitat: I need to filter out some stuff before I remove all the semantics
<16> dpy, see the above link for a way which ought to work in FF :p
<19> this is an html <BODY><div id="test"></div></BODY>
<17> ohh ok
<17> thanks Dorward
<5> dpy,
<5> dpy, i am done
<5> dpy, what i do is
<5> dpy, i create <div id="myTmp" style="display:none"></div>
<5> dpy, then... document.getElementById('myTmp').innerHTML = 'some <b>string</b> blah blah';
<5> dpy, then ... for IE.... alert(myTmp.innerText);
<5> for FF ... alert(myTmp.textContent);
<5> dpy, ok?
<8> wait!
<10> "ks" at 66.180.175.30 pasted "object is null" (15 lines) at http://erxz.com/pb/2005
<8> this might work
<8> let me check this out
<19> hey guys, can you take a look, please http://erxz.com/pb/2005
<8> chaitat: does this trick work (I remember seeing someone do this): txt = myTmp.innerText || myTmp.textContent;
<6> ks: You are trying to get the element before it exists (and you probably should be using HTML 4.01, it has bug fixes, and Strict rather then Transitional (we are post-1999 now), and not having the URL in the Doctype is going to trigger Quirks mode in many browsers).


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

#debian
#asm
difference between list and array
suse add nonoss source
#perl
*** ppracer error: Couldn't initialize video: Couldn't find matching GLX visual
#javascript
installscript.sh: line 13: Segmentation fault mkdir -p
#perl
mdb2 mysql_real_escape



Home  |  disclaimer  |  contact  |  submit quotes