PDA

View Full Version : Strange error in IE with drag drop shopping cart



beezleboss
April 7th, 2010, 09:49 AM
Hi,

This is for a uni project so I don't want anyone to do the work for me but I have a problem that is driving me crazy.

I'm using javascript to create a clone of an object when a user clicks on it which allows them to drag it around and then (if they choose) drop it in a shopping cart where it gets added to a mysql database using php.

It works perfectly (or, exactly how i would expect it to at least) in Firefox but Internet Explorer is having some trouble with it. It's adding one item to the cart and then no subsequent instances of that item e.g. I can add one of something but not two. I guess this means the the php function isn't being properly called but I can't figure out why and the only error I'm getting is 'object required on line 29' but I do a check to make sure the object it's referring to exists before calling the code on line 29.

Here is a link to the page, have a look at it in Firefox first so you can see what I want to happen, then IE to see what it's doing:

http://itsuite.it.brighton.ac.uk/os31/yr2_ass2/

and my script can be found at:

http://itsuite.it.brighton.ac.uk/os31/yr2_ass2/script.js

Once again, if someone could just point me in the right direction I'd really appreciate it, I don't want you to do the work for me.

Thanks

Ollie

EDIT: In case it helps, I have tried this on Internet Explorer 7 and 8, and on Firefox 3.5.x and 3.6.x