unfortunately in IE the next element is only created once the previous content is loaded My problem is I have
csaba, try http://cf-bill.blogspot.com/2006/02/dom-gotchas.html
or crazy solution "document.createElement("input type='radio' name='blabla' value='1' /");" )
http://xpoint.ru/forums/programming/javascript/crossbrowser/thread/40395.xhtml
looks like maybe that's it, I need to first add the input to the DOM, then set the atributes… now I managed to check the first radio, but the others still won't work… but maybe this will be it
oddly enough, "SketchLine.call(this,p)" works, but "line.update()" is undefined
ok how can I group together a few radio buttons? As far as I know this is done by giving them all the same name… but it doesn't work with IE… I can set checked to all of them and they will all be checked
sorry, "line.update()" would be defined, but as you guessed, "shape.redraw()" is undefined
shape.Xxxx() is undefined
What's your favorite SSJS framework?
http://pastebot.nd.edu/3372 — how come this code doesn't work *just for IE6*
Hi all. Quick question. I need to make a table disappear depending on a condition, this doesn't seem to be working: document.myform.mytable.style.visibility = "hidden", how can I accomplish this?
that's mytableid sorry.
.display = "none"?
do you want the table to still occupy the same space, but not be visible (big blank space) or just collapse to 0 height/width?
I keep getting a document.myform.mytableid has no properties
error
it can occupy the same space, that's OK
I just want it to disappear
try document.getElementByID("mytableid");
document.myform.getElementByID("mytableid").style.visibility = "hidden"?
most js libraries will have something like $() which wraps this for you in a cross-browser-safe way
I know, but I am not allowed to use any 3rd party libs on this.
hi
I'm aiming to catch a keyboard event, and I want to catch a tab.
/msg Buggaboo_work: document.onkeypress = function(e){
var kC = (window.event) ? event.keyCode : e.keyCode; // MSIE or Firefox?
var Esc = (window.event) ? 27 : e.DOM_VK_ESCAPE; // MSIE : Firefox
if(kC==Esc) {
GEvent.trigger(map, "esc");
}
I catch the tab events with onkeydown, but then the focus goes to the address bar in msie 6.0
}
how do I cancel this default behaviour?
(sorry for paste, I had hoped it'd go all as one /msg
dramman, that's okay, thanks for that bit of info to.
return false;?
obj.event = Fn;
elem onkeyup="handler(this); return false;"… /
obj.event = function(){ Fn(); return false; };
hm good one.
should've thought of that.
woooh…
wooohoo even.
thanks dramman
btw, is there a semantic difference between onkey up/down ?
or is the choice for one of the events arbitrary?
wierd.. I get a document.form.getElementByID is not a function error?
document.getElementById()
the diff between mousedown/mouseup is important for mouse dragging…
dramman, yes I understand, for the mouse, but for keyboard events?
document.getElementByID is not a function….error.
I guess it'd make a difference if something (another key, mouse location, async data…) could change state between key down and up
it was the case.. getElementById not getElementByID
(for s…l…o…w typers & people trying to break/test the page)
how can i know if a *.js is loaded? and if not, load it?
I think it's actually document.getElementById(), not document.table.getElementById() also. (install Firebug and you can check for yourself)
getElementById() can't be used on all elements?
hm, but getElementsByTagName is a member function of all elements right?
hm. semantically it makes sense.
since ids are unique.
but too bad it can't streamlined to limit the search within a certain scope
and not the whole damn document.
mootools.js has an Assets class - that'd probably do it.
makes sense and it's likely you're right
It's definately possible, you can access document.head.childNodes (skipped a few paths for clarity) which has "SCRIPT" nodes
dramman, tnx
can somebody adices me how to use closures? i need a function, which is only useable inside the object.
available
dramman, thank you for your good advise
you want private function? )
It's not something that can easily be taught/learnt in a few lines on IRC
dramman, in google i only found getter/setter-examples. that's quite understandable. but i need a function, which cannot be called outside the object. is that possible?
dramman, i mean for security, i need to set the scope of the function
crolle17 - it's possible, but difficult to explain in IRC - you need an example
function a() { function b(){} }
i don't really get it, so i definitely can't help
kronos_vano, yes. and how to declare function b()?
a delegate
oops
wrong channel
i iz sorry!!!111
kronos_vano, because functions b() shall also be available for function c(). ?
function
function a() { function b(){} function c(){} }
Hello. Check this: http://dpaste.com/hold/16078/
crolle17, http://phrogz.net/JS/Classes/OOPinJS.html
and display it on the page (removing the one before)
I can't make a script that does this fine.
kronos_vano, i will read it.
by its @value other than using a for-loop to go through select.options ?
_Fallen - give each an id and select by id?
is it a menu or accordian?
nah, too much possible ambiguity
_Fallen - then how can you even iterate and find an ambiguous value?
will be the content of the page.
I have multiple selects that could share values. I guess I could give the options and id like "selectID-optionID"
…
No, not a menu, but content.
yeah, that
I have each LI absolutely positioned.
So what I need is the others be displayed in the same position and the first one disappear.
something like onclick="document.getElementById(this.href).style.display = "block"; this.parent.style.display="none";
very helpful.
Hmm. Or maybe parent.style.zIndex changing. What is z-index in javascript syntax?
)
"parent.style.zIndex" ist rigth
*its
*right
do you use Firebug?
Yes.
It's not working!
I don't know why you put ocument.getElementById(this.href).style.display = "block";
ZOMG!
I don't want the anchor to stay
that was just intended to give you a few ideas.
I'm not really into javascript host alas
I did say "something like" - of course, the "'
quotes won't work like that either…
I know, I changed them
What if I have this:
/span/li
containing the anchor
use Firebug's "Inspect", open up the DOM/style and play around with props - it'll tell you what you need to code
the span is the "this.parent"
And I'm targetting the LI
Not the span itself.
sorry, "this.parentNode"
hmm
OK there is progress.
5 seconds searching in Firebug = 5 minutes searching in Google
Yes I see what you mean
seeing the dom elements help when you're tinkering with parents, previous/next sibling,
this still isn't working - http://pastebin.ca/647473 …is there anything special about 2nd level inheritance?
The paste 647473 has been copied to http://erxz.com/pb/3926
(why does buubot do that? the web-IRC is cool, but apart from that it's not the world's best pastebin)
Hi DoctorNick!
hmm
what am i doing here? : if(foo) { alert("i exist")} else { alert("sorry"); }
can i pass some js as a parameter to a function and execute it in this function (maybe through eval()?) ?
you can pass js code as a string and eval() it or you can pass an anonymous function and call it, or pass a function reference and call it.
Sembiance, oh, lot of alternatives… now i have read about anonymous function…
never use eval.
function test(passFunc) { passFunc(); } test(function() { alert('hello world!'); });
I use eval on server returned JSON
amagad, the only yet-so-far feasable usage of eval.
debatable
Also I write "Don't use eval" because it's shorter than "Don't use eval except for parsing your Json crap"
iirc, everything is debatable
HAH!
hehe
running code from a source that doesn't know about the page still seems bad, even if you're reasonably sure it's only a static object
*arbitary code
the only real use of eval is to provide an easy javascript console interface
Just look at the "evolution" of ActionScript, they removed eval from AS3. (*cheer*)
fatbrain, i didn't want to use eval()… i was searching for an alternative.
I didn't imply you wanted to use it.
just that you shouldn't
fatbrain, alright.
Console-interface, should be interpreted anyway IMO.
By the console-host, so that no "non-console" commands gets invoked.
sure
but as a bridge to the browser's javascript engine
that's the only time I'd be happy to use eval
tags for?
Sembiance, o.k. is there a possibility to pass just only the code (without declaring it as function), allocate it to a function (?) and execute it, when demanded?
I'm not talking about a generic task. The only time I'd use eval is for providing an user interface to run commands as the browser's javascript engine would interpret them
ah
it should refresh to self?update=200000
maybe &
?
and that would update only the local div ?
what?
thaqt actually makes the browser navigate
as you asked
it should refresh to self?update=200000 - that's a browser navigation
yeah .. but I was asking to refresh a certain div !
you can't refresh a div, unless you use ajax
you can refresh an iframe independently of the main page, but not a div
no problem with that ..
but .. how ?
oh… well if you have no problem with that
well first learn how to send handle an event (onchange for example) learn how to use the XHR (XMLHttpRequest) object, learn how to send data, learn how to receive, then lean how to use DOM to manipulate the content of the webpage dynimcally
in that case .. I'll just drop it ! .. it's not that important !
that's why I was wondering if you guys know an example somewhere ..
lala la
la
obj = document.getElementById('apacia'); poz = parseInt(obj.style.top); but got error that obj has no properties
i really loathe people who insist on using registered nicks
StaZ|work, maybe something like ajax updater from prototype !
where can i find code that show me a table that changes its color from red to green, than stays on green
like a notice box, like wordpress has when you update someone on the admin
how can i get the keys of array?
and sort then
how to define text color with javascript?
onchange="this.style.text='red'"; ?
.color
..style.color like the css property
is there a way to also make it bold ?
sure, .style.fontWeight
but, on the same onchange line
yes, should work
how ?
fontWeight = ?
never mind figured it out
thanks guys
onchange="this.style.text='red'; this.style.fontWeight='bold';"
sorry, i typed too slow
thanks anyway man
at least now i know that i can do several commands using the ;
and i also know that…
IM THE MASTER
i havent said it for 10 years at least, javascript host takes me back to it
thanks, bye
dang .. I don't get it .. I managed to do what I wanted StaZ|work ! .. in a separate file .. but if I put it in my file .. where I need it .. it doesn't work !
hello. I'm beggining with the yahoo UI lib, and i'm trying to write something using the scroller. The idea is that onmouseover of an image, it scrolls to a place, and onmouseout, it'd scroll back to where it was… I think i have a variable scope problem, but i dont know javascript so it's hard
for me to figure it out… my code is here: http://pastie.textmate.org/85284 does anyone have a second to take a look?
God isn't a monkey!
make back a global vareiable
solved my problem! thanks if anyone wa taking a look anyway though!
er
i removed "var " from inside the function and it started working
which does what equex suggested
oo hey insin
ltns
anyone experience issues with firefox, addEventListener and window resize event?
i cant even get a simple alert to fire
window.addEventListener('resize', function(){ alert('resize'); } ,false);
does anyone know how do i get the current X,Y scroll position of a scrollable div
i.e how much has been scrolled verically and horizontally
look for a function on google called getDocumentRect and then derrive a solution from that
how would i go about getting my ip with js
location
nvm
lol
andrew_ was the getDocumentRect for me?
anyone? I need to figure out how to get the current scroll position on a div with overflow:hidden
i would really appreciate it
if foo is true then it will echo i exist
duarte, ELEMENT.scrollTop
so in my little script in http://pastie.textmate.org/85284 could I set back = [ELEMENT.scrollLeft, ELEMENT.scrollTop] anywhere to set the back variable to the current scroll position?
i mean
thanks btw so far
I got some alerts working that gave me the right number
but i just can't seem to be able to use it in the back variable
cause it always sets to 0
ok i got it… i had to set back after moving it, i.e in the onMouseOver moment.. so i managed to get it to work thanks to your help
thanks!!
eh..
whatever
you're welcome 0o
hi
i have a script that perfectly works with no doctype, but no more works with a doctype (html 4.01 transitional or xhtml strict)
document.body.clientHeight but it doesn't work on xhtml strict, so how can i get the height of the screen ?
how can I remove an item from an array? I've tried stuff[i] = null but this doesn't seem to work
it you want the last item off, stuff.pop();
otherwise stuff.slice(startAtNum, howManyToRemove)
I hoped there's a better way than slice :/ I have to join the two arrays after it right?
join arrays? what exactly are you trying to accomplish?
so if I just do arr.slice(2) on this array 0,1,2,3,4,5 then after the operation the array will be 0,1,3,4,5 ?
you need to do arr.slice(2, 1)
ok cool
what if I slice it in a for loop, will I have to start the loop again or I can continue?
depends on what your for loop does, if it's going over the length of the array, how you slice it… etc.
well let's assume I have simple numbers, and if i == 3 then arr.slice(i,1)… can I continue with the for loop, or start from i=0 ?
does somebody here know the prototype.js or better the base.js of Dean Edwards?
http://erxz.com/pb/3927
the array contains the same elements as it did before slice()
Greetz. Is it possible to use inheritance in JS ? I would like to extend an ordinary HTMLElement (a DIV) and make it movable
you can extend an object with prototype
Okay, thanks
How do I grap the mouse event?
Where does it come from ?
for example, if you want to detect mouse movement over a div, do div.onmousemove = myfun; and define function myfun(e) { … }
Ok, so the function passed to onmousemove should always take at lease one argument ?
no, the onmousemove event specifically has one arguement… look up the function somewhere, it is specified which function has which arguements etc.
for example, e contains the clientX and clientY values which you'll probably want to use
Don't think you understand my question then
sec
The mouse event is passed to "myfyn" automatically, right?
(e)
yeah
hey, is there a way to change a css styles with javascript, without using id.style.foo = "bar"; I need it to change the style before the site loads (part of a fallback mechanism to ensure that users can see the content)
what's hot? any business idea?
= Would strToAlert be overridden by the MouseEvent ?
well basically instead of e you has strToAlert, but it would still be the same object
But you said the Mouse Event was passed to the function automatically (?)
Ah, wait. I should write myfunc(event) if I wanted the MouseEvent instead, right ?
hello
you should write myfunc(e) for compatibility reasons
and 'e' will ALWAYS be the Mouse Event ?
no
Only when a function is invoked within a Mouse event then ?
yep
at the first line of the function I write if (!e) e = event; this is because in IE the e is called event… so if you do this first line, then you can deal with e no matter which platform you have
Excelent
Ah, okay. Makes sense. Well, this is a Firefox only solution, so 'e' will probably do
(- message: JavaScript language advanced tips & tricks: http://code.google.com/p/jslibs/wiki/JavascriptTips -)
well listen to csaba
thats the complete truth
I am
hehe
just add that one line, it's not so hard and it'll make your app work under ie
does somebody here know the prototype.js or better the base.js of Dean Edwards?
Oh, got my GreaseMonkey script to work yesterday - I now have a perfect OnScreen Keyboard for Firefox which is enabled on all websites whenever I click an Input field http://www.powerzone.dk/Screenshot.png
Yea, I get that - but I'm not writing IE specific code. The system is for Firefox users only
hey, is there a way to change a css styles with javascript, without using id.style.foo = "bar"; I need it to change the style before the site loads (part of a fallback mechanism to ensure that users can see the content)
how can i get the width / height of the visible window of a browser ? i can use document.body.clientHeight, but it doesn't work with a doctype
is that a workaround for none os-accessability onscreen keyboard?
anyhow, I want a handwriting recognition thingie for my linux desktop
you're using javascript for a fallback? what if the javascript doesn't run?
It's based on pure JS/HTML and runs WITHIN Firefox as a UserScript (thanks to GreaseMonkey)
I got that much, but I was curious to the "why".
hehe, nice
Oh!
Yea
No sorry, it's more of a fallforward if the javascript does work
I'm working on a project of mine. I want to create an Information System based on fedora linux - and I prefer webbased tools. The Gnome OnScreen Keyboard dosn't work properly
A Kiosk System as it's called
anyone have a moment to help me figure out why my drag/drop script isn't working in IE??
Gnome OnScreen sucks. + You have it visible even when you'r not inside a input-field (which sucks)
indeed, nice.
does it spawn when you click an input field?
you can change the class of the body or some other container
Now I have it working - I'm now moving forward to a small User Interface which will (in time) become a small "Operating System" with tools like a Word Clone (based on TinyMCE), calculater, browser etc - all running within Firefox
Yup
Thanks
hehe woot
@include *
That's overkill !
why?
I want it that way - the Kiosk System dosn't have a keyboard - it's operated using a Touch Screen
it's to hide some content, but if it is hidden by default then users can not get at it without javascript, i don't want to be in that situation
good
change the class of the body from a script
how would I do that?
you can apply different styles depending on the class
I know, but making a web-based "OS" sounds overkill.
And I really appriciate the help you guys provided between friday and sunday. I was pretty new to GreaseMonkey
document.body.className = "stylish";
Well, it is more a user interface as I wrote. But with a few "lightweight" applications for text editing, calculations etc.
Since there are better frameworks for rich webapps (/me is waiting for linux Adobe Air)
Linux Adobe Air ?
Please enlighten me
Google.
Of cause
authoring tools?
Adobe Air, makes your Flex3 apps into desktop apps, and still easy as webapps to maintain.
No, it's a runtime, makes the flex3 content run in desktop environments.
http://labs.adobe.com/technologies/air/
That's it.
Interesting
"A Linux version is slated to be released at or around the time of the final client release. AIR is expected to be released in the second half of 2007."
thats So evil.
:P
Yeah
Back in ~ 15 min
hi
I am creating a form with javascript but when I try to give a file input field a value it doesn't show up on the form…anyone know why?
i need some help..
You can't assign values to the file input field.
why not?
Security Reasons!!!
i'm using an iframe to submit a form to upload a file. so i need something to check if the upload on my iframe has finished to update my form
Zee1ot, how will you assign a value to the file input field? how can you know the path of a file on clients side?
thanks for that i can kinda change stuff but my javascript knowledge is not advanced enough to select a certain div to edit the style of that. Could you gimme a pointer of two please?
umm ok, so I have a form for uploading files but instead of submitting the form, I wanted to create a second form that was a 'queue' for uploads, know how that can be done?
Zee1ot, you can use js to get their curretn values and make a queue list on a div
but the queue list is a list of hidden file fields no?
in a script, document.body.className = "stylish";
in the stylesheet, .stylish … { …. }
Zee1ot, no, just show a div with the queue list over your form, something like "uploading file 1 of 3"
huh?
the queue is a list of files before they are uploaded
files can take a long time to upload - why wait?
Zee1ot, so you'll need to substr their values to get the basename, unless you wanna display their complete path
displaying it isnt the issue
it's creating the form that has all the files
hello
hi
Yahoo Mail used to make you wait between attaching files - I'd often forget that I'd started uploading something and close the window, or move to a different message. Now they've got it working like a treat - I give it one file to attach and go and work on my email while it uploads, I can add
the next file while the 1st is uploading - by the time I'm finished attaching the 2nd file the first is finished
i am looking for a way to have static method and static host class
…by the time I'm finished writing the email hosting all files are uploaded
does anybody know how can i do ?
hello
what's a static method for you?
are braces truly optional?
only sometimes
a method that doesn't belong to an instance of an object ?
hey all
or maybe a method that's visible in all javascript hosting files
if i have a class name a whitch has a function/method b , i want do a.b() in a static context (widthout instanciate a)
can i update a div on a parent window using prototype?
does anyone know how google crawles sites using ajax? THinking about using adsense on my site which is 100% ajax.
but it doesn't work
I am reading something and it is getting into functions at the moment. it states, braces around a function are optional *but* in spidermonkey, this is just not the case
where does it says that?
i have a file that contains an array called markers, I delcared it as markers = [ ]
I'll get a link, one sec
as far as I know you have to instantiate the object
_not_ static, MyClass.myFunc = function(){} would be static
can I call them using markers[id].name?
that s what i want do dramman
does anyone know what the option in Internet Explorer for allowing Javascript to function without prompting is?
this will "look" like a static method but in fact it isn't: var MyObj = { a : function() { alert(1); } };
http://eloquentjavascript.net/chapter3.html , now scroll to the second example. then roll back three paragraphs. at the end of the third paragraph there is a superscript 1. hover over that and get the meaning
MyObj.a();
I can't have the files uploaded seperately
"Unlike those around the body of while loops or if statements, the braces around a function body are obligatory1."
you could've just linked to http://eloquentjavascript.net/chapter3.html#footnote1
why not? add them to the HttpSession
i will try csaba , but i plefer don't use this kind of synthax
heh, sorry, I tried right clicking on it, I missed the option
heh
because it instanciate the obj
I don't see where it mentions SpiderMonkey
'obligatory' means you have to include them
google for "progressive enhancement". Make your app RESTfull & Google will be able to crawl it.
oh, I am using spidermonkey to test my javascript. I am running a file through it with -f. I just get errors when I omit the braces
because they're required
sorry, I somehow got the idea, they're truly optional (which I prefer) but I always fail miserably when omitting them :/
dramman, you pointed the problem i have, have you an idea ?
good
anyone?
what functions would you write without them?
wow, I am an idiot, I mistook obligatory for optional… speed reading is a bad thing, sorry, 2 kids, can do this to you … don't have any
so your app will be accessible by GET (for non-JS and spiders), and POST for ajax. Also, make sure each "page"/view/function you want crawled is navigable (by GET) from your landing page (or pages listed in robots)
coming from a python background, braces seem unnecessary. I just need to get used to them. I am in the "baby glaze" phase of growth of JS…
where you can use a single statement, you can use a sequence of statements enclosed in { }; but the reverse is not always true
thats a great tip, just broaden the horizon with that one
although {} are not necessary for single line statements, a lot of people (and IDEs, JSLint) recommend that you always use them anyway, as it aids readability (if tabs/indentation is dodgy) and it's safer if the single line statement becomes a 2 line statement
what's "this.prototype = function (){};
does anyone know how to make google index xml files, and then return a link to the main index.html in the search results? ( is this the wrong forum for my question? )
wtz_, wrong open forum hosting indeed, has nothing to do with js
#web would be a better place
thanks!
google for robots.txt
JavaScript language advanced tips & tricks: http://code.google.com/p/jslibs/wiki/JavascriptTips
sorry my client died. Is there a way of selecting specific objects with out using 'document.getElementById(foo);'? This can only be call once everything else has been loaded, and that is too late!
Google doesn't index XML, afaik, other than RSS/Atom
you can use document.getElementById as soon as the element has been created
hello?
can anyone answer my question?
I sent security settings to low, and I still have to confirm to "allow blocked content"
=\
look in the advanced options
Agamemnus, get your self a domain
domain name*
oh, ok thanks deltab..
hang on let me try something. brb
it's safer if the single line statement becomes a 2 line statement?
I think I am going to use braces whenever possible just to be on the safe side. atm, omitting them is causing more headaches than I really need.
suppose you change if (this.inTransition) return; to if (inTransition) console.log("already running"); return;
thats just a habit I picked up from Python good or bad
that's one reasoning behind "use braces always or your sacked" i've heard before
then the return statement is *always* executed
hmmm I'm sure that i've tried that. Oh well it works. CHEERS!
I think I must make a sitemap. Not sure how google would feel about redirection back to the main page.
I think I get it. JS will run several statements on a single line as one statement Vs examining every newline especially those belonging to a statement block like e.g., if, while, etc?
let me experiment, one sec
run your code through http://www.jslint.com/
nice tool, I am sure. just got started learning, I am certain that will come in handy
sorry, I missed your examples definition. your talking just a matter of style. not packing several statements onto one line but breaking them up across several lines?
either way, it's legal syntax, but "naughty".
if thats what you mean, I got it. I dont hate scrolling and am not too fond of the do-everything one-liners
thanks for the tips. I need to throw the kids out with the bathwater for some peace and quiet… it's like a construction zone in the library here :/
unfortunately in IE the next element is only created once the previous content is loaded. My problem is I have some large flash movies in one of the divs, so these have to load before the next div is created, resulting in an awkward pause as it waits. Is there any way to delay the loading of
these movies?
your xpath there is a string, and strings don't have a textContent property
"have to"?
deltab, yeah i know that … but since i'm pretty noob … i was trying to get some of you guys to help me out how to do it
you need a function that evaluates xpath
i mean that IE forces them to load entirely before creating the next element
$("div").innerHTML = "movie";
or even better, DON'T make your movies compulsory downloading. I for one would hit the back button as soon as I realised what was going on (and I've got broadband)
deltab, var results = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
like that ?
actually, instead of .innerHTML you'd use an iframe
indeed
how would i stop the compulsory downloading of the movies? They are youtube videos, see here http://www.heldtogether.co.uk/BTCG/
Firefox makes it work fine, but IE just stalls!
Is there a way to fade the background?
I'm setting opacity but it doesn't seem to work
on the background
hi all, I'm having some (basic) problems
mootools.js has some cool code to do stuff like that
deltab, can you help me a bit more … i'm pretty lost
I have a frame that contains two documents named "outputFrame" and "sourceFrame", but a function in sourceFrame.html cannot reference something in outputFrame
!PasteBin | bjames
results is an array, I think
I just want to know how it is done… I set opacity on the body, but it doesn't affect the background
can someone point me towards a pastebin so I can paste my problem please?
containing data cell element
thanks
i give up for now ;/
js domref
"bjames" at 71.6.194.243 pasted "What's wrong with this? (hierarchy/reference doesn't work)" (41 lines) at http://erxz.com/pb/3929
hey all, i cant seem to create a valid data structure using arrays and objects
did you check the array?
what happens?
Is there any way to list all the properties of a DOM Node in IE? I can't figure out why "text" is undefined
deltab, bth i dont even know what i'm doing … so i'm gonna cool down a bit and try again in an hour or so
window.outputFrame has no properties
[Break on this error] window.outputFrame.document.write("This is a test")
(this is output from Firebug)
"Broom" at 71.6.194.243 pasted "Data structure" (17 lines) at http://erxz.com/pb/3930
thats my paste, can someone verify it and tell me if i'm writting something wrong?
any ideas?
or anyoen else?
if you have MSE or VS, use the QuickWatch command
anyone*
`ie tools
window.frames.outputFrame.document
ok
I will try that
deltab, unfortunately I don't
although that's not what my book says
S:
missing commas in the thrid object
that doesn't work
:@ thanks, can I like have that data structure on a separte file and call it using script src?
yes
thank you very much
do you have a frame with that name?
see the top of the pastebin
deltab, it doesn't look like there are any free to tools with the power of firebug. I need to look at the properties of DOM Nodes, and the best web hosting choice I can find, Debug Bar, doesn't let you do that
hello
how can i call a script
within the option html tag
is that possible?
hur
why does 'overflow-x: hidden; overflow-y: auto;' not work in IE6?
Agamemnus, they should be put on the html hosting tag
it's inside the style statement of a body tag
although i dont know if this way works
i see
yes it does
so it's an html property
in IE yes
odd that it would work in Mozilla but not in IE6
works in mozilla firefox too
this new one
thanks
you need to set them for both html and body
still, you will have problems in IE7
hmm
I will?
why?
my solution was overflow:hidden on body and overflow:auto on html for all browsers
because it may render 2 scrollbars in IE7
2 vertical/horizontal scrollbars i mean
I see
actually I need to check whether it works again..
I forgot a ;..
ok yeah it's totally not working
I forgot both the ";" and the actual image to make it scroll horizontally (I don't want it to scroll horizontally)
i dont understand, what ";" ?
here's what I have:
img src="main_800×600.jpg" style="position:absolute; overflow-x: hidden; overflow-y: hidden"
never mind that
but this doesn't work
in any browser
nothing is hidden
aaah, for images it doesn't
you should wrap it somehow
see, the problem is this
it works fine as a background
BUUUUUT
I was trying to fade it, but opacity doesn't work for backgrounds.
div style="position:absolute;overflow:hidden;"img src="main_800×600.jpg" //div
right
thanks
overflow wont work on images, but it will on divs
of course the best solution is to juset set opacity on backgrounds
is there a way to do that?
not that i know of
background images
ah ok
the background is like the bare-bones of the page— if you make it transparent it's like doing nothing to it
ok, but this doesn't work in ie6, so i will put it in html or something..
you should probably position the div
div style="position:absolute;top:0px;left:0px;width:100%;height:100%;overflow:hidden;"img src="main_800×600.jpg" //div
=|
yea….
yes, now it works
you can put it in a style type="text/css"…/style
it was the first object after body, so I didn't realize that was needed
this is fine.. thanks
=]
the whole issue arose from the stupid scrollbar sizes
the width is 800, for a size 800 resolution
but the vertical scrollbar needs to be there
ah
right
so now with the scrollbar there it's smaller
yea
but browsers can have different size scrollbars
yea
evil browser scrollbars, I say
evil IE, I say
=p
wait a second
NOOOOOOOOOOOOOOOO
what?
How do I set a variable in one frame from another?
NOOOOOOOOOOOOOOOOOO
window.parent.leftFrame.var="1"?
what?????
i guess….. i'm not really sure… go for it
I had an image background earlier
and I didn't set the width of the other image
I tried but it didn't work .
so I set it now but it's back to the same
I took it out, and set the height only
but now I have 2 scrollbars in mozilla
2 vertical ones
OH
hm
ok, it's fixed in mozilla
lol
I just set both to auto
the 2nd one was the div
ok
I set the body size to the picture size
it was the div and body scroll
IE, still no
IE6 at least
here:
body id="mainbody" name="mainbody" style="margin:0px; height:1120px"
div style="position:absolute; overflow:hidden; height:0px; top:0px; height:1120px"img src="main_800×600.jpg"/div
erm
set body width & height to 100%
then set the div width and height to 99%
that should fix it
er
hm?
that made things worse…
it did??? O.o
no vertical scrollbar in IE6..
hm
and there's some margin in mozilla
idk….
at the bottom near the info bar
So node.textContent works in FF, but neither that nor node.text works in IE, both just give 'undefined'. I thought 'text' is what I'm supposed to use. What's wrong?
try normal background with body width and height 100%?
normal background?
oh yes, mozilla is cut off
it's exactly the size of the screen
the image is bigger than the screen vertically
it's not actually 800×600
it's 800×1120
erm
that's the entire issue…
it should be a square or close to it =p
ok:
I set the widths to 100%, and the height to 1120
ok but here's another issue
?
in IE6, if you mouse over an image, you get some options to copy, print, etc. the image
is there a way to disable that? :-\
EAHSFDsfak;
i hate that
that's when i switched to firefox =p
seeing as it's kind of killing the website
you might be able to work around it with a object tag in place of the img tag
or
if I put the image in the div
like in the div background
or foreground
or something
forgot how though =(
AH!
?
in the div: style="position:absolute;top:0px;left:0px;height:1120px;width:100%;background-image:url('url_to_image');"/div
style="position:absolute;top:0px;left:0px;height:1120px;width:100%;background-image:url('url_to_image');"/div
ditch the image tag
so get rid of the div and img tag you got now, and replace them with: div style="position:absolute;top:0px;left:0px;height:1120px;width:100%;background-image:url('url_to_image');"/div
=p
is it working?
YAY! And the opacity works, too!
btw:
how do you do opacity in IE? lol
I'm making a site selling flower cards, so you could be one of the first to buy some..
here's what I use:
opacity:.35; filter:alpha(opacity=35)
ahh ok
damn
128MB ram just doesn't cut it on a desktop/server
it's only been on a day and it's slow
actually not even a day
it'll be a day in…. 7 minutes lol
JavaScript language advanced tips & tricks: http://code.google.com/p/jslibs/wiki/JavascriptTips
please give me feedback on this page
and feel free to add comments or new tips, I will add them in the body of the page
looks nice and clean
it might be important to add in definitions/synonyms near each example so that people who don't know exactly what they're looking for can find it better
otherwise, i'm not really down with the majority of those examples as I don't use them..
CY`Soubok, i dont agree that singleton thing
var singleton = {} is enough
w8,
it's not related to the web
it's only about the language
var singleton = {} is not a singleton, it is a global variable
Print(e.stack); only work in firefox
yes
http://www.itsalleasy.com/2006/02/05/prototype-chain
o.watch( 'foo', onFooChange );
i did n't kown this
woohoo
firefox 2.0.0.6!
is it portable ? recent ?
2.0.0.0.0.0.7
1.5
so it is not portable
like getters and setters
this is not precised in your doc
but there is a lot a cool informations
yes, I should add it
are you working for google or just writeing this for yourself ?
it's for myself
I work on jslibs:
http://code.google.com/p/jslibs/
( an open source project )
[…] OpenGL"
my god !
!
is "Class.extend = function(SubClass, SuperClass){ …
dependant on a library, or is Class standard?
dramman, dependent on library
have you note what i pointed about for (x in o) loop ?
yes, I'm reading
you shoud simply add (o.hasOwnProperty(x))
sorry if (o.hasOw…..)
is it portable ?
yes, 1.5
i mean
how does javascript handle object equality?
i may cause very stange comportement if you don't use it
it
this is very intresting
return !!words[word];
objects are only equal if they are the same
can you go into more detail about that
same type & value
no
hm?
[1] == [1]
false
({a: 1} == {a: 1})
false
var x = {a: 1}; x == x
true
ugh, that sucks
var x = {a: 1}; var y = x; x == y
true
so it only handles object identity
right
and there's no way to define a custom equality operator… hmm
return !!words[word];
suckass
what 's ?
in your example
you can rename the function, or create Class: var Class = {};
var Class = {};
I have added a link to your article
hum that 's not my article
oops
to the articel
you find a bug in a douglass crowford 's article ???!
why ?
just beacuse he invented json , jsmin , writed a lot of js articles and documentation….
what is jsmin ?
ok, thanks
you can write a Minifier like this:
var script = new Script('…your script…');
Print( script.toString() );
CY`Soubok, that's not just a minifier is a whole parsing theory taken by Crockford from some other guy
ok
"JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files."
my example does exactely the samp
same
but it is not portable
I've attached a keypress event listener to the document. Under FF everything works perfectly, but under IE I can only detect a,b,c… keypresses. When I press left, right, backspace… nothing happens.
How can I detect non-char keypresses with IE?
CY`Soubok, your example also remove \n \t spaces ?
no, for this, you can use :
function foo() { function bar(){};var i=0;for(;i10;++i) bar(i) }
Print(foo.toSource(2));
csaba, look at cross-browser.com/x , the event listeners functions may contain interesting code
the drawback is that you have to enclose your code by a function
toSource isn't portable
CY`Soubok, you have a strange way to write js? are you actually a C++ coder?
is, but the resulting string is portable
yes i am
but in the previous example, I removed any space
and the toSource(2) re-indent the code
it is an un- minifier
toSource(0) does what minifier do
usualy, once your js code is minified, you save it and it's done, no real need to have a portable minifier
I figured it out, I mustn't use onkeypress, instead on IE it has to be onkeydown or onkeyup http://unixpapa.com/js/key.html
hey everyone
or actually, if I type letters I have to use onkeypress, if I press left,right etc. I have to use onkeydown
you can get the F*/left/right/up/down keys?! O.o
F12
yeah
wiw
RockerMONO, yes, with keyCode
*wow
no. F1-F12 wont work with keyCode
i thought you were asking about the arrows, sorry
yea those too… i always get 0 when i try keyCode on those
I can definitively trigger events when F* key is pressed
please share how, i've been trying for a longgg time =p
is there a way to remove all child in a element ?
F12's keyCode is 123… ok I'll write a code sample
i dont know a way to automatically do it… but if you get bored you can hand-code the removal of all it's childrens =p
better that a loop in all element or element.innerHTML
arf
thanks
it is? ohh i must've done something wrong then =]
element.innerHTML="" is simplyer
i'm not saying their isn't a way, i just dont know it =p
brb
hi guys
here is a question
http://erxz.com/pb/3931 that would roughly be it
for example, i have XHR request to server and it returns xml file
any idea wtf this is? Object cannot be created in this context" code: "9
but i need get two separated types of data
i.e. active users and latest headlines
will it be faster to use DOM for geathering data
back
or to split it with xsl transformations
?
any ideas or comments on this ?
could be DOM error code 9, NOT_SUPPORTED
if i knew much of anything about either of those i could help
er, NOT_SUPPORTED_ERR
section:
var win = new Window({id: "01789822279", className:"default", width:350, height:400, title:"SMS"}); - and yes, I did include prototype.js
it's been a long time since I've seen an irc server this lagged
it's been having trouble today i think
wow
is it possible to call a method in the context of another frame?
if you want to see a ;wow; , go to #ubuntu
hmm, why is it when I'm passing objects around between .js files in firefox that objects lose their prototype information?
ismith
any Helma users in the house?
i downloaded it
about as far as I got
well, I got a little further, I want to do something with it but it takes time
i have an onclick event inside an iframe is it possible for the onclick to trigger a method call in the parent frame's context?
the number of people?
i got a nice little thing up on my page based on your code =p
congrats
http://mcgw.dav7.net:8080/javascript/keypress/
deltab, yeah , the have 1000+ there
last time i checked
you should try calling stopPropagation() for IE, then maybe the F5 won't refresh the page… not sure if it'll work though
hm, od, it don refresh in FF/Iceweasel =p
yeah because of the last line in the code, I think it's preventDefault() or something
but that only works for FF
oh
just stopPropagation() or e.stopPropagation()?
e
ok
let me know if it works, i'm curious too
lol i dont have IE! =p
well
i do
just not on this computer
i would test in IE… but this computer is running Linux =p
ok i'll test it… did you upload it?
yea
http://mcgw.dav7.net:8080/javascript/keypress/
btw since i'm using my server as my desktop right now i dont have to upload it =p
a rising tide.. lifts all ships…. and then they sink
bah it still refreshes it… oh well it was worth a try :p
heh
yup. your point?
just saying.
-_-
how do you do select case again?
dude… all i get is how to refresh a page in javascript… most of them are using the dreaded A HREF="javscript:refresh();"Refresh/A
nvm i am going to use an array
is there a way to delay an href?
I can't figure this out..
I want to do a fade effect, and I have the function ready
but the link activates before
so it doesn't work
what should I do?
Should I remove the link and put it in after the fade effect? (then i'll need more code to cope with non-javascript enabled browsers!)
return false for that link, then activate with window.location.href
ooo good idea
same problem 2 weeks ago
so:
onmouseclick="fadeout(); return false" ?
and then the fadeout handles the link
or onclick
yeah
yup, you could return false from that function
hmm
"return false" doesn't want to cooperate
it has to be in the onclick
well, it is
like a href="blahblahblah" onclick="doThis();return false;"blah/a
onclick="fadeoutstart(1); return false"
hm
idk
it doesn't understand return false
Agamemnus, what doThis() does?
OOOOOOOOOOOOOOOOOO
it's inside img
:-|
should I put all the javascript stuff inside the image?
or inside the a?
or mixed?
in the a
or put it in the img and loose the a =p
I need that to remove the border
o and..
img src="url" style="border:0px;" /
** Agamemnus
i need the img for non javascript compatibility
does anyone have a really good example of a function that calls itself over and over again until it finds the value to return or finishes? All the examples I've seen are pretty complex and I want a something simple to learn with
yes
you can use
setTimeout('fadeout()', 500)
or:
well…..
"agamemnus" at 71.6.194.243 pasted "settimeout example" (8 lines) at http://erxz.com/pb/3932
i figured out the issue, I think the return false needs to be last (maybe)
i mean first
or not.
where did you put your return false?
bye
hi all. i have trouble - write simple xml parser (using javascript), task is to wrap selected html text in some tag. but i want to wrap it more intelligent then past start tag at the beginning and ending of selection .
i need algorithm
or articals about this
not sure what ur asking
so you select the html text
and then you put it inside a tag
?
and then what is the problem
?
yes
so, what's the issue?
i can't put it simply in tag, because i can break some of inner tags ( in selection)
describe exactly what problem you are trying to solve, dont generalize
can you give us an example?
i thnk there is a simpler solution than what you are envisioning
like what do you need to change this into?:"blahblahblah a …/a"
i am writing plugin for tinyMce . when i selected some html i can place this selection inside particular tag
all inner tags are closed
but if i have tag opened or other one
?
i see
well, what's the ultimate purpose of this XML?
you can't just close the tags, because then you break the site
if you want to put it back together later
i have to make like this "custom_tagblah blahaadsfa sdf /a/custom_tagcustom_tagasdfasdf/custom_tag"
i can't change inner structure of html
so you actually want to select such that you select entire tags
is that i t?
+ s + "/custom_tag" ?
wrong, if some tags are opened and not closed or vice versa
?
i must get info about closed inner tags and enclose them by particular tag and if there are not closed tags i have to
the node will contain everything inside it
make like in example above
how can i stop page reload in IE? i can get it in Firefox but IE just reloads anyways
what do you mean ?
well, a node… let's say it's a div…
ugu
it will have all the other tags inside it…
until /div
yes
so you have to detect cases like with no closing tag? is that what you're saying?
may i show you example string, and how i must to enclose it ?
so your function needs to identify the node you start selecting and the node you end selecting
okay, sure
yes. you are right
one minute i will show you example
as in… stop the user from reloading it?
erm, just with the F5 key =p
so basically you have to validate that it's xhtml?
i have a page that lets you press a key and it tells you the keyCode, but in IE F5 still refreshes the page, in Firefox it works right
basically )
one minute i will show example )
so it will just refresh the page and not tell you the key?
yea
not sure i want to see it now ;p
can you have it do an alert?
or is it already doing that?
)
it does… but it alerts then reloads the page, or it just refreshes the page and throws an error
but do you know the keycode?
yea- 116
return false?
oh
or– something.
maybe use onunload
temporarily disable it
would that work?
how would i stop it with onunload?…
OH!
maybe onunload=function(){ return false;} ?
perhaps
btw
how can I force a reload?
I have it fade out now, but if I manually go back,
the image is faded out
until I reload it
I tried onload() but no go
document.reload(); reloads the page
and setting the opacity straight off
that might not even work
would there be a way to detect if the user went back/forward?
http://pastebin.com/d4d78e7ee help please !
shh
*stabs raxelo*
i dont understand the rule you have to implement
and your sample out put has mismatched tags
the problem is this
you assume the inner tags that aren't text … are pieces enclosed inside the selection
i can't break inner unclosed tags, so i have to enclose them by mine particular tag - this is the main rule. sorry for english
pieces ? this pieces are tags
these
to make this work, simply have your special tags enclose ONLY text
yes
but if tag is closed inside selection - it becomes "simple text"
to be inside the tag, you need to check that it has an ending piece
yes
the first thing that I would do is first find a way to get the start and endpoints of the text
i did this
such that each piece has ONLY text inside it
not tags
or b
mmm…
did you do that?
you mean - split selection by tags ?
by tag
maybe dont use b
I mean, just look at the basic text
Hi. I'm looking for a simple horizontal dhtml menu if submenus. Does somebody recommend for example?
and find the start and end points for the pieces of basic text
and what next ?
well,
look between each piece
and - there is only text
no
why no
look between each tag
eg…
closedsometext/closed
so look between the endpoint of the first tag and the startpoint of the second
check if the tag types match
hmm
of course the other tags could be somewhere else…
let me think…
suckerfish for do it yourself, milonic if you want to pay (around $50 us) … there are many other options
he could just use google
i found a nice one months ago but i can't find it
tags or go through them
go through them
..
not a question
but this is second level )
you can have some junk start and close between the tags
and you can have junk go through each one
what do you mean ?
eg:
bclosedsometext/closed/b
or:
closedsometext/closed
in your example,
tag right before the /a
and ?
but not right before the /b
i found one. thansk.
….which you misspelled as /bold
so you're picking where to put the closed tags
dont us b
it has to be strong
if the situation is that between each tag, all the tags are opened and closed, you can merge the tag together
i, etc to be inside a tag
then of course you can program the exceptions in
i have simply find unclosed tags ..
ok. but that's not really what you want
to simply find the unclosed tags, go through the string
find the next tag, then say tag[X] is closed
and tag[X] is type N
no simply find unclosed unclosed tags
listen..
so…. if it's abb/a
say, tag[1] is open, and it's type 1
go to the next one…
ok
tag[2] is open.. type 2…
uhu
tag[3] is open, type 3
then if you find a closed tag..
well, if it matches the last open one, then obviously you don't worry about it
and you set N to one less
if it doesn't match the open one…
let's say the example was b/a…
you are right !
i'm always right (lawlz)
errrr
i mean…
lawlz ?
nvm… if it was …/b/a…
uhu
you say, well, golly, i can't find any tag that matches
and you leave it
process of elimination, i guess
you would have to make sure it's in the right level, or something
details….
i guess you would have to specify the type of tag (a, b, p..) and the level
just try to go with that and see what happens
and keep refining the process
thanks a lot . i'll go to try this solution . thanks
okay, good luck
ok i finally fixed this
so I set return false to the a href
and I put everything else inside the image
that way non-javascript works, and javascript works
what's the point of the a if all it does is disable a link to nothing?
the javascript changes the page after the fade
erm?
it's not a link to nothing
oh
has a link
nevermind .
ok the other slight problem…
hmm
yes the other problem is that it remembers that it faded
hm?
oh!
set the opacity to 1 on page load
in mozilla
like i said
i'll try..
opacity to 1 on page load should fix it
oh wait
what is it when you fade it?
i think 100 for mozilla, 1 for IE
right
not fixing
it's 0
hm
so
when I go back, the page doesn't reload
hmm
body.onfocus=function(){ /* undo the effect */ }
oh, yes, maybe.
the effect doesn't work at all in IE though
I get an error
hm
document.getElementById('mainbody').style.opacity = fadeamount/100
oh!
document.getElementById('mainbody').style.filter = 'alpha(opacity=' + fadeamount + ')'
body.onfocus=function(){ try{ /* undo the effect */ } catch(e) { /* screw IE */ } }
blank
body id="mainbody" name="mainbody" style="margin:0px; width:100%; height:1120px" onfocus=function(){ try{ opacity:1; filter:alpha(opacity=100) } catch(e) { /* screw IE */ } }"
AHHHhhhhhhhhhhhhhhhhhhhhhhh extermely long code
O.o
anywaysss lol
see, you forgot the quote after onfocus=
onfocus=f should be onfocus="f
nope
yea, you forgot the quote lol
but i see some errors
hm
what are the errors?
missing } after function body
you left the quote off the beginning
body id="mainbody" name="mainbody" style="margin:0px; width:100%; height:1120px" onfocus="function(){ try{ opacity:1; filter:alpha(opacity=100) } catch(e) { /* screw IE */ } }"
ok, that gives the error missing }?
hm
wait
it's fine now
mk
must have been an old one
mk
so it works?
OOOOOOOOOOOOOOOOOO
yes!
awesome
can i see? lol
not in IE though..
IE sucks
yeah i'll upload it in a bit
k
do you get any errors in IE?
isn't this the IE one? document.getElementById('mainbody').style.filter = 'alpha(opacity=' + fadeamount + ')'
except the fadeamount will be different
yeah, no errors though
opacity=0.'+ fadeamount + ')'
document.getElementById('mainbody').style.filter = 'alpha(opacity=0.' + fadeamount + ')'
fadeamount is 1 to 100
in IE?
in general
i thought in IE it was 0 through 1?
idk
which one is IE then…
lemme check
this is IE:
document.getElementById('mainbody').style.filter = 'alpha(opacity=' + fadeamount + ')'
no
nono
argh
yes, the alpha() is IE
the hell……
hm?
now the fade out isn't working.
ugh
evil cut and paste
okok,
I forgot the style in style.opacity
but in IE it still won't work
and it is document.getElementById('mainbody').style.filter = 'alpha(opacity=' + fadeamount + ')'
everything else works, just not the fading.
hm
maybe the onfocus?
not that
I figured it out.
It won't fade body
ohhhh
OMFGWTFBBQ
i usually fade a solid black div in
that's also possible
maybe better.idk.
i'll test it when I have this working
i'll add a buffer div
2,
hours
div won't work
how are you doing it?
you have to fade the div *in* to a dark color
I got it
I set the div to a certain size
that's why it wasn't working
ah
alright..
i'm going to upload it
……….=\
hm?
hey all does somebody wish to help me?
ahh thanks guys
well anyone who does:
why does my site http://75.35.219.43 not work compared to http://www.mtdev.com/2001/08/text-fading-with-color-selection/
i set my javascript to fade from grey to black, and there's is set from black to red
all i did was change colors around
It doesn't fade on *either* site for me
Oh, when you hover
it does on the other one
yeah
any ideas?
It looks like chR, chG, and chB are the *amount* that it should change.
If they're all 0, then it doesn't change
so if i want from grey to black
and grey is 100
should i do 100?
-5 or something
Because you want the value to decrease with each step
sick thanks
how come there are 2 different greys?
it starts out one shade of grey
and then when you activate it, it fades to a different grey
they are all 100
What did you change?
You just changed a bunch of stuff :/
Change it back to how it was, and just set chR/G/B to -5 instead of 100
it works now, but doesn't change fast enough
On the setTimeout line, change 100 to something smaller
Bleh, that script isn't very good
By design, it won't go back to the original value.
Each r, g, or b value always fades to 0 or 255 both directions
how come nanobot?
It just keep increasing or decreasing the values until they're 0 or 255
wow, is there a way to stop it?
So it won't get back to 100,100,100
Not with that script
You'll have to find a different fader script
i couldn't find a different one
That script is from 2001
well, do you know any better ones?
No
I don't mess with stylistic JS much
:-(
why are all the number keys keyCodes 0?
…..
Here's a random questin
15 — a random answer for your question
is there a maximum amount of money under which you don't have to file a tax form?
like say, $100
$5400 IIRC
surely you don't have to file for this?
But that's .au
There's probably better places to ask .. like your government's tax department website
google is useless
so is the IRS
fruck it.
i'm calling them
ok
while i called them and listened to the pretty music i finally found a link
here is a question for logic gurus
what the FRUCK does this mean?
Was the total of your unearned and earned income more than the larger of:
$850, or
Your earned income (up to $4,850) plus $300?
so basically…
if i make less than 850, i'm good
OR if I make less than 4850+300
….
ok, yay!
no tax return
hi
'lo gogogogoogog
finally
some people who can actually help
I've been experiementing with js/testing it out.
Ever heard of an application called foobar2000 ?
gogo123, a music player or somethin?