Re: [PHP-DB] functions via event handlers

2004-09-07 Thread Neil Smith [MVP, Digital media]
Or you could use XMLHTTP on the browser side (supported by IE and Mozilla 
variants)

You'd send a GET request to the page, it would return - often - an XML 
record set, or you can return text, and indeed you can even query page 
status codes from the client side.

The point is, you no longer need to unload the current page to get 
information form the server.
Useful examples here : http://jibbering.com/2002/4/httprequest.html

Cheers - Neil
At 11:09 07/09/2004 +, you wrote:
Message-ID: [EMAIL PROTECTED]
Date: Mon, 6 Sep 2004 19:55:51 -0400
From: Joseph Crawford [EMAIL PROTECTED]
Reply-To: Joseph Crawford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP-DB] functions via event handlers
the closest you could come is to make javascript functions call php
pages basically redirects that would call the php functions.


CaptionKit http://www.captionkit.com : Production tools
for accessible subtitled internet media, transcripts
and searchable video. Supports Real Player, Quicktime
and Windows Media Player.
VideoChat with friends online, get Freshly Toasted every
day at http://www.fresh-toast.net : NetMeeting solutions
for a connected world.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] functions via event handlers

2004-09-06 Thread Yemi Obembe
i'd just luv to ask if it is possibble to call a function in PHP by using event 
handlers (like onmouseover, onload) as done in javascript? if its possible, i'd 
appreciate someone to tutor me on it.



-

A passion till tomorrow,
www.opeyemi.tk





-
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

Re: [PHP-DB] functions via event handlers

2004-09-06 Thread Philip Thompson
Yemi,
On Sep 6, 2004, at 7:14 AM, Yemi Obembe wrote:
i'd just luv to ask if it is possibble to call a function in PHP by 
using event handlers (like onmouseover, onload) as done in javascript? 
if its possible, i'd appreciate someone to tutor me on it.

As far as I know, this is not possible. Since PHP is server-side 
scripting (not client-side like JavaScript), all the code-processing is 
done before it ever reaches the client's computer. Because of this, you 
will never be able to use the code via event handlers.

If anyone knows something different, please let me and Yemi know.
~Philip
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] functions via event handlers

2004-09-06 Thread Joseph Crawford
the closest you could come is to make javascript functions call php
pages basically redirects that would call the php functions.

-- 
Joseph Crawford Jr.
Codebowl Solutions
[EMAIL PROTECTED]
802-558-5247

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



Re: [PHP-DB] functions via event handlers

2004-09-06 Thread zareef ahmed
Hi, 

A small example

script language=javascript
function call_me()
{
window.location=script.php;
}
/script

div onmouseover=call_me() click me/div



If you are thinking about some live experience like
javascirpt with PHP you can go for flash and php.

In Flash Event calls php scripts and get the value
without reloading the flash movie.


Zareef Ahmed


--- Yemi Obembe [EMAIL PROTECTED] wrote:

 i'd just luv to ask if it is possibble to call a
 function in PHP by using event handlers (like
 onmouseover, onload) as done in javascript? if its
 possible, i'd appreciate someone to tutor me on it.
 
 
 
 -
 
 A passion till tomorrow,
 www.opeyemi.tk
 
 
 
 
   
 -
 Do you Yahoo!?
 Win 1 of 4,000 free domain names from Yahoo! Enter
now.


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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