dragging and dropping objects in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
thomas777neo
Forum Contributor
Posts: 214
Joined: Mon Mar 10, 2003 6:12 am
Location: Johannesburg,South Africa

dragging and dropping objects in PHP

Post 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.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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.
User avatar
thomas777neo
Forum Contributor
Posts: 214
Joined: Mon Mar 10, 2003 6:12 am
Location: Johannesburg,South Africa

Thanks

Post by thomas777neo »

thanks

i'll check it out


enjoy your day!
rodrigocaldeira
Forum Commoner
Posts: 27
Joined: Wed Mar 05, 2003 6:40 pm
Location: Brazil
Contact:

Post by rodrigocaldeira »

You can use PHP-GTK, but only to client-side programming.
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Re: dragging and dropping objects in PHP

Post 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
Post Reply