@# Quotes DB     useful, funny, interesting





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



Comments:

<0> only it reasks for the p***word ( the browser does ) if i try to go into a subdirectory
<0> anybody know a way to make it remeber the username / p***word ? like it would if i had jsut used htaccess ?
<1> You're on the wrong track.
<0> how so ?
<1> Javascript is not secure.
<0> even if its only really generating a url
<1> You need a serverside session.
<0> know any sites i can read about it on />?



<1> Depends on what language you want to use
<0> testing perl might be tricky because i cant test it
<0> not in a cgi setting
<2> hi
<1> Hello.
<2> I have trouble with resizing that <img> :|
<2> I did <img onload="savesize()">
<1> Did you get my reply?
<2> no I did not
<2> the onload="savesize()" works until I resize the image, after that it will use the values I gave it (the new width and height, and does not save the original values)
<1> Save imgRef.width and .height when window.onload is triggered (images don't have an onload in the specs, so you shouldn't rely on the browser having it implemented)
<2> ok, but I have more than 1 image in the argument p***ed to the window
<1> Loop through document.images then.
<1> And store the values in an array
<3> http://www.theregister.co.uk/2006/02/28/blag_cash_auction/
<3> lmfao
<2> ok, but the window.onload happens only once, and it's good only for the 1st image
<1> Not if you preload them.
<2> I need an event which occurs each time the img src changes
<1> No, you need some creative thinking.
<2> well, I also did the following: on window.onload I went through all the filenames given to the window, I created a new Image() and set it's scr then I read the width & height for each image
<2> but each returned the size 0 x 0 :(
<1> Yes.
<1> Which is why you should preload them.
<2> how to preload all the images? :/
<2> img.src="filename" then img.load?
<1> I'd do something like imgarray[0] = new Image(); in your case.
<2> ok, but that does not solve much
<2> only by that the imgarray[0] will not have an actual image so I could obtain the width & height



<1> Run that in the head.
<1> Yes you do.
<2> lemme check that
<4> mmmm head eggs
<5> Hello
<5> is there a way to prevent PASTING into a textarea ?
<6> good eve!
<6> got a question on getting heights on elements. When I declare the height directly in the html form I can use this: document.getElementById("topRow").height .. but how do I write when I set the height in CSS?
<1> .style.height
<1> .style.height = '??px';
<6> document.getElementById("topRow").style.height ?
<1> Yes.
<1> And remember that css size values require units
<6> yeah =)
<6> but document.getElementById("topRow").style.height returns a blank value even though it got a value
<1> You'll have to get the "regular" value first.
<1> JS doesn't define css values - you have to do it yourself.
<6> how do you mean ?!
<1> The css values only seem to be defined when you define them yourself (with js), or when the css is inline
<6> aa, so I shouldn't have a separate css file, you mean?
<1> Yes, you should.
<1> But you might also want an init function.
<6> an init function?
<1> initialize
<7> Hi,
<7> oop, I'll try that again.
<7> hi, I'm trying to attach an event to the document/window to trigger a function when mousedown. I think I'm missing something simple, here is the link to the code: http://html-channel.com/pastebin.php?id=3
<7> any thoughts?
<8> window.onload = function() { .......}
<8> or just your LPaddEvent function to attach it ...
<7> I'm not sure I follow.
<8> otay: change your old line of onload = blah into window.onload = function() {blah}
<7> thanks for the help, it worked perfectly.


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

usr modem 5699b ubuntu
kollox up
#linuxhelp
#linuxhelp
sugar show bar
#squid
WGT634U WRT54GS subnet
#linux
#php
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes