[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Providing a desktop Icon

In IE (probly netscape, too), if you drag a link of any sort to the desktop, it creates a shortcut to the page the link was addressed to. I want to be able to specify the Icon that is used, and, ideally, the text of the link created. Another possibility is that if anyone can tell me how to detect a drag-drop of an Icon/File to a HTML page (java possibly), that would be just as good.
0
Arachn1d
Asked:
Arachn1d
  • 7
  • 6
1 Solution
 
tecbuilderCommented:
You cannot specify what icon is used per icon.  You can only change the default icon and icons will be displayed as that icon.  You have to right click on the icon and select properties to change an individual icon.  The name of the icon is based on the page's title and URL.  For the most part you are at the mercy of the operating system.

To create an icon of a link to a web site for Netscape drag and drop the little icon to the left of the word "Location:".

If what the icon is associated with e.g. an html page, text file, etc. then the browser will automatically display it.

tec
0
 
Arachn1dAuthor Commented:
This is not what I was looking for - I wanted to be able to have an end user drag a link to their desktop and appear as an Icon of my choice. Thanks anyway.

Nick
0
 
tecbuilderCommented:
Well I'm sorry it's not the answer you wanted, however what I posted is true and accurate.  There is no other answer.  You cannot control another person's computer the way that you want.

tec
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Arachn1dAuthor Commented:
Do you know that 100% sure? I am not neccessarialy controlling their computer, just setting properties for drag&drop from my site. My other question mentioned above, is does anyone know how to make a part of a web-page (perhaps some java/javascript/ActiveX) into a Drop target, so I can drop a file on to it and recieve the text.
Tecbuilder - I would appreciate that if you think there is no way to do this, you do not post an answer saying it cannot be done - I'm not assigning points to find out if it CAN be done, but how if it can.
0
 
tecbuilderCommented:
First, yes I am 100% sure.  You are trying to control a user's computer.  What you are wanting to do is tell a user's computer, that regardless of how they have their icons setup for certain file types, you want the icon to be what you want.  Users browser and operating system will not allow this.  Therefore the answer to this part of your question is, it cannot be done.

Second, there is no javascript solution that will allow a user to drop a file onto your web page and have the contents of this file get extracted so that the user can read it within your web page, so that they can send it to you.  Therefore the answer to this part of your question, is it cannot be done via drag & drop.  The only thing you can do is have the user cut and paste the contents of their file into a form's text field on your web page and have the contents of the form sent to you.

Third, you ask a question to get a correct answer.  The correct answer isn't always what we want it to be.  Sometimes the correct answer is that what you want to do cannot be done.

Lastly, if you are looking for a Java or ActiveX solution, I would suggest posting your question in those topic areas.  That's where you will find experts concerning those topics.  As for an HTML and JavaScript solution, the answer is that you cannot use drag & drop for what you want.

tec
0
 
tecbuilderCommented:
For what reason is my answer wrong?
0
 
ianBCommented:
Arachn1d,

Please post feebback regarding this experts answer. Experts can only give answers if they receive feedback.

Ian
Commuunity Support  @ Experts Exchange
0
 
Arachn1dAuthor Commented:
I have not awarded points here because I feel that it is most likely possible to create a drag and drop target in either Javascript, Java, ActiveX or just plain HTML. (In fact, I'm pretty sure I've seen it done) The reason I originally posted here is because I was unsure about which area would be best - it could be applied to any of them. Therefore, I feel this to not be a satisfactory answer to my question, but more of a non-answer.
0
 
tecbuilderCommented:
FACT: What you want to do with drag & drop to the desktop with HTML will not work due to reasons stated earlier.
FACT: What you want to do with drag & drop to the desktop with JavaScript will not work due to reasons stated earlier.
FACT: What you want to do with drag & drop to the desktop with Java will not work due to reasons stated earlier.
FACT: What you want to do with drag & drop to the desktop with ActiveX will not work due to reasons stated earlier.
Your only possibility is to get the source code for IE and Netscape make the necessary changes to the source code, recompile, and tell everyone to use your version.

FACT:  What you want to do with drag & drop to a web page with HTML will not work.  The browser will attempt to read and display the contents.
FACT:  What you want to do with drag & drop to a web page with JavaScript will not work.  JavaScript only reacts to actions taken within the web page, not the browser application.

I am not certain (as I said above) whether or not Java or ActiveX can get the text from a dropped file or not.  Your question would be best posed to them in the Java and ActiveX areas.

tec
0
 
Arachn1dAuthor Commented:
Since I am now asking for info on how to get the text from a file dropped onto a Java applet or an ActiveX one, you do not have the answer to this question. Do you propose I accept your 'answer' and post another 100 points in each of the ActiveX and Java areas for the exact same question I am asking now? No. You do not provide a full answer that I am satisfied with.
0
 
Arachn1dAuthor Commented:
I would like to quote tecbuilders question in the suggestions area, Q10033196 dated Thursday December 18, 1997.

"A short discussion occurred on a question where the answer was more or less, you can't do that.  The question was worth 150 points.  It seems pretty unfair that a person comes here to get what they feel is a difficult answer, giving lots of points for the answer, only to find out that it simply cannot be done.  My thought is that so long as the question has not received an answer the questioner may be allowed to reduce the the amount of points given to the question.  This way they don't lose a lot of points for an answer that says they cannot do what they ask."

Have you had a 180 degree turnabout, tecbuilder? You further go on to say that you do not feel that a "cant be done" answer is worth some points, but not a lot. I agree. So why are you suddenly of quite the opposite opinion?
0
 
tecbuilderCommented:
I still agree with that statement.

At the time I wrote that there were a lot of people that were offering a lot of points (150-300+) wanting to do things that software was not able to do then.  That was 2 browser versions (IE and Netscape) ago, 2 JavaScript versions ago, and DHTML just getting started.  Now, some of those questions that were answered as "can't be done" can be.  Another thing to consider is that little time was invested on the experts part in answering most of those questions.  I have actually invested a considerable amount of time to verify and then reverify that what I stated is factual.

A couple of additional facts to completely answer your question.  I just received a phone call from a person who develops Java applications, applets and ActiveX.  He said that a Java Applet and ActiveX cannot take a dropped file and display its contents as you want to do.  In fact, neither will know what to do with the file being dropped.  A Java application would be extensive and he had never heard of anyone attempting such a thing.  He said he would be willing to try if you are willing to pay cash.  My guess is at least $500.

tec
0
 
Arachn1dAuthor Commented:
I apologise for thesemi-flame war we were engaged in earlier, and now appreciate the extents you have gone to to verify the possibilities.

Arachnid
0
 
Arachn1dAuthor Commented:
Ha! You were wrong!!! Check out http://www.vbaccellerator.com and look in your address bar (using IE) - it chooses the icon. This IS possible! (Now give me my points back :)
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now