Re: [PHP] Javascript & PHP

2006-06-16 Thread tedd
At 4:06 PM -0500 6/16/06, Richard Lynch wrote:
>On Fri, June 16, 2006 3:51 am, Rob W. wrote:
>> Ok. I am trying to figure out if this would be the correct thing to
>> do. I start off with Java script that looks like this.
>
>As far as PHP is concerned, Javascript is just "more HTML".

As far as PHP is concerned, whatever follows is irrelevant -- it could be 
nothing or anything including gibberish. PHP doesn't fail because of bad html 
of js, does it? After all, it all happens after php is cyberdust, right?

tedd
-- 

http://sperling.com  http://ancientstones.com  http://earthstones.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Javascript & PHP

2006-06-16 Thread Richard Lynch
On Fri, June 16, 2006 3:51 am, Rob W. wrote:
> Ok. I am trying to figure out if this would be the correct thing to
> do. I start off with Java script that looks like this.

As far as PHP is concerned, Javascript is just "more HTML".

Just cram it into the text of your HTML, or put it into a .js file and
do it like that.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Javascript & PHP

2006-06-16 Thread Rob W.

Yeah, I think something like that might work.

( I also know it's javascript and not java - Little tired being up @ 5am and 
havnt slept for over 24 hrs already. )


- Rob


- Original Message - 
From: "Jochem Maas" <[EMAIL PROTECTED]>

To: "Rob W." <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, June 16, 2006 4:55 AM
Subject: Re: [PHP] Javascript & PHP



Rob W. wrote:

Well for example

when I pull my mysql db variable

$serverid=mysql_result($result,$i,"serverid");

How do I bind it so this ^^ to the java var below?


(I hope english is not you first language - or maybe you
write in shorthand *and* you don't bother to reread what you
have written)

btw it's not JAVA but JAVASCRIPT.



var serverid = serveradd.serverid.value;


have you thought of something like this:


<!--

var serverid = <? echo $serverid ?>;

//-->



- Rob

- Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]>
To: "Rob W." <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, June 16, 2006 4:26 AM
Subject: Re: [PHP] Javascript & PHP



Rob W. wrote:

Well i'm trying to figure out how to bind the php variables to the
javascript variables after I pull them out of the mysql database.


something like this? ...

$data = getServerTypeDataOrSomething();

?>





... etc


or am I missing the point completely?




- Rob

- Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]>
To: "Rob W." <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, June 16, 2006 4:13 AM
Subject: Re: [PHP] Javascript & PHP



Rob W. wrote:

Ok. I am trying to figure out if this would be the correct thing to
do. I start off with Java script that looks like this.

/*
function getType(what,available,owner) {
var serverid = serveradd.serverid.value;
var cabinetid = serveradd.cabinetid.value;
var rowid = serveradd.rowid.value;
var dcid = serveradd.dcid.value;
var colour = serveradd.colour.value;
var spec = serveradd.spec.value;
var mainip = serveradd.mainip.value;
var oldip = serveradd.oldip.value;
var switchid = serveradd.switchid.value;
var switchport = serveradd.switchport.value;
var apcid = serveradd.apcid.value;
var apcport = serveradd.apcport.value;
document.location=('admin.php?page=serveradd&action=' + add +
'&myid=&serverid=' + serverid + '&cabinetid=' +
cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour
+ '&spec=' + spec + '&mainip=' + mainip +
'&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' +
switchport + '&apcid=' + apcid + '&apcport=' + apcport +
'&available=' + available + '&owner=' + owner);
}*/

Do I, Before that exec's, add in my mysql get to set the variables to
the java variables or how do I enter that in?



I read that line 3 times - I know its english, but the meaning escapes
me... maybe others have the same problem.
could you rephrase the question?



Any help is appricated.

-Rob


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Javascript & PHP

2006-06-16 Thread Jochem Maas
Rob W. wrote:
> Well for example
> 
> when I pull my mysql db variable
> 
> $serverid=mysql_result($result,$i,"serverid");
> 
> How do I bind it so this ^^ to the java var below?

(I hope english is not you first language - or maybe you
write in shorthand *and* you don't bother to reread what you
have written)

btw it's not JAVA but JAVASCRIPT.

> 
> var serverid = serveradd.serverid.value;

have you thought of something like this:


<!--

var serverid = <? echo $serverid ?>;

//-->

> 
> - Rob
> 
> - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]>
> To: "Rob W." <[EMAIL PROTECTED]>
> Cc: 
> Sent: Friday, June 16, 2006 4:26 AM
> Subject: Re: [PHP] Javascript & PHP
> 
> 
>> Rob W. wrote:
>>> Well i'm trying to figure out how to bind the php variables to the
>>> javascript variables after I pull them out of the mysql database.
>>
>> something like this? ...
>>
>> $data = getServerTypeDataOrSomething();
>>
>> ?>
>>
>> 
>> 
>>
>> ... etc
>>
>>
>> or am I missing the point completely?
>>
>>
>>>
>>> - Rob
>>>
>>> - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]>
>>> To: "Rob W." <[EMAIL PROTECTED]>
>>> Cc: 
>>> Sent: Friday, June 16, 2006 4:13 AM
>>> Subject: Re: [PHP] Javascript & PHP
>>>
>>>
>>>> Rob W. wrote:
>>>>> Ok. I am trying to figure out if this would be the correct thing to
>>>>> do. I start off with Java script that looks like this.
>>>>>
>>>>> /*
>>>>> function getType(what,available,owner) {
>>>>> var serverid = serveradd.serverid.value;
>>>>> var cabinetid = serveradd.cabinetid.value;
>>>>> var rowid = serveradd.rowid.value;
>>>>> var dcid = serveradd.dcid.value;
>>>>> var colour = serveradd.colour.value;
>>>>> var spec = serveradd.spec.value;
>>>>> var mainip = serveradd.mainip.value;
>>>>> var oldip = serveradd.oldip.value;
>>>>> var switchid = serveradd.switchid.value;
>>>>> var switchport = serveradd.switchport.value;
>>>>> var apcid = serveradd.apcid.value;
>>>>> var apcport = serveradd.apcport.value;
>>>>> document.location=('admin.php?page=serveradd&action=' + add +
>>>>> '&myid=&serverid=' + serverid + '&cabinetid=' +
>>>>> cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour
>>>>> + '&spec=' + spec + '&mainip=' + mainip +
>>>>> '&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' +
>>>>> switchport + '&apcid=' + apcid + '&apcport=' + apcport +
>>>>> '&available=' + available + '&owner=' + owner);
>>>>> }*/
>>>>>
>>>>> Do I, Before that exec's, add in my mysql get to set the variables to
>>>>> the java variables or how do I enter that in?
>>>>
>>>>
>>>> I read that line 3 times - I know its english, but the meaning escapes
>>>> me... maybe others have the same problem.
>>>> could you rephrase the question?
>>>>
>>>>>
>>>>> Any help is appricated.
>>>>>
>>>>> -Rob
>>>>
>>>> -- 
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>
>>>
>>
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Javascript & PHP

2006-06-16 Thread Rob W.

Well for example

when I pull my mysql db variable

$serverid=mysql_result($result,$i,"serverid");

How do I bind it so this ^^ to the java var below?

var serverid = serveradd.serverid.value;

- Rob

- Original Message - 
From: "Jochem Maas" <[EMAIL PROTECTED]>

To: "Rob W." <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, June 16, 2006 4:26 AM
Subject: Re: [PHP] Javascript & PHP



Rob W. wrote:

Well i'm trying to figure out how to bind the php variables to the
javascript variables after I pull them out of the mysql database.


something like this? ...

$data = getServerTypeDataOrSomething();

?>




... etc


or am I missing the point completely?




- Rob

- Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]>
To: "Rob W." <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, June 16, 2006 4:13 AM
Subject: Re: [PHP] Javascript & PHP



Rob W. wrote:

Ok. I am trying to figure out if this would be the correct thing to
do. I start off with Java script that looks like this.

/*
function getType(what,available,owner) {
var serverid = serveradd.serverid.value;
var cabinetid = serveradd.cabinetid.value;
var rowid = serveradd.rowid.value;
var dcid = serveradd.dcid.value;
var colour = serveradd.colour.value;
var spec = serveradd.spec.value;
var mainip = serveradd.mainip.value;
var oldip = serveradd.oldip.value;
var switchid = serveradd.switchid.value;
var switchport = serveradd.switchport.value;
var apcid = serveradd.apcid.value;
var apcport = serveradd.apcport.value;
document.location=('admin.php?page=serveradd&action=' + add +
'&myid=&serverid=' + serverid + '&cabinetid=' +
cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour
+ '&spec=' + spec + '&mainip=' + mainip +
'&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' +
switchport + '&apcid=' + apcid + '&apcport=' + apcport +
'&available=' + available + '&owner=' + owner);
}*/

Do I, Before that exec's, add in my mysql get to set the variables to
the java variables or how do I enter that in?



I read that line 3 times - I know its english, but the meaning escapes
me... maybe others have the same problem.
could you rephrase the question?



Any help is appricated.

-Rob


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Javascript & PHP

2006-06-16 Thread Jochem Maas
Rob W. wrote:
> Well i'm trying to figure out how to bind the php variables to the
> javascript variables after I pull them out of the mysql database.

something like this? ...

$data = getServerTypeDataOrSomething();

?>




... etc


or am I missing the point completely?


> 
> - Rob
> 
> - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]>
> To: "Rob W." <[EMAIL PROTECTED]>
> Cc: 
> Sent: Friday, June 16, 2006 4:13 AM
> Subject: Re: [PHP] Javascript & PHP
> 
> 
>> Rob W. wrote:
>>> Ok. I am trying to figure out if this would be the correct thing to
>>> do. I start off with Java script that looks like this.
>>>
>>> /*
>>> function getType(what,available,owner) {
>>> var serverid = serveradd.serverid.value;
>>> var cabinetid = serveradd.cabinetid.value;
>>> var rowid = serveradd.rowid.value;
>>> var dcid = serveradd.dcid.value;
>>> var colour = serveradd.colour.value;
>>> var spec = serveradd.spec.value;
>>> var mainip = serveradd.mainip.value;
>>> var oldip = serveradd.oldip.value;
>>> var switchid = serveradd.switchid.value;
>>> var switchport = serveradd.switchport.value;
>>> var apcid = serveradd.apcid.value;
>>> var apcport = serveradd.apcport.value;
>>> document.location=('admin.php?page=serveradd&action=' + add +
>>> '&myid=&serverid=' + serverid + '&cabinetid=' +
>>> cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour
>>> + '&spec=' + spec + '&mainip=' + mainip +
>>> '&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' +
>>> switchport + '&apcid=' + apcid + '&apcport=' + apcport +
>>> '&available=' + available + '&owner=' + owner);
>>> }*/
>>>
>>> Do I, Before that exec's, add in my mysql get to set the variables to
>>> the java variables or how do I enter that in?
>>
>>
>> I read that line 3 times - I know its english, but the meaning escapes
>> me... maybe others have the same problem.
>> could you rephrase the question?
>>
>>>
>>> Any help is appricated.
>>>
>>> -Rob
>>
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Javascript & PHP

2006-06-16 Thread Rob W.
Well i'm trying to figure out how to bind the php variables to the 
javascript variables after I pull them out of the mysql database.


- Rob

- Original Message - 
From: "Jochem Maas" <[EMAIL PROTECTED]>

To: "Rob W." <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, June 16, 2006 4:13 AM
Subject: Re: [PHP] Javascript & PHP



Rob W. wrote:
Ok. I am trying to figure out if this would be the correct thing to do. I 
start off with Java script that looks like this.


/*
function getType(what,available,owner) {
var serverid = serveradd.serverid.value;
var cabinetid = serveradd.cabinetid.value;
var rowid = serveradd.rowid.value;
var dcid = serveradd.dcid.value;
var colour = serveradd.colour.value;
var spec = serveradd.spec.value;
var mainip = serveradd.mainip.value;
var oldip = serveradd.oldip.value;
var switchid = serveradd.switchid.value;
var switchport = serveradd.switchport.value;
var apcid = serveradd.apcid.value;
var apcport = serveradd.apcport.value;
document.location=('admin.php?page=serveradd&action=' + add + 
'&myid=&serverid=' + serverid + '&cabinetid=' +
cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour + 
'&spec=' + spec + '&mainip=' + mainip +
'&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' + switchport 
+ '&apcid=' + apcid + '&apcport=' + apcport +

'&available=' + available + '&owner=' + owner);
}*/

Do I, Before that exec's, add in my mysql get to set the variables to the 
java variables or how do I enter that in?



I read that line 3 times - I know its english, but the meaning escapes 
me... maybe others have the same problem.

could you rephrase the question?



Any help is appricated.

-Rob


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Javascript & PHP

2006-06-16 Thread Jochem Maas
Rob W. wrote:
> Ok. I am trying to figure out if this would be the correct thing to do. I 
> start off with Java script that looks like this.
> 
> /*
> function getType(what,available,owner) {
> var serverid = serveradd.serverid.value;
> var cabinetid = serveradd.cabinetid.value;
> var rowid = serveradd.rowid.value;
> var dcid = serveradd.dcid.value;
> var colour = serveradd.colour.value;
> var spec = serveradd.spec.value;
> var mainip = serveradd.mainip.value;
> var oldip = serveradd.oldip.value;
> var switchid = serveradd.switchid.value;
> var switchport = serveradd.switchport.value;
> var apcid = serveradd.apcid.value;
> var apcport = serveradd.apcport.value;
> document.location=('admin.php?page=serveradd&action=' + add + 
> '&myid=&serverid=' + serverid + '&cabinetid=' +
> cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour + 
> '&spec=' + spec + '&mainip=' + mainip +
> '&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' + switchport + 
> '&apcid=' + apcid + '&apcport=' + apcport +
> '&available=' + available + '&owner=' + owner);
> }*/
> 
> Do I, Before that exec's, add in my mysql get to set the variables to the 
> java variables or how do I enter that in?


I read that line 3 times - I know its english, but the meaning escapes me... 
maybe others have the same problem.
could you rephrase the question?

> 
> Any help is appricated.
> 
> -Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Javascript & PHP

2006-06-16 Thread Rob W.
Ok. I am trying to figure out if this would be the correct thing to do. I start 
off with Java script that looks like this.

/*
function getType(what,available,owner) {
var serverid = serveradd.serverid.value;
var cabinetid = serveradd.cabinetid.value;
var rowid = serveradd.rowid.value;
var dcid = serveradd.dcid.value;
var colour = serveradd.colour.value;
var spec = serveradd.spec.value;
var mainip = serveradd.mainip.value;
var oldip = serveradd.oldip.value;
var switchid = serveradd.switchid.value;
var switchport = serveradd.switchport.value;
var apcid = serveradd.apcid.value;
var apcport = serveradd.apcport.value;
document.location=('admin.php?page=serveradd&action=' + add + 
'&myid=&serverid=' + serverid + '&cabinetid=' +
cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour + 
'&spec=' + spec + '&mainip=' + mainip +
'&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' + switchport + 
'&apcid=' + apcid + '&apcport=' + apcport +
'&available=' + available + '&owner=' + owner);
}*/

Do I, Before that exec's, add in my mysql get to set the variables to the java 
variables or how do I enter that in?

Any help is appricated.

-Rob

Re: [PHP] Javascript & PHP

2005-02-27 Thread anirudh dutt
use php to output the javascript code just as u'd do it for html
(since the javascript code is IN the html).
if ur js is ready:

JS_TEXT;
?>
the 

[PHP] Javascript & PHP

2005-02-27 Thread timothy johnson
I am trying to make a small menu system using javascript, but the
values that I want to use come from php/mysql. I can get the code to
work when I type in the values but when I try to use php. it doesnt
process the php. you view source and you can see the php functions. I
have tried naming the file different types like php, html,
js.phpnothing is working. How can I use php to output javascript
vars?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] javascript & php

2003-07-28 Thread Grant Rutherford
 $color = "
  ";
  $query = mysql_query("select id from color where color = '$color' ");
 $a = mysql_num_rows($query);
Actually, what you want to do is possible, but difficult.

If you are willing to tolerate a page refresh, you can use this code to 
implement this function:


//header

if (empty($_GET['color'])){
?>
   
method=get>
   
   

   exit();
} // if
else{
   $color = $_GET['color'];
   $query = mysql_query("select id from color where color = '$color' ");
   $a = mysql_num_rows($query);

   
?>
} // else

// rest of page

I'm not sure that this particular script will work, but I think that 
this method is the best way to have javascript send things to php.

Hope this helps,
Grant


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] javascript & php

2003-07-28 Thread Roman Duriancik
I have problem with variables in javascript and php.
I have code in php and in this code I insert some values from javascript.:
 $color = "
  ";
when I write command echo $color - result is correct.

but when i need insert or select some values from database with this 
value ($color) result is not correct
this is my code :

 $query = mysql_query("select id from color where color = '$color' ");
 $a = mysql_num_rows($query);
result is 0.

but in my database i have record where is value like value $color.

roman





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Javascript + PHP

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 07:07, SED wrote:
> I need to finish a project using PHP and JavaScript but the references
> for JavaScript I'm using is rather old. I'm looking for a JavaScript
> postlist similar to this but without any luck. I have tried Google but
> it finds every site containing JavaScript where a postlist is mentioned.
> Since there are many pros on this list, maybe someone can point me to a
> JavaScript postlist similar to this.

google for 'javascript weenie'

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
The ends justify the means.
-- after Matthew Prior
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Javascript + PHP

2002-11-15 Thread BigDog
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=comp.lang.javascript


On Fri, 2002-11-15 at 23:07, SED wrote:
> I need to finish a project using PHP and JavaScript but the references
> for JavaScript I'm using is rather old. I'm looking for a JavaScript
> postlist similar to this but without any luck. I have tried Google but
> it finds every site containing JavaScript where a postlist is mentioned.
> Since there are many pros on this list, maybe someone can point me to a
> JavaScript postlist similar to this.
> 
> Thanks,
> Sumarlidi E. Dadason
> 
> SED - Graphic Design
> _
> Tel: 896-0376, 461-5501
> E-mail: [EMAIL PROTECTED]
> website: www.sed.is

-- 
.: B i g D o g :.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Javascript + PHP

2002-11-15 Thread SED
I need to finish a project using PHP and JavaScript but the references
for JavaScript I'm using is rather old. I'm looking for a JavaScript
postlist similar to this but without any luck. I have tried Google but
it finds every site containing JavaScript where a postlist is mentioned.
Since there are many pros on this list, maybe someone can point me to a
JavaScript postlist similar to this.

Thanks,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Javascript & PHP cookies

2002-06-08 Thread webmaster



Is it possible to read cookies from javascript 
written by PHP and vice-versa?
 
Just out of curiousity
 
JJ Harrison[EMAIL PROTECTED]www.tececo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] javascript, php and html commands

2002-02-01 Thread Eduardo Melo




My somebody help me solve the code below ?

A have a COMBO called ~edicoes~ and i must to use the option selected to
open an URL as shown below :


 
  
Edição  / 

 
 
 

 

http://www.iasp.br/iasponline.php?edicao=javascript:document.forms['edicoes'].options[document.forms['edicoes'].selectedIndex].value">










the href must refer to the option selected in the COMBO.

thank so much

eduardo melo
computer programmer






--
Eduardo Fco Melo
Celular : 19-9743-0804
R. Antônio Biasi Filho, 74 - Hortolândia - SP - CEP 13184-040
Currículum disponível no endereço abaixo :
http://www.apinfo2.com/cgi-bin/roteador.cfm?prof=59821&pcargo=Analista 
Programador">www.apinfo2.com/cgi-bin/roteador.cfm?prof=59821&pcargo=Analista 
Programador 

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-19 Thread Martin Hughes

Many Thanks everyone!!

Mart



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Mark

On Tue, 18 Dec 2001 16:16:20 -0800, Jim Lucas wrote:
>the bad thing is, it will still stop the browser from finishing the
>loading
>of the page.

not in any browser I've tried.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Jim Lucas

the bad thing is, it will still stop the browser from finishing the loading
of the page.

- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Martin Towell" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 4:16 PM
Subject: Re: [PHP] JavaScript & php question - mainly JS though so slightly
OT but hep needed!!! :o)


On Tue, 18 Dec 2001 15:58:10 -0800, Jim Lucas wrote:
>actually Martin, that is what Martin was doing.
>href="javascript:function_name()"  calls to a js function.
>
>my suggestion would be to write it this way.
>
>text

better yet:
text

to keep weird browsers from doing things you don't expect (like
jumping to the top)

>that way, if the client clicks the link/button before the page is
>done
>downloading the page. it won't stop the page from finishing.  if you
>do it
>the way you wrote below.  the page will stop downloading, including
>the
>images that havn't finished.
>
>Jim
>- Original Message -
>From: "Martin Towell" <[EMAIL PROTECTED]>
>To: "'Martin Hughes'" <[EMAIL PROTECTED]>; [EMAIL PROTECTED]>
>Sent: Tuesday, December 18, 2001 3:05 PM
>Subject: RE: [PHP] JavaScript & php question - mainly JS though so
>slightly
>OT but hep needed!!! :o)
>
>
>> if you have lots of links, then doing it this way, IMO, would be
>> easier/better - so:
>> 
>> function windowPopup(xx) { window.open("info.php?patch="+xx,
>>"_new",
>> "windowattribs"); }
>> 
>>
>> but if there's only a few links, then placing the window.open code
>>in the
>> link would be easiest, i think.
>>
>> -Original Message-
>> From: Martin Hughes [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, December 19, 2001 9:54 AM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] JavaScript & php question - mainly JS though so
>>slightly
>> OT but hep needed!!! :o)
>>
>>
>> How could I write the function windowPopup(XX) where XX is a
>>variable that
>> can change from link to link, for a popup info window to load a
>>php file
>> with the variable XX in the url?
>>
>> So the link would look like:
>> Link Text
>>
>> and I want that link to open the page info.php?patch=XX in a new
>>popup
>> window
>>
>> Do I do it something like this, or is there a faster/better way??
>>
>> Cheers & Merry X-Mas!
>>
>> Martin
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: php-list-
>>[EMAIL PROTECTED]
>>
>
>






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Mark

On Tue, 18 Dec 2001 15:58:10 -0800, Jim Lucas wrote:
>actually Martin, that is what Martin was doing.
>href="javascript:function_name()"  calls to a js function.
>
>my suggestion would be to write it this way.
>
>text

better yet:
text

to keep weird browsers from doing things you don't expect (like
jumping to the top)

>that way, if the client clicks the link/button before the page is
>done
>downloading the page. it won't stop the page from finishing.  if you
>do it
>the way you wrote below.  the page will stop downloading, including
>the
>images that havn't finished.
>
>Jim
>- Original Message -
>From: "Martin Towell" <[EMAIL PROTECTED]>
>To: "'Martin Hughes'" <[EMAIL PROTECTED]>; [EMAIL PROTECTED]>
>Sent: Tuesday, December 18, 2001 3:05 PM
>Subject: RE: [PHP] JavaScript & php question - mainly JS though so
>slightly
>OT but hep needed!!! :o)
>
>
>> if you have lots of links, then doing it this way, IMO, would be
>> easier/better - so:
>> 
>> function windowPopup(xx) { window.open("info.php?patch="+xx,
>>"_new",
>> "windowattribs"); }
>> 
>>
>> but if there's only a few links, then placing the window.open code
>>in the
>> link would be easiest, i think.
>>
>> -Original Message-
>> From: Martin Hughes [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, December 19, 2001 9:54 AM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] JavaScript & php question - mainly JS though so
>>slightly
>> OT but hep needed!!! :o)
>>
>>
>> How could I write the function windowPopup(XX) where XX is a
>>variable that
>> can change from link to link, for a popup info window to load a
>>php file
>> with the variable XX in the url?
>>
>> So the link would look like:
>> Link Text
>>
>> and I want that link to open the page info.php?patch=XX in a new
>>popup
>> window
>>
>> Do I do it something like this, or is there a faster/better way??
>>
>> Cheers & Merry X-Mas!
>>
>> Martin
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: php-list-
>>[EMAIL PROTECTED]
>>
>
>




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Jim Lucas

actually Martin, that is what Martin was doing.
href="javascript:function_name()"  calls to a js function.

my suggestion would be to write it this way.

text

that way, if the client clicks the link/button before the page is done
downloading the page. it won't stop the page from finishing.  if you do it
the way you wrote below.  the page will stop downloading, including the
images that havn't finished.

Jim
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'Martin Hughes'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 3:05 PM
Subject: RE: [PHP] JavaScript & php question - mainly JS though so slightly
OT but hep needed!!! :o)


> if you have lots of links, then doing it this way, IMO, would be
> easier/better - so:
> 
>  function windowPopup(xx) { window.open("info.php?patch="+xx, "_new",
> "windowattribs"); }
> 
>
> but if there's only a few links, then placing the window.open code in the
> link would be easiest, i think.
>
> -Original Message-
> From: Martin Hughes [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 9:54 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] JavaScript & php question - mainly JS though so slightly
> OT but hep needed!!! :o)
>
>
> How could I write the function windowPopup(XX) where XX is a variable that
> can change from link to link, for a popup info window to load a php file
> with the variable XX in the url?
>
> So the link would look like:
> Link Text
>
> and I want that link to open the page info.php?patch=XX in a new popup
> window
>
> Do I do it something like this, or is there a faster/better way??
>
> Cheers & Merry X-Mas!
>
> Martin
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Martin Towell

if you have lots of links, then doing it this way, IMO, would be
easier/better - so:

 function windowPopup(xx) { window.open("info.php?patch="+xx, "_new",
"windowattribs"); }


but if there's only a few links, then placing the window.open code in the
link would be easiest, i think.

-Original Message-
From: Martin Hughes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] JavaScript & php question - mainly JS though so slightly
OT but hep needed!!! :o)


How could I write the function windowPopup(XX) where XX is a variable that
can change from link to link, for a popup info window to load a php file
with the variable XX in the url?

So the link would look like:
Link Text

and I want that link to open the page info.php?patch=XX in a new popup
window

Do I do it something like this, or is there a faster/better way??

Cheers & Merry X-Mas!

Martin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



[PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Martin Hughes

How could I write the function windowPopup(XX) where XX is a variable that
can change from link to link, for a popup info window to load a php file
with the variable XX in the url?

So the link would look like:
Link Text

and I want that link to open the page info.php?patch=XX in a new popup
window

Do I do it something like this, or is there a faster/better way??

Cheers & Merry X-Mas!

Martin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Javascript & php / need help

2001-11-09 Thread Morten Winkler Jørgensen



x> The problem is, i need a javascript which i can write into the database,
x> which on the oher side can read out a php SESSION. Is this possible?
x> Yes? how?

Javascript in browser
php on server

Pass varibales from javascript -> php via urls and forms
Pass varibales from php -> javascript via echo's





-- 
Kind regards,
  Morten Winkler



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Javascript & php / need help

2001-11-09 Thread xrichx

The problem is, i need a javascript which i can write into the database,
which on the oher side can read out a php SESSION. Is this possible?
Yes? how?

It's for a navigation bar wich gets the names of links in the navigation
bar out of the database, and i have a SESSION where he writes in, the
name of the guy wich is logged in, so i want to make a link in the menu
bar with his name! I hope this eyplains my problem a little bit. If u
need more details to help me please contact me at [EMAIL PROTECTED]
Thanks!

[
mysql
php4
iis
win2k
]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] JavaScript, PHP cooperation.

2001-09-09 Thread Alexander Deruwe

Hewwo,

When selecting a value from a combobox, I always have a link that allows 
adding a record to the table the combobox pulls it's data from. Here is my 
problem:

Is it possible in any way to window.open() a popup window (JavaScript), fill 
in a record, add it to the database (PHP) and then reload the caller page so 
that the just added record appears in the combobox where the user can select 
it for completing the file? Or add it to the combobox manually with 
JavaScript to avoid a reload?

Alexander Deruwe.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Javascript & php

2001-03-01 Thread Jason Jacobs

Not exactly.  I mean, like I said, you can execute a script as the action,
but if you have output generated by the script, a redirect using header() or
a javacsript redirect won't work (I think).  You could either write all of
the output (don't ask me how, but I'm sure it's possible) to a file,
redirect, and then output the file you wrote, or what I would probably do
myself is make a link saying "continue" to the page you want the user
redirected to.

But, no, you can't execute PHP code with a button (or any form element) that
I'm aware of, and as far as I know without submitting the form.

Jason

- Original Message -
From: kaab kaoutar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, March 01, 2001 1:00 PM
Subject: [PHP] Javascript & php


>
> Thanks!
> Does it mean that there is no way to execute a php statement
> after the click of a button ? then go to the other page mentionned in the
> form action ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Javascript & php

2001-03-01 Thread kaab kaoutar


Thanks!
Does it mean that there is no way to execute a php statement
after the click of a button ? then go to the other page mentionned in the 
form action ?



>From: "Johnson, Kirk" <[EMAIL PROTECTED]>
>To: "'kaab kaoutar'" <[EMAIL PROTECTED]>
>Subject: RE: [PHP] plese help!
>Date: Thu, 1 Mar 2001 10:47:58 -0700
>
>Jason Jacobs has the right idea. Put the PHP code that you want to run in a
>2nd file, for example, myScriptFile.php. Put this file name in the "ACTION"
>attribute of your  tag in your first file. Then, when the user clicks
>the "Submit" button in the first file, myScriptFile.php gets executed.
>
>Say your first file is named myForm.php and it contains the . In this
>file put:
>
>
>
>
>Put your PHP code in the file named myScriptFile.php.
>
>You see, you have to hit the server again to run the PHP code. If you want
>the code to run in *real time without leaving the first page* (myForm.php),
>you need to use JavaScript to do that.
>
>
>-Original Message-
>From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 01, 2001 10:23 AM
>To: Johnson, Kirk
>Subject: RE: [PHP] plese help!
>
>
>I don't get what u mean !
>i know that one is client side and the other server side!
>
>
> >From: "Johnson, Kirk" <[EMAIL PROTECTED]>
> >To: "'kaab kaoutar'" <[EMAIL PROTECTED]>
> >Subject: RE: [PHP] plese help!
> >Date: Thu, 1 Mar 2001 10:01:47 -0700
> >
> >Not without hitting the server!
> >
> >PHP works on the server side, JavaScript works on the client side.
> >
> >-Original Message-
> >From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, March 01, 2001 9:59 AM
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] plese help!
> >
> >
> >Hi!
> >please i'm really in need of knowing if there is a way to do a php
> >statement
> >
> >once a button is clicked!

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript, PHP and HTML

2001-02-02 Thread kaab kaoutar


hi!
if u wanna use javascript the code should be added in html!
but it's better to use php for checking date and hour !
As long  as u use php technologie get rid of these client side stuff till 
it's necessary!

cheers

>From: Augusto Cesar Castoldi <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] JavaScript, PHP and HTML
>Date: Fri, 2 Feb 2001 09:16:00 -0200 (EDT)
>
>I have a .html page, that is "called" (openfile)  by .php script. I did
>that to the designer have more freedon.
>
>But know I want to but an JavaScript to verify if a date/hour is a valid
>format for MySQL.
>
>Where should I put the JavaScript? In .php or .html?
>
>Or I should check the date and hour on .php script?
>
>thanks,
>
>Augusto Cesar Castoldi
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript, PHP and HTML

2001-02-02 Thread Juan

ACC> But know I want to but an JavaScript to verify if a date/hour is a valid
ACC> format for MySQL.
ACC> Where should I put the JavaScript? In .php or .html?
Well you could actually put it in both, although it is easier to put
it the html since it avoids too much embeding.

ACC> Or I should check the date and hour on .php script?
It also depends.
The good thing about checking it with javascript is
that you are on the client side, therefore there are no query sent to
your server. If you use Javascript that also means the user doesn't
get sent to a page checking validity.
If you check it with Php that means the information is submitted to
the page and you treat it afterwards.

___
Massuelles Jean-Baptiste([EMAIL PROTECTED])
Société A Comme...
Tel : 03 80 700 702



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] JavaScript, PHP and HTML

2001-02-02 Thread Augusto Cesar Castoldi

I have a .html page, that is "called" (openfile)  by .php script. I did
that to the designer have more freedon.

But know I want to but an JavaScript to verify if a date/hour is a valid
format for MySQL.

Where should I put the JavaScript? In .php or .html?

Or I should check the date and hour on .php script?

thanks,

Augusto Cesar Castoldi


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] JavaScript/PHP Function -> Apache/IIS5 -> Client Properties

2001-01-27 Thread [ rswfire ]

Jonathon,

I believe I have found the cause of the problem...  But first let me explain 
what I am doing better.

Yes, I am trying to gather as many stats from the client as possible.  
Before a page is display, many classes are initialized.  This particular 
class is the session class.  After it retrieves all of the client 
properties, a session is created.  If they don't have JavaScript, there's 
not much I can do, so I just use "basic settings" and give them a session.

This is done transparently.  It creates this temporary file and then reloads 
the page with the long URI.  This time the session class retrieves all of 
the properties and does put them into a database.  Then, sets the session 
id.  Then, it reloads the page again, getting rid of the long URI and just 
leaving the session id in the URI.

Well, here's where the problem appears to be.  I believe the CGI version of 
PHP on Apache is trying to parse the page as a PHP file.  Even though it is 
a simple HTML file.  Below is the HTML that is produced from the previous 
code:

[ Swift eNetwork ] eNetWizard : Determining Client 
Propertiesfunction 
GetProperties(){window.location.replace("<A  HREF="http://swifte.dev:8080/php/php.exe?ENETWIZARD_GETCLIENT=TRUE&cName=">http://swifte.dev:8080/php/php.exe?ENETWIZARD_GETCLIENT=TRUE&cName=</A>"+escape(navigator.appName)+"&cCodeName="+escape(navigator.appCodeName)+"&cVersion="+escape(navigator.appVersion)+"&cPlatform="+escape(navigator.platform)+"&cLanguage="+escape(navigator.language)+"&cJavaEnabled="+escape(navigator.javaEnabled())+"&cAvailHeight="+escape(screen.availHeight)+"&cAvailWidth="+escape(screen.availWidth)+"&cColorDepth="+escape(screen.colorDepth)+"&cHeight="+escape(screen.height)+"&cWidth="+escape(screen.width)+"&cPixelDepth="+escape(screen.pixelDepth));} 

Notice the swifte.dev:8080 --> After that is /php/php.exe -- I hate this.  
That should not be there and the filename is not there either.  So of course 
it's having a problem.  I did a check on phpinfo() and the variable 
$SCRIPT_NAME is set to /php/php.exe.  The only other variables that have the 
filename are REQUEST_URI and PATH_INFO.  But I'm still getting the same 
problem.

I don't exactly understand your code below.  First of all, I do not want to 
use cookies at all - not anywhere on my network.  Too much controversy.  So 
I take advantage of the database in that respect.  Secondly, does the code 
example below automatically submit itself??  I've never seen that done 
before...

Robert




>From: "Jonathan Sharp" <[EMAIL PROTECTED]>
>To: "[ rswfire ]" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: RE: [PHP] JavaScript/PHP Function -> Apache/IIS5  ->  Client 
>Properties
>Date: Sat, 27 Jan 2001 17:47:05 -0800
>
>Hm...I'm not sure I completely understand...but I believe that you're 
>trying
>to gather as many stats from the client as possible?
>
>What about having a page that is somewhat transparent to the user (if they
>support JS) that you have something like this...
>
>
>function GetProperties()
>{
>   document.theform.cVersion.value = navigator.appVersion;
>   etc...
>   document.theform.submit();
>}
>
>
>
>
>   
>
>
>Welcome to my beautiful site! One moment please...
>
>
>Then you'd have mainpage.php checkthrough all those values, and possibly
>dump them into a DB and create a SESSIONID which each page thereafter uses
>the sessionid to lookup the client settings from the db and build the page
>based upon that? Depending on how long it takes to set all the hidden 
>fields
>and submit the form, it might even be transparent to the user...or...you
>might just have a generic front page if no session id is set and popup
>window that has all that java script and say something line "Customizing 
>for
>YOU!" and then have that page POST to itself and then have the window close
>it self (and you've set a cookie with the session id of course) so then 
>each
>page that he visits thereafter has the session id set. And you can 
>customize
>for him/her...
>
>Cheers,
>-Jonathan Sharp
>
>Director of Technology - Imprev Inc.
>Renwick Development Group - Flyerware
>http://www.flyerware.com/
>Phone: (425)688-9200
>Cell: (425)766-1398
>EPage: [EMAIL PROTECTED]
>
>
>-Original Message-
>From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, January 27, 2001 5:25 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] JavaScript/PHP Function -> Apache/IIS5 -> Client
>Properties
>
>
>I need to get a who

RE: [PHP] JavaScript/PHP Function -> Apache/IIS5 -> Client Properties

2001-01-27 Thread Jonathan Sharp

Hm...I'm not sure I completely understand...but I believe that you're trying
to gather as many stats from the client as possible?

What about having a page that is somewhat transparent to the user (if they
support JS) that you have something like this...


function GetProperties()
{
document.theform.cVersion.value = navigator.appVersion;
etc...
document.theform.submit();
}







Welcome to my beautiful site! One moment please...


Then you'd have mainpage.php checkthrough all those values, and possibly
dump them into a DB and create a SESSIONID which each page thereafter uses
the sessionid to lookup the client settings from the db and build the page
based upon that? Depending on how long it takes to set all the hidden fields
and submit the form, it might even be transparent to the user...or...you
might just have a generic front page if no session id is set and popup
window that has all that java script and say something line "Customizing for
YOU!" and then have that page POST to itself and then have the window close
it self (and you've set a cookie with the session id of course) so then each
page that he visits thereafter has the session id set. And you can customize
for him/her...

Cheers,
-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]


-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] JavaScript/PHP Function -> Apache/IIS5 -> Client
Properties


I need to get a whole bunch of client properties from a visitor on my site
before a page is displayed.  I do this using JavaScript.  I first determine
if the visitor's browser supports JavaScript, and if it does I run a
function that basically builds a temporary page and returns a bunch of
client properties for me.

Here's the code:

if ($Browser_JavaScriptOK == TRUE)
{

echo "";
echo "";
echo "[ Swift eNetwork ] eNetWizard : 
Determining Client
Properties";
echo "";
echo "function GetProperties()";
echo "{";
echo
"window.location.replace(\"http://".$GLOBALS["HTTP_HOST"].$GLOBALS["SCRIPT_N
AME"]."?ENETWIZARD_GETCLIENT=TRUE&cName=\"+escape(navigator.appName)+\"&cCod
eName=\"+escape(navigator.appCodeName)+\"&cVersion=\"+escape(navigator.appVe
rsion)+\"&cPlatform=\"+escape(navigator.platform)+\"&cLanguage=\"+escape(nav
igator.language)+\"&cJavaEnabled=\"+escape(navigator.javaEnabled())+\"&cAvai
lHeight=\"+escape(screen.availHeight)+\"&cAvailWidth=\"+escape(screen.availW
idth)+\"&cColorDepth=\"+escape(screen.colorDepth)+\"&cHeight=\"+escape(scree
n.height)+\"&cWidth=\"+escape(screen.width)+\"&cPixelDepth=\"+escape(screen.
pixelDepth));";
echo "}";
echo "";
echo "";
echo " ";
echo "";
echo "";
exit;

}


This code is run and then goes back to the calling page with all of the
variables.  I then process the variables and put them into a class and build
the page.

This works on IIS5, but when I try to do this on Apache, it freezes up and
after a time comes back with an error message saying PHP.EXE did something
wrong and will be closed.

Can anyone tell me what is happening?  Do you know of any other way to
reliably return client properties?

Thankz...
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] JavaScript/PHP Function -> Apache/IIS5 -> Client Properties

2001-01-27 Thread [ rswfire ]

I need to get a whole bunch of client properties from a visitor on my site 
before a page is displayed.  I do this using JavaScript.  I first determine 
if the visitor's browser supports JavaScript, and if it does I run a 
function that basically builds a temporary page and returns a bunch of 
client properties for me.

Here's the code:

if ($Browser_JavaScriptOK == TRUE)
{

echo "";
echo "";
echo "[ Swift eNetwork ] eNetWizard : 
Determining Client 
Properties";
echo "";
echo "function GetProperties()";
echo "{";
echo 
"window.location.replace(\"http://".$GLOBALS["HTTP_HOST"].$GLOBALS["SCRIPT_NAME"]."?ENETWIZARD_GETCLIENT=TRUE&cName=\"+escape(navigator.appName)+\"&cCodeName=\"+escape(navigator.appCodeName)+\"&cVersion=\"+escape(navigator.appVersion)+\"&cPlatform=\"+escape(navigator.platform)+\"&cLanguage=\"+escape(navigator.language)+\"&cJavaEnabled=\"+escape(navigator.javaEnabled())+\"&cAvailHeight=\"+escape(screen.availHeight)+\"&cAvailWidth=\"+escape(screen.availWidth)+\"&cColorDepth=\"+escape(screen.colorDepth)+\"&cHeight=\"+escape(screen.height)+\"&cWidth=\"+escape(screen.width)+\"&cPixelDepth=\"+escape(screen.pixelDepth));";
echo "}";
echo "";
echo "";
echo " ";
echo "";
echo "";
exit;

}


This code is run and then goes back to the calling page with all of the 
variables.  I then process the variables and put them into a class and build 
the page.

This works on IIS5, but when I try to do this on Apache, it freezes up and 
after a time comes back with an error message saying PHP.EXE did something 
wrong and will be closed.

Can anyone tell me what is happening?  Do you know of any other way to 
reliably return client properties?

Thankz...
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript/PHP documentation

2001-01-11 Thread Richard Lynch

I *think* the JavaScript (and DHTML and whatnot) utilize server-side code to
detect your browser and come up with different code.

The alternative is to crash some browsers, which is not so nice. :-^

I think some complaints were even received at php.net from other webmasters
who stole the site wholesale and then wrote to complain that it crashed
other browsers.  Go Figure. But this all goes back a ways, so might not be
true any more.

So, you'd essentially need to walk the site with your browser as user_agent
to get the *right* HTML/JavaScript/etc, or essentially mirror the whole
thing with PHP and database and all -- Not sure what the current legalities
of either of those options are.

- Original Message -
From: Neil Zanella <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Thursday, January 11, 2001 1:48 PM
Subject: [PHP] JavaScript/PHP documentation


>
> Hello,
>
> I have noticed that while the JavaScript/PHP documentation looks much
> nicer only an HTML version of the PHP documentaion is distributed.
> I would like to know whether it would be possible to obtain the
> original much more pleasant to read JavaScript/PHP documentation
> so that users may install a copy on their local hard drive and browse
> the pretty documentation while offline.
>
> Thanks,
>
> Neil
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] JavaScript/PHP documentation

2001-01-11 Thread Neil Zanella


Hello,

I have noticed that while the JavaScript/PHP documentation looks much
nicer only an HTML version of the PHP documentaion is distributed.
I would like to know whether it would be possible to obtain the
original much more pleasant to read JavaScript/PHP documentation
so that users may install a copy on their local hard drive and browse
the pretty documentation while offline.

Thanks,

Neil


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]