You can always make a widget as a flash and then using the flash 
actionscript to get and set information from the php/server side.

I know that isn't easy to do but... from what i've seen, it is the 
easier thing to do without resorting to use a frameset and reloading the 
document of the "hidden" frame... (well actionscript is almost like 
javascript and is way simplier then making a java applet or a clientside 
ActiveX).

For ways to do this check:

http://www.macromedia.com/support/flash/ts/documents/tn4160.html

This explains how to use javascript to control the flash object...

As for the flash connecting to the server... you can check the functions:

loadVariables [and more - prefered method of comunication between pages 
and flash due to security...]
getURL()


For flash to execute javascript inside the page where it is droped:

getURL("javascript:someFunction('blue sky');"); // and so delivering 
data to javascript...

Well the possibilities are way too vast ;)

Hope that helps...

Cheers,
Luis Ferro


Tomator wrote:

>>i want an onlick event to call a php function.  is this
>>possible in the same way that javascript permits
>>onlclick="someFuntion(arg)" ?
>>    
>>
This someFunction will have to exist also in javascript... and then this 
function can do the magic...

>PHP is server-side scripting language and you can't call php function like
>functions of JScript. However, you could generate by PHP code of JScript and
>include it into HTML document. This JScript count then serve onclick events.
>If clicking items doesn't change anything at server-side it it good idea. If
>does, there may be needed reloading of this web page and then PHP modifies
>it.
>
>  
>
>>how else can i call a php function which adds an item
>>to array via a text link?
>>
>>    
>>
>
>If array ist stored at server-side update it with PHP. To send data via text
>link use GET method, which encodes all data in URL, such like this:
>http://www.somewhere.com/mygreatscript.php?username=BillyG
>If you want to make such links dynamically, do not forget to urlencode()
>content of variables (like $username in example above):
>echo "<A HREF=\"http://www.somewhere.com/mygraetscript.php?username="; .
>urlencode($username) . "\">"
>
>  
>
>>also does php have variables corresponding to the
>>document object model DOM, particularly i'm interested
>>in changing css positioning properties.
>>
>>    
>>
>
>As server-side script, PHP does not have any objects, layers or anything
>dependent on browser... Its executed at server so if you want to change
>position in CSS you can but only while generating HTML code. If you want to
>do it later, use JScript or something.
>
>  
>
You can of course make a template system that mimicks the server site 
forms as with .net... but remember... that is just a cute little hack, 
not particulary "inovative" IMHO...


>
>  
>


Reply via email to