@# Quotes DB     useful, funny, interesting





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



Comments:

<0> hey an anyone help me with a javascript function am totally lost
<0> have to write an array of urls and when the user clicks the button it cycles throught the array of url's
<0> trying to find a example or something somewhere
<1> How to write a loop?
<1> Or is it a random element of the array you want?
<2> or just a simple i++ ?
<0> wheres a place a can paste it and ill try and explain
<1> pb.html-channel.com
<0> http://www.html-channel.com/pastebin.php?id=1
<0> ok i have the array defined but when user clicks the button should open each of the urls in a window
<0> just trying to find a example to base on dont want anyone giving me the code
<0> just help
<1> That code doesn't make much sense.
<0> well just trying anything cause not much like what have done before
<0> is suppose to have a array of urls
<0> a button that will start the display of the websites



<1> The document.write is frankly just silly.
<1> And the changeWebsite function doesn't use your array.
<0> document write is the description thats irrelevant
<0> yeah how will u get it to use the array just asking for pointers guys
<2> .....
<1> window.open(websiteArray[i]);
<0> keeps giving me a error of object expected on line 53
<0> ??
<0> ok guys im just asking for examples, help any advice
<2> websiteArray[3]="http://www.lycos.com
<2> missing end quote
<2> the color is off in the syntax highlight, easy to spot
<2> you shoudl end all the statement with ; as well
<2> and what you have is kind of ok, try to understand what you have there first, just copy something is not help in any way
<0> ok it works now opens the first element in the array
<0> is there a way to get it to open each element in the array i have to write it to open a new window for each element in the array every 5 seconds
<0> that would be done using a setInterval in the window.open statement wouldnt it
<2> just go ahead and try it
<0> k just asking because dont want it shuffling through sites it has to open one window for each array element every five seconds and not close the proceeding window
<0> ok tryin just tryin to find something
<0> ok to get a window.open to open every element in a array every five seconds you would do a set interval on the window.open wouldnt u
<3> hello guys
<3> is possible have a window child , but modal dialog for firefox?
<3> i see that is for IE
<4> starship
<5> aye anybody here?
<6> yeah
<6> >>> there is a big list over there >>>
<5> with that, i was meaning anybody alive
<5> :D
<5> yow, how do you absolute position something given a base element?
<5> i mean, i want to absolute position a div, with exactly the same x coordinate as a base div and with y coordinate just added 1-2px
<7> guys, is myFunc = function (x) { } better than function myFunc (x), or is just cooler?
<7> is it more portable or something?
<8> depends. furst is an anonymous func, that's all
<7> anonymous?
<7> but now it will be called myFunc
<7> cuz myFunc will be ***igned with that function
<8> yes but everything on the right of the = is anonymous
<7> yes, does that mean it will be copyed?
<8> onclick = function() {//this is still anonymous}
<8> yes
<8> it's fine
<8> it's just a naming convention
<7> it's not fine
<7> cuz it has to be copyed
<8> i said yes
<7> fine == no useless copying
<7> is still fine?
<7> I think that blah = function () will copy the function body to blah
<7> that's why I think it's not fine
<7> while function blah () it simply defines it
<7> do I make sense?
<2> you are not
<7> why?
<2> blah = function(), you are ***igning an anonymous function to var blah
<2> it have nothing about copying
<7> hmm...
<7> I can contradict you



<7> blah = function()
<7> will ***ign an instance of that annonymous function to blah
<7> this means copying
<7> and I tell you why
<8> there's only one instance fool
<7> NO
<7> it's not
<8> but but i said fool
<9>Trout</marquee>
<7> just hear my opinion
<8> ht311L
<6> nah dood were into "neon-purple" these days
<7> patiance!
<8> ht311: once this channel has a blog are you gonna post stuff to it?
<7> after you do blah = function () { var kk; }
<7> you can do blah.kk;
<7> because function() acts as a cl***
<6> all ht311 will be hot pink, if i handnt seen how damn hot his missus was i would swear he was gay
<7> function () is defining in fact a smart function (an object that behaves like a function)
<2> furtive: i am too lazy to start my own blog, a group blog is an interesting idea
<6> ;)
<8> ht311: just javascript, no 23
<8> er 24
<6> btw ht311 thats a compliment
<6> 23 is the prequal
<7> anybody following?
<8> hehe
<8> i can tell you who isn't following
<7> well, I think I am right, cuz if I won't cl***es won't be possible in javascript
<2> ..........
<6> lol
<7> if it would be only one instance the following thing will happen:
<2> you need to make clear about cl***, instance, private var, clone, reference
<7> do you think I don't know what those are?
<7> no I don't think blah is a reference
<7> I think it's an instance
<7> and private/public(var) members don't have anything to do with this isue
<2> blah is the cl*** / function object
<2> new blah() give you an instance
<7> if you do blah = function () { }
<7> ?
<2> NeoFu7ure: you saw the last 2 hours? very good ep. m***ive body counts, lovely
<2> sk8ing: judging from that line alone, blah holding a reference to the anonymous function object
<7> I see, good to know
<7> now, how do I split a string? I want a max of 2 results? xxx.split("x", 2); ?
<2> huh? where you read the reference like that
<7> I found on google .split("x");
<7> I ***umed that the next optional paramenter is the max number of elements to return
<2> there is no optional parameter for split
<2> ok, my bad, there is an optional parameter after all.
<2> hmm, when the hell they add that ...
<6> sk8ing nah thats php mate
<6> split("x", $str,2)
<7> hmm... any regex function that will return a match?
<7> .match probably... :)
<6> sk8ing your always doing that
<6> answering yourself
<7> I usualy ask to get a confirmation
<7> or because I can't remamber how
<6> hehe
<6> np
<6> i think
<6> .test too
<7> is that a joke? :))
<7> I should use VS for javascript... intellisense could help
<2> nah
<6> nah i think .test is valid
<6> sk8ing editplus and autocomplete/syntax highlight
<2> i think .test is for regex
<7> thanks for the tip
<7> I'll try it
<2> the best is read the reference , remeber the methods


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

ta dahk
chroot /bin/zsh
Unable to add forward map from XP
#linux
#mirc
#linux
#linux
#linux
#AllNiteCafe
#windows



Home  |  disclaimer  |  contact  |  submit quotes