Zulu
Posts: 33
|
Posted: 08/17/2004, 4:39 AM |
|
Is it possible to call J functions from php and vice versa? If so how?
Thanks in advance
|
|
|
Damian
|
Posted: 08/18/2004, 3:50 AM |
|
Just include it directly into your HTML file?
Damian
"Zulu" <Zulu@forum.codecharge> wrote in message
news:54121ee8e6de85@news.codecharge.com...
> Is it possible to call J functions from php and vice versa? If so how?
>
> Thanks in advance
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
ftubino->Brazil
|
Posted: 08/20/2004, 8:45 AM |
|
Hello, Zulu.
Remember that javascript runs at client-side and PHP runs at server-side.
If you want to integrate both for any reason, you can generate the javascript source into PHP routines. For example, you can insert a label in the form "form1" named "label1" with type=HTML, and in the BeforeShow event of the form just insert a code like:
global $form1;
global $DBConnection1;
//here you can also manipulate some values from the database:
$DBConnection1->query("SELECT value FROM table");
$DBConnection1->next_record();
$value=$DBConnection1->f("value");
$script="<script language=javascript>
alert ( ' Your value is: ".$value." ' );
</script>";
$form1->label1->setValue($script);
it should works. Regards,
ftubino->Brazil
|
|
|
Damian
|
Posted: 08/21/2004, 12:38 AM |
|
Or define a function in a js file and include the file in the <HEAD> of your
HTML.
Then call the function elsewhere in the <BODY? of your HTML.
"Damian" <codecharge@sydneyit.no.com.junk> wrote in message
news:cfvc9q$mfd$1@news.codecharge.com...
> Just include it directly into your HTML file?
>
> Damian
>
> "Zulu" <Zulu@forum.codecharge> wrote in message
>news:54121ee8e6de85@news.codecharge.com...
> > Is it possible to call J functions from php and vice versa? If so how?
> >
> > Thanks in advance
> > ---------------------------------------
> > Sent from YesSoftware forum
> > http://forums.codecharge.com/
> >
>
>
|
|
|
Zulu
Posts: 33
|
Posted: 08/22/2004, 8:04 AM |
|
Thanks ftubino->Brazil. That was great help.
Zulu
|
|
|