@# Quotes DB     useful, funny, interesting





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



Comments:

<0> http://202.163.96.58/ashop/get_session.html
<1> "The connection has timed out"
<0> ****!!
<0> i wil need to set things up on machine;
<2> can anyone tell me how can I make a redirect, but when the browser redirects not to display the address to which its redirected? for eg, I go to www.somesite.com and that redirects me to www.othersite.com but in the browser I want it to show "www.somesite.com"
<1> You can'y.
<1> *can't
<3> Charyston: Use a frameset which opens othersite.com in one of it's frames
<1> Worst solution ever.
<2> let's take any .tk domain, you type in the .tk address, it redirects you to some site but in the browse you still have the .tk address...
<1> They use frames and it's a very poor solution.
<3> yes
<3> But better than "you can't"
<1> But you can't. :-)
<1> You change the address of another window when you use frames. Not the current one.
<3> That was not the question



<2> can I make an unnoticeable frame?
<3> What's that?
<1> Anyone who's more intelligent than mouldy bread will be able to notice if there's frames.
<4> hi
<4> can you do a decrementing for loop? eg for (i = 0; i < array.length; i--)?
<5> yah
<5> for (i = HIGHNUMBER; i<
<4> oh ye
<5> start @ the top
<5> ;)
<6> prolly want i > whatever too :P
<6> ***uming you want the loop to terminate eventually
<5> yer lol
<5> i allways confise < with >
<5> and VV
<5> heh
<4> can you get the length of a string variable
<4> e.g. stringvariable.length ?
<7> exactly like that, actually
<7> well, .length() anyway
<3> no, just "length"
<3> It's a property in JavaScript
<7> ****, thought I was in #c++
<7> sorry
<4> function ReverseNumber (oldnum) {
<4> for (i = 0; i < oldnum.length; i++) {
<4> splitArray[i]=substr(0,i);
<4> }
<4> for (i=splitArray.length; i > 0; i--) {
<4> document.form1.textarea1.value+=splitArray[i]
<4> }
<4> }
<4> is that good reasoning to reverse a word/number ?
<3> Jesus!
<7> take it easy on the pasting :P
<4> sorry :S
<3> First that should not work at all as splitArray is not defined
<3> second, you will define i as a local variable
<3> and changing the value of a textarea on each loop is pretty expensive
<4> http://pastebin.com/704563
<7> var chars = [str.length]; for (var i = 0; i < str.length; ++i) chars[i] = str.charAt(str.length - i - 1); var result = chars.join();
<3> http://pastebin.com/704565
<7> actually you'd prolly want chars.join("") but you get the idea
<4> kirschkern : i get undefined undefined.... as the output for that code
<4> http://pastebin.com/704580
<7> looks like c++
<7> guess we're all in a c++ mood today :D
<3> Adapt: Sorry, I only use Firefox here, but I think IE cannot get the chars using []
<1> http://www.html-channel.com/pastebin.php?id=13
<7> also you forgot 'new' when declaring the string
<1> kirschkern is right about that.
<3> You may instead use
<3> val += num.charAt(i);
<7> and, iirc, String ctor doesn't take an int
<3> impatient: new isn't necessary here
<1> Just cast it to string if it's an int. :-)
<8> Hello Pilum, impatient



<8> Hello kirschkern, Adapt
<7> hey
<3> Cheeers
<4> still undefined
<4> hey VaranG|aN
<7> when did 'new' beome unnecessary?
<7> become, even
<4> ah ok got it
<3> Adapt: http://www.html-channel.com/pastebin.php?id=14
<4> was using[] still instead of ()
<1> function reverseNumber(oldnum) { document.form1.textarea1.value = oldnum.toString().reverse();
<4> why is that, by the way?
<3> impatient: When using String
<3> Adapt: No. In FF you may access each character like an array. This however isn't implemented in IE
<4> ah o
<4> k
<1> charAt does the same.
<4> last question, why is it var i=oldnum.length-1 instead of just var=i.oldnum.length in the for loop
<3> Adapt: The index ist starting from 0, while the length starts counting with 1
<4> oh right, always forget that
<3> http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.5/reference/toplev.html#1064506
<3> impatient: String is a constructor as well as a top-level function
<7> ya, just read that
<7> didn't realize it had function semantics implemented
<9> All object-constructors can be used as a function.
<3> Everyday something new
<3> fatbrain: While this is true, they usually don't return a value
<9> "usually"
<9> I know.
<7> wonder why that wasn't left up to the ctor
<9> I sometimes return a different value than what's beeing instanciated.
<9> function foo() { return {}; }; var a = new foo();
<1> Hello dave-e.
<7> right
<10> yo
<9> Hello dave-e.
<7> time for lunch, take car eall
<7> blah
<7> you get the drift
<9> ya
<4> for (var col = 0; col < a[ 2 ].length; ++col )
<4> a[ 2 ][ col ] = 0;
<4> what would that code be used for?
<3> Fill all field of the two dimensional array a in the third field with 0
<3> except for the first field!
<4> so like sets the columns to zero ?
<3> maybe
<3> But I think it should read "col++" not "++col"
<9> doesn't really matter in the for-statment.
<4> yea
<4> javascript sort method uses a bubble sort to srt an array p***ed to it?
<3> fatbrain: You're right
<4> or string comparison?
<9> Adapt: Are you talking about Array#sort?
<11> Adapt, quick sort variant
<4> sort()
<4> arr.sort() etc.
<9> Adapt: not following, can you elaborate?
<4> eg
<4> var arr = new array(3)
<4> arr[1] = "3"
<4> arr[2]="6"
<4> arr[3]="1"
<4> document.write(arr.sort())
<4> what sorting method does arr.sort() use? string comparison or bubble sort ?
<4> or linear search or something?
<11> QUICK SORT VARIANT
<9> [Torgo] answered that question already.
<4> ah ok sorry [Torgo]
<12> hello everyone....
<1> Hello.
<13> I have an html that should call a funcion in a external js which would load a calendar from another js and I would like to avoid to cache the loading of the page, just only calling the calendar and stop. Is that possible with some ajax or with xmlhttprequest?


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

mohxija
turkhs mean
ihhhk windows
HTML_Table_Matrix_Filler css
#MissKitten
#MissKitten
#AllNiteCafe
str_replace Cannot use string offset as an array
What does a phonophobe fear
beutifil girl



Home  |  disclaimer  |  contact  |  submit quotes