@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> but usually external files are more handy
<0> and reusable
<1> meaning ur html file also looks tidier?
<0> as well
<1> thank you
<0> But you separate logic from structure and layout (when using external CSS too)
<1> i am using css
<1> externally for print.css too
<0> eg. If you have multiple pages, you may always reference the same css file and the same js file. Changing something in your css or js takes effect in all documents that references them. So there is no need to change each file.
<1> and i need to cut my nails.
<1> just thought that I would share that with you also.
<1> :)
<2> Hi there. I've got a question: I've got a text area and want to select (mark) all text within it. How?
<0> elm.select()
<0> where elm is a reference to your textarea element
<2> cool, it works :o))



<2> is there a possibility (not just in MSIE ... urgs) to copy selection to the clipboard?
<0> Not really.
<0> But you may save the selected text to a variable and set an element's innerHTML or value with that variable's content if necessary
<2> hmmm... the thing is, I need the output of the text area finally in a file. As JS cannot write files, I just wanted to minimize the ammount of work by selecting all the text (and if possible to copy it *grin*)
<2> many thanks for helping. bye. :-)
<3> http://asgasasdaga.pastebin.com/706674 can somebody tell me where to put an alert() when he try to select .. ?
<4> What an extraordinary weird script.
<4> Not to mention pointless.
<3> well i couldnt find a better one :(
<4> That is to prevent selecting of text on the page yes?
<3> yes
<4> I am curious about how you intend to disable context menu, ctrl + a and the browser menus too then hehe.
<5> + the View Source and the printscreen
<5> :P
<5> also JS Blocker
<4> Indeed.
<3> i know that lol thats no way
<3> becouse every one can go to view source
<4> Exactly.
<3> and get what ever he want
<3> this is just for amateurs :)
<4> So as I said.. pointless.
<4> 10 year olds will be able to figure that one out.
<3> yeah but my problem is that now they going to said that the web site is broke becouse they have no warning .. that you "cant" select so i want to put an alert when they try :)
<4> It is broke because you inserted the script in the first place.
<6> how can i update dynamically
<3> broad away control + a dosent work :)
<6> several id tags created dynamically?
<3> never mind is work :)
<4> pib: In what context?
<6> http://www.goforweb.com/p/ajax/poll/
<6> i wanted to display results
<6> when cliking on a radio button
<4> Just print it into a div or something with innerHTML
<6> 0_0
<4> And remove the "javascript:" from your source.
<6> but its dynamic
<4> It doesn't belong there.
<6> i should do a js funtion to display all results
<6> only when page is first loaded
<6> those id tags are not defined yet
<4> onclick="javascript:foo();" <- incorrect; onclick="foo();" <- correct
<6> mm
<6> when i click over a radio button i get a js error -> object required
<6> i guess because the object was bot detected at run time
<4> Why do you return false anyway?
<6> i saw somewhere
<6> :)
<4> That is correct for _anchor_ tags, not inputs.
<6> i changed it already
<4> .display = 1|2|3?
<6> ?
<4> document.getElementById(option2).style.display =2 <-?
<6> yes
<6> should be the id name
<6> i put a static one just for testing
<4> I'm referring to the "=2" part
<6> i thought block would be a text portion :\
<4> Huh?



<6> i want to display number 2 on that div
<6> how can i do it?
<4> .display can be 'none', 'block', 'inline' and a some others less used ones.
<6> yes
<4> Not 1, 2 or 3
<6> so
<6> should i use innerHTML instead?
<4> You're not making much sense to me.
<6> <div id=\"option". $row['id']. "\">&nbsp;</div>
<4> If you want to print out the result then print it into some html element.
<6> i had that
<4> document.getElementById('option2').innerHTML = whatever;
<6> i wasnt to replace &nbsp for the new value extracted from database
<6> yes..that's what i wanted
<6> let me see
<4> document.getElementById('option' + row[id]).innerHTML = whatever; if you put the $row array into a js array.
<6> uff
<6> finally
<6> i got it working
<6> thanks Pilum
<4> Np.
<6> i used this
<6> document.getElementById('<?php echo $aux; ?>').innerHTML ='<?php echo $aux2; ?>'
<7> document.getElementById('<?= echo $aux; ?>').innerHTML ='<?= $aux2; ?>'
<7> too
<7> to save typing :P
<7> oops
<7> document.getElementById('<?= $aux; ?>').innerHTML ='<?= $aux2; ?>'
<8> ok
<4> That doesn't always work though.
<7> aye , depends on apache setup sometimes
<4> php.ini setup actually
<6> yes
<9> http://www.neofuture.co.uk/screenshots/new_desktop.jpg
<10> You need to make a vista theme :P
<8> NeoFuture using litestep?
<9> lol its my web app
<8> dang
<8> does it run fullscreen?
<10> it dose if you press F11
<9> yes
<8> adios
<11> NeoFuture: whats the web page?
<11> what your web app about?
<8> http://www.neofuture.co.uk/screenshots/new_desktop.jpg
<11> yes whats that?
<4> A desktop...
<11> thats not Xp though
<11> whats it?
<8> its a webpage
<11> seems nice
<8> are you sure or are you nuts
<11> ?
<11> what?
<8> it looks great on the features
<8> cant say the same about the pink
<11> you told its a webpage.. dehe.. of course, it is but the picture isn't
<8> its a snapshot of a webpage
<12> dave-e just the man
<12> how to you open an iframe for writing
<12> lol
<13> Why am I just the man for that sort of question? lol
<13> You're the one who uses iframes :P
<12> you just signed on and i just looked for an answer lol
<13> How about...
<13> <iframe name="test"...
<13> then var i = window.open( '', 'test' ); i.document.open(); i.document.write('test'); i.document.close();
<12> http://pastebin.com/707265
<13> Damn your HTML's fugly.
<12> oh ignore that
<13> You need a # on your colours at least :P
<13> But anyway, what I just said works on FF and IE.


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

hockster undernet
What is the profession of nursery rhyme characters Lucy Locket and Kitty Fisher
#linux
#AllNiteCafe
#skype
#linux
#java
ed give it to me baby aha aha aha
#c++
#linuxhelp



Home  |  disclaimer  |  contact  |  submit quotes