@# Quotes DB     useful, funny, interesting





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



Comments:

<0> anyone here
<0> ht311 ?
<0> ht311 you here need your input
<1> ?
<0> got a problem i need to solve
<1> let's see
<0> winList['win3'] is my array yeah
<0> win3 win4 win73463767 win6 blah blah
<0> i have set winList['winID'].trackId to a incremental variable
<0> if i do for(var i in winList){alert(i);}
<0> there all in order of winList
<0> ie
<0> win3 win4 win6 win734636767
<1> yes ...
<0> i need them listed in the order of the winList[elm].trackId
<0> i cant for the life of me get it to work



<1> actually, winList is no longer an array, it become a hash table
<0> yeah its the hash of each window see the ID is relative to the module opened in to it
<0> but trackId should be the order they apear on the task bar
<0> so ive got to some one hash sort by trackId
<1> the quick and easy way will be an array to hold the tracker id, so that you can short that easily
<0> to much to change to do that :( coded into a corner
<1> or dynamic build that array, sort and return the name array
<1> you don't have hundreds of windows, so it will be fine
<1> the code sound slow and stupid, but in this case, it will be very ok
<1> jsut need to loop twice
<0> yah
<0> i think ill try that
<1> http://abcnews.go.com/Video/playerIndex?id=1528162
<0> AGAGAGHH i cant get this to work
<1> post some code for me to see?
<0> http://pastebin.com/517017
<0> needs to order by winList[''].trackId
<0> i tried to keep a running array with taskList[trackId]=winId
<0> but when it rebuilt the array it was all out of order
<0> christ knows whu
<0> why
<1> http://pastebin.com/517029
<1> something like that..
<1> that in your render, you call this and loop the name to get the winList[winame]
<0> huh
<1> ?
<0> sorry i dont understand the function so i dont understand the implemntation
<1> http://pastebin.com/517040
<0> yeah i get that bit
<0> oh hang on
<0> am i incorrect
<0> i should be able to do this
<0> http://pastebin.com/517043
<1> http://pastebin.com/517044
<1> yes
<0> mo dont work
<0> object required :(
<1> need to replace the i with winList[namearr[i]].trackId too
<1> try to get the 1st function work first
<0> :'(
<1> sleep on it ;)
<1> my function work or not?
<0> yes
<1> good, just touch up your function then ;)
<1> winList[namearr[i]] this one give you back the window ref?
<1> heh
<0> http://pastebin.com/517055
<0> so you can see what i did use
<0> **** in hell
<0> it dont work :( ffs
<1> can put var winname = newwinList[i]; in the begining
<0> ffs this is pissing me off now
<1> if you take out all the inline style, and adjust the style for ff, should kind of work
<0> for some reason is reusing elemnts in the array
<1> thqat behhaviour is document some there. related the loop optimzation
<0> ill debug tommorrow far too tired now
<1> nite
<0> im not going yet lol
<1> ;)



<1> just in case, i'm going to load the dishwasher
<0> yeah its not working
<0> for(var i in newwinList){
<0> is not doing them in trackId order
<1> my code use for(var i
<1> i use that for normal array
<0> um its correct sort of
<0> 1
<0> 11
<0> 2
<0> 3
<0> 4
<0> 44
<0> 5
<0> 6
<0> 7
<1> crap
<1> put parseInt in my function then
<1> didn't know it's a string
<0> where
<1> http://pastebin.com/517065
<0> yeah already did that
<0> its the same
<0> 1,10,11,2,3,4,5,6,7,8,9
<0> could it be my for(var i in newwinList){
<1> oh, i use for(var i=0 ..... for flat array
<1> i only use for(var i in ... for object)
<1> afk
<0> same
<0> idarr.sort(); maybe ?
<1> could be, i suspect the array content is string if not, .sort is buggy
<0> nah its numeric cause its from an increment
<0> and ere parseInt ing it
<0> ill try tommmorrow
<2> how can i submit from a checkbox onclick?
<2> how can i submit form, from a checkbox onclick?
<2> hmm how can i submit a form from onclick?
<3> hello
<3> how do i reach an opened window?
<4> With the reference variable.
<3> can you give me an example?
<3> i do window.open ('file.html', 'windowName');
<3> how do i reach windowName ?
<4> You don't.
<3> uh
<4> var windowreference = window.open(...)
<3> oh i see
<3> cool
<3> so windowref is my window object, right?
<3> hehe workin
<3> thanks a lot
<3> but i guess it won't help me that much..
<3> as i need to call it whenever i want, even when i browse server-side
<3> :\
<3> so you say that's the only way?
<4> As long as you don't just want to change its url, yes.
<4> You could probably establishing a reference by opening the window anew though (by using the same name).
<3> Pilum to change the url of which window?
<3> the opener's or the opened's?
<4> The opened.
<3> i'm not changin the url of the opened
<3> i have a chance to identify'it this way or?
<4> As long as you know the name
<3> i do know
<3> i'm just opening it with window.open ('file.html', 'windowName');. how couldn't i?:)
<4> And you can't ***ign that to a variable?
<3> nope, because i may somewhere else from the opener
<3> i do window.open from this.html and by any time i may browse to that.html
<3> and from that.html, let's say, i need to reach my opened file.html
<5> bloody JS sort
<5> its stupid if you dont set a function for it to search
<5> ie without function 1,10,12,3,4,7,76,8,9
<5> with
<5> 1,3,4,7,8,9,10,12,76


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#AllNiteCafe
calc.exe+asm
#chatzone
omg amanduh
pirate draik
#chatzone
RD1072A
bookakke
#AllNiteCafe
HELO hass



Home  |  disclaimer  |  contact  |  submit quotes