473,378 Members | 1,138 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Javascript image proxy.

Hello,

Is there a way to change the image proxy of a scriptaculous Drag and
Drop element to be anything other than a clone of itself? (ie: image).
Thanks any clues will be appreciated,

M

Jun 3 '06 #1
3 1580

ma***********@gmail.com wrote:
Hello,

Is there a way to change the image proxy of a scriptaculous Drag and
Drop element to be anything other than a clone of itself? (ie: image).
Thanks any clues will be appreciated,

M


Hi Mateo,

I just posted a reply to a question about prototype.js. The main point
was to ask on the rails spinoffs list about this

http://lists.rubyonrails.org/mailman...rails-spinoffs

I almost completely rewrote the script.aculo.us dragdrop library and
gave up. It just seemed like a disaster.

Any chance you can switch to the Yahoo! UI dragdrop.js library. I have
been working with it a lot in the last couple weeks. It would be very
easy to do what you want with the Yahoo! UI library.

http://developer.yahoo.com/yui/dragdrop/

Peter

Jun 4 '06 #2
Thanks Peter, I will take a look at the yahoo lib.
I also tried to tincker with scriptaculous source to get this working
but it seemed like a pain.
I am also trying to do a Flex version of this feature but to my
surprise Flex can get just as hairy as js... intresting.

M.
pe**********@gmail.com wrote:
ma***********@gmail.com wrote:
Hello,

Is there a way to change the image proxy of a scriptaculous Drag and
Drop element to be anything other than a clone of itself? (ie: image).
Thanks any clues will be appreciated,

M


Hi Mateo,

I just posted a reply to a question about prototype.js. The main point
was to ask on the rails spinoffs list about this

http://lists.rubyonrails.org/mailman...rails-spinoffs

I almost completely rewrote the script.aculo.us dragdrop library and
gave up. It just seemed like a disaster.

Any chance you can switch to the Yahoo! UI dragdrop.js library. I have
been working with it a lot in the last couple weeks. It would be very
easy to do what you want with the Yahoo! UI library.

http://developer.yahoo.com/yui/dragdrop/

Peter


Jun 5 '06 #3

mateo.barr...@gmail.com wrote:
pe**********@gmail.com wrote:
ma***********@gmail.com wrote:
Hello,

Is there a way to change the image proxy of a scriptaculous Drag and
Drop element to be anything other than a clone of itself? (ie: image).
Thanks any clues will be appreciated,

M


Hi Mateo,

I just posted a reply to a question about prototype.js. The main point
was to ask on the rails spinoffs list about this

http://lists.rubyonrails.org/mailman...rails-spinoffs

I almost completely rewrote the script.aculo.us dragdrop library and
gave up. It just seemed like a disaster.

Any chance you can switch to the Yahoo! UI dragdrop.js library. I have
been working with it a lot in the last couple weeks. It would be very
easy to do what you want with the Yahoo! UI library.

http://developer.yahoo.com/yui/dragdrop/

Thanks Peter, I will take a look at the yahoo lib.
I also tried to tincker with scriptaculous source to get this working
but it seemed like a pain.
I am also trying to do a Flex version of this feature but to my
surprise Flex can get just as hairy as js... intresting.


With the yahoo ui you will do something like this untested code to set
the image proxy

YAHOO.util.DDProxy.onDragStart = function(e) {
// get the proxy dom element
var dom_element = this.getDragEl();
// do what ever you want with this DOM element
dom_element.style.background = "red";
dom_element.innerHTML = "asdf";
};

Very easy.

Maybe I'll see you on the YUI mailing list.

Peter

Jun 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: long5120 | last post by:
I am trying to use webpage with javascript to check if a web server is responding. I was thinking of using 2 frames. Frame1 will have the site, and the Frame2 will be a status bar (not really...
3
by: newcomer | last post by:
Is there a way to check if a file exists in Javascript? This is what I'm trying to do: if(thisfile.htm exists) do this else do that
1
by: Tony | last post by:
Hi, I have a VB program which will access (using CallByName function) the JavaScript in a page using IE6. It works fine if no proxy is set in IE6 (Tools -> Internet Options -> Connections -> LAN...
5
by: Gueorguiev Stefan Gueorguiev | last post by:
Hello, I am creating a website that is intended to be very portable and viewable by a range of different devices. I have some javascript code in it, but now I was thinking if it is a standard...
7
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
3
by: Bateman27 | last post by:
Hi, don't know if this is the right place for this but wondered if anybody can help. When I try to open a picture on gettyimages, or a new chat window on MSN (either by clicking on the image, or on...
0
by: amansura | last post by:
I have a web site deployed on IIS. It is a simple static site for test purposes with only one html page and a javascript file. HTML page code: <html> <head></head> <script...
1
by: Dave Mathew | last post by:
I'm attempting to write a reverse proxy in ASP.Net which will catch requests to my server in ASP.Net, perform some actions, and then get the desired resource off another server to return to the...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.