php-windows Digest 9 May 2005 05:15:26 -0000 Issue 2663

Topics (messages 25984 through 25987):

Re: Just a question, answer appreciated
        25984 by: Larry E. Ullman
        25985 by: Mike
        25986 by: M. Sokolewicz

How to setup the mail server so that I can use mail() function
        25987 by: ST Ooi

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
How do you increase to a counter without refreshing the whole page. For example if you check site www.gmail.com <http://www.gmail.com/> under “Don't throw anything away.” heading there is counter which is increasing (could be javascript magic) but other example is www.neopets.com <http://www.neopets.com/> where time (seconds) is changing without refreshing the whole page ( it is php script )

That would be JavaScript. This cannot be done with PHP.

Any link or hint or code will be welcome ( even comments ) ;)

You can see the code by viewing the source of the page.

Larry
--- End Message ---
--- Begin Message ---
> Hi list,
>  
> How do you increase to a counter without refreshing the whole 
> page. For example if you check site www.gmail.com 
> <http://www.gmail.com/>  under "Don't throw anything away." 
> heading there is counter which is increasing (could be 
> javascript magic) but other example is www.neopets.com 
> <http://www.neopets.com/>  where time (seconds) is changing 
> without refreshing the whole page ( it is php script )
>  
> Any link or hint or code will be welcome ( even comments ) ;) 
> Thanks in advance.
> salim
> 

This is all done through JavaScript/DHTML/CSS.

When you look at the Gmail site, view source and search for "Don't". You'll
come to the line that has the growing MB amount.

<span id=quota>Over 2000</span> megabytes (and counting) <snip>

So then if you search for "quota" you'll see a number of references to it
and other JavaScript functions that modify it in real time. 

I don't have any specific links to things, but there are tons of JavaScript
copy and paste type sites that give you code snippets to use. 

I didn't see anything like that on Neopets, but it could simply not work in
Firefox (and I admit I only spent about 30 seconds looking for it). 

But it's all JavaScript and such. 

Basic rule, if the page isn't refreshing at all, then it's probably all done
on the client-side. If it's done on the client-side, then it's not PHP since
that's all server-side. E.g., since nothing is being submitted to PHP, PHP
is completely ignorant to the fact that this is going on.

Hope that helps.

-M

--- End Message ---
--- Begin Message --- S.F. Alim wrote:
Hi list,
How do you increase to a counter without refreshing the whole page. For example if you check site www.gmail.com <http://www.gmail.com/> under âDon't throw anything away.â heading there is counter which is increasing (could be javascript magic) but other example is www.neopets.com <http://www.neopets.com/> where time (seconds) is changing without refreshing the whole page ( it is php script )
no it's not, it's all JS (JavaScript). Try looking trough the source
Any link or hint or code will be welcome ( even comments ) ;)
Thanks in advance.
salim



--- End Message ---
--- Begin Message ---
Hi,

How can I setup my mail server so that I can use mail() function in PHP? I'm running WindowsXP Pro.

Thanks

ST Ooi
--- End Message ---

Reply via email to