Closed Bug 286220 Opened 20 years ago Closed 20 years ago

dragdrop script is not working in DressingRoom page

Categories

(Tech Evangelism Graveyard :: English Other, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 286211

People

(Reporter: viragjain, Assigned: justdave)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: 

In the page at 
http://www.fashional.be/clients/authorizedforms/frmDressingroom.aspx, the drag 
script for dragging the object are not working in any browser except Internet 
explorer.


Reproducible: Always

Steps to Reproduce:
1.If new user comes to the site, from new user sign up page create a new 
account and redirected to home page
2.Select the create model page and creates the model with this model u r 
redirected to dressing room page
3.In this page for try on outfits on created model drag the outfit on model.

Actual Results:  
Other than Internet Explorer this drag drop script doesn't work properly



Expected Results:  
It should be compatible with the other browsers as well


Code for drag drop which is not work in Mozilla and Netscape7.1.
//==========================================================================

function move()
			{
				if (event.button==1&&dragapproved)
				{
					document.all("txtDragDrop").value = 
true
					ImageMove=true
					z.style.pixelLeft=temp1+event.clientX-x
					z.style.pixelTop=temp2+event.clientY-y
					return false
				}	
			}
			
			function drags()
			{
				if (!document.all)
				{
					return
				}
				if (event.srcElement.className=="drag")
				{
					dragapproved=true
					z=event.srcElement
					temp1=z.style.pixelLeft
					temp2=z.style.pixelTop
					x=event.clientX
					y=event.clientY
					document.onmousemove=move
				}	
			}
			document.onmousedown=drags
			document.onmouseup=new Function("dragapproved=false")

*** This bug has been marked as a duplicate of 286211 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Component: bugzilla.org → English Other
Product: Bugzilla → Tech Evangelism
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.