PDA

View Full Version : Drag able elements script.



Chris Mac
10-21-2004, 07:10 PM
Drag able elements script. (http://www.dynamicdrive.com/dynamicindex4/image3.htm)

I administer a football supporters site and have been looking for something to make it a little more interactive.

When watching football every one of us thinks we can do better so what i would lke to be able to do is have a football pitch and allow the user to describe what should have happened.

With this in mind I have got a picture of the park, taken all our players and taken jpegs of their heads and used the script to make them dragable. It works very well.

Now to make this usable I have to find a way of making the items stick when they are moved on to the pitch, at the present time once the page is refreshed everything goes back to the initial set up.

Can anything be done?

Chris Mac
10-25-2004, 09:06 AM
I take it I'm on my own with this one, back to the drawing board then

cr3ative
10-25-2004, 09:20 AM
The only way to save the coordinates would be with cookies, but I'm no expert there. :)

I'm sure if we did a lot of research it could be done.


cr3ative

ddadmin
10-27-2004, 02:42 AM
Unfortunately this would be a rather big project just on its own, as cr3ative mentioned.

Chris Mac
10-27-2004, 10:26 AM
Ok guys thanks for having a look for me

Gray
06-25-2005, 06:14 AM
Hey um...i'm new here but have been toying with DymanicDrive's scripts for soem time. i'd just like to know why when i place the drag element onto a php page, say on phpBB which i did..., why does it cause an error? the float left script (also from DynamicDrive) seems to work. so does the expand script. but not the drag script...i'd love to have it worked out tho. so plz help asap! thx!
ps.: HAVE YOU SMILED TODAY? lol kidding...just i'm using this Q onto my site http://unlimitedinfinity.com

jscheuer1
06-25-2005, 06:38 AM
PHP pages often use scripts to save on the server for those times when the client can perform some of the tasks. If this is the case, it could be a conflict with one of those scripts. Also, if you already have another script on the page, that could be the source of trouble. Finally, if your server, as many do, puts its own scripts on your pages for ads or whatever, they could be the source of conflicts.

Gray
06-27-2005, 12:34 PM
heck u're not getting me. firstly let me rewrite my situation:
i placed a TAGBOARD with a expand content script i got frm DD; then i placed all that in the float menu script frm DD.
it seems when i minimize my content and scroll, it's perfect. But...wheh i have my content (note the content is a TAGBOARD with iframe and all) expanded and i scroll, the whole thing is supposed to follow me no? it doesn't. instead IE produces an error and you get that "send report // don't send" window. that causes me to close all my IE processes.
in other words, my IE hangs. why does this happen? is the float menu script not compatitable with an iframe? (i've done thing b4 but nothing untoward had happened, just taht this time the expand script was added) ALSO NOTE: i'm using a PHP page. note a phpBB generated page.
and ontop of all that, dragging simply doesn't seem to work...

jscheuer1
06-27-2005, 08:27 PM
OK, this sounds complicated. I opened the link from your post before and couldn't duplicate your error. I imagine you don't have the error prone code there anyway. Just thought I'd look. You mention a number of scripts. Just for clarity's sake, please list their names as shown on the page where you found them along with a link to each script's page. Also, a link to a live demo of the problem page (it can be just a test page) with instructions as to how to duplicate the error would be a great help.

I've got a question, are you trying to float a collapsible iframe? If so, is its content dynamically generated or its source dynamically changed or its source from another domain than the container page?

Gray
06-28-2005, 02:29 PM
well actually it's ok now. just taht somehow teh combo dodn't wnat to work with IE...it was perfect in Firefox *shrug* list tey codes? well...
http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
http://www.dynamicdrive.com/dynamicindex1/staticmenu.htm
plus a TAGBOARD (dynamic pages in an iFrame of course)
and the dragable script this thread is named