How can I check if the returned xml contains a tag with a value or not without getting error if it does not exists

See any reason why this wouldnt work?
Onload="setTimeout("self.close()", 1000 )"
Ignore the capitalization of onload
My irc client automatically changes the case

1) Badly nested quotes
2) If that's meant to be JS, onload must be a function, not a string
3) Passing strings to setTimeout() is inefficient, pass a function instead
onload="setTimeout(close, 1000);" if HTML, else onload = function() { setTimeout(close, 1000); };

How can I check if the returned xml contains a tag with a value or not without getting error if it does not exists?

if(tag)

hi
is there a prototype.js-channel or can i ask here?

#prototype

thanks

the 'foo' will make the foo literal. but what if foo is variable, how can i get it to interpolate between the ' '

This is driving me crazy, why doesnt this simple javascript not work? http://pastebin.ca/656712

The paste 656712 has been copied to http://erxz.com/pb/4031

Simply omit the quotes
The topmost heading should be h1
Also, stay away from XHTML until IE gets support (unless you don't care about IE, of course)

Your right, my bad, would have nothign to do with it not working though
I could care less about IE, it sucks and the script is just for me =P

getElementsByTagName(tag); the thing has to be inside ' ' i think

Surely that means you care at least some for the thing in question.
No

My apologies, I meant, i could'nt care less

Quotes, single or double, denote a string literal.
No, it's not just you, lots of people say it
I just don't understand why :-\

Could we get back to my issues instead of my grammar? =P

Anyway, other than that I don't see any major issues

hmm

Got a demo page?
Checked that both the onload and onunload events are called?

Not public, its part of an admin area i am doing

alert() goes a long way.

how do i call getElementsByTagName(variable) ? it doesnt seem to recognize unless you put a 'table' or 'p' or some 'literal-tag'

Then you're doing it wrong, that syntax is correct

i am getting the js error that "opener has no properties"

Oh, when i call it i have to pass in a literal

Well, do you believe it?…

No
Hm.

heh it worked
i called the function with a func('td') instead of a func(td) which is a silly thing to not have seen

Twey you're a patient person.

Uh-oh, sorry, my alter-ego must've taken over again

Thought so.

can someone provide a url for a list of the classes like onmouseover

Sorry, had to restart X

onmouseover belongs to what kind of catgeory of things?
what is the right name for it

Event?

ah yes..

can anybody help me shape what inputbox to read from via a preset variable named "which"…. here is one of my first attempts: var title=(document.getElementById("ned").which+"title".value);……inside "which" there is value "left_block_", so i'm trying to read from inputbox
"left_block_title"

comments in javascript is denoted by //?

yes

Also C-style /* */
document.getElementById("ned").elements[which + "title"].value
`js forms @ freebsd_fan
`forms @ freebsd_fan
*poke*

nice… thanks

x['y'] === x.y

returns [object HTMLDivElement]

What does?
Oh

the output

That's up to your coding
That's correct for what you showed me

ok i'll test a bit, brb

how woudl match.'everything' ?

document.getElementsByTagName("*") || document.all;

actually the functions like match, replace, where can i find documentation on this

Oh
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:RegExp

http://jsmaps.tuxfamily.org/ Is a google maps like interface for map servers.

o.className=o.className.replace(/.*/,""); how can i fix this
i want something like o.className =~ s/.*//; if it were in perl

What's wrong with it?

oh nothing, it works
blah im sorry :-) youre the greatest twey
ive been able to go from doing nothing to a really cool javascript host w/ your help
yeah, i realized o.className=''; is probably better

hh

hi all
how to access varibales through multipal frams
i have 3-frams in one file header,middle and footer, i need to pass a flag from header frame to middle frame

is there any way to detect if someone is entering Kanji characters in a form?

wfq, Find the range in unicode that Kanji characters are and do for(i=0;iextbox_elem.value.length;i++){ if(kanji_start = textbox_elem.value.charCodeAt(0) && textbox_elem.value.charCodeAt(0) kanji_start){/*kanji whoo*/}}
Oh no, replace textbox_elem.value.charCodeAt(0) with textbox_elem.value.charCodeAt(i)
But yeah. That more or less.
They seem to all be in the range 4E00 - FA00
http://www.gojukai.nl/karate/en/jp_kanji.html

hey grimboy, thank you very much

how to access varibales through multipal frams
need help on framing
i have 3-frams in one file header,middle and footer, i need to pass a flag from header frame to middle frame

as far as I know, you can't access variables through frames… you can set some value of some div in frame… and access that div from other frame
bas far as I know, you can't access variables through frames… you can set some value of some div in frame… and access that div from other frame/b

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: