473,803 Members | 3,913 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send dragable image 'to the back'

2 New Member
Hi, i have a div with overflow set to hidden. I place an image larger than the div inside the div and the edges are 'chopped off'

The problem is when I add a dragpanelextend er OR a javascript drag function(wz_dra gdrop) to the image, the image edges are no longer hidden, it's like the image has left the div entirely.

I'm basically implementing a map and this is the panning function like google maps where you can drag the image around with the mouse, but obviously the 'map' must stay inside its container, ie 'at the back'

Thanks
Any help would be appreciated
May 18 '07 #1
3 1457
iam_clint
1,208 Recognized Expert Top Contributor
place the drag option onto the div and not the Image this may be causing your issue.
May 18 '07 #2
pally546
2 New Member
place the drag option onto the div and not the Image this may be causing your issue.
If that worked, it would drag the div- the div is the container and I need the image inside to be dragged around without leaving the div.

I've tried with panels and divs, I need a placeholder that I can essentially 'assign' the image to so it cannot leave it even when dragged.
May 18 '07 #3
mrhoo
428 Contributor
I find it easiest to simply change the clip region as the mouse moves, to pan an image contained as a clipped region of a larger image.

Dragging works best if the dragged object is smaller than its container.
May 19 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
1452
by: Tom Szabo | last post by:
Hi, I am wondering if it is possible to send/ submit something to a server and not to update the page. Considering a large page, when the user clicks on an item, I like to send a message to the server but not change the page, so the large amount of code doesn't have to be retransmitted back to the browser but the database would be updated. Is this possible at all?
3
2147
by: Jordan Gomila | last post by:
Hi, I wish to get the pixels os an image to transform it. There is any posibility to do this with javascript ? I have done with java, but I can't load web images from other http servers, can I send the data of the image to the applet ?
7
11645
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an OpenFileDialog: Dim result As DialogResult = Pic_Sel.ShowDialog() If (result = DialogResult.OK) Then
5
1725
by: AAVarda | last post by:
Hi, I have a device that scan's a doc and send's the doc image back. Below is the function in API to get the Image: ULONG MTMICRGetImage ( char *pcDevName, char *pcImageID, char *pcBuffer, DWORD *pwdLength );
1
2392
by: sagar | last post by:
Hello friends, I am developing a AJAX based IM application. For this is need a Javascript Library to built iframe/div based dragable windows in a page. I will need multiple windows (for chat, offline users, online users) in the same page. Can some one suggest a Javascript library which can be used for my project.
2
4191
by: eSolTec, Inc. 501(c)(3) | last post by:
I'm looking for code samples to send a jpg image from a client machine to a host machine. Both have the same image picWindows picture container. I would like to be able to send the image on one machine to another machine as close to realtime as possible. Also, can someone point me a direction to find out how to transmit various field of information, i.e. listboxview, listbox, textbox, datagridview etc via .NET remoting. Everything I've...
4
1794
by: André | last post by:
Hi, I try to create and render a graphic among other objects like e.g. tables, labels, buttons. The tables are not a problem, neither the graphic. My problem is that i can't render both together. With the code below, i only see the graphic, nothing else (no table, label, button). How can i see the table and below the table, the graphic?
14
11930
by: eliss.carmine | last post by:
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first time using C# at all so I don't know if this is the "right" way to do it. I've already found out several times the way I was doing something was really inefficient and could reduce 10 lines of code with 2, etc. For reading, I am using a TcpClient and I call NetworkStream ns = client.GetStream(); to get a stream stream.Read(buffer, 0, buffer.Length);
6
1636
by: atram | last post by:
Hi, I am using 8 dragable textboxes. here the problem is focus of a dragable textbox, it is working fine in IE6 but it is not working in firefox. If i apply focus() then focus is working but i am loosing dragable feature. But i need both can any one help me plz to solve this problem.
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.