[PHP] Javascript function

2003-02-19 Thread Christian Ista
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 that : MyExampleFunction('form_name.element_name'); And do that : void function MyExampleFunction(theelement){

[PHP] Javascript function

2003-02-19 Thread Christian Ista
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 that : MyExampleFunction('form_name.element_name'); And do that : void function MyExampleFunction(theelement){

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

RE: [PHP] Javascript function

2003-02-19 Thread Van Andel, Robbert
Andel -Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 7:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Javascript function Hello, Example, I have this function : void function MyExampleFunction(){ document.form_name.element_name.focus

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

Re: [PHP] Javascript function

2003-02-19 Thread Hans Prins
, February 19, 2003 7:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Javascript function 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 that : MyExampleFunction

[PHP] Javascript function

2002-05-04 Thread Morten Nielsen
Hi Is it possible to call a function in a javascriptpage from a PHP page? I have a function, which I use when the user press a button. I would like to call this function just by typing the name. Is that possible? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To

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

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 possible