Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Icon in a web app ?

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Can we do this for a web app in websphere ?
our current client/server app has a flashing icon which flashes when a new message arrives.

This icon exists in the tool bar [windows systray] and its there

when we first login to the app. Now the same feature needs to be put in a web based app. when a user logs in to our web app, an icon should appear on the systray. How do i implement it ?
Thanks
[ May 18, 2005: Message edited by: Shreya Menon ]
 
author & internet detective
Posts: 41083
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Shreya,
A web application cannot access the system tray. This would be a security violation.
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Jeanne,

Thanks for the input, Can you please elaborate ? Any links would be appreciated because I have to communicate this to my top level managers.

Thanks,
 
Jeanne Boyarsky
author & internet detective
Posts: 41083
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I don't know of any links. The system tray is a part of the Windows operating system. If an arbitrary web page could access anything it wanted on your machine, it could delete all your files. This would be very bad. So the operating system has to protect itself and doesn't allow you to do things like that.

I've asked for this thread to be moved to HTML since it's not really about WebSphere. And people are more likely to have more information over there.
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Moving to the HTML forum.

Mark
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
bartenders, sheriffs,all ranch vistiors

Any one has any comments to help here

An icon needs to be created in systray when I access my website.
Is this possible ?

Please help

Thanks
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Originally posted by Shreya Menon:
bartenders, sheriffs,all ranch vistiors

Any one has any comments to help here

An icon needs to be created in systray when I access my website.
Is this possible ?

Please help

Thanks



As has been said, no, not really. There is a huge security risk involved here. Here are some suggestions...

1. Write a seperate program that can run when the computer starts or when it is told to run that is completely seperate from your web app and loads in the system tray. Java can now be used this way thanks to JDIC.

2. Write a seperate program but allow it to launch via Java WebStart somewhere on a page in your webapp. This would still require the user to OK the app to run, but might be more in line with what you are wanting.
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Gregg,

Thank you for your reply:
Well, need some details please.

From your reply:
As has been said, no, not really. There is a huge security risk involved here.
I understand: Can you or anyone please provide any links or some more explainations about why ? I have to make my top level people understand. So some more explanination will be helpful.

Here are some suggestions...

1. Write a seperate program that can run when the computer starts or when it is told to run that is completely seperate from your web app and loads in the system tray. Java can now be used this way thanks to JDIC.

For this, something needs to be installed on every client machines ? Correct ?

2. Write a seperate program but allow it to launch via Java WebStart somewhere on a page in your webapp. This would still require the user to OK the app to run, but might be more in line with what you are wanting.

I need some more ideas here:
Login.jsp -> who calls Java web start program
who displays icon on systray ?

Please help
My email is maya_java@yahoo.com in case you prefer an email

Thanks
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Originally posted by Shreya Menon:

Can you or anyone please provide any links or some more explainations about why ?



Simply put anyone would be able to put anything into the systray without the user knowing or allowing it, and also it would allow anyone to put a program on someone's machine and automatically run it. This is a security risk because bad people write bad programs that destroy computers.



1. Write a seperate program that can run when the computer starts or when it is told to run that is completely seperate from your web app and loads in the system tray. Java can now be used this way thanks to JDIC.

For this, something needs to be installed on every client machines ? Correct ?



Yes, it would have to be installed on every client machine.


2. Write a seperate program but allow it to launch via Java WebStart somewhere on a page in your webapp. This would still require the user to OK the app to run, but might be more in line with what you are wanting.

I need some more ideas here:
Login.jsp > who calls Java web start program
who displays icon on systray ?

Please help
My email is maya_java@yahoo.com in case you prefer an email

Thanks



I think this is a way to do what you are looking for, but requires the user to accept and allow the program to be installed and run.

Mark
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I'm going to move this to Java In General (Intermediate)

Mark
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Can anyone please provide some help here ?
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Continued here.
 
Men call me Jim. Women look past me to this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
    Bookmark Topic Watch Topic
  • New Topic