i have a problem i have an object which comes from an array with the keys not being 0 1 2 and so on for example
does javascript have the ** operator?
See Math.pow().
for(i=1;i=36;i++){Math.sin(Math.PI/18*i)}
undefined
b=[];for(i=1;i=36;i++){b.push(Math.sin(Math.PI/18*i))};b
{ }
b=[];for(i=1;i=36;i++){b.push(Math.sin(Math.PI/18*i))};b
{ 0: 0.17364817766693033, 1: 0.3420201433256687, 2: 0.49999999999999994, 3: 0.6427876096865393, 4: 0.766044443118978, 5: 0.8660254037844386, 6: 0.9396926207859083, 7: 0.984807753012208, 8: 1, 9: 0.984807753012208, 10: 0.9396926207859084, 11: 0.866025
Whee
can I do an onchange for a textbox ?
Yes, you can on all form elements.
so what constitutes an onchange for a textbox
typing a character?
as in entering/removing characters
yup
is this possible http://www.pastebin.ca/658144
The paste 658144 has been copied to http://erxz.com/pb/4050
hello all
I am trying to make a simple javascript host menu using mouseover for images
i was trying to find the code to do it online with no luck
just change the src and you are set DARKGirl
it’s ok to declare variables without var, right?
onMouseOver=”this.src=’newimage.gif’;”
is this possible http://www.pastebin.ca/658144
The paste 658144 has been copied to: http://erxz.com/pb/4050
How do I get the content of a atag/a?
Multiply ref.innerHTML
Renacor var x = { y: 5, z: ‘bleh’ }
Isn’t there other ways, but innerHTML?
And I want it to be lowercase.
Such as?
If it’s a single text node, ref.firstChild.nodeValue does the job.
can I have another object in x
as in x.y.z = bleh
x.a.z = meh
Okay.
Renacor var x = { y: { } }
cool thanks
TheCastor, how do I make the nodes value lowercase, then?
nodeValue is a string
string.toLowerCase()
Oops, I used toLower()
if i have a document.i_want_a_variable_here.foo can i say document.+my_variable_name+.foo ?
document[myVariable].foo
window['document'][myvariable]['foo'] for the understanding
Ahh!
understanding takenth
http://paste.cplusplus.se/paste.php?id=6417 what’s wrong with the returnWords() function? The loop isn’t run at all
tag’s class to a specific class, if their href is f.ex http://foo.bar?
Gambaroni are you sure you don’t get a js exception in your console? something like… http_Request has no properties
Nope.. in FF it works
result.getElementsByTagName(“word”).length is greater than 0 ?
Multiply, var links=document.links; for(var i=0; i links.length;i++){var cur = links[i]; if(cur.href == ‘http://foo.bar‘){ cur.className=’spesificClassName’ } }
by the way instead of calling it in the for and every where, you should use a variable, var collection = result.getElementsByTagName(“word”);
StaZ|Work in IE7 no, in FF yes
element in your page ?
dabear, thank you
StaZ|Work yes
4 even
i’ve never heard of this tag
it exists or you invented it ?
my invent
FF might not like that
It an own created XML document
and getElementsByClassName
xml !?
hm… wait a mint
oh lol
fjer
fjer?
well, sorry that’s out of my reach
dabear yeah that my head on the keyboard
Then get up and in reach.
7y67yu6
that’s my head on the keyboard ^^
that’s 2 htis
hits
eval(return ‘prods.bc.q’ + qty);
return ‘prods.bc.q’+qty
0
huh
how do you write it
just like that?
qty=555; return ‘prods.bc.q’+qty
”ERROR: Can’t modify constant item in scalar assignment at (eval 212) line 1, at EOF
i wanna put it in a function parameter
var qty=555; return ‘prods.bc.q’+qty
”ERROR: 13401: Can’t locate object method “var” via package “qty” (perhaps you forgot to load “qty”?) at (eval 212) line 1.
what?
return ‘prod.bc.q’+qty) ?
Renacor, try function(a, eval(‘prod.bc.q’+qty))
yeah doing that now, thanks
nm
555
“ShaunO” at 71.6.194.243 pasted “Reliable way to preload images?” (13 lines) at http://erxz.com/pb/4051
^^ Anyone wanna take a look for me?
(please)
ShaunO`: what’s up?
Just wondering if that’s a decent way to go about preloading images
http://erxz.com/pb/4051
Not 100% sure on it
initWeb() is called in the body of the page onload
does it work?
im not sure to be honest.. im going to test now i gues
just by using large files
hi, anyone know how i could highlight not just the row of a table im hovering over but the row below it too?
empika, you could use currentRow.nextSibling()
ShaunO`: good luck
thanks, ill have a look into that
is there an isset() like function for javascript
Renacor, just check if whateverValue !0 undefined
whateverValue != undefined
Thanks stickto, just fyi it worked perfectly in all browsers, firefox, ie6, safari, opera
ShaunO`, excellent, I will use the method as needed, thanks
Images definitely being preloaded with the JS since there aren’t any other references in the web page until it gets put by javascript ajax
ShaunO`: what if remove “preloadImage = null;”
and remove “var preLoadImage = new Image();”
just change the src attr again & again
stickto, may work.. not sure cbf testing now its nearly 2am and im tired
ShaunO`: oh, you are not in US?
new zealand
ShaunO`: oh, you always work so late?
sometimes..
i been working on a new project for myself
learning a lot as i go..
but i also work on learning this sort of stuff at my day job at computer sales
diligent
this is the project at the moment.. only this one page so far and no backend yet.. but at least 99% of javascript is done and the layout i’m happy with.. took me about a day or two of frustration and whatnot but it’s 100% compatible all browsers, valid xhtml and css etc.. the url is – http://www.filespin.net/fs/
it’s a registration page for a sort of free hosting type thing
when you enter a field that needs to be unique it will validate as you go down the form thru ajax and php
but that part isn’t done yet
all the javascript/client-side validation is done though
it’s going to be re-verified with php on post as well anyway
b
but i can reuse a lot of the code and regexps..
=[
anyway, enough of my blabbering, night..
ShaunO`: good night, the cross-platform js is hard to write
it's easy if you stick to the basics and standard(s)
i have been annoyed by it
easier now that ie7 is a bit better
and safari for windows too... don't need a mac to test with =]
Hope so
deal with IE & Firefox is exhausive
rule 1) code for firefox, fix/hack for ie
people that refuse to fix for ie are being a little bit silly imo because it’s still a lot of users that use IE.. although it depends on your target audience.. a website targetted at advanced linux users for example probably doesn’t care
likewise for people that refuse to fix for firefox.. silly.
too time consuming my ass.
yes
(fixing larger websites that have been around for a long time)
many sites perform incorrectly in firefox
what’s rule 2
stick to the standards.. that way your website will last a long time
if it’s full of hacks, the next browser update could screw it all up
the problem is that most of us study js programming under IE
sometimes we can’t tell if a line of code comfort with standard
like this – new ActiveXObject(“Microsoft.XMLHTTP”);
in fact, In IE6, you must write the code to create the xmlhttprequest object
hi. to remove an arbitrary item in the array, I could use slice, yeah? arrayName.slice(3,4);?
hello. can someone refresh my memory how to remove an arbitrary item in an array knowing its index? is it slice or splice?
is there a way to do something like this with js? function foo(){ alert(this.count_input_params); } then call foo(‘1′,’mine’,'bar’); and have it return 3?
splice should work
splice(index,1)
heh, tried that… but somehow it’s removing random items which is weird…
what the hell are you asking?
heh
oh, hold on, i hear you
yeah, you can do that
alert(arguments.length)
ah…cool
thanks
splice(index,1) should work. if it’s removing random items, something else must be wrong.
http://www.javascriptkit.com/jsref/arrays.shtml
(document.getElementById(“foo”).select()).focus();
hi all
hi, rawtaz
i have a problem.. i have an object which comes from an array with the keys not being 0, 1, 2 and so on. for example i have object.10013, object.10002, object.10007 . now id like to do two things with this object/array.. 1) id like to loop each of its elements, and 2) id like to just get the
first of its elements. how would i do this?
usually i have an array with 0-X as the keys, then i just do a for loop that checks for .length, but thats not possible here
When I’m referencing using document.getElementById(‘whatever’).value using a textarea, is the attribute for the content “value” or something else
It’s value. Try look it up in MDC before asking
Thanks and sorry.
nothing to be sorry bout, it was a suggstion, you’ll get your answer faster from the MDC
element’s options does not count as an onchange event?
with the keyboard
Renacor, ’cause a change of the value doesn’t happen untill the value is clicked (or you use the enter key)
thats kind of silly
the value gets displayed differently but there is no onchange
aha, whats this onkeyup
question … is it possible to put a variable within a pattern for use with .match()?
MysticOne, .match(aVar)
I’m trying to combine it with a regular expression, though
MysticOne, if you want the var to be included in the regex it selg, you must use new Regex() instead of //.match()
create a regular expression using the syntax var my = new RegExp(“\\w” + variable + “\\d”);
new Regex(var here pluss regex).match()
ahhh, okay
so RegEx will take the string and convert it to a regular expression
Not “Regex” but “RegExp”…
err, yeah … sorry
left the p off
Plus the uppercase E.
hello all
can someone direct me to a page that allows me to create a menu that is based on images?
anyone here used sproutcore?
http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm
no no not a dropdown menu
something very simple
I cant see my POST and GET-calls in my firebug, does anyone know what might have happened?
you roll the mouse over it and it highlights, you click and it goes the the next page
awesome, got it to work thanks!
np
anyone?
How can I change the default-value in a dropdown dynamically using javascript?
well let me tell you what images I have and maybe it would make more sense
I have a whole menu for each page with the title pre-highlighted
maybe this http://www.cssplay.co.uk/menus/menu5teen.html
and I have small images that change for mouseover
that CSS play menubar is exactly what I want
you know the one with ‘Demos’, Menus, Layouts, Boxes, etc
You mean the top one?
yup
kanzie, theSelectBox.defaultValue
http://www.cssplay.co.uk/menus/neon_menu.html
yes!
thank you!!
NP
god IE is so silly, it just doesn’t like setting onchanges with setAttribute?
where is the code?
is it in source?
Read it. He says its building it based on the previous tutorial. Come on girl, put in some effort…
You can also do view source.
sorry just too excited i suppose
ive been looking for this for a while
Hey
is there any way to get the path of a file that cointains the code with JS?
I’m doing a els=document.getElements…() and I thought it returns an array, but when I try to do els.concat(els2), my browse complains that els.contact() is not a function
as thought els is not a bona fide array
Actually ‘els.contact()’ is not a function, its ‘els.concat()’
chrismon, it returns an element node list, not an array
er year concat
bjorn, ahhh
that wont work
that uses only 2 images
I have 16
i need to use javascript for this
I am sure you can make some adjustments…
i cant
because of the unique shape of the menu
Thats exactly the point I am trying to make. Since you have a custom requirement, you would have to read similar examples and come up with something original.
??????????
is there any way to get the path of a file that cointains the code with JS?
does anyone know how to use the prototype chain to determine a instance class?
does anyone follow any personal guidelines on when to use innerHTML vs. create/clone nodes?
Hi, I’m trying to write a perl script to automate browsing this webpage. The webpage makes a reference to a javascript function (which i did not write!) and I can’t find the source for that function… its like it links to nowhere
select name=”sendTo” onchange=”javascript:listAction(document.listForm, document.sendToForm.sendTo.value)”
is javascript:listAction part of java script, like Math.log() or something?
hi. i am using this simpla javascript function to toggle the visibility of a div. it works fine in firefox but in IE, the div is displayed out to the right of the page rather than below. is there anything i can do from js to fix this? http://pastebin.com/da63fb7e
No its not a standard javascript function. Its a user defined one.
Isn’t there like a firefox extension or something that will say “this javascript function is found on line X of this file?”
Bah, I hate people.
you could use firebug, view scripts, and then search
I searched the source of the webpage and all the included js scripts, and none of them had that function
The paste 658448 has been copied to http://erxz.com/pb/4052
But its not a standard Javascript function thats for sure.
Two implementations of vi in javascript, both with ‘closed’ licences http://www.masswerk.at/jsuix/jsuix_support/jsuix_vi.js http://gpl.internetconnection.net/vi/vi.js
I’d tell you to join the club, but I had to disband it when I realized I hated everyone in it too.
Ha
why would you put something in java script under a closed license? you have to release the code anyway… its javascript!
But it’s so easy to get security through obscurity by compressing and encoding it.
Well yeah. But I’m not just going to suddenly go and disrespect their licence.
Well, neither of them are.
It doesn’t matter whether you can see the source code or not. If its under license, you just can’t use it.
Yes you can. It just depends on what the licence says.
Aankhen“: doesn’t the webrowser still have to decrypt it?
Of course, someone could put it under a closed-source licence and thereby prevent you from using it.
I did say “security through obscurity”, did I not?
It’s a nice, warm, completely unfounded sense of security.
Aankhen“: I meant closed license.
Aankhen“: that only stops stupid people
OK.
level1__ – then it stops the majority, right?
What part of what I said was unclear? :-S
karma MikeD_ perceptive
level1__, Wait, are you calling me stupid for obeying the license?
Argh.
not the licence, the security through obscurity
Oh, right, not keeping up.
The paste 658448 has been copied to: http://erxz.com/pb/4052
you need commas, but yes
cool thanks
I’ve used firebug to search the entire page. listAction is used dozens of times, but never defined
sounds like it’s not defined then
ack! where is it!
do you own this code, or are you trying to understand someone else’s?
it probably does something stupid like set a number from 0 to 1… but I can’t figure out what it is!
someone else’s
I’m trying to automate a web page… I’m almost done, this is the last step
Anyone here a php web hosting programmer? What’s the equivalent of str_replace() in Javascript?
hi all
wait, listAction shows up in the DOM tree in firebug
but it just says “prototype”… thats not helpful
Don’t know about PHP but there is a function replace in javascript.
string replacement JLearn?
YES!
I found my OOOLLLD code that I made ages ago
but
I am not sure I did it properly
care to look at it and tell me if its ‘legal’ code?
I’ll try though I am not in menu stuff and all that.
meh, its only a bunch of javascript and divs
or better – something that converts whitespace to entities that can be passed through URLs.
Look at Strings’ replace function.
we dont have to chat in the query, because you are talking to other people and it would be a pain
hmm
I shall have to edit up that code a bit I am sure
because my new site doesnt use frames
apparently frames are EVIL
Correct.
but other than that…the layout; the way I am doing it, is it ok?
The way you call imgOn and imgOff functions is wrong. You pass a string representign the name of the img and inside the function, you treat that name as if it were the image element.
Oh no wait, you are using document[imgName], then its OK. Ignore the previous message .
guys, can i store a function name on an attribute, then execute it?
ok hehe
the code looks OK. Do let me know if you face problem executing it…
ok, thank you. I was hoping all the div tags werent a bit…much
If it works for you, then its OK.
and the manner I use the z-index
although, I wont have so many layers this time
only 2
Like I said before, I am not much into CSS and designing though your code looks valid.
can i execute a function based on a string?
Your code executes fine on IE here…
yes
how?
i need to create a new event on my div
callAfter=”someFunc()”
after, inside my script, i need to div.getAttribute(‘callAfter’) ?
how do i execute it?
do window[yourFunctionName](your_function_parameters)
so will be window[div.getAttribute('callAfter')](your_function_parameters) ?
hrm… I’m running a getElementsByName() and FF2 get the list correctly, but IE6 and IE7 do not find it
If that function returns the string containing the function name, yes.
on google I find issues with getElementsByTagName()…
er one sec…
JLearn, thats it, cheers man
Welcome
Hi all
I’m pretty much a Javascript n00b
with a b00b?
Sheesh…
In the Facebook Platform – it says that onconfirm is an event handler that fires when etc.
I love n00bs with b00bs
How do I change this onconfirm thing?
this.onconform?
What are you trying to do?
anyone knows if it is possible to get the path of the file that is executing the js code? for example /leayout/js/file.js
hola Aquaman
hey
In your code you had document[imgName], replace it with document.images[imgName]
ok, thank you
anyoneeee?
Don’t think you can do tha Aquaman…
[JLear1] and can I get values from the url?
like the $_GET in PHP
You mean the query string parameters?
http://www.google.com?do=something
nope something like, file.js?something=value
Now why would someone do that!!
hahahaahha
because I need to pass a dinamic value for a path
I need to import a JS inside that JS, and the path to the second file has some dinamic value that depends on the user
Ah…that would require some thinking…
script language=”javascript” src=”{PATH: STYLE_BASE}resources/js/goear.js” type=”text/javascript”/script
This is your base JS, right?
thing would be replaced by /styles/glow, but could also be replaced by /styles/blue/
Oh..why not just use PHP to do selective script loading?
I have a textbox and a button. The textbox has a blur event. The button has a click event. After typing in the text box, if i click the button. The blur event fires, however the click event does not. the blur event does not return naything, and does not have a stop bubble.
yeah that would be the base JS and then I would like to import the rest of the js files needed for that layout
Depending on the user input just create a if else mesh and do a selective script loading instead of the stuff you are trying to do.
in the html code, I want to import all the JS files inside a unique JS file and import that JS file in the html code
element which was included and not every script tag since your PHP would have made a choice by then.
could someone kindly explain “this” to me… this.element
mmmm I will try something like that
ultravi01 okay so when you’re in an object, this, is the object
[ultravi01] http://www.quirksmode.org/js/this.html
read that
ah okay.. thanks guys
In normal scenarios, this is the window object.
you got examples and stuff
http://uncyclopedia.org/wiki/This
lol
!
oops
is it possible to have some kind of loop through elements in an object?
what’s the object literal notation for a null value? var foo = { prop : null };
for(var property in object) { alert(property + ‘ : ‘ + object[property]); }
perfect
thanks
Welcome
how can I count the number of sub objects in an object?
Renacor, every property will be an object..
Im trying to count the number of objects in my user created object
for(var property in object)
will this also count the built in javascript hosting properties, or do they not exist in an user created object
why does new Option use ‘text’ node?
awesome I think that worked, thanks
btw anybody know the maximum length for a get string?
i.e. index.php?blah=blah&foo=foo
if you have to ask, you’re going to go over it
it might be browser dependant but i think it’s something like 1 or 2k
use post
Its counted in characters and not K’s…
… or some other cereal brand
No, only in characters.
what does that mean?
oh
i see
so is there a foreach like statement in javascript to loop through an object’s sub objects?
or is it just the for(i in objectname)
nm got it
there is a .forEach() but that’s not supported by all browsers
So I hacked up this popup window thing so that the onclick of my href creates a popup menu then returns false; so the actual href redirect never happens. This is what I want to happen but not the popup window that pops up follows my mouse around
Hello
If users click on a hyperlink on my website, what code do I write for the link to open in a new window?
anyone know if it’s possible to have a google map update based on onkeypressup ??
i want a textarea to automatically update a goole map while the user is typing
it uses dhtmlwindow.open() to create the popup . Is there an argument I can pass to it to make it not follow my mouse?
tag should be _blank
Okay.
Now for something more complicated. How do I make it open in a new Tab (say, Firefox/IE7/Opera)?
when I double click on a scriptaculous BlindDown link, it works fine, but next time it gets BlindDown’d it only opens up part way — any ideas why this may be?
Anyone every used overlib() ?
ever*
That is not your domain. You don’t decide whether the thing opens up in a tab or a new window.
But, window.open is by default open in new tab in newer browsers, yes?
Firefox and other browsers allow the user to decide which way they want it through preferences.
is there an overhead with new myobject() ?
yeah, probably the sky will fall on your head
(that was a sarcastic comment, please explain a ltitle further)
just wonder if I can aplly factory pattern
What are you talking about. The overhead to object instantiation?
“I want to implement a factory pattern, does instaciating new objects with newMyobject() will create an overhead in this situation : link to code on paste site here”
have you tried googling “Javascript factory pattern
?
If you want to use an object, you have to anyways instantiate it. Be it via factory pattern or normal manner…
doing it right now
Guys.
Why does my browser not show a new browserwindow with all the buttons on it when I use window.open? It just pops up a new window with no buttons and my page in it.
a href=’your_url’ target=’_blank’SOme link/a
hm
And someone with a popup blocker would still work with that?
Nope
So the popup blocker would block it?
Yes
Damn ittt.
Pff.
Thats why sites don’t use popups anymore…
I’ll just put a line in my website “open this link in a new page please”
What if,
I want to refer to a completely different website
Like
found it in google, there’s such thing as factory pattern in javascript
http://users.telenet.be/treval/
http://www.webreference.com/programming/javascript/ncz/column5/
What if the user is on my current, old website.
what link Treval
And I want to link him/her to my new website
The one that says ‘home’
and the one ‘treval time’
I don’t want them to open up my new website within my old website
Urgh, look people can chose.
bah
Treval, it opens up a new page for me
a new window I should say
Does that new window have buttons?
The Treval Time window does
( FireFox here )
Wthell..
I’m using forefox too but
I mean “back”, forward
buttons
Do you have a menu bar?
In that window
although I do remember an argument to window.open() that tells whether to include the menu set or not
yes
Opens in a new tab for me.
But I don’t!
…
grimboy, same
Why not me..
sigh
Treval, Learn to configure your browser.
What argument do I need to set to include menu?
Treval, I am not sure. Google for window.open arguments maybe and look at the list. There is one there that is exactly that, tells it whether to open one without buttons or with buttons.
is there anyway to print or write a structured array
like “print_r” in php
Firebug
`firebug
Is there any way to make it so when a hover over a class item occurs, the hover effect stays (doesnt revert when rollout). Like on this site: http://meyerweb.com/eric/css/edge/popups/demo2.html but when u hover i want the item to
stay and replace when a new is hovered.
well yeah… onmouseenter=”setpicutre(something);”
and don’t put code onmouseexit
an array can hold any objects, right? array[0] = var new Object();?
atula, yes
thanks
Guys
Do the ‘home’ and ‘treval time’ links open in a new page/tab? http://users.telenet.be/treval/
you mean onmouseover?
Yes, yes he does.
you can try with that too
mouseenter don’t exist?
onmouseover is in the specification
Okay if anyone posts any more crap badmouthing my website I will personally attack them. Stop posting shit in my shoutbox!
hm
?
Oh shush.
home doesn’T, and i don’t find treval time
http://javascript.internet.com/miscellaneous/set-image.html
This will work If I can find a way to also post text.
is there any function to get random string of characters ?
yeah use a random to get a number from 1 to 26 and add it to 0×40 (or 0×60 for small letters) and do that n times
0×41 is “A”, 0×61 is “a”
thanks
np
so might need to google for javascript random function, javascript ascii code function and more if you miss other topics
anyone know why when I get an element’s contents with document.getElementById(id).innerHTML, it adds a ton of whitespace before and after?
http://fukung.net/images/4733/random_number.png
a href=”http://fukung.net/images/4733/random_number.png”http://fukung.net/images/4733/random_number.png/a
xike inner html is evil do you know about DOM ?
StaZ|Work, but the synthax is invalid!!
I know what it stands for
bjorninge it’s C syntax.
xike well you might want to get the child of your element and do something with that isntead of the inenrHTML OR… if you want to be evil, you can use trim functions to cut out the white spaces
I’m fine with not being evil
if I can get the contents of something, and replace the contents, then that would be great
w3schools.com tutorial uses innerhtml. have any advice for a better example?
w3schools is not reputed for having the best code
xike are you aware that i don’t know what you try to do ?
are they associated with w3c?
what is eval() ?
i am looking for a ajax/js script that counts clicks, like clickclickclick.com (without refrashing page and ‘impossible’ to fake clicks).. anyone?
xike no they aren’t and that’s the bad association most people will do
edini send them an email and buy it from them
ah..
level9wizard a bad function that evaluates the js code in it, if you use it, you probably have a bad code that could be structured better
“javascript click counter”
and for pr0n site it’s “javascript click cunter”
i did, but.. i found only visit counters and stuff
not what i am looking for..
shouldnt there have been something that went on in your brain in between when you thought of that joke and wehn you said it?
like some kind of filter that checks for things like “humor” and “appropriateness”?
hrm. know of any good dom examples for getting/setting contents of items?
heh, it’s pretty rare i make english jokes based on the language, gimme a break
i’m proud i could make one
ok i’ll give you a pass this time
google “javascript howto what you wanna do” and check the pages you get, and also check google groups
vinse thanks ^^
ha, yeah…that’s what I’m trying
horrible examples so far
I’ll keep wandering…just thought you might know of a good resource
thanks
might also stick the word “DOM” in there
well i still don’t know exactly what you wanna do
and my Mind reader is broken
lol, I’ve said it like 10 times
don’t need a mind reader when I say stuff like ” hrm. know of any good dom examples for getting/setting contents of items?”
that’s not clear enough for me
biut you can document.cteateTextNode(“hello!”); i think… and then .appedChild on the container
as for the reverse you can check .children[0] i think, but still not sure
.childNodes[0]
haven’t worked with that for a long time
right sorry JLearn
lala
hi
what is recommended, adding html using innerHTML = “button..” or new Button/appendchild?
the latter
can you tell me why?
lots of reasons, one of the better ones in this case is that form elements often dont work hen added via innerHTML
okay thanx
Let’s say I have a div id=”text” , how can I use js to change in text into that from a function?
still looking.. :/
anyone know if it’s possible to have a google map update based on onkeypressup ??
teh netsplit?
guys, whats the best way to dynamically change the element’s onClick attribute?
i’m using element.setAttribute(“onClick”,”func()”); but isn’t working on IE
a am looking for script that counts clicks without refrashing page, like clickclickclick.com.. and, yes, i did try googling for “javascript click counter” and 100 other strings..
just element.onclick = function(){/* new contents*/}
but i need to point to another function
how do i reference it?
how hard can it be?
element.onclick = function(){ myFunc(args) } ??
element.onclick = myFunc() isnt working
yup
element.onclick = function(){ myFunc(args) } or element.onclick = myFunc // — if you want to give no args
ok
cheers!!
how will that behave? element.onclick = function(){ myFunc( document.getElementById( localVar ) ) }
when will doc.getElementbyId run?
if ( alphanumeric(document.editprofile.gender.value) ){
is that ok?
having a function that returns true or false in an if statement i mean
Uh, yeah
does anyone know of any tool (perhaps a firefox extension) that will show how..in what order… a javascript is executed..
firebug
I don’t see where firebug does that
js ref
that’s not handy
`js ref
anyway
js_ ref
nope
ultravi01, scripts tab.
Set a breakpoint
Then step through
Firebug has masses of hidden features. You really ought to read the manual to get the most out of it.
For example the other day I found out you can set conditional breakpoints.
So yeah/
thanks man!
is there any way to pass onreadystatechange a methodname AND a variable to pass to that method?
does this make sense? :
myobj = { foo: function() { return this.bar; }, bar: 0 }; myobj.bar = 4; myobj.foo()
4
(as in, you understand what it’s doing rather than how it’s relevant to your question at the moment)
not so much
ok then, try this
myobj = {} /* an empty object */; myobj.foo = function() { return this.bar; }; myobj.bar = 4; myobj.foo()
4
(buubot displays the value of the last statement in a jseval line if you couldn’t tell)
you defined a new object, added a method to it that returns bar, then defined bar inside that object, then called that object.method to return it?
yes
ok…
now, myobj is your XmlHttpRequest object, foo is your onreadystatechange and bar is any information you want to be available when foo is called
methods on an object can access any information stored on that object using the this keyword
you don’t want to pass arguments in through the callback (mainly because it’s not possible), you want to store the information in the XHR object for the callback to pull out when it needs it
ok, well why create a new method/variable for the request object rather than set a method/variable for the current javascript?
“current javascript”?
let’s say I have my poststuff() and onreadystateDoSomething() methods in a javascript file
2 reasons, if I understand you. 1) because information relevant to the request object makes sense to be stored in the request object, and 2) because onreadystatechange will probably be called when the “current javascript” scope has finished
ah
so do I somehow dynamically add that method/variable to the xhr object, or do I extend that object ahead of time and add that functionality to it?
see my second jseval
see where I set .bar and how I used it
selector.childNodes[i] — can you help?
that depends on what selector and i are
it contains more span
for (var i = 0; i 9; i++)
so I could simply use my existing xmlhttp object and say: xmlhttp.foo = function() { return this.bar; }; myobj.bar = 4; and it will work?
yep, should do
var selector = document.getElementById(“selector”)
what does alert(selector) give you after that?
anyone know if it’s possible to have a google map update based on onkeypressup ??
I must have done something wrong, it says “xmlhttp.getId is not a function” once I call it in the triggered method
Object HTMLSpanElement
ok, now’s a good time to explain what you expect and what’s actually happening
pastebin some of your code
of course it is, javascript isn’t fussy about what event triggers it
(in the page HTML), and I want to set their style.color
any ideas what i should look into. I’m new to both javascript and google maps.
var selector = document.getElementById(“selector”)
oops. Firefox reports selector.childNodes[i.style] has no properties
I can’t see anything immediately wrong with that, I haven’t ever tried this but there isn’t any reason it shouldn’t work
maybe try moving your .getId = and .id = before the .send?
typo selector.childNodes[i].style
ideas?
hopefully there’s a live example page I can look at here
I can do that.
that worked, thanks a ton
I wish they didn’t have the word “java” in the name…it makes me forget this is a scripting language
tab completion is your friend
my first name only has one ‘a’
tab completion?
i used alert, it shows object Text
in your IRC window
again
how’d you know he was typing it Garath?
haha, nice. thanks for that tidbit too
that worked, thanks a ton
I had a good run of not spelling it wrong
so close
i was joking, that’s why i repeated the spelling … too subtle for irc though, sorry
cant convey sarcastic tone :/
how’d you know he was typing it gaRATH?
would that have gotten it across? still not funny though so nm
should i put ‘;’ after this: e.onclick = function() { someStuff() } ???
semicolons are optional but recommended in javascript
e.onclick = function() { someStuff() } or e.onclick = function() { someStuff() };
for every line? :]
you need them if you’re putting two statements on the same line
so i’ll use them
otherwise you can miss them out and the interpreter will still work
but do use them
ok! cheers!
damn it, why coding for IE is so sux!?
FF goes ok, but IE show “Error on page”, with poor descriptions… :/
is there any “firebug” for IE??
something that shows where the error is
how can i check if a dynamic function name has been declared? im trying eval(‘if ( ‘ + dynamicfunctionname + ‘ ) { alert(“bla”); }’); to no avail
when I try to get the contents of a textarea, I get the previous contents, without any of the changes that may have been made. how can I get current text?
hi guys. i have a Tooltip class and i use it to create various tooltips. right now i have 8 toolips that can be opened concurrently. when i delete the tooltip, i want to have a destroy() method in the Tooltip class that will delete all references to that tooltip.
is it possible to have a “delete this;” command in the destroy() method of the Tooltip class? (to delete the object itself)
currently when i do this IE gives me a “cannot delete this” error.
also, if my syntax is wrong and it is really possible — do i really need to do that? i’m trying to do a nice cleanup when tooltips are deleted
guys, is it safe to use innerHTML on ajax responses (not little text, something important like a new form)? or is it better to respond using json and update/create elements via DOM?
in FF is going everything perfect, but i don’t know on other browsers
always do things via DOM to be safe
use mootools for ease of use and cleanliness
mootools?
I don’t know it, going to find out
cheers m8
i’ve asked bcoz i’m using someone’s AjaxTabs script , looking inside, it gets the content and insert into the “tabcontent” div via innerHTML
i’ll have to tweak it
innerHTML will work anyway, but using DOM is always preferred
yes.. specially bcoz i’ll need to find this new elements via DOM latter
http://pastebin.com/mf5a8df0 whenever i call search function, in IE it works just fine, but when its used in FF it bugs out help is appreciated.
good morning
good mornin
the cursor doesn’t turn into the finger and it doesn’t get highlighted.
any suggestions?
ok, i just figured it out… a href=”javascript:;”
can someone look at http://mcgw.dav7.net:8181/template/bookmarks.js and see if they can figure out why i get the error “CreateBookmarkLink is not defined’?
I cant seem to figure out why my script isnt working for firefox, can someone please take a look http://pastebin.com/mf5a8df0.
does getElementByName work in FF?
elements?
what else should i use?
that function won’t work in any browser
any visible element can have an onclick
yes, but it doesn’t do the pretty highlighting thing automatically.
i’d have to add some sort of onMouseOver stuff.
if you want to change presentation, use CSS
cursor:pointer will deal with the mouse cursor
so the only thing to get values from inputs would be getElementByID? there is none that goes by name?
as in span.action { cursor: pointer; color: red; }
getElementsByName should work fine
doesnt that return an array?
the clue being that more than one element in a document can have the same name, but only one element can have a particular ID
yes, see the previous response
you might know that only one element has that name but the HTML spec can’t guarantee it so you get an array
i see, but then how do you just get the value of that one
document.getElementsByName(‘Location’).value[0] ?
just use the first element of that array
not quite
document.getElementsByName(‘Location’) is the array, not document.getElementsByName(‘Location’).value
oh so
[0].value
yep
i get it now, i really appreciate it, think ill just add the id to the inputs lol
lol
is it very unsafe to use eval() on an string extracted from a element’s attribute? (this element is part of my static html, not dynamically generated)
brb
ah?
hey i’ve got a pretty popup box, and i want to replicate the javascript confirm method but using the pretty box. Any idea on how it prevents the current action from occuring?
if a handler returns false, no other processing of the event should occur
if bla returns false nothing should happen?
right
um, maybe “return bla();”
Why is it that in Internet explorer when i have it load a dropdown menu the default selected one is always one above the one i tell it to be selected so for instance [3] is the one i want selected by default it selects [2] but in FF it does it just fine. Then if i dont load the function on
load and just do it on change it does it right.
hi all
because internet explorer is teh suck.
I have “A HREF=”download_toolbar.htm” target=”_self” onClick=”parent.home.location.href=’download.htm’”" and I am trying to remove the frame part of it
it was taken from some old code of mine
and now the frames no longer exist
so, I assume I can just take out onClick
and keep target=”_self” (I just added that)
DARKGirl, you should use onclick rather than onClick as well for validation
all lower case tags in fact
that would be a pain to make them all lowercase
i might run it through an lcase routine later
example123
regex?
could someone kindly tell me why I am getting a “Too much recursion” error whenever I switch back to my browser window on my site
can the onreadystatechange handler take parameters in any way?
blah.onreadystatechange = processthis(’sometext’);
ultravi01, You’re recursing to much and filling up the function call stack. You can rewrite recursive functions to be iterative.
mutilator, Uh, if it’s a handler you need to assign a function to it, not the results of a function call.
I’m not sure what recursion is.. do you know of a good resource online or should i just google it
yea but the handler needs to know the name of the xmlhttpreq object
or is there anyother way to identify it other than its name?
function moo(){moo()}
undefined
Wait, no.
function moo(){return moo()}
undefined
(function moo(){return moo()})()
Error: Error: InternalError: too much recursion at line 0: (null)
Whoo
Multiply, Yeah, take an argument in your handler function.
i.e. blah.onreadystatechange = function(evt){console.log(evt)}
Um, e.g.
hm?
Sorry, I meant you.
I think I might disable tab-completion because it always makes me mess up.
mutilator, Um… was that what you were after?
well how would i do what i said above?
mutilator.. what are you doing?
Oh, just reread.
i just joined
Okay blah.onreadystatechange = function(evt){processthis(evt, ’sometext’)}
i want to
You lose ‘this’ inside the event handler that way.
yea.. so do that=this, and then reference via that
But you can use evt.orignalTarget instead.
Oh yeah. Could do that as well.
So blah.onreadystatechange = function(evt){processthis(evt, this, ’sometext’)}
perfect
mutilator, Yes?
Whoo
yea
so hmm
coo beans
thanks
was having a problem was firing off too many xmlhttpreq’s
each using the same object, just recreating
so i had to do a lot of window[newobj] to crete dynamic names for the req’s
just needed to find a way to pass that name to the handler
hello, how to clear the selection in the window?
I tried window.getSelection().collapse(true) but Firefox says not enough arguments
mmh I got what I wanted with removeAllRanges(). Maybe Mozilla-specific
hi
I want to make a script that get the delicous bookmarks from api.del.icio.us
and send that data to another server
seem that this work in ie
but in mozila
when I try to get the data via xmlhttprequest
I get an securty error
how can I fix this?
can you include another javascript file through javascript?
document.body.innerHTML = ’script src=”soandso.js”/script’; – is that the only way?
i’m talking firefox only
You can try an XMLHttpRequest to get remote code and eval it…
its cross domain
which is why i have to include a script from the remote domain in the first place
Hi people
does javascript support ’static’ in functions?
Whats the proper way to refer to a frameset?
MyFrame.location.href = “Test.html”;?
Or window.document.MyFrame.location.href = “Test.html”;
someone know the name of a good html editor? (WYSIWYG if it’s possible, i want it for make div alignments with ease)
Dreamweaver 8.
* CS3
FrontPage.
Kai_wp2 Jafet thanks, i’ll get them
Err.
(i’ll test both)
http://www.adobe.com/products/dreamweaver/
Both cost money, but Dreamweaver doesn’t suck as much.
http://www.runaware.com/microsoft/frontpage2003/
a href=”http://www.runaware.com/microsoft/frontpage2003/”http://www.runaware.com/microsoft/frontpage2003//a
a href=”a href=”http://www.runaware.com/microsoft/frontpage2003/”http://www.runaware.com/microsoft/frontpage2003//a”http://www.runaware.com/microsoft/frontpage2003/”http://www.runaware.com/microsoft/frontpage2003//a/a
Sellout!
Anyway, uh, I don’t wanna interupt but, anyone know the answer to my question?
Sellout?
Maybe window.Frame
Thanks
LOL
(Frame is frame name)
Does IE support onclick for imgs?
good, i’ll beart on mind above points
bear*
NVU is free software, handles WYSIWYG okay, but sucks badly at code editing.
i’m okm with html, i’m only want to do quick div alignments trough WYSIWYG
and i’m not ok with new keyboard, okm=ok :p
open in browser to test cycle?
Actually, you access frames through top and parent.
And why are you coding for IE?
I’m coding for all browsers, its just that this site I made only works in Opera so I’m making it compatible with everyting nhow
I’m not sure if onclick is even standard for images.
Why not wrap the image host in an anchor and use the onclick for that?
Well I mean refering to a frame from the parent. What about “obj = document.getElementByID(“MyFrame”); MyFrame.location.href = “Test.php”;”?
http://www.quirksmode.org/js/frameintro.html
So “a name=”Anchor” onclick=”Test();”img/a”
http://google.com/search?q=javascript+frames
After that search query, I have lost all respect for you. Sorry.
The anchor looks ok.
What?? O.0
var scGalleries = new Array();
15 scGalleries[0] = new Array();
16 scGalleries[scGalleries.length - 1][0].imgsrc = “/images/classesgallery/1o1s0.jpg”;
I later receive a claim by firefox that scGalleries[0][0] has no properties
when I try to get the .imgsrc out of it
how can i make firefox let me go cross domain?
“Cross-domain”?
What would that mean?
yahoo.com/blah.js does an ajax call to google.com/blah.html
Is there some way to collapse rows and columns in a table such that it will remain centered inside of another element?
I’m right now doing it with setting the style of the td to display:none
but this does not cause the td to stop taking up space
obj = document.getElementById(str); if(obj.style.display==’none’){ obj.style.display=’block’; }else{ obj.style.display=’none’; }
^ I used that code and it worked fine for me.
Do you want to remove the td?
basically, i want to make it such that the td no longer effects the table geometry
oh!
wait, i see now
i was making a very stupid mistake
sorry to bother, thanks
hi, i’d like to make it so i click on a link on my website, and a little “lightbox” appears saying loading (ontop of the page), then once the whole new page has loaded, it then moves..does anyone know of a script that can do this?
http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/ ok
A dynamic preloader using JS?
if that’s what the tech name is…i guess so
http://www.1javastreet.com/vb/scripts/ShowCode.asp?txtCodeId=3536&lngWId=2
thank you, i’ll give it a go!
No prob!
dude fuck this cross Domain hosting shit
O.o………
The anchor works but theres a blue box around the image in IE
uThe anchor works but theres a blue box around the image in IE/u
Style the anchors then…
border:0;margin:0;padding:0;
Need help with this javascript
what is wrong with this code
html
head
script
function saveForm(){
if(confirm(“Do you want to save changes?”)){
document.forms[0].submit();
}
}
window.onbeforeunload=saveForm;
/script
/head
body
a href=’dummy.html’Two/a
form name=myform method=post action=’dummy.jsp’
input type=hidden name=operation value=save
input type=submit value=submit
/form
/body
/html
Someone needs to kick you.
Jafet were you addressing me
yes, dont paste more than one or two lines
I am sorry
use a pastebin (fi there isnt one inthe topic, than google ‘pastebin’)
s/than/then/
what form of dyslexia is it when you regularly use the wrong homonym?
cuz i totally have it :/
You appear to have acute AOL syndrome. Consult your physician.
no u r
Thanks!
I gotta go
g2g
Bye!
IE gives me no errors but doesn’t show anything, whereas Firefox appends my generated calendar to the body?
AzMoo[w]: The paste 659339 has been copied to http://erxz.com/pb/4054
AzMoo[w]: you should prolly use input type=”button”… i dont think anyone uses the button tag
That’s not the issue.
k… which calendar app are you using?
I’ve written my own. It creates a calendar and is supposed to append it to whatever element is passed to the object, but in IE nothing is displayed. It seems to append it, it just doesn’t show up.
hmm.. you have your css in order? such as positioning, etc?
sounds like a css position type issue
no CSS at all. It just creates the elements without any styling. Look at the pastebin I posted.
on this.parentNode, set css “position” property to “relative”.. then set the calendar container element to “absolute”.. maybe try that?
i bet that might fix it
In my test this.parentNode is the document body. Can I set a relative position on that?
in that case, you dont need to, but in all cases you need to set css position of calendar container to absolute
hi, how can i remove li from ul dynamically using js..
AzMoo[w]: try testing on an element other than doc.body
AzMoo[w]: OK, I give in, where’s the code?
AzMoo[w]: The paste 659339 has been copied to: http://erxz.com/pb/4054
AzMoo[w]: Why are the member functions redefined every time a new object is created?
thats just a matter of OOP vs procedural]
because they’re part of the object.
message144, AzMoo[w]: No, it’s not — put them on the prototype
of the containing element?
AzMoo[w]: No, of the constructor function
as in calendar.prototype ?
E.G. calendar.getDaysInMonth = function() {
Yes
ok yes your right.. misunderstood what you meant
Isn’t that what this.getParsedDate = function() is doing?
Incidentally, (strong) convention says that constructor function names begin with a capital letter
No
AzMoo[w]: unless your instanc(iator) will be accessing the methods, then make them static
AzMoo[w]: If you append them to a prototype, they’re created once, then reused
AzMoo[w]: If you add them to each instance like you’re doing there, they’re created again each time
technically they wouldnt be attached to a prototype, they would be static
What?
theres a difference between calendar.foo and calendar.prototype.foo
A “static” function is one that pertains to the “class” as a whole and isn’t attached to any single instance
Yes
one is static, and one applies to an instance
But that doesn’t have much to do with the problem at hand
so im saying he could do it all statically if he wanted
OK, so I would do var calendar = function() {} calendar.prototype.foo = function() ?
AzMoo[w]: Yes
AzMoo[w]: But it should be Calendar
convention in-house uses firstCharLowerCamelCase
objects can be treated somewhat like arrays (key-value pairs). is it possible to get the first key of the object without resorting to “for (var t in object) {…}” ?
AzMoo[w]: did the css fix your problem?
AzMoo[w]: For constructor functions?
no.
AzMoo[w]: But it uses that for methods.
For objects.
AzMoo[w]: Everything in ECMAScript is an object.
I get that. Nevermind the convention, we’ll go with Calendar for now.
Right, so, the problem
not if you dont know the key name
damn. i was hoping i had missed something in the documentation
AzMoo[w]: I suspect the fact that you’ve tried to encase the constructor code in a block may be the problem
OK, so if I pull the methods out of the instance and put them into the prototype, IE will support it and it will fix the issue?
for(t in foo) break;
then just use foo[t];
AzMoo[w]: ECMA-262 is kind of vague about that, there’s no call for it anyway
AzMoo[w]: No, that was a sidetrack because I hate cluttered functions
right, I was just doing it for readability.
AzMoo[w]: It will save you a lot of resource hogging though.
alright, good to know
thanks
AzMoo[w]: And that means you’ll have to stop accessing parameters locally, like in generateCalendar(): newParent.appendChild(el)
AzMoo[w]: Store a reference on the instance in the constructor, then access that
AzMoo[w]: You’re also missing a “var” or two in createHeadContainer()
AzMoo[w]: If you have multiple instances they’ll start overwriting one another.
OK, I’ll keep that in mind. I have to go now, but I’ll clean it all up and see how I go. Thanks
AzMoo[w]: OK, good luck
Cheers
Hello!
I’m trying to jump the page to an anchor using javascript.
Does anyone know how to do that?
location.href += “#myanchor”;
that won’t work twice in a row
No
focus()?
var h = location.href; location.href = h.substr(0, h.indexOf(“#”)) + “#myanchor”;
Thank you I thought I might need to do something fancy.
how can i sort multidimensional array
Recurse
And, how do you want the arrays sorted?
like this
for example i have
x[0] = ["4", "sometext1"];
x[1] = ["-3", "sometext2"];
x[2] = ["15", "sometext3"];
i would need it in order of 15, 4, -3
ie x[2], x[0], x[1]
err
yeah, that would be it
b[0] && 1 || -1; });
i have no idea what you wrote there, but let me try
Could be neater, aye
b[0] && 1 || -1; });
hmm
it doesn’t work it seems
No?
Darn
no, gimme sec tho
to make example
b[0] && 1 || -1; }); x.toSource();
[["-3", "blah"], ["15", "blah"], ["4", "blah"]]
Mmhm, you’re right.
b[0] && 1 || -1; });
{ 0: { 0: -3, 1: blah}, 1: { 0: 15, 1: blah}, 2: { 0: 4, 1: blah}}
b{ 0: { 0: -3, 1: blah}, 1: { 0: 15, 1: blah}, 2: { 0: 4, 1: blah}}/b
tag into the dom with an event from the user. is it possible to submit that data into a POST request. i’ve tried it with little success… or do i need to insert the tag into a form dom object?
ok this is making my eyes bleed
Ah, strings have a different idea of and
+b[0] && 1 || -1; });
{ 0: { 0: -3, 1: blah}, 1: { 0: 4, 1: blah}, 2: { 0: 15, 1: blah}}
There y’go
let me try
My SpiderMonkey certainly doesn’t :-\
i love you Twey
Haha
i’ve been smashing my head against the wall for last 3 hours
It’s just basic use of sort()
i guess, i am javascript inbred, i usually do this kind of stuff in php
but need it in javascript this time so i was stuck bigtime
thank you so much
Heh
Welcome
now i can go to sleep, been a long night
Heh, sleep well, I’ve missed a couple of nights :-\
thanks, my 3rd sleepless night in a row
gnite
lo. using moo.fx, when i try to assign areas within a map to a variable, they disappear from the browser with no error. any ideas why? http://pastebin.parentnode.org/21277
can anyone help me with my problem?
why doesn’t this work:
cells[i].onmouseover = function() { highlight(cells[i]); };
That’s probably in a loop, which means that i has changed its value by the time it’s executed.
Create a new scope to hold the temporary value of i
are you executing it loop when the Dom’s’ ready or before?
how would I do that
Doesn’t matter
before
cells[i].onmouseover = (function(i) { return function() { highlight(cells[i]); }; })(i);
I just realized what the mistake there is…
but I didn’t know how to fix it
Or, in this case you can just use “this”
Which is much easier.
now I’ll try Twey’s solution
I tried with this before… hmm
cells[i].onmouseover = function() { highlight(this); };
Should be fine
You can even define just one function outside the loop and use the same function for all of them.
http://pastebin.ca/659457 … hey i need help
krupa^: The paste 659457 has been copied to http://erxz.com/pb/4055
does nothing for some reason – lemme try some things
http://pastebin.ca/659462 just won’t work
The paste 659462 has been copied to http://erxz.com/pb/4056
Im trying to extract data from a xml-doc. The file has two nodes called object with different ids as attributes. I do var xmlMarkers = re.getElementsByTagName(“object”); but get that the length of xmlMarkers is 0, why is this?
anyone know a relatively cross browser way of getting the size/position of text nodes within elements? or is there a way to get text extents given a certain element style or something?
what’s a good, free javascript host obfuscator?
Why would you want to obfuscate your Javascript?
Are you ashamed of it?
yes
is there any good obsfuscator for any interpreted language?
Well it’s no good! Anyone smart enough to laugh at your code can also de-obfuscate it in a flash.
Of course not
does anyone know how to get my firebug to show xmlhttprequests, it keeps getting disabled whenever I reload a page?
i had thought it’d be like that. it’s a nightmare just trying to write one that does a simple variable name replacement
hi all! Is there a javascript specification and tutorial?
Javascript is an implementation of ECMA-262, so you probably want that: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
Can anyone help me understand what Im doing wrong when parsing my xml-document
I have several nodes named object
There’s also http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
so I put them all in a var with:
var xmlMarkers = re.getElementsByTagName(“object”);
whats the best way to load and parse XML in javascript?
thanks
As for tutorials, try http://www.howtocreate.co.uk/tutorials/javascript/important
then I try to access the info in a specific node with xmlMarkers[i].getElementsByTagName(“id”).firstChild.nodeValue
Permalink Comments off