Re: [PHP] is this not possible?

2002-11-19 Thread Mark
I'd say you've already determined the simplest way to do it. 
When the page is generated by PHP, have it insert the 
necessary data into appropriate places in a javascript function.

When a user clicks the 'recharge' button, they are prompted for
the amount they wish to use to recharge, and then are shown another
javascript pop-up confirming the changes. The javascript function
then refreshes the calling page, with the appropriate values,
using one of the functions Ernest mentioned.

When you say "it can take sometime for this page load at times",
do you mean that all page requests take a while sometimes, or simply
that page because of the amount of data it shows, and certain processing
that needs to be done in order to display that page?

If it's the latter, then you could redirect the user to a much
simpler page for the purposes of recharging their card, and do away
with javascript completely (which means you don't have to worry
about people disabling javascript).

-Mark


- Original message -
From: "Jeff Bluemel" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Mon, 18 Nov 2002 17:24:52 -0700
Subject: Re: [PHP] is this not possible?

here's the URL if case somebody decides to look at it;

http://obi-wan.domintcom.com
user: guest
pass: domintcom

go to customer service, prepaid pin, and then look up 3077876962  -
activate, deactivate, and recharge

this is for customer service of prepaid phone cards.

now - when I reload this page to refresh the information sometimes it can
really take awhile.

I need to somehow get the information from the user on how much to
recharge
the pin for.  now, before I refresh the page I need to get how much the
user
wants to recharge, process the recharge, and then refresh the page that
all
of this started on.

I thought it would be the simplest if I could somehow use javascript to
prompt the user for a value, confirm if the user wants to recharge
x
pin for $xx.xx, recharge the pin, and then refresh the calling page so it
now reflects the new balance.

I don't want to refresh original page until this is all done because it
can
take sometime for this page load at times.

is everybody lost now?

"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 22:39 18.11.2002, Jeff Bluemel spoke out and said:
> [snip]
> >I'm been ignored on this question for 4-5 days now.  even if it is not
> >possible could somebody please verify this?
> >
> >is it possible to pass a variable from javascript directly to php WITHOUT
> >using either a link, or a form submit to pass the variables?  I've gotten
a
> >work around to call an image that's actually a php file, but run my
script,
> >and then return an image file.
> >
> >is this the only way?
> [snip]
>
> Generally spoken, yes - the browser needs to pass the data back to the
> server somehow.
>
> What are you really up to? Do you want to transmit data to the server
> without the user clicking on a link or a button?
>
> You can always use JavaScript to submit a form (even a hidden-only form),
> or to reload the document with the same or a different URL.
>
> URL-Reload:
>
> document.location.href = url;
>
> Form submit:
>
> document.forms[formname].submit();
>
>
> --
>>O Ernest E. Vogelsinger
>(\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>



-- 
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] is this not possible?

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 06:36, Jeff Bluemel wrote:
> well - now I understand why it is so difficult to make those 2 things work
> together.  it would be so much easier if php had some way of displaying an
> inputbox etc.

PHP can only output something, usually HTML, for the browser to 
interpret/display. If HTML can be used to display an inputbox then "so can 
PHP".

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

/*
The FALAFEL SANDWICH lands on my HEAD and I become a VEGETARIAN ...
*/


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




Re: [PHP] is this not possible?

2002-11-18 Thread Jeff Bluemel
here's the URL if case somebody decides to look at it;

http://obi-wan.domintcom.com
user: guest
pass: domintcom

go to customer service, prepaid pin, and then look up 3077876962  -
activate, deactivate, and recharge

this is for customer service of prepaid phone cards.

now - when I reload this page to refresh the information sometimes it can
really take awhile.

I need to somehow get the information from the user on how much to recharge
the pin for.  now, before I refresh the page I need to get how much the user
wants to recharge, process the recharge, and then refresh the page that all
of this started on.

I thought it would be the simplest if I could somehow use javascript to
prompt the user for a value, confirm if the user wants to recharge x
pin for $xx.xx, recharge the pin, and then refresh the calling page so it
now reflects the new balance.

I don't want to refresh original page until this is all done because it can
take sometime for this page load at times.

is everybody lost now?

"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 22:39 18.11.2002, Jeff Bluemel spoke out and said:
> [snip]
> >I'm been ignored on this question for 4-5 days now.  even if it is not
> >possible could somebody please verify this?
> >
> >is it possible to pass a variable from javascript directly to php WITHOUT
> >using either a link, or a form submit to pass the variables?  I've gotten
a
> >work around to call an image that's actually a php file, but run my
script,
> >and then return an image file.
> >
> >is this the only way?
> [snip]
>
> Generally spoken, yes - the browser needs to pass the data back to the
> server somehow.
>
> What are you really up to? Do you want to transmit data to the server
> without the user clicking on a link or a button?
>
> You can always use JavaScript to submit a form (even a hidden-only form),
> or to reload the document with the same or a different URL.
>
> URL-Reload:
>
> document.location.href = url;
>
> Form submit:
>
> document.forms[formname].submit();
>
>
> --
>>O Ernest E. Vogelsinger
>(\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>



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




Re: [PHP] is this not possible?

2002-11-18 Thread Jeff Bluemel
thanks David - I'll look over it...

Jeff
"David Rice" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Jeff:
>
> Brent Ashley has written some cool stuff to make asynchronous remote
> calls to server without client page refresh using javascript/iframe
> etc. There is a PHP version.
> Go to:
> http://www.ashleyit.com/rs/main.htm
> And click on the link:
> Javascript Remote Scripting (JSRS).
>
> It works for most browsers.
>
> HTH
>
> David
>
> On Monday, November 18, 2002, at 04:39 PM, Jeff Bluemel wrote:
>
> > I'm been ignored on this question for 4-5 days now.  even if it is not
> > possible could somebody please verify this?
> >
> > is it possible to pass a variable from javascript directly to php
> > WITHOUT
> > using either a link, or a form submit to pass the variables?  I've
> > gotten a
> > work around to call an image that's actually a php file, but run my
> > script,
> > and then return an image file.
> >
> > is this the only way?
> >
> >
> >
> > --
> > 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] is this not possible?

