Re: [PHP] calling javascript

2004-11-01 Thread M Saleh EG
The idea is very simple. It just needs you to know the concepts. On the form processing page whenever u find an error just print or echo this : err_popup(); e.g. "; echo "err_popup();"; echo ""; } ?> Given that the definistion of the JS err_popup()

Re: [PHP] calling javascript

2004-11-01 Thread Ben Ramsey
Jay Blanchard wrote: [snip] I have a form and Im doing a check on submission to check whether there are any blank field and if there are I want to call function.. error_popup(); does this make anymore sense to you. Now I understand that you cant call javascript from within php. wot would you recomm

Re[2]: [PHP] calling javascript

2004-11-01 Thread Richard Davey
Hello Garth, Monday, November 1, 2004, 2:52:48 PM, you wrote: GHS> I have a form and Im doing a check on submission to check whether GHS> there are any blank field and if there are I want to call GHS> function.. error_popup(); does this make anymore sense to you. Then keep it all within the Java

RE: [PHP] calling javascript

2004-11-01 Thread Jay Blanchard
[snip] I have a form and Im doing a check on submission to check whether there are any blank field and if there are I want to call function.. error_popup(); does this make anymore sense to you. Now I understand that you cant call javascript from within php. wot would you recommend as an alternative

Re: [PHP] calling javascript

2004-11-01 Thread Garth Hapgood - Strickland
Thanx for your help, I am actually a web designer! I dont think u understand 100% I have a form and Im doing a check on submission to check whether there are any blank field and if there are I want to call function.. error_popup(); does this make anymore sense to you. Now I understand that you ca

RE: [PHP] calling javascript

2004-11-01 Thread Jay Blanchard
[snip] Ok so what does this mean I should write..I don't understand what you mean by Server Side/Client Side. [/snip] Server side means that the server handles the processing. Client side means that the interface device (in this case, a browser) handles the processing. PHP is server side. JavaScr

Re: [PHP] calling javascript

2004-11-01 Thread Ben Ramsey
Garth Hapgood - Strickland wrote: by saying ? echo error_popup(); or print error_popup; As someone mentioned, you cannot call a javascript function from within PHP. What is meant by client side/server side is this: PHP is processed on the server before sending any content to the browser; that's

Re: [PHP] calling javascript

2004-11-01 Thread Garth Hapgood - Strickland
> You can't call JavaScript functions from within PHP. You can output the > JavaScript function to the browser. > > PHP == Server Side > JavaScript == Client Side Ok so what does this mean I should write..I don't understand what you mean by Server Side/Client Side. -- PHP General Mailing List

Re: [PHP] calling javascript

2004-11-01 Thread Garth Hapgood - Strickland
by saying ? echo error_popup(); or print error_popup; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calling javascript

2004-11-01 Thread John Nichel
Garth Hapgood - Strickland wrote: I want to call a javascript function: function error_popup() { newwin = window.open("error_popup.php","sss","height=470,width=450") } from within my php code. How do I go about called this function? Garth You can't call JavaScript functions from within PHP. You

RE: [PHP] calling javascript

2004-11-01 Thread Jay Blanchard
[snip] I want to call a javascript function: function error_popup() { newwin = window.open("error_popup.php","sss","height=470,width=450") } from within my php code. How do I go about called this function? [/snip] You have to echo or print out the javascript using PHP -- PHP General Mailing Li

[PHP] calling javascript

