473,396 Members | 1,816 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,396 software developers and data experts.

Creating shortcuts in application

hi,

You know like how we open a microsoft word document.Type something in it.Then save it (in this case on the desktop). An icon will appear on the desktop. The next time all we have to do is double click on the icon and it will open our saved document.

So my question is, can we code javascript/dhtml such a way to perform a function like i described above?

Thanks
Aug 1 '07 #1
11 1463
gits
5,390 Expert Mod 4TB
hi ...

all things that you do with javascript are strictly bound to the browser ... you may create a 'browser'-desktop ... that means you create a web-app that looks like a desktop and there you may do whatever you want ... but you cannot do things outside of the browser ... except of writing cookies you don't have access to the client's filessystem ... so you cannot read/write things to it ...

kind regards
Aug 1 '07 #2
hi
what do u mean by
"that means you create a web-app that looks like a desktop and there you may do whatever you want" ...

Currently, i have a index.php file where widgets are generated when clicked on links of the files. Can this index.php file be considered my desktop?
and how do i create functions to create desktop shortcuts after being given a url?

Thanks
Aug 1 '07 #3
gits
5,390 Expert Mod 4TB
hi
what do u mean by
"that means your create a web-app that looks like a desktop and there you may do whatever you want" ...

Currently, i have a index.php file where widgets are generated when clicked on links of the files. Can this index.php file be considered my desktop?
and how do i create functions to create desktop shortcuts after being given a url?

Thanks
yes ... exactly ... your webpage, when loaded to the browser, is your 'desktop' ... and your 'quasi-runtime-environment' for all javascript-actions ... not at all ... in reality ... it is the browser-window, and your document provides the js-code that may be executed ... but as i said ... js cannot break out of the browser here.

a 'short-cut' as you call it now ... is simply a link in a webpage ... and you may assign that link to everything you want ... use an icon (image) ... place it an your webpage ... assign an onclick-handler that loads the url you want whereever you want ... or simply create a simple link-list when you need it. i assume you may do something at the page ... that results in creating an url ... and now you want to place a direct link at the page? ... so you may use dom-methods (createElement('tag_name'), setAttribute('attr_name', 'attr_value') etc.) to achieve that ...

i hope i made myself clear ... ask for more in case you need an example or something like that.

kind regards
Aug 1 '07 #4
Hello,
Thanks for being so patient with me.But that is exactly what i want to learn.
From what you say is is safe to say. i create a function "Create Shortcut" that when clicked on, it will generate an image and save the url. So that the next time user clicks on the image, it will open a "virtual window".
Is it possible if i get examples on how it is done, or any site that offers tutorials for it?
Thanks a whole bunch.
Aug 1 '07 #5
gits
5,390 Expert Mod 4TB
hi ...

ok ... we need the following things ;) and tell me if i'm wrong ... ok?

1. doing some action at your page ... results in what? i assume you want to save a state of something ... and you create an url for that and save that too? in case you need that persitstent in the database? is that done already?

2. now take the url and create your shortcut-control. you may create an image-node with javascript ... but the image-src itself has to be there from where you want it to be loaded ... and of course you may open new browser-windows or (i)frames within your application

kind regards
Aug 1 '07 #6
Hi,

Let me starts from the beginning. At the index.php file, there are widgets that open to virtual windows.

I would like to know how to create a function dynamic enough that i can :

Create a link in a page that once clicked will create the shortcut to it at the desktop.Keeping in mind the previous state of the page has been saved.For example order.html has a save button on it that saves the state of the page and a button that creates a shortcut. or

Display a shortcut on my desktop that will point to another virtual window.

Thanks a lot for the help.
Aug 1 '07 #7
gits
5,390 Expert Mod 4TB
i'm a little bit confused now ... let me try to understand:

you have a php-page ... that is delivered to the browser -> you have a html-page there and now the user may perform some actions. here you may store things in a javascript-variable for the lifetime of your page ... that means, when the user leaves your page all js-variable-values are lost otherwise you have to send it back to the server. may be you want to store it that way? so now the user may do something other on your page ... and may be later on he wants to use his former 'order-page' again without filling something again? so we load the orderpage and ask for our stored js-variable-values and fill it with the users former inputs? and the server-turnaround is done when he really wants to submit the page? for ease of use you want to give him a shortcut WITHIN your application to access the things he possibly wants from there?

kind regards
Aug 1 '07 #8
Hi,
Yes i do have a php page that is delivered to the browser.I also have the html page there, where users can perform some functions(i.e. "save")
The save function is php driven, so thats not a problem.
There is a link on that html page that will generate a shortcut.(here is where i expect the javascript codes to be evoked)

Now back to the desktop:
Whenever the link on the html page is clicked, it will generate a shortcut icon on the desktop.

When clicked on the shortcut (at the desktop) it will open that page.

So my logic would be to create a dynamic javascript function that can

- be called when we click on the shortcut icon at the desktop to display a virtual window and

-be called when we click the link at the html page to produce a shortcut to the html page.

Does that sound possible? or is my imagination going on hyperdrive..(=D)..

Thanks
Aug 2 '07 #9
gits
5,390 Expert Mod 4TB
hi ... as i said in my first reply ... you cannot create a icon on the users desktop ... you are strictly bound to be WITHIN the browser-window ... and that is good ... nobody wants to have a webspage that is able to do things at your computer outside its own sandbox (which is our browser-window) ...

and as i said ... you may create the shortcut for the user within your page so he has to logon to it and you give him a list of links that you want hin to give ... or you may create a bookmark from the link you mentioned ...

kind regards
Aug 2 '07 #10
how do i create a book mark from the link given?
so you are saying if
from my index.php file, i click a link and go to orderform.html
the html page opens, and in it is a link "create shortcut"
i can create a book mark to it..can i tag a long the image to it?

Jus trying ways to come around it..=D
Thanks...
Aug 3 '07 #11
gits
5,390 Expert Mod 4TB
hi ...

may be the following link is of some help to you:

Javascript Bookmark Function

kind regards
Aug 3 '07 #12

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

Similar topics

0
by: Luke Wright | last post by:
Hi, I have built a setup project to install an application I am developing. I would like to be able to prompt the user whether to install Shortcuts in the following locations: * Start Menu *...
3
by: headware | last post by:
I have an issue that I've been encountering in an ASP application I'm working on. Most of the application is written in ASP, but there is one page written in ASP.NET. The ASP.NET page needs to have...
2
by: Richard Townsend | last post by:
I've seen the python.faqts page: http://www.faqts.com/knowledge_base/view.phtml/aid/4475/fid/538 on how to create windows shortcuts using Python. Does anyone know if this be adapted to create...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
1
by: Richard Johansson | last post by:
Hi, I want to create an option for creating shortcuts to my application on the users desktop and Start menu in the setup. In my deployment project i have created the necessary checkboxes, and...
3
by: Marius Rus | last post by:
I have an application write in c# and i want to offer to the user to create himself shortcuts with icons for the main menu items. I will very much appreciate if will receive an helping hand. Thank...
1
by: googleboy | last post by:
I need to create about 2000 shortcuts to a batch file. The shortcuts need to have: Name: %parameter%.lnk Target: n:\Path\To\batchfile.bat %parameter% Start In: n:\Path\To\ Where the...
2
by: reidarT | last post by:
I am making an installation program for an Access application. The application is run on both Office 2000, 2002, 2003 and soon 2007 versions of Office, When I install the application I need a...
2
by: Dmenace | last post by:
Microsoft blows my mind sometimes, what the hell were they thinking? Oh, wait they weren't, that's right. Anyway, I've got a Setup and Deployment added to my project, and it does everything I...
8
by: BD | last post by:
How can I duplicate the behavior of the operating system shortcut keys in my application? For example, my windows form has 5 controls (textboxes), the operating system will pickup which control...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.