| |
| |
| |
|
Page: 1 2
Comments:
<0> does anyone know why this line works in IE but not in FF: parent.document.getElementById('menu').TGotoLabel("_level0/", "Update") <1> read your FF console <0> Error: parent.document.menu.TGotoLabel is not a function <2> seems self-explanatory <0> it is not, the function should be there :) <2> ***igned to that element? <0> it works in IE <0> and alert(parent.document.menu) returns [Object] [Object] in FF <2> so? <2> yes, but that object does not have that method <2> have you ***inged it? <0> no, the Macromedia Flash player should i guess <0> these methods are "exported" by the Macromedia Flash player <3> is there any smart way for javascript to convert the alphabet to numbers? (something like a=1; b=2, etc.- it dont have to be those numbers though- I can always redo the math) <2> Tarantino, use ascii
<3> thanks:) <3> was searching for "numeric"- didnt go well:-) <2> charCodeAt() goes one way.. i forget how to go the other way right now <3> ok, thanks <0> fromCharCode might be the other way <3> ok <3> does ie support 2 dimensionel arrays? <2> arrays of arrays, sure <2> all arrays are single dimensional in ecma though <3> hmm, odd- it wont work for me. Ive tried all day:-( I need to sort a array in a pre-set fixed order. Im now trying adding a ascii number at the beginning of them and then sort them and remove the first letter again- its not easy:-( <2> why not just create your own sort compare function? <3> with 2 dimensionel arrays? <2> doens't matter <3> there is nothing in the words that I can sort them by- I need them to keep the order they had when I ***igned them in the beginning- but they are sorted in 3 "boxes"- categorys <3> so- I need them to relatively- keep the original order- in the new boxes. Makes sence? <2> time to start using objects then <3> hmm, ic <2> if each line of your array had: {display:"text", sortby:2} <3> I thought I was using objects <3> ya? <3> and next would be? {display:"text", sortby:3}? <3> so- its like a number I ***ign to them? <2> k <3> no- im asking- is that how it works? <2> it works however you want it to <3> so- how do I sort them- afther I have given them these values? <2> you key off the column you want to sort on <2> look up the sort method in the docs <3> ok- thanks a lot:) Now I got something to go on with- with a little help from google- ill get there:) <3> im doing it wrong? <3> var facit=new Array() <3> facit[1]=display:'Help', sortby:1 <3> facit[2]=display:'me', sortby:2 <3> facit[3]=display:'please', sortby:3 <2> where's the curly braces? <3> hmm, I didnt know I could set variables with curly braces <3> hmm, it accepts the code- but the output is (object) (object) etc.. <4> anyone can help me with xmldoc.. im trying to loop through an xmldocument, http://jenna.adncomm.com/gestion/ajaxpropriete.php?action=load&idprop=3 I wanna create a for that would list all <fichier> in the <fichiers> elements <4> im able to get all tags that are right under the <root> tag, but can't find how to get the childrens of a tag <3> hey- objects are nice- now I get it:-) <3> when I have defined the values like that- can I sort the same values when they are given to another array? <5> what's the property for the inner html of a LI ? <5> value? text? <1> ...... innerHTML <6> lol <5> :) <5> thanks :P <5> I was seeing the object more like an Option object for a Select box <1> ... <5> as in... the same relation <5> I guess the relation is the same, only the properties differ :P <1> you need to study html harder <5> I don't know which properties are found to which elements <5> not taking in consideration the id, name, cl***Name, etc <1> btw, even option have innerHTML <5> hmm, so it's a standard property? for all elements? <5> that have an end tag? <1> read the reference <5> I will, now another question, ul doesn't have a collection of list items isn't it? it has only child nodes? so I'll have to get the child nodes to get the number of li elements in the list, right? <5> is there a better way? <1> nope
<1> can use getElementsByTagName <1> if it is single level <5> it's not <5> I guess that's the best way <7> one awake? <7> anyone awake? <8> mmm hmm <7> heres an interesting problem ive encountered.. in XHTML Transitional mode under FireFox, if i set a scroll event using something like window.addEventListener('scroll' , foo , false); the event never actually fires.. but in Quirks mode, everything seems to work fine. any ideas? <8> hmm <7> try it... <7> its very strange <7> heh <7> for doctype i have: <7> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <7> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <7> then i have: <7> window.addEventListener('scroll' , foo , false); <8> give us the url or paste the whole lot to http://pb.html-channel.com <7> ok <7> will do <7> hmm, wow, this is becoming even more strange <7> THIS seems to work: <7> http://www.html-channel.com/pastebin.php?id=7 <7> but' <7> THIS DOESNT <7> http://www.html-channel.com/pastebin.php?id=8 <8> hmmm nice <8> it broke firefox heh <7> it makes no sense to me <7> is it a bug? <8> it froze up my firefox <8> well.. it's not frozen, I just can't click anything <7> sorry :) <8> I guess the alery box kinda got underneath something maybe <7> if you change the alert() to a windows.status, maybe that will prevent it from freezing up <7> maybe like window.status = Math.random() <8> I killed it and tried again... seems ok now <7> just to see if the event is firing or not <8> maybe just a one-off <7> ok <8> hmmm <8> they both work for me <8> oooh that's interesting <8> weird it stopped working for a second, but now it works again <8> they're definitely both working in 1.5.0.1 <7> yeah its been off and on for me <7> also, if you have 1 paragraph of text it usually wont work, but then put in like 3 or 4 paragrphs and it seems to work every time <8> hmmm it's stopped now <7> any workarounds for this? <8> I can't figure out what I did to make it stop working <8> hrm <8> even when you trick it into getting the scrollbar stuck to the mouse it still works <8> I dunno... sorry :/ <7> heh <7> then, even stranger is that I actually ran into weird behaviour in IE on the same code <7> it wasntt the same as FF, but still strange <8> hmm <7> although i used attachEvent instead of addEventListener <8> were you using alerts there too? <7> i tried alerts and also did window.status = Math.random just to see when it was firing... many times it was unpredictable and not firing <7> especially in xhtml trans mode.. then in quirksmode, the problem didnt seem tohappen at all <8> hmmm I wondered if the alerts were doing it because they steal focus, but I guess not <7> i ran it through venkman, and tested the values instead of alerts and it still was not always firing the event <7> so i dont know <7> tis very strange <8> mmm I just made it do it in FF without alerts <8> so it's definitely not them <7> same problem without alerts? <8> yeah <8> aha! <7> ? <8> moving the scroll wheel makes it stop <8> every time <7> so, your saying that if you do: (1) scrollbar (2) scrollwheel (3) scrollbar -- #3 wont work?
Return to
#javascript or Go to some related
logs:
stfu patella #networking NHost 'localhost.localdomain' is not allowed to connect to this MySQL said i like to know where you got the notion to rock the boat
sess bl addocc php +tile map +ajax mech undernet.org dr3f #MissKitten ThreadLocal pattern
|
|