Page 1 of 1

dragging and dropping objects in PHP

Posted: Mon Mar 10, 2003 6:12 am
by thomas777neo
can you create visual objects in Php i.e. a BUTTON. Then manipulate that object visually.(e.g. drag it on to a text box, then the set property of that text box to the value of the button.

Posted: Mon Mar 10, 2003 6:26 am
by patrikG
No. PHP is server-side, like cold-fusion, ASP, Perl etc. You are thinking about a client-side language like Javascript.

With advanced knowledge and some extra-time and lines of code on your hands you can do what you describe in Javascript.

If you really intend to do it, check out the javascript-API that the "Dynamic Duo" and Dan Steinmann programmed along with others. I don't have the link handy, but if you search Google for one of the above names, you will get to their website.

Thanks

Posted: Mon Mar 10, 2003 6:30 am
by thomas777neo
thanks

i'll check it out


enjoy your day!

Posted: Mon Mar 10, 2003 6:32 am
by rodrigocaldeira
You can use PHP-GTK, but only to client-side programming.

Re: dragging and dropping objects in PHP

Posted: Mon Mar 10, 2003 3:24 pm
by BDKR
thomas777neo wrote:can you create visual objects in Php i.e. a BUTTON. Then manipulate that object visually.(e.g. drag it on to a text box, then the set property of that text box to the value of the button.
This has everything to do with tools. What you're talking about is a high end editor or RAD. To the best of my knowledge, at this time, there is nothing that does that particularly for PHP and desktop (read GUI) based apps. What I would suggest if you're a linux guy ( :!: ) is get familiar with Glade. Once you have your (GTK) UI setup, you can export your UI to xml and read that in from PHP. Yada yada yad.....

There are dedicated php-gtk sites out there. I'd check those out.

Cheers,
BDKR