Re: [PHP] Javascript function

2003-02-19 Thread Hans Prins
There are a lot of other handlers that can call your function: onChange, onFocus, onBlur, onMouseOver, onKeyDown, etc.. gl :) "Van Andel" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] m... Try this. void function MyExampleFunction(theelement) { theelement.focus() } The v

Re: [PHP] Javascript function

2003-02-19 Thread Mincu Alexandru
If you realy need string parameter you could do some string parsing and the function would look something like this: /* * focusTheElement(string) * the parameter should have the folowing format : * 'form_name.element_name' */ fuction focusTheElement(element) { var form=element.substring(1,el

RE: [PHP] Javascript function

2003-02-19 Thread Van Andel, Robbert
Try this. void function MyExampleFunction(theelement) { theelement.focus() } The variable theelement will refer to "document.form_name.element_name" so there is no reason to repeat that portion in the function. Robbert van Andel -Original Message- From: Christian Ista [mail

Re: [PHP] Javascript function

2003-02-19 Thread John Nichel
You'll probably have better luck addressing your question to a list that supports JavaScript. Christian Ista wrote: Hello, Example, I have this function : void function MyExampleFunction(){ document.form_name.element_name.focus(); } I'd like do something like that, I call the function like th

RE: [PHP] Javascript function

2002-05-04 Thread John Holmes
No. PHP is server side, Javascript is client side and their code does not mix. ---John Holmes... > -Original Message- > From: Morten Nielsen [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 2:42 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Javascript function > > Hi > Is it pos

RE: [PHP] Javascript function

2002-05-04 Thread Maxim Maletsky \(PHPBeginner.com\)
> Is it possible to call a function in a javascriptpage from a PHP page? Javascriptpage? Do you mean using JavaScript to call a PHP function? NO, it is not. Because PHP is SERVER-SIDE and JavaScript is CLIENT-SIDE. You can do vice versa though. Sincerely, Maxim Maletsky Founder, Chief Deve