hi I have a web form that I submit to an email script and Ive got a javascript email validation script in there
by the way, you can turn off NTP without any arcane commands
Basically, just replace \r\n with \n before performing any validation
righ-click on the clock, choose "Adjust Date & Time", type your password, uncheck "Periodically synchronise with Internet time servers", click "OK"
Oh that certainly doesn't work.
i dont control the server side validation
We tried that ten times.
iambpentameter, that sucks
yes it does
by using replace() function….with regex how do make it so that http://www.com/doit?x=hello&y=world would output "blah: x=hello&y=world"
ed1t, well, you'd capture everything after the first ?. this is basic regex, are you asking us to do it for you?
No need for regex there: url.substr(url.indexOf('?') + 1)
Jan-: your system seems to have more than its fair share of woe, then
Everyone always says that.
"blah: " + "http://www.com/doit?x=hello&y=world".split("?")[1]
blah: x=hello&y=world
But frankly this is just normal. We've had this exact sort of experience time after time.
alas, yes
the url is stored in a variable and i wanna do like replace(url, regex)
No regex required
url = url.substr(url.indexOf("?") + 1);
i know that way but how would i do it with regex?
url = url.replace(/.*?/, "");
But that's unnecessarily inefficient
you'd need to escape the ?
Oops
I thought I did
url = url.replace(/.*\?/, "");
document.getElementById(elementId+"Input").focus();
Ie7 doesnt focus on textbox … wtf?
hi i was wondering if anyone knew javascript and had 5 minutes of time to spare?
"JamesSavko" at 71.6.194.243 pasted "Having some issues with this, probably because I'm new at java." (12 lines) at http://erxz.com/pb/3691
o0
for a start, it's JavaScript, not Java
`js forms @ JamesSavko
js forms: Accessing form elements via JavaScript: Don't use document.forms[index].elementName or document.formName.elementName. Use document.forms['formName'].elements['elementName'] or document.getElementById('formID').elements['elementName'] or
document.getElementById('elementID')
Also, "if" checks for a boolean expression… if you're using == true or == false you're doing something wrong.
if you have a javascript hosting question, just ask it - if it's interesting enough, or easy enough, or hard enough, or someone is just plain bored, you'll likely get some help
that is, you can just use if (checkbox.checked) { … }
Thirdly, you need to use array access syntax to access the property of a dynamic name; there you're literally using the "Box" property
ok i was wondering if someone could change this little "Animated Collapsible DIV" so it folds out right instead of down.
thx
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
Fourthly, an if statement is overkill here: it'd be easier to use a conditional operator
thats the one, but im only using the 2nd example. and ive looked at it but i cant get it to go left and right, only up and down.
twey = twey ? twey : "twey"
i need to find a data structure for this problem, so if someone's up to it… i guaruntee it won't be easy.
"Twey" at 71.6.194.243 pasted "Re: JamesSavko" (3 lines) at http://erxz.com/pb/3692
is it possible?
You seriosuly made my 12 lines of code into 3? That's pretty impressive.
thats what they're here for!
i have an excel spreadsheet that has 5 columns. the frist column is "muscle", the second "resistance", the third "position", the fourth "motion" and the fifth "exercise"
Heh
Personally, I wouldn't even make that a function. It's not worth it for the one assignment it contains.
I need to use it over and over
the 5th column contains unique values derived from columns 1 through 4
On different check boxes.
*groove* *bop*
Loop
in order to know if a hidden field is empty, do I have to compare the value field with null, 0 or "" ?
""
can anyone help me? sorry to be pushy.
if the user selects "abs", for example, only the resistance, position, motion and exercise values will be shown in the other selects
Ask on the forums
ok, thanks Twey
I need it to effect different divisions based on checking a box for a product. That's why I made it a function.
Search first though
lol ok thanks.
the more i click in the other boxen, the more i narrow down the exercise list
how can i achieve this?
*shrug* If it makes sense to you
There's no real downside, I'm just saying I wouldn't.
I appreciate your help! I'm not sure what you mean by use loop instead. I can show you what I'm working on if you'd like.
Sure, pastebin it
what's that used for?
basically, i need to narrow down all 5 selects based on wherever the user clicks. what data structure should i use?
"JamesSavko" at 71.6.194.243 pasted "Products Page" (1 line) at http://erxz.com/pb/3693
is .focus() broken in ie7
Something else you might want to do is set a CSS class and add/remove that rather than manipulating the style directly
That's quite a bit neater
I'll do a google search and see if I can find a sample.
I actually meant the actual code, not the URL You could've just pasted that.
uI actually meant the actual code, not the URL You could've just pasted that./u
you can paste URLS here directly, by the way
Jan-: using the Command pattern?
the What pattern?
Ouch, stay away from XHTML for now
LOL.
No support in IE
That's actually a javascript that alters a Span.
The only way to allow user data to include arbitrary HTML is to use innerHTML, isn't it.
that or write a whole html hosting parser.
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
Jan-: each time the user makes some significant change, you create a Command object containing the data need to do the action, and the data needed to undo it
that's what I was thinking of, but I didn't know there was a term for it (though I kinda assumed there was)
Yah, I need to change that now.
You want: !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
Make each object responsible for creating an Undo for its own actions.
And add them to a list.
Then revalidate: http://validator-test.w3.org/
Jan-: exactly
Jan-: you mean to validate what they're inputting or actually applying it to your page?
That popUp() function is nasty
Well, I want people to be able to put icons in my gridview control.
Thanks, yah I know. I didn't want to use a popUP at all, I just used a generator to make that for the time being.
So I could just put a ShowAsImage attribute on it and let them supply the image filename.
Jan-: that doesn't require arbitrary HTML
Or, I could just let them include any HTML they fancied.
Which is more general.
function popUp(url) { window.open(url, "", 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=500'); }
they can provide a DOM object instead of HTML text
not in an XML document, they can't.
eh?
I'm rendering an XML host document, basically.
Most table cells just contain the text in the XML
Jan-: Wow, nice.
what is?
Jan-: So if you did that… someone wanting to write would have to use <
Yes.
I've already done it.
What's nice?
Eight characters to one
well you can use <
I can't think of a really nice way of doin' it.
It's just that all my code uses textNodes at the moment.
It's as bad as a backslash in regex via awk via Perl via Python via C++, which I did once
Otherwise it would sorta work automatically.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
For one literal backslash.
Quit.
OK, maybe not quite that bad.
But that's the idea.
icon ws_displayAsHTML="true"<img src="c:/elphaba/icon/icon_slate_16.png"></img>/icon
Jan-: XHTML elements in the XML
What in the what now?
Thanks for all the help
Jan-: Elphaba… have you been to a showing of Wicked?
Welcome
iconhtml:img src="c:/elphaba/icon/icon_slate_16.png"/html:img/icon
SOMEONE NOTICED THE NAME!
ah, that's where I vaguely recognised it from
My girlfriend and her entire family are obsessed with it
It uses a piece of HD video I/O made by a company called Blackmagic Design.
And yeah, deltab's idea is better
Ahhh.
Ergo.
Clever.
The Wicked Witch uses black magic.
Somewhat.
Also, parts of the UI are green.
You're not allowed to call it "black magic" any more.
It's racist apparently.
So er.
I wonder how Woosta's XML library would deal with that.
What, old-fashioned racist thaumaturgical phrases?
Hehe
This approach is sucking.
"Thaumaturgical" is a perfectly good word based on a real Latin root, I refuse to avoid it just because Terry got there first
Oh, is that where he got it.
within a derived function that overrides a base function, how do I call the base function?
Absolutely
Try again, witten
huh?
was that not clear?
You have to reference it from the base.
this.constructor.prototype.m()
Although "overriding" is a bit ambiguous in Javascript
this.constructor refers to the base?
"base"?
base object
no, it refers to the constructor
okay
thanks
How can I scan a string (like a frame URL) for a certain substring like "google" ?
-1
Twey, thanks a trillion! ^_^
I can never remember whether it's switch or select in JS
switch
as in Java, C, C++, and others
She's a VB user at heart.
-1 ) { alert ("lol") } should be ok right?
"JamesSavko" at 71.6.194.243 pasted "Products Page" (1 line) at http://erxz.com/pb/3694
No
Jan-: is this true?
woops
That's nothing
Ignore that plase. I reloaded firefox and it restored the session lol.
window.location is an object, window.location.href is a string
oh ok
-1) { /* do stuff */ }
-1; };
hello everybody !
hey, Dr. Nick!
It is some one that use json-rpc on javascript ?
Hmm … I get permission denied for frames['rtframe'].location.href.indexOf ("google")
rtframe is an iframe
Am I doing some thing wrong … or I'm out of luck
?
it's from another site, so you don't have access
"necromancer" at 71.6.194.243 pasted "the javascript function(s) that submit a new post into a forum" (35 lines) at http://erxz.com/pb/3695
oh hey!
there it is
i'm having a problem getting Ajax to invoke a PHP script that i made
Do you have any suggestions on how to make those radials do the same as the check boxes?
what problem?
the php web hosting script basically creates a new post in MySQL
http://erxz.com/pb/3695
when I click "Post!" (which should invoke this function), nothing happens
Ooer. The river is very high.
Jan-: We flooded this morning ^_^
So basically if your frame's URL is not from the same site … you're out of control
How bad?
Heh
Not that bad… a few inches
perhaps this is related, i just ran a little debug alert() window
and none of my form attributes are being sent through this function
… am I right?
and it's not working
do i have to use the name attribute instead of id?
what does 'this' refer to there?
i figured it would refer to the form at hand but i guess not
You know if I were to use innerHTML to populate my table cells, I wouldn't need to go through all this.
uYou know if I were to use innerHTML to populate my table cells, I wouldn't need to go through all this./u
'this' is verbatim, i actually wrote this.title, this.body, etc.
anyway, thanks folks for the info
i've actually never had to use JS to process my forms in fucking forever
ever since i learned PHP
You should never *have* to use JS to do anything
yes, but 'this' refers to different objects in different contexts
It's an enhancement
it was in web programming class in high school
where they were teaching us JS
Heh, ah
yeah i figure it's not referring to what i want it to refer to
uyeah i figure it's not referring to what i want it to refer to/u
how do you pass form values into JS functions?
I image host you can use document.forms['formName'].elements['elementName'] or document.getElementById('formID').elements['elementName'] or document.getElementById('elementID')
My dad is her
Here, too.
Is s/he?
He comes bearing gifts!
Why?
Hide!
I think I'm going to have to Not Do icons in tables.
It's too much farquharing about.
Jan-: what happened to letting them give a URL?
The amount of changes I was going to have to make, most of them ugly, was discouragingly huge.
It dealt with everything as text, end of story.
oh Tweysters, you haven't seen this thing recently have you?
http://www.1159productions.com/test182/shad_xml.jpg
Jan-: Ah, you've gone grey!
?
Jan-: Was The Painted Veil any good?
hmm
i have a problem but i don't know what it is
wait a sec brb
Don't worry, this is why psychiatrists are for.
alright
Jan-: You're using forward slashes as path separators :-p
hahahahahaha
alright so
it seems that all the JS-end of the Ajax works
but let me re-paste so you guys can see what i'm doing
and maybe shine some light as to why the PHP script is not being invoked
"necromancer" at 71.6.194.243 pasted "just the postItem() function to test if the php script is being invoked" (24 lines) at http://erxz.com/pb/3696
there we go
in http://erxz.com/pb/3696, what could be preventing the php script from being invoked
note that i see that alert()
also, the page is located at http://projects.darkcitydesigns.com/bcp/more/forsale (click "Post a new Item!")
you can use Firebug, Fiddler or Wireshark to see what communication's happening
aren't they packet sniffers?
(i know wireshark is)
only Wireshark, and I only included it because someone brought it up the last time I mentioned Fiddler (which is an HTTP proxy)
My friend has now been without his ADSL for a week while BT, his ISP, and their wholesaler argue about whose fault it is.
Grrr.
Hahaha.
3 BT
wow deltab, taht really helped out!
What makes it even more fun is that although the ISP won't say, we're pretty sure that the wholesaler is also BT.
Or rather another triple-jointed appendage of the Gigantocorp That Is BT
So basically, BT is arguing with itself over who has authority to go reboot the DSLAM.
In short, a thumb-fingered communications brick-drop of truly startling proportions.
how i can post with javascript?
if i press a button "onclick" post the formular X ?
"submit"
?=
document.self.submit();
is it valid?
input type="submit" value="Send"
jo, i know. but i have already in onclick a functino
so?
ja
what's the function for?
functino bla() […
document.getElementById('loading').innerHTML ='img src="gallerie/images/loading.gif"';
document.getElementById('knopf').innerHTML ='';
}
a element is visible and i like
submit the formular
form
how deltab ?
hi, is there a rc4 implementation for javascript (GPL) ?
there's certainly an RC5
Oh no. Hang on.
I was thinking of MD5.
Which is not the same.
but I think there is.
STFW.
Hahaha
http://home.versatel.nl/MAvanEverdingen/Code/
That's what I was looking at.
hello?
In fact I think I have more than half a dozen useful hits for "javascript RC4"
just return from the function and let the browser continue submission
i have input name="'.$formular_name.'" onclick="show_loading()" type= …
what u mean? what i must change?
that function should be called from the form's onsubmit, not the button's onclick: there's more than one way to submit a form
hmm ?
try also "arcfour"
I presume you want to show "loading" when the user presses Enter too
in my functino is:
document.hinzufuegen.submit();
document.getElementById('loading').innerHTML ='img src="gallerie/images/loading.gif"';
document.getElementById('knopf').innerHTML ='';
remove the submit call: you don't need it
in internet explorer running this.
hm. i can't unterstand
Jan-: How long have you been working on this now?
ah sorry, i'm looking for RSA not RC4
*blush*
hmm.
help
In the beginning I didn't really have a purpose for it other than to be a learning project.
then someone said "I'll buy that for a dollar!"
Then it stopped being fun.
Heheh
Jan-: You realise you could've written this in roughly three weeks in Python and wxWidgets?
Jan-: Including learning how to use Python and wxWidgets?
I wouldn't just have had to learn to use python and widgets
I'd have had to learn all the win32 UI components too.
ok.. its works now. how i can denied if the user have press "submit" and he try "refresh" (f5) ?
Plus, I have been playing with JS on and off since the late 90s.
And I'm still shit.
So.
deny what?
Jan-: No, all the UI components are handled by wxWidgets
How long do you think it would take me to get *this* good in something else?
Jan-: who have you had teaching you?
deny the refresh
you can't
mh. ok
Google Is My Friend
Jan-: hrm
good night
Anyway, Twey, *you* could have written this in three weeks because you're a college trained software engineer with an IQ of 220.
I am just a rather dim and incapable crip with almost no formal training.
I am not college-trained
Being forced to write crap software in VB doesn't count as training, especially when you already know VB
And my IQ isn't 220 either
230?
Jan-: Lower
Jan-: Way lower
22?
Higher, thank the gods
you're smarter'n I am
Jan-: What's yours?
And you'd have done it on fucking Linux, too.
It'd've been platform-independent
No, it wouldn't.
Everything I write is platform-independent, unless there's absolutely no other way
You're doing video playback on three different displays at once, it's not going to be platform independent.
Don't see why not… the drivers I'd have to make platform-specific, obviously, but the rest could be independent
Plus I've done a ton of work for midi and serial
I'm not sure if anything on Linux supports MIDI, after all, it was only invented in the late seventies, it could be too soon, y'know
They're already implemented on Linux
Don't be daft, linux host tends to support those things long before Windows
We've had 64-bit support since 1994
i removed an embed object with removeChild but it's still playing (in IE), can somebody enlighten me how to completely remove iT?
flash object
That's just so beautifully Linux.
Jan-: is there also a command reference for the RC4 library ? i can't find a single .js file with the code… just a huge html file with js in it
Fantastic support for something that doesn't matter.
No support for things that do.
No idea, never used it.
I have this thing about only doing things I can do well. I'm shit at programming, so I do it a little as possible.
My position is that the world has enough bad Python programmers.
I finally got my mac site working
i'm excited
eheh
Jan-: It's quite hard to program badly in Python
Jan-: Ooh, ooh, you could do it in Haskell!
It's quite hard to program badly in javascript but I do it all the time.
hehe
It really isn't.
like the most of us
It's just that it would have taken me just as long to learn Python.
interpreted languages are fun to code
It's infamously easy to program badly in Javascript.
And this way at least I know what I'm doing.
I don't have to learn someone else's API.
it's hard to program in JS
my javascript prolly has 6969 mem leaks
because there are no standarts, yes
I mean right now I'm writing a thing to highlight a table row to show where in the playlist we are.
I made Poor Man's Itunes in javascript!
hehe
Do standard Windows widgets allow you to put a blinking glownig outline round a table row? Course not.
basically just an embed obj
are there links available ?
Jan-: Eh… you are using someone else's API
Yeah but just like a web page.
That's not a real API.
wow
It can't be a real api or I wouldn't be able to learn it.
and that's pure js ?
yes
pure js
took me a month
:*
how you did that ? i mean… hmm
just a bunch of div layers
and make them behave
lots of createElement()'s
Jan-: And standard Windows widgets don't, but standard Windows widgets and a bit of animating code like that what you done wrote for the JS one do
and the image scaling
ya
the way you do it is simple
mouse coord - image cord
and scale the size linearly
normal image where you change size ?
with time ??
The code to draw a rectangle (let alone three concentric ones with slightly varying transparency) on the screen in Windows is at least 150k long.
so you take the time into account ?
I know it is because I *checked* OK?
Jan-: Thus, wxWidgets.
(mousex - image.left) / (3*iconsizes)
Jan-: You're right, but that's because the pure Win32 API is crap. The wxWidgets one is much nicer.
I mean just opening a window
*shudder*
It's like ten pages of calls to 150 different DLLs.
and the icons are normaly high scale and you scale them down at startup?
Yes. We know.
yes
the icons are 128px
IN C++ of all things.
But in wxPython it's one statement.
but i scale them down to 48px
It's only a few statements with wxWidgets even in C++.
Yes but I can't do anything in wxpython.
you vary them between 48 and 128px
Jan-: was it using MFC?
In an HTA it's no statement at all. You just need a null file with a .hta extension.
nice work
Jan-: Yes you can
Beat that
thanks
Jan-: We've had this discussion before
And I'm still right, see?
Jan-: You don't even need a file… just open a web browser. Viola, window
Jan-: No, you lost last time and you lost this time as well
But not one you can do much with.
Now what I should have done is do it as a .net app.
it's realy slow (the scaling), i would remove the transparenzy of the paddle where the icons are inside (this makes it really slow)
But that would have been nearly as horrible.
That would've been much more horrible than wxPython.
hm..
how fast is your computer?
But not as horrible as Win32.
I did look into doing it in wx, I really did.
it's a little slow on mine, too
2ghz thinkpad
It's OK here
oh
512mb ram
Unfortunately wxJS sucks.
what browser?
What browser? Fx2?
firefox
oh
trie IE
it's pretty smooth in ie
Jan-: Which is why I said Python. *Python.*
But the problem with wx is that all it does, whatever language you use, is lay out the UI.
Fx2's Javascript capabilities are really slow.
Fx3 is better.
You can't actually DO anything.
You can make a pretty UI, and that's IT.
Jan-: Yes you can
i wont even touch ie
ehhe
it's even slower in safari and opera but oh well
You can't run shell commands or call activeX. So you're in a void, you can't actually make it do anything useful. just lay out some buttons.
Well I lie. You can. You just have to do it in C++.
Jan-: That's provided by Python
Jan-: Or Python
Jan-: that's not the truth
not on the ones I saw.
!!!
Jan-: You didn't look hard enough then.
tried meboo ?
Jan-: There's an entire win32 module.
instant messaging with javascript
Not just Javascript, there's a lot of server-side stuff too.
if they made it as a plugin for WSH, I'd be interested.
Even the JS version doesn't actually use the jscript interpreter.]
If it did, it'd be worth having.
Jan-: Forget wxJS
Jan-: wxJS is not representative of wxWidgets
Even in JS it was tricky enough.
'transparency' (the c is pronounced 'ts')
Jan-: wxJS embeds wxWidgets; everything else includes them
I mean, setting up one of my JS-based UI controls is probably as complicated.
you guys should checkout youos.com
But at least I know how to do that because I built it from the ground up.
it's pretty sexy
know this allready
Or eyeos, yes, yes, everyone's done it
but nice way to get away from ms licenses
And your background looks silly at 1600×1200
hehe :*
my laptop is 1280×800
Jan-: I suspect it's way, way more complicated
so the bg is 1280×800
Heh
Well, you tell me
Set it out so it's 100%x100%
May look a bit weird, but at least it'll fit
stretching looks weird
"Jan" at 71.6.194.243 pasted "Grid setup" (22 lines) at http://erxz.com/pb/3697
I suspect even my dirty socks could work that out, actually.
Jan-: That's actually not so bad as I expected it to be
Jan-: I'd say probably about the same
Except for the bits you're leaving out 'cos they're "obvious", yeah.
Jan-: that's the sort of code I'd expect to be able to use with a well-designed toolkit
My thing isn't a toolkit and it is certainly not well designed.
Jan-: Hmm? I'm not really leaving anything out
your code begs to differ
That code does look pretty well-designed
Although I daresay the backside of it is a mess
"Jan" at 71.6.194.243 pasted "w32table2" (752 lines) at http://erxz.com/pb/3698
See for yourself.
See, if the API is roughly equivalent in difficulty
That leaves you 752 lines of code better off with wxWidgets
oh come on.
Say what you really think.
752 lines of hideously bad horrible code.
Jan-: Poor. Very poor.
Jan-: And that is going to leak memory like a *bitch.*
You've got gods know how many methods
Yeah, if you create 200 of them.
Currently I have two.
All recreated once every time the object is created
But still
Not purty.
It's nicer than the twey method with all the Extend and SpreadSelf and shit.
What was wrong with using w32Table2.prototype?
Nothing. I may go back and do that.
Nuh-uh.
But that's not the main problem as regards memory.
I could make that change easily enough, to be honest.
That's not what I'm worried about.
So, do you want to see a *bad* one?
As long as it doesn't burn out my eyes.
That's the most recently written one.
Where my competence was at its… er… well, it's probably rude to call something that's actually *concave* a "peak
but you see what I mean.
Heh
Not concave
what's the function to convert a string to lower case?
.toLowerCase()
aight
"Jan" at 71.6.194.243 pasted "Treeviewer. Aargh, my ey… oh, yeah… Still." (499 lines) at http://erxz.com/pb/3699
get a load of enumerateNode
It's *genius*
It's so bad, it's *good*
Jan-: …
Jan-: I looked at that and the first thing I saw was if(87).
Shutup.
That's a *temporary hack*, OK?
Muuum! Jan's bending time and space again!
I only put all that shit in when we were testing on IE6 and 7 machines all at once, and the IE6 machinen didn't support PNG transparency properly, and we had two complete sets of icons
Ngh. and it has the annoying "Look, I'm a programmer!" CVS shit at the top.
Jan-: newNode.ondblclick=cancelBubble; newNode.ondoubleclick=cancelBubble;
Jan-: You didn't know which one it was, did you.
*razzlefrazzin*
Jan-: That is fecking horrible.
YES.
AND YOU WANTED TO INFLICT ME ON THE PYTHON COMMUNITY.
Let that be a lesson to you.
Hahaha
OK, I've changed my opinion
You should definitely do it in Haskell.
To be scrupulously fair, the table viewer is considerably less horrible.
If I could be bothered to go prototype all the methods, it would be in a state where I do not know how to make it nicer, anyway.
I do fully appreciate that the tree viewer sucks.
Haskellhaskellhaskellhaskell.
It does, however, work.
It's *hard* to write bad code in Haskell.
. // Hack: avoid transparent icons for pre-ie7 environments that don't support PNG transparency properly
followed immediately by:
.. // Hack: Don't avoid transparent icons for pre-ie7 environments…
*sigh*
If only there were some way to rubber-stamp code
You could just stamp big red "HACK" signs over the whole thing
bYou could just stamp big red "HACK" signs over the whole thing /b
That would be very helpful for the W2K devs as well.
Do you want to see the *seriously* nasty one, though?
This one actually pained me when I wrote it, let alone now
"Jan" at 71.6.194.243 pasted "Preferences panel settings XML file (Will somebody PLEASE think of the CHILDREN!)" (616 lines) at http://erxz.com/pb/3700
Jan-: This is a couple of thousand lines of code that you needn't have written
And is thus entirely redundant.
You'd just let people hack settings.ini, of course.
But you're a Linux user.
I have to provide a UI
Rofl.
Uber-rofl.
I fail to express my mirth.
hi
Uber-rotflmao.
night
Thanks for all the help guys! I'm going to call it a day!
Heh
WTFBBQROFLMAOCOPTERSKATES?
Jan-: What. The. HECK.
Yes.
That will do.
how can I pass a javascript's variable to php?
Via a form or XHR
That is what code I write looks like before Phil cleans it up for me.
That one, he refused to clean up.
Something about the geneva convention.
Hahahaha
What would you consider the be-all end-all Javascript for web UI book around?
man, firebug rocks as a debugger
too bad there isn't something that good for PHP
whatever best suits your needs
It started out as a way of specifying a UI control containing a tab panel.
Modius, http://quirksmode.org/ - that book
Then it had the ability to define the panes inside that tab panel added to it.
Then it had some html host crammed haphazardly in to suggest how the UI might eventually look.
Then, I added some Javascript to control the behaviour of that HTML, commented out some of the older HTML, and added a bit more.
Because it doesn't run the build system I wrote for the rest of it, there is no CSS access, so it then had a bunch of CSS added, inline.
Isn't it *beautiful*
All the while using CDATA blocks to hold the HTML instead of another namespace.
It is quite difficult to work on.
It's hucking fideous, to use a Spoonerism.
Well how else shoudl I put HTML inside XML in such a way that Woosta's parser won't barf on it and give me all the HTML elements as individual bits of text?
someone an idea where to find closer information on the rich text editor inside of firefox ? (midas)
Like deltab suggested earlier
Use a namespace
html:input checked="checked" type="radio" name="bits" /
I think xml.simple would barf on that
wouldn't that make it XHTML?
No
Twey, so that should work shouldn't it? http://pastebin.co.uk/19709
And xml.simple ruddy well shouldn't
Woosta coded it so it ought to be semi-decent
Huh? Who are you?
Jan-: it'd be XML containing XHTML, yes
Oh
how can I pass a javascript's variable to php?
Via a form or XHR
Sorry, my brain's not working much tonight
lol
"Jan" at 71.6.194.243 pasted "Application setup" (127 lines) at http://erxz.com/pb/3701
Tell me *that* would have been easier in Python.
no problem man, we are all so, it is too late
What the heck are you trying to do?
Jan-: Yup
I want to get the search box's value to pass to php and treat it
bI want to get the search box's value to pass to php and treat it/b
Just submit the form
I have done an alert and it works fine but when I try to get the value via php I am not able
in python you wouldn't have semicolons at the ends of the lines
er
Jan-: : in python you wouldn't have semicolons at the ends of the lines
Haha
What I like best about what I have now is that it is really easy to change, say, what's in the menus.
It'd be just as easy with anything else
"Jan" at 71.6.194.243 pasted "Menu definition" (97 lines) at http://erxz.com/pb/3702
Jan-: The convention is to start constructor function identifiers with a capital
I did once look up what it took to create a dropdown menu in windows.
It was literally more code than the entire library I wrote to do menus.
It's absolutely fucking preposterous.
Jan-: http://www.wxpython.org/tut-part1.php
Yup
Win32 API is like that
Whats' a constructor function?
Jan-: I'm not sure if you're grasping my point when I say Win32 API != wxWidgets API
Ah.
That would explain it.
Oh hang on.
Is w32TableViewer2 a constructor function?
Yus.
Bummer.
Yus.
I can't change that. It's used all over the place.
Does it matter?
Jan-: Use grep
Oh wait
Jan-: a function that you use with new to construct an object
Kind of, yeah
It's very common convention… more like an unspoken law.
a tool for making the hideous verbosity of Linux slightly less hideous.
a tool for situations just like these.
as in "ps -aux | grep firefox"
Or sed.
Or in my world, ctrl-alt-delete [arrow keys] [tab] return.
Jan-: Hey, it's faster than scrolling down Windows' silly little box thing.
Jan-: But we digress.
Is that why it's a new ActiveXObject() not an activeXOBject()
Yes.
Now you're missing the trick a bit here, Twey.
And a new XmlHTTPRequest, although that name is just silly.
The more things you gleefully point out that are wrong with my code, the clearer it becomes that I should not be let near a text editor.
Are we in disagreement?
Yes
You need a stricter language, that makes bad coding harder.
Like C++.
Or, gods help you, Haskell.
Oh yeah. Stricter. That's gonna help.
It's very very difficult to write bad code in Haskell.
Actually, in my experience it's very very difficult to write any code in Haskell.
I'm still weeping over the fact that it is no longer as easy as "10 PRINT "MOM SMELLS" 20 GOTO 10"
it's very difficult to write any code in Haskell
But when it happens, it's good.
aw shucks
Too slow
(I didn't have siblings to insult)
Jan-: Heh
This is why I did this in JS.
a) I fucking suck, and I need a language that lets me get away with it
2) In C++, I would just about have gotten an open window by now, and
iii) …
iii) wxJS blows.
wxJS does indeed blow.
In C++, you'd probably be a lot further than this if you'd used wxWidgets
If you used pure Win32, I doubt you'd've got that far.
Twice I have tried to use C.
And fucking sucking is a hint that you need to improve.
Jan-: C++. C++. Not C. C++.
Jan-: Two very different languages, two very different paradigms.
One time, I made a "hello world" program and all it did was create a file called a.out which immediately reset the machine when I tried to execute it.
Second time I couldn't get it to compile.
Hahaha
But hey.
Jan-: Well, you were a beginner.
It was windows 98. What can I say.
Jan-: You've moved on now.
Not much, as you've been gleefully demonstrating.
Jan-: You can possibly actually keep your machine alive.
Nah, seriously though, wxWidgets is quite fast to develop with
Especially with Python.
Jan-: Check out that tutorial page I sent you
if I learn anything else, it'll be jscript.net
Jan-: How many lines of code did it take you to do that with HTA?
which seems to be alarmingly similar to wxwidgets in some ways.
600 for the menus? Plus another 600 for the status bar?
Or did you give up on the menus in the end?
I'm guessing that's no more than maybe twenty lines of code
"Jan" at 71.6.194.243 pasted "Menus, suckah!" (656 lines) at http://erxz.com/pb/3703
656 for the menues
Er, menus**
And the status bar?
Plus the setup, of course, but I'll be generous and not count that
Yes, but 656 lines of super easy and simple code that anyone, even someone as crushingly dullwitted as me, can understand.
Naw the status bar is like nothing.
The button bank is very little.
Jan-: http://www.wxpython.org/tut-part1.php — you've read this right?
mplayer is mahoosive.
Do you understand it?
I'm not even going to cost the poor sods at Python the bandwidth with my incompetent floundering.
No no, I insist
"Jan" at 71.6.194.243 pasted "mplayer wrapper" (604 lines) at http://erxz.com/pb/3704
*that* is the hardest work so far
That's smaller than the code for the menus
god was that a pain
there's actually a bug in the menus.
Their keyboard shortcuts don't get scanned until they're rendered, which they aren't until you pop one of them up.
So I have to fix that.
Jan-: You wouldn't have that bug.
This is beginning to sound amazingly like a Linux versus Windows discussion.
"You wouldn't have that nasty Microsoft EULA."
Well, you wouldn't have that bug
No, and I wouldn't have a COMPUTER.
It would work, it would be faster, it wouldn't leak memory like a brain with a hole in it (damn, that was meant to be a good simile), and it would be at least 60 times less code.
It doesn't leak that much memory.
It's workable.
I thought you said it ended up being something like 60MB
Currently refreshing the treeview causes it to leak all the memory it uses per refresh.
But I can fix that.
Largely, anyway.
hey is it possible to have a butotn which when you click
selects an area of text
Well, I don't know because I haven't done long term soak tests.
But it tends to launch around 20 and hover around 35-40
http://4umi.com/web/javascript/select.htm
cheers stan
Please, call me Happiness.
whatever floats your boat stan. thanks happines
n8 all
can anybody think of an easy way to figure out the depth of the deepest child node in a parent node?
does that question make sense?
I've been trying to reason through it, and I can't come up with any sort of ingenius way
Hm, yes
Right now, I'm using mootools, so there are selector functions, if that makes it easier.
Alarmingly, I understand almost all of that other than what a HWND and a LPCTSTR are.
Jan-: I don't touch the Win32 API
With a bargepole
It's howwible, isn't it?
Indeed it is.
Even for me
hmm, nevermind, I got it
Jan-: HWND is the handle of a window
why?
H for handle, WND for window
Yah, but why does it need a handle?
It's a *window*.
hey
C doesn't have objects to represent windows
eh never mind
"Jan" at 71.6.194.243 pasted "Bwah!" (44 lines) at http://erxz.com/pb/3705
what about hover
is it possible to select a set of text by hovering it!!
You could detect mouseover, start a timer, then once they've hovered for long enough, do a selection of some sort.
I think you can programatically select.
I'm not sure.
Something like: function getDepth(elm, root, depth) { root = root || document; depth = (depth || 0) + 1; for(var i = 0, e = root.childNodes, n = e.length; i n; ++i) if(getDepth(elm, root.childNodes[i], depth) !== -1) return depth; return -1; }
hmmmmmm
Jan-: http://www.dynamicdrive.com/forums/showpost.php?p=98659&postcount=1337
Or saamy ^
Ahhh what's that got to do with m… oh, I see.
really?
In fact I don't think even my Super Hardcore Works For Qinetiq Defence Industry Coder pal writes raw win32 user interfaces.
I think most of it is .net, if it's on windows at all.
Jan-: The Win32 API is stupid, and written in C
Nothing's written in C these days except kernels and device drivers.
why
I mean, it seems to work.
Would it be possible to cretae your own class
instatiate it with var foo = new Somthing (bar)
I'm looking at a code that uses this syntax, but I was not fully aware you could define your own classes
Not classes
They're constructor functions
They're just like normal functions
ok
but why the 'new' ?
Hello all. I'm tasked with fixing a problem on our website… we have a simple frame… top and bottom. There's a "Print" button on the top frame, but we want it to print the contents of the bottom frame.
You assign properties to the object being created be giving properties to this inside the function
This works on IE, but not Firefox. The JS is: window.parent.bottom.focus();window.print(); — any ideas?
sean`: The 'new' creates a new object and point's the function's 'this' reference to it
ok
sean`: Otherwise you'd be adding the properties you create to the global object 'window'
so it's var foo = function () { this.foo = 'sf'; } and not var foo = function () {}; foo.foo =
'sf';
"the function's 'this' reference" meaning that the constructor function is called, with 'this' referring to the new object
sean`: Yes
hi, I have a web form that I submit to an email script, and I've got a javascript email validation script in there. If the email field is blank, it says "please fill out email field". This works when I try it, but I keep getting blank emails. Any ideas?
ok
they don't happen with any regularity
all clear now
thanks!
just when I think I've fixed it, and put in enough captcha, my boss gets a blank email, and then I get yelled at
constructor names usually start with a capital letter
receord everything you can about the request in a file on the server
I don't run the server
then you can investigate when it goes wrong
oh
when I try to submit a blank form, my javascript window stops me
but somehow, someone or something else is able to
Javascript can be bypassed
Check server-side
Error: uncaught exception: [object Object]
why could it be ?
it doesnt say much
IE errors.
but i know it's because of these two lines:
Aren't they *fine*
var latlong = new VELatLong(document.getElementById('picada_latitude').value,document.getElementById('picada_longitude').value);
map.AddPushpin(latlong);
those lines
Jan-: well, in fact I'm using FF
what triggers your javascript?
Any idea on my question?
pressing the "submit" button
it checks if there's an @ symbol in the email field
if it is, it submits the form
if there isn't, it pops up with the JS error box
is it possible to detect when someone presses F5?
onclick?
yes, this happens on click of the "submit" button
forms can be submit without clicking on buttons
Hmm. Logical problem here.
pressing enter in some circumstances
I'm updating the play position indicator by searching the playlist for instances of the currently playing object.
The problem is, there can be more than one copy of that object in the playlist.
And people can remove things from playlists after beginning it
Even though I don't know what you're talking about.
Precisely.
This is actually insoluble.
Why not grant each playlist item a unique id?
Someone could drag an item around in the list and make it effectively impossible to figure out what was once where.
hi. I want to update the image when clicking on the link without refreshing the entire page. i've googled two examples, one didn't work in opera and the other whined about ie security setting. anybody has a code that works in all popular browsers?
That's the only solution julian.
But it's going to be a bear to manage.
There are a few hooks you'll need to add that could potentially update the position indicator
Removing an item from a playlist, moving an item, etc. etc.
Absolutely.
That's not a problem.
steved-: change its src
Are you working on a JS-driven movie/music player or something?
Yes.
steved-: or if it's the same src…
At the moment I'm just relying on indexOf which I believe is more accurately termed firstInstanceOf()
use a randomly generated query
Yeah
I don't think it's out of the question to assign a unique ID to playlist items. Seems standard enough, for a number of reasons.
I don't really want to limit people to only putting something in the list once.
eg, change source from image.png?randomparameter=45656 to image.png?randomparameter=38646
or something.
should work
it's all I can do. The problem is, if I start adding to the objects in the list, they're really just references to the object in the library.
So hm.
I'll just end up overwriting the same property.
Gracenotes I have no idea how to do that.
This is one more reason for me to write that deep object copier so the playlist can contain copies of the library objects.
Jan-, I gave you a deep object copier, I'm fairly sure
I want to do that in the end anyway, so each instance of the same object can have different settings.
don't make copies of the whole objects
deltab, I sorta have to for this.
just have multiple list entries referring to them
can this be done so that it works in all popular browsers?
Jan-: http://www.twey.co.uk/pythonic.js : Twey.Pythonic.Object.copy
Ooo.
Thankies, Twey!
steved-: I'm not sure. when you say "update image" do you mean change the source code the image?
Jan-: Welcome
Jan-: It even does arrays
Gracenotes replace one image with another
This is one of my playlist objects, represented as XML
"Jan" at 71.6.194.243 pasted "Object" (122 lines) at http://erxz.com/pb/3706
there's probably more stuff to go on there
steved-: when should that happen? when the user rolls his/her mouse over the image?
Gracenotes when the user clicks on the link above the image. there are several links, each one with it's own image
Do I want the bit beginning 'copy' : function(deep)…
down to "return r" and the following }?
I want to do that without refreshing the entire page
Jan-: Yes
Jan-: That's the function, it's designed to be attached to Object.prototype so you might want to change that, it's considered bad style nowadays
Balls.
Jan-: It's not a problem, just add another parameter, say call it "o", in front of deep, then replace "this" with "o"
it won't submit even when I just tab through
The algorithm stays the same.
So, foo = bar.copy(true); bar == foo ?
Jan-: No, it won't == foo
Fine.
Good.
So it won't indexOf it either.
No.
Spiffy.
Problem solved.
Now I have to figure how to widget this into my drag-nuh-drop code.
Heh
It is better this way anyway.
This way, changes to playlist items won't affect library items.
Although I could see there being a case for changes in library items being propogated to playlist items.
Which is doable, just a lot of if/else/if.
Is there anything to see yet?
In that case you just do the copy algorithm in reverse
Yah, but to do it sensibly, you'd want to set playlist items to new library-item settings only if the playlist items didn't have individually set custom setup for that particular property.
Jan-, thinking of the behavior of other music players too… it's kinda one-way.
If I move a file, Winamp's playlist will still point to the original location.
It's a show control application for digital cinema.
Ah
Jan-: Well how about you only make a copy of the object once it starts to differ from the original?
http://www.1159productions.com/test182/shad_xml.jpg
I really do need to make a copy of the object so I can differentiate it in the playlist.
For reasons discussed above.
Oh.
I was barely listening, I just heard "object copy" and threw a script at you.
I need to add the ability for table viewers to only dispatch *copies* of the dragged object.
This should be possible.
It is, after all, 023418.
023635, atually
yah. I have day off work tomorrow
actually**
See, even my typing's going
`”.
I'm weighing up whether I really feel like tearing into this object copy replacement thing now. Or if it's a job for about oh, one, maybe two PM tomorrow.
You know. First thing in the morning.
Blimey. That's wee hours, that is.
What's your interest in all this, anyway?
has anyone had any experience with a blank submission of a web form, as in, the email posted comes to you with nothing filled out, and you put in a javascript validation for the email address?
I've apparently no chance of getting a date with my girlfriend until she's finished Harry Potter. So I'll be up rather late.
(the form, the javascript email validation, and the email all work, by the way)
Oh dear.
Does she have a Hogwarts'
scarf?
No.
Thank the gods.
A friend of mine has a Naruto headband, that's bad enough.
could be spammers
I repeat, people with Javascript disabled won't even see the validation, check it with your server-side script as well
nor non-people
My mouth tastes like I've fallen asleep in a car.
how do I protect against spammers and non people in this instance?
because my boss is now making me work at 9pm on a friday night to fix it
on the server, check the values are valid
it's a IIS server that I don't manage except through a web client
Jan-, curiosity
I came here to try and get a question answered, but no responded, so now I'm just watching.
deltab - is there no failsafe way to protect against this?
What was the question?
I'm tasked with fixing a problem on our website… we have a simple frame… top and bottom. There's a "Print" button on the top frame, but we want it to print the contents of the bottom frame.
This works on IE, but not Firefox. The JS is: window.parent.bottom.focus();window.print(); — any ideas?
parent.frames.bottom.print();
That seems much more sane
Not something I do a lot of.
is there a failsafe way to protect against this?
I could probably have used frames to do my grid layouts, but accessing everything becomes such a pain.
I don't either. Not much JS overall though.
Time to go check the printer
has to be server-side or recipient-side
A captcha will protect against those things as well.
Not 100%, but I'd say 99% in my experience
recipient side?
ignoring the empty messages
deltab - I don't think my boss is capable of ignoring empty messages - just bitching at me for them
Yeah, that worked. Thank you.
deltab, unfortunately, that causes IE to print the top– but I'll add a browser check.
what will parseFloat("-1.0") return ?
Have you tried it?
parseFloat("-1.0")
-1
thanks deltab
hi all
whats a good javascript tutorial? a brief one, i dont need it to explain to me what a variable or an array is
http://developer.mozilla.org/en/docs/A_re-introduction_to_JavaScript
OKies, I'm sleep
are coordinates like page.y measured from the top of the browser window?
I have 2 frames and I'd like to submit a from in frameA from frameB. The function is in the frameset. Can somebody please correct the following? window.frames['frameA'].document.forms['myForm'].submit();
Is there a way I can capture the even of when a IFRAME gets its src changed?
event*
can you observe it?
observe?
set an observer?
http://www.codeproject.com/jscript/Observer_Pattern_JS.asp
I have 2 frames and I'd like to submit a from in frameA from frameB. The function is in the frameset. Can somebody please correct the following? document.getElementById("frameA").contentWindow.document.myForm.submit(); …I get a "is not a function" error.
i'd like to implement a javascript into my website, which shows the password-strength of the entered passwort. i saw that once somewhere in the net but now i just don't remember where. what i saw was a graph, wich indicated how secure the password is, it changed everytime a character was
entered
any idea how that's called..?
GMail.com and Hotmail.com have that I believe.
hm, yes, it might have been gmail….just what is that called? :/
Password Strength ?
http://www.securitystats.com/tools/password.php
yes, that's it! but i'd need that for javascript
ah, password strength meter is the keyword
http://www.geekwisdom.com/dyn/passwdmeter
thanks, found that one yet
I have 2 frames and I'd like to submit a from in frameA from frameB. The function is in the frameset. Can somebody please correct the following? document.getElementById("frameA").contentWindow.document.myForm.submit(); …I get a "is not a function" error.
hey folks!
anyone here use niftycorners?
and know of its compatibility abilities? (i.e 5, 5.5, 6, safari, opera, etc)?
anyone know how to edit/save files from Javascript [on your own computer]?
is it possible to attach an onclose handler to a window you create, in the creating js code?
pfft, talk about idling
platform-specific methods see tiddlywiki
can I do if (var) ?
or do I must write if (var == true)
if (var) is fine.
hi
anyone know where can I find some tutorial about how to make a simple draggable window interface, I mean have virtual window in the browser and be abble to drag them
Try using Google.
tried :s
thanks Neverwinter
1)
where UserUsername is the id of the field i want to get
ih
'lo poiuy
yeah?
I was assuming 'ih' was supposed to be 'hi'
yeah..actually there was something wrong with my IRC client ..i couldnt see any messages so i was just testing
anyway…anyone used mozilla storage down here?
woot
anyone used helma here? are there are any full apps written using nothing but javascrip
`js forms @ invinceable
js forms: Accessing form elements via JavaScript: Don't use document.forms[index].elementName or document.formName.elementName. Use document.forms['formName'].elements['elementName'] or document.getElementById('formID').elements['elementName'] or document.getElementById('elementID')
as your form element has its own ID, use the last one .. then the value, as you suggest, is in .value and if you want the string-length of it .length on the .value will give you that
hi all
'lo
sections?
if you want to parse your xhtml as xml, yes
depends
if you're trying to send the same content as HTML and XML then it is
i think the xhtml string for doing that is actually longer than that
so it's only required in XHTML?
which you shouldn't be using anyway
what about HTML
it's only required if you're sending the same content in more than one format
send how, where?
sections are XML
right
what would I do in HTML then - nothing?
if you want to parse your XHTML with an XML parser, you'll need the CDATA sections to escape script and style
and & characters
correct, nothing
so it doesn't have anything to do with ancient browser support, actually? that's what I'd always been told
yes it does, but not
nah
now you got me all confused
heh
no, the ancient browser support is the additional !– in front of the /*![CDATA[*/
it's all to do with making sure your comments are hidden from UAs that don't know how to do things
http://www.hixie.ch/advocacy/xhtml this page has something more complicated listed for the CDATA section and javascript
?
oh - I was assuming he meant that as part of his commenting
would be interpreted by the javascript engine
then?
you need to comment that out with //
yeah (XChat ate the first /"
it doesn't make sense on one line, obviouslt
and in fact will fail on a single line in most browsers
I'm just creating a template, and want it to be optimal
tags
The paste 628449 has been copied to http://erxz.com/pb/3709
Dont use !–
hmm, what now?
put your script in .js files and use the src attribute instead ?
Never write !– inside script-tag, nor in style-tags.
I usually do, but not for tiny test cases
well, first of all, the script is in the head, it wouldn't render on non js user-agents?
secondly, css doesn't use // when making a comment.
yeah, right - my bad
but omit those comment thingies altogether then?
Yes.
only have CDATA in the XHTML template?
yes
ok thanks
http://pastie.caboo.se/80883. but get an error
error-message: this.initialize has no properties
can you help me?
hihi day-off people
Woah. Midday IRC
*clang*
Jan\, do you know how to inherit in JS?
Well, you can just create another instance of your object and prototype onto it, if that's what you mean.
Jan\, i have a class Ajax.Autocompleter and want to overwrite a method of it. i have to inherit a new class from Ajax.Autocompleter and then overwrite the function by adding a function with the same name and parameter-list. so far so good. but i want to know the syntax of inheriting. i tried
this: http://pastie.caboo.se/80883
Jan\, but that is completely wrong…
Well let's be specific.
You can't really have a class.
You can have a constructor function.
Jan\, o.k.
Jan\, can you give an example?
well. function pseudoClass(){this.foo=bar}; instanceOfClass = new pseudoClass;
Jan\, that's too abstract for me. let's take a specific example: that is the original Autocompleter: http://pastie.caboo.se/80885
this had better not be 5000 lines
Aiiii!
Jan\, you're right.
Oh. Class.create() is a custom thing someone's written.
I have no idea what it does or hwo it works.
Jan-, ahh
As is extend()
It's not terribly uncommon to add these things to JS, but you really need to look at the documentation for it.
Jan-, extend() is also custom-written?
Yes.
Jan-, o.k.
Unless this is actually Java.
I don't thinkk it is.
There's a few OO-extending libraries for JS.
It can be made to work quite nicely but I can't really advise on it.
I presume that any such library would implement what you're after.
Jan-, o.k. i found the class class… http://pastie.caboo.se/80885
Jan-, i think his is just a "helper"function for creating a new class
That's exactly what it is
You see what I mean by "constructor function"
It's not really a class. JScript.Net on Windows does all this by default.
(apropos of nothing)
Jan-, this seems to be quite nice custom-written. i also found the extend-"method" which test whether or not the added 'method' is correctly and acceptable.
http://pastie.caboo.se/80885
Fair enough.
Do that then
Hi, does anyone know how I can include the RSS news from Google in my website ?
Jan-, i don't get it. maybe you can help me?
Jan-, i got it now.
emm
hello?
have a function with "document.getElementById(1).checked = true;"
if i click then i recieve don't erroes..
is document.getElementById(1).checked = true; wrong?
i need to get a list of attributes for elements - values.attributes[i].localName works great in FF but now in IE, what should i use ?
bi need to get a list of attributes for elements - values.attributes[i].localName works great in FF but now in IE, what should i use ?/b