[PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)

This might be a little bit JS and a little bit PHP.  I'm wondering if
there's an easy way to refresh a PHP page on an onClick and change one
parameter (say someone wants to redraw the graph, but with the points).  I
don't want to pay attention to any of the other parameters that could have
changed on the screen (we've got a bunch of selects).  We had come up with a
really complicated way which involved changing the parameters to the most
recent line drawn, deleting the most recent line, and then submitting with
those parameters and the showPoints value changed, but that sounds pretty
complicated.
 
If anyone could come up with a quicker way that didn't involve the whole
submitting thing, that would be easier.  My page has all of the vars that
are necessary in hidden vars, and has HTML, PHP, and a handful of JS.
 
Thanks!
 
-Natalie
 

Natalie S. Leotta
Information Management Services, Inc.
(301) 680-9770
[EMAIL PROTECTED] 

 



Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings

Leotta, Natalie (NCI/IMS) wrote:
 
 This might be a little bit JS and a little bit PHP.  I'm wondering if
 there's an easy way to refresh a PHP page on an onClick and change one
 parameter (say someone wants to redraw the graph, but with the points).  I
 don't want to pay attention to any of the other parameters that could have
 changed on the screen (we've got a bunch of selects).  We had come up with a
 really complicated way which involved changing the parameters to the most
 recent line drawn, deleting the most recent line, and then submitting with
 those parameters and the showPoints value changed, but that sounds pretty
 complicated.
 
 If anyone could come up with a quicker way that didn't involve the whole
 submitting thing, that would be easier.  My page has all of the vars that
 are necessary in hidden vars, and has HTML, PHP, and a handful of JS.

You wouldn't happen to have a demo would you? A visualization
would help me a lot.

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Kevin Stone

I'm not certain I understand your situation.  If you're trying to keep state
between each new input then I would recommend PHP sessions to store your
variables. Could you elaborate more what you're trying to do?
-Kevin

- Original Message -
From: Leotta, Natalie (NCI/IMS) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 16, 2002 1:48 PM
Subject: [PHP] refreshing PHP on onClick


 This might be a little bit JS and a little bit PHP.  I'm wondering if
 there's an easy way to refresh a PHP page on an onClick and change one
 parameter (say someone wants to redraw the graph, but with the points).  I
 don't want to pay attention to any of the other parameters that could have
 changed on the screen (we've got a bunch of selects).  We had come up with
a
 really complicated way which involved changing the parameters to the most
 recent line drawn, deleting the most recent line, and then submitting with
 those parameters and the showPoints value changed, but that sounds pretty
 complicated.

 If anyone could come up with a quicker way that didn't involve the whole
 submitting thing, that would be easier.  My page has all of the vars that
 are necessary in hidden vars, and has HTML, PHP, and a handful of JS.

 Thanks!

 -Natalie


 Natalie S. Leotta
 Information Management Services, Inc.
 (301) 680-9770
 [EMAIL PROTECTED]






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




RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)

It's all in a password protected site because the data's all confidential at
this point in time, but I can give you a mental picture.  

There are a bunch of dropdowns - State, Cancer, Sex, Race, Age.  We're
drawing a graph of best fit lines - up to 5 allowed on the graph, then we
start over replacing them.  We don't draw the actual data points unless the
user clicks on a checkbox.  They want that checkbox to be instant
gratification, without making the user refresh.  I just want a way to make
it do the refresh (and let me change that one variable, so it draws the
points or doesn't draw the points), but not a full submit because that would
add another line to the graph.

I'm sorry I can't send you the URL at this stage of the game.  it should be
up and running this summer though :-)

Thanks for any help you can give me!!

-Natalie

-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 3:56 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] refreshing PHP on onClick


Leotta, Natalie (NCI/IMS) wrote:
 
 This might be a little bit JS and a little bit PHP.  I'm wondering if 
 there's an easy way to refresh a PHP page on an onClick and change 
 one parameter (say someone wants to redraw the graph, but with the 
 points).  I don't want to pay attention to any of the other parameters 
 that could have changed on the screen (we've got a bunch of selects).  
 We had come up with a really complicated way which involved changing 
 the parameters to the most recent line drawn, deleting the most recent 
 line, and then submitting with those parameters and the showPoints 
 value changed, but that sounds pretty complicated.
 
 If anyone could come up with a quicker way that didn't involve the 
 whole submitting thing, that would be easier.  My page has all of the 
 vars that are necessary in hidden vars, and has HTML, PHP, and a 
 handful of JS.

You wouldn't happen to have a demo would you? A visualization would help me
a lot.

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings

Leotta, Natalie (NCI/IMS) wrote:
 
 It's all in a password protected site because the data's all confidential at
 this point in time, but I can give you a mental picture.
 
 There are a bunch of dropdowns - State, Cancer, Sex, Race, Age.  We're
 drawing a graph of best fit lines - up to 5 allowed on the graph, then we
 start over replacing them.  We don't draw the actual data points unless the
 user clicks on a checkbox.  They want that checkbox to be instant
 gratification, without making the user refresh.  I just want a way to make
 it do the refresh (and let me change that one variable, so it draws the
 points or doesn't draw the points), but not a full submit because that would
 add another line to the graph.

Since you're already using javascript... you could try generating 2 images
at the same time, one with the data points drawn, the other without, then using
the same technology as for javascript rollovers, you could replace the image
when the onClick event is caught. Instant gratification, and no messy varable
replacements.

 I'm sorry I can't send you the URL at this stage of the game.  it should be
 up and running this summer though :-)

No problem, completely understandable :)

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)

This sounds like it might work.  Thanks for your help!!  I knew there had to
be a better way than what my coworkers came up with :-)

-Natalie

-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 4:09 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] refreshing PHP on onClick


Leotta, Natalie (NCI/IMS) wrote:
 
 It's all in a password protected site because the data's all 
 confidential at this point in time, but I can give you a mental 
 picture.
 
 There are a bunch of dropdowns - State, Cancer, Sex, Race, Age.  We're 
 drawing a graph of best fit lines - up to 5 allowed on the graph, then 
 we start over replacing them.  We don't draw the actual data points 
 unless the user clicks on a checkbox.  They want that checkbox to be 
 instant gratification, without making the user refresh.  I just want a 
 way to make it do the refresh (and let me change that one variable, so 
 it draws the points or doesn't draw the points), but not a full submit 
 because that would add another line to the graph.

Since you're already using javascript... you could try generating 2 images
at the same time, one with the data points drawn, the other without, then
using the same technology as for javascript rollovers, you could replace the
image when the onClick event is caught. Instant gratification, and no messy
varable replacements.

 I'm sorry I can't send you the URL at this stage of the game.  it 
 should be up and running this summer though :-)

No problem, completely understandable :)

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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