2004-11-01 Thread Garth Hapgood - Strickland
I want to call a javascript function: function error_popup() { newwin = window.open("error_popup.php","sss","height=470,width=450") } from within my php code. How do I go about called this function? Garth

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Kevin Stone
02 10:51 AM To: Kevin Stone; [EMAIL PROTECTED] Subject: Re: [PHP] Calling Javascript-function from php-script ... I think the point here is that it be made clear to those who might get confused that the javascript (unless it's a server-side script) is running in a browser and as such there is no way

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Andrew Lopucki
; information gathered by the PHP script. > -Kevin > > -Original Message- > From: Alexander Skwar [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 19, 2002 4:27 PM > To: Kevin Stone > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Calling Javascript-function from php-script ..

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Kevin Stone
atabase information gathered by the PHP script. -Kevin -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:27 PM To: Kevin Stone Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Calling Javascript-function from php-script ... »Kevin Stone« sagte

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Alexander Skwar
»Kevin Stone« sagte am 2002-03-19 um 14:11:42 -0700 : > Not entirely true. Javascript is directly linked to HTML and HTML is > directly linked to PHP so you can have PHP talk to Javascript through > HTML. I still don't agree. You can of course create JavaScripts dynamically in PHP. However, PH

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Kevin Stone
uesday, March 19, 2002 12:54 PM To: Marcel Besancon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Calling Javascript-function from php-script ... »Marcel Besancon« sagte am 2002-03-19 um 13:04:38 +0100 : > Hi everybody, > > is there someone who can tell me how to call a javascript-function by a

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Alexander Skwar
»Marcel Besancon« sagte am 2002-03-19 um 13:19:49 +0100 : > meant ist the following. I have a script with a form. By submitting this > form and checking out some values php should call a javascript-function > (such as an alert). You see the php-script shall call the Bad idea. On the one hand, PH

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Alexander Skwar
»Marcel Besancon« sagte am 2002-03-19 um 13:04:38 +0100 : > Hi everybody, > > is there someone who can tell me how to call a javascript-function by a > php-script. PHP creates HTML pages (mostly) which will be displayed by a client and/or receives send pages/requests from a client. There's

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread scott furt
PHP cannot call a javascript function. but PHP can examine the incoming variables and then output Javascript to the browser to do the appropriate work. for example, calling $text.php?this=5 pops up an alert saying "this=5" test.php \n". "alert('this='+". $this .");\n". "" ?> Marcel Besa

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Niklas Lampén
Then you need to do it like this: alert("DOH!"); But you can not make PHP call javascript functions directly. Niklas -Original Message- From: Marcel Besancon [mailto:[EMAIL PROTECTED]] Sent: 19. maaliskuuta 2002 14:20 To: [EMAIL PROTECTED] Subject: Re: [PHP] Calling

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Marcel Besancon
Hi, i know that one is server-side and the other is client-side. But what i meant ist the following. I have a script with a form. By submitting this form and checking out some values php should call a javascript-function (such as an alert). You see the php-script shall call the javascript-fun

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread scott furt
Short answer: no. Long answer: have the PHP script output javascript code to the browser. PHP = server-side Javascript = client-side Marcel Besancon wrote: > Hi everybody, > > is there someone who can tell me how to call a javascript-function by a > php-script. > > Thanks for each answer

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Niklas Lampén
AFAK it's not possible since PHP is server-side and I guess your JavaScript is client-side. Niklas -Original Message- From: Marcel Besancon [mailto:[EMAIL PROTECTED]] Sent: 19. maaliskuuta 2002 14:05 To: [EMAIL PROTECTED] Subject: [PHP] Calling Javascript-function from php-s

[PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Marcel Besancon
Hi everybody, is there someone who can tell me how to call a javascript-function by a php-script. Thanks for each answer Marcel -- registered Fli4l-User #0388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calling javascript function from a form image

2001-09-21 Thread Christian Dechery
> > > >onclick="set_category()"> > > > I understand Netscape is a real pain in the a**... but that should work... maybe it (Netscape)'s being picky about syntax... trye being perfectionist... like: _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http:

[PHP] calling javascript function from a form image

2001-09-21 Thread Neil Freeman
Hi, I have a form which contains an: tags but I don't think a form will like this. Has anyone a solution? Here is my code # imagesubmit.htm function set_category() { alert("category set"); } alert(\"form submitted\");"; } else { echo "alert(\"not submitte

Re: [PHP] calling javascript functions inside PHP

2001-09-10 Thread Nelson Goforth
PHP has some encryption mechanisms in it - but by that time you've sent the data to the server. The other respondents are correct though - you should be using an SSL connection to encrypt the data between the user and your server. On a site that I do I use SSL to keep the data secure between

RE: [PHP] calling javascript functions inside PHP

2001-07-30 Thread Bruin, Bolke de
30, 2001 1:40 PM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] calling javascript functions inside PHP I use a PHP self-validating form for taking orders off my site. (on submit it calls itself and if there are no errors a send variable is set and it emails me the information, etc - standard stuff). I&#x

[PHP] calling javascript functions inside PHP

2001-07-30 Thread Dean Martin
I use a PHP self-validating form for taking orders off my site. (on submit it calls itself and if there are no errors a send variable is set and it emails me the information, etc - standard stuff). I'd like to start taking CC orders and would like to encode the information using javascript http:/