2002-11-18 Thread David Rice
Hi Jeff:

Brent Ashley has written some cool stuff to make asynchronous remote 
calls to server without client page refresh using javascript/iframe 
etc. There is a PHP version.
Go to:
http://www.ashleyit.com/rs/main.htm
And click on the link:
Javascript Remote Scripting (JSRS).

It works for most browsers.

HTH

David

On Monday, November 18, 2002, at 04:39 PM, Jeff Bluemel wrote:

I'm been ignored on this question for 4-5 days now.  even if it is not
possible could somebody please verify this?

is it possible to pass a variable from javascript directly to php 
WITHOUT
using either a link, or a form submit to pass the variables?  I've 
gotten a
work around to call an image that's actually a php file, but run my 
script,
and then return an image file.

is this the only way?



--
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] is this not possible?

2002-11-18 Thread Jeff Bluemel
well - now I understand why it is so difficult to make those 2 things work
together.  it would be so much easier if php had some way of displaying an
inputbox etc.

- Original Message -
From: "BigDog" <[EMAIL PROTECTED]>
To: "Jeff Bluemel" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 2:42 PM
Subject: Re: [PHP] is this not possible?


> No...
>
> Javascript need to send that data back to the server and how are you
> going to do that?
>
> You will have to use a form or a link or some method to send it to the
> server.
>
> Now you can use php to write your javascript code that can be used to
> link to a php file that can be run on the client side which will then
> access the server...
>
> but you are really talking about to things here server-side (php) and
> client-side (javascript)...
>
>
> On Mon, 2002-11-18 at 14:39, Jeff Bluemel wrote:
> > I'm been ignored on this question for 4-5 days now.  even if it is not
> > possible could somebody please verify this?
> >
> > is it possible to pass a variable from javascript directly to php
WITHOUT
> > using either a link, or a form submit to pass the variables?  I've
gotten a
> > work around to call an image that's actually a php file, but run my
script,
> > and then return an image file.
> >
> > is this the only way?
> --
> .: B i g D o g :.
>
>
>


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




Re: [PHP] is this not possible?

2002-11-18 Thread Ernest E Vogelsinger
At 22:39 18.11.2002, Jeff Bluemel spoke out and said:
[snip]
>I'm been ignored on this question for 4-5 days now.  even if it is not
>possible could somebody please verify this?
>
>is it possible to pass a variable from javascript directly to php WITHOUT
>using either a link, or a form submit to pass the variables?  I've gotten a
>work around to call an image that's actually a php file, but run my script,
>and then return an image file.
>
>is this the only way?
[snip] 

Generally spoken, yes - the browser needs to pass the data back to the
server somehow.

What are you really up to? Do you want to transmit data to the server
without the user clicking on a link or a button?

You can always use JavaScript to submit a form (even a hidden-only form),
or to reload the document with the same or a different URL.

URL-Reload:

document.location.href = url;

Form submit:

document.forms[formname].submit();


-- 
   >O Ernest E. Vogelsinger 
   (\) ICQ #13394035 
^ http://www.vogelsinger.at/



Re: [PHP] is this not possible?

2002-11-18 Thread rija

- Original Message -
From: "Jeff Bluemel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 8:39 AM
Subject: [PHP] is this not possible?


> I'm been ignored on this question for 4-5 days now.  even if it is not
> possible could somebody please verify this?
>
> is it possible to pass a variable from javascript directly to php WITHOUT
> using either a link, or a form submit to pass the variables?  I've gotten
a
> work around to call an image that's actually a php file, but run my
script,
> and then return an image file.

Try Header refresh or some java applet to send javascript variable without
user click something.


> is this the only way?
>
>
>
> --
> 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] is this not possible?

2002-11-18 Thread BigDog
No...

Javascript need to send that data back to the server and how are you
going to do that?

You will have to use a form or a link or some method to send it to the
server.

Now you can use php to write your javascript code that can be used to
link to a php file that can be run on the client side which will then
access the server...

but you are really talking about to things here server-side (php) and
client-side (javascript)...


On Mon, 2002-11-18 at 14:39, Jeff Bluemel wrote:
> I'm been ignored on this question for 4-5 days now.  even if it is not
> possible could somebody please verify this?
> 
> is it possible to pass a variable from javascript directly to php WITHOUT
> using either a link, or a form submit to pass the variables?  I've gotten a
> work around to call an image that's actually a php file, but run my script,
> and then return an image file.
> 
> is this the only way?
-- 
.: B i g D o g :.



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




Re: [PHP] is this not possible?

2002-11-18 Thread Leif K-Brooks
That, or an iframe.  You can't pass variables on the same request, though.

Jeff Bluemel wrote:


I'm been ignored on this question for 4-5 days now.  even if it is not
possible could somebody please verify this?

is it possible to pass a variable from javascript directly to php WITHOUT
using either a link, or a form submit to pass the variables?  I've gotten a
work around to call an image that's actually a php file, but run my script,
and then return an image file.

is this the only way?



 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




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