开发者

Drag and drop a link on the desktop to create a shortcut

My client asked me a interesting thing today.

Drag and drop a link in the browser on the desktop to create a shortcut to the linked webpage.

We have a web-application and it cou开发者_StackOverflow中文版ld be very good to enable the user to directly connect their application.

Do you have any idea of how to do that ?


Isn't this how it actually works with most browsers in Windows? I've just tried in Firefox and IE, and both gave me a shortcut direct to the page on the desktop. Or am I missing something in your question?


Works fine in Windows as-is. If you're talking about some sort of javascript link or button I"m afraid not.


Dragging any link to the desktop should work, but you could extend it by creating a special link (perhaps per screen) that will let the user return to the exact application state.
Obviously you would have to add any state-preserving info into the links URL. You might also have to update the web application to restore the state based on that info.


Obviously you would have to add any state-preserving info into the links URL.

A further suggestion: put the state in the anchor of the URL, like so:

http://mycompany.com/myapplication#mystatevariable=xyz

That way, the browser doesn't reload the whole application. Of course, you'll have to monitor the URL and process the anchor in Javascript.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