CodeIgniter Forums
I have the weirdest ajax problem ever. (jQuery) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: I have the weirdest ajax problem ever. (jQuery) (/thread-10118.html)



I have the weirdest ajax problem ever. (jQuery) - El Forum - 07-18-2008

[eluser]loathsome[/eluser]
Hello there,

Check it out: http://zorg.no-ip.org/mindmonkey/post-online/
I'm creating a drag and drop system, so you can easily delete content. It looks like it works all right, but ONLY for some random entries (in this case the first one and "Controller system has been rewritten."). Drag and drop those to the trash can and see for yourself.

I have NO idea what causes this. The related javascript file can be found here:
http://zorg.no-ip.org/mindmonkey/post-online/java/admin_edit.js

I'd really appreciate some help on this!
Thanks!


I have the weirdest ajax problem ever. (jQuery) - El Forum - 07-19-2008

[eluser]Bramme[/eluser]
Everything seems to be working for me. But even if it wasn't. This a CI community. Your problem has NOTHING to do with CI. I suggest you post your problem on the google groups jquery account...


I have the weirdest ajax problem ever. (jQuery) - El Forum - 07-19-2008

[eluser]richthegeek[/eluser]
Nice that you are so friendly Bramme..

In Firefox 3.01 / Ubuntu 8.04 it works intermittently, either not at all (as described) or for most elements but the drop on some elements doesn't work if you drop the hand on the bin, you have to move it over a bit, so the hand is in the "What's up" bit..

Perhaps add some highlighting to the recycle bin (opacity based?) so that there is a visual clue as to when it will work.

Also, how are you calculating the collision with the bin? The mouseup event position within a certain distance of the bin?

Perhpas use the jQueryUI drag/drop?


I have the weirdest ajax problem ever. (jQuery) - El Forum - 07-19-2008

[eluser]Bramme[/eluser]
I'm sorry if I came over unfriendly. It's just that with a problem like this, I think loathsome would get much better and quicker answers at the google group, instead of here...

Even though jQuery is immensely popular and there's bound to be some people here who know it, this is still a PHP based community. I'd think you'd be better off asking JS questions in a JS community...


I have the weirdest ajax problem ever. (jQuery) - El Forum - 07-19-2008

[eluser]loathsome[/eluser]
What makes you say so, Bramme? I quote from the front page:

Quote:Use the forum to discuss anything related to programming and code development.

If this isn't related to programming or code development, I dont know.

@php_penguin: Thanks for your reply, I'm investigating it now. It seems like there are some troubles width the float and/or the width of each h4 Smile By the way, this IS the jQueryUI drag/drop.


I have the weirdest ajax problem ever. (jQuery) - El Forum - 07-20-2008

[eluser]thinkigniter[/eluser]
Try changing your doctype from

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">

to

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

and see if that makes a difference