thanks I will need to dedect itin this particular case javascript is requiredok so perhaps if there is javascriptI

any idea ?

wlel
do you have a form hehe a well-formed one a least
or an url for the page we can see what you meant

yes mate
form action="myaction" method="post" enctype="multipart/form-data" name="myForm" id="myForm"

is there a way to insert the context of another file?
content*

and the form works well, I just try to check the input before submit

;google javascript ssi

http://www.netmechanic.com/news/vol4/javascript_no9.htm

using XMLHttpRequest() object makikng a webserver request

i am not familiar with that function
is that basically AJAX?

yes

i want something like "the client should take file.html and put it here"

CommandPrompt, this is the html code i want to add before element … is there any way to do it with using one function … instead of creating every node
http://pastebin.com/942345

The paste 942345 has been copied to http://erxz.com/pb/3445

is there a way to switch an xsl sheet interactively on the xml file you have opened

FF is using 660MBs total memory

insert a Div, and give it 'that' as string for hte .innerHTML of it

How to get browser posx and poy?

screen.left and screen.top

thanks CommandPrompt
How to get value from input? input is not in form

grab the input by id and get it's value
or better yet, use semantic markup and place your form input element, IN a form.

yeah thanks I think can work fine: document.getElementById(divtag).value ?
:]

yes

hi all
i got safari issue
in an iframe, i want to execute a funtion from the parent
so, i have for now that :
parent.frames.window.goWishlist();
it works for firefox, IE but not safari :/
any idea ?

document.getElementById('YOURIFRAMEIDHERE').goWishList()

thx CommandPrompt , i'll test that

provided you have an id on the iframe

Hi all
How do I get around the bug with js, that for ( item in array) generates a script error
?

heheh
for/in is meant to be for an object object, not an array
though in FF or js 1.6 it allows the iteration over an array
use just a for loop

actually, it is an object that it's using

sorry CommandPrompt, but i my explain was wrong… i want from the iframe execute a function inside the parent
parent.frames.window.xxx

document.getElementById('YOURIFRAMEIDHERE').goWishList() on an iframe id="YOURIFRAMEIDHERE"
then it shojld work, no bugs that I know of

that command must be in iframe iframe id="YOURIFRAMEIDHERE"
my function gowishlist() is inside parent
and my link in the iframe

then call parent.gowishlist() from within the iframe?

"parent.goWishList is not a function"

do you have it online somewhere?

no
but maybe i can upload that

please some one decode sha-1 4de69ee6b12b7fc91070873b71ba6e2929b90619
only alphanumeric

it should just work, unless you're refering the actual function doesn't exist in the parent
( the document containing the iframe is the parent of the document inside the iframe )

http://www.atelierpc.fr/temp/testpage.html
so it won't work in safari only for that exemple

parent.frames.window.goWishlist(); should be just parent.goWishlist();

hoo yeah, right, i tested in firefox and got error but in safari it works !
thx !

hi all,
I am hopeing someone could tell me if there is a way to browse a
directory from the browser.

so i have just to detect safari

hello

finally it works in firefox too, i screw somethin before
thx again

how can i easily prevent a user from writing spaces in a box, in mozilla
i managed to get it work under IE, with event.keycode
butt it doesn't work for mozilla

should work in ff too

only if you have a function argument called 'event'
see http://www.quirksmode.org/js/events_properties.html

ok
my argument in the function is event

ook, i'm experiencing a paranormal phenomenon
i have a function which returns false if something fails, and puts some information in a this.lastError var
and i test the return value to check if it's false
then, if it is, i print the this.lastError message
but… each time i run this, it always prints 'undefined'
if i use the debugger (firebug), and step through the whole process, it prints the right value
any clue about what it might be?
this is sort of quantum

hi all,
I am hopeing someone could tell me if there is a way to browse a for a directory path from the browser,

why?

you mean, accessing the filesystem with Javascript? forgettit, not possible

phoenixz, yes but is there any other way?

besides "impossible" ?
er..
Let me put it like this.. If you do find a way to do this, please let me know how, because I would like to do that too but.. For security, javascript hosting can't do that

phoenixz, oh ok

imagine.. you open up a page that does something like formatDrive(c); for your windows
or classic ones like file=readFile(allmypasswords); sendFileToMyServer(file);
it would be cool though if you could do that security beside, it would be cool..

phoenixz, cannot i restrict with the folder

nope, there simply is NO access at all… nothing, nada, etc…

phoenixz, ook

hi. someone could give me a hint on how to check if javascript is enabled on the browser. if not..to redirect to another page?

How can be this. I cant understand :/ Input: labelinput name="author" type="text" class="textfield" id="author" //label
document.getElementById("author") has no properties
:/

it works like a charm

jmut, use a meta refresh to a non-js page and a scripted version of the redirect to a js page (but even better would be to have just one page, which is only enhanced by js so the page works fine without it)

http://paste-bin.com/12047
thanks I will need to dedect it…in this particular case javascript is required….ok so perhaps if there is javascript….I somehow disable the meta refresh? is there some small example at hand?

I think the meta refresh is determined when the page is loaded and removing the node doesn't seem to actually cancel the effect

is the key

thanks

true, indeed there's always noscript

I can't understand jmut on alert document.getElementById("author").value this working… But if I try to add in *.js file stop working this: var user = document.getElementById("author").value; :/

do you happen to place the *.js file in the head section of the page, while the other example was just below the field?

does anyone know a good page which talks about correct/incorrect ways of address/reference page elements?

should make sure DOM is fully loaded before using this and that…perhaps element is not created at the time you are trying to access it
hence the window.onload thingy
if using javascript…I guess you are at the right place

`js domref

w3.org/DOM/ , http://developer.mozilla.org/en/docs/DOM , www.mozilla.org/docs/dom/domref/ , www.zvon.org/xxl/DOM2reference/Output/index.html , www.krook.org/jsdom/ , http://phrogz.net/objJob/languages.asp

basically I have to give a talk to a bunch of clueless developers who don't even get that you should use id instead of name attributes.. problem is I'm not 100% sure about it all myself

chillit check the domref

thanks. I'll do that.

chillit when you want to get inputs serverside it helps when you give them a name too iirc

I was also wondering when it was correct to address elements by id/name using parent.name notation

distinguish between namespaces controlled by the author (ids, form names, input names) and those controlled by the browser (properties of objects)

as i understood it name is a special attribute for use on certain tags.. i.e. input.. i may be wrong though and need to get it all clear in my mind before I poison others.

parent. ?? i only know parent in relation to frames

also uniqueness of ids vs. names

sorry parent could be anything, just some parent object

never: that namespace should be browser-controlled only

http://pastie.textmate.org/76203 - can I get this better, any dedicated method for the select-thingy?

otherwise you can get conflicts and confusion, as when you can't submit a form because you have an input named "submit" and the two things clash
botherwise you can get conflicts and confusion, as when you can't submit a form because you have an input named "submit" and the two things clash/b

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

Comments are closed.


Blog Tags:

Similar posts: