favc4
Posts: 30
|
| Posted: 06/13/2006, 3:45 AM |
|
I am wondering how to achieve this:
need to render a link within a grid to point (href) to a client .EXE with command line arguments, in this case, a phone dialing .exe, the problem is that CCS translates this link e.g. href source = C:\ProgFile|mydialer.exe to http://192.0.lalala/C/ProgFiles or to File///:C:ProgFiles... how should I do this? Or any ideas to make a client side script in VBS (know nothing about java) to respond to a link_click() event to send my shellexecute "myprog", args?
Thanks for your kind help!
cHUCk
_________________
Programming win32 and went crazy... |
 |
 |
peterr
Posts: 5971
|
| Posted: 06/13/2006, 4:04 AM |
|
Try using label and in the grid's Before Show Row event create HTML code that makes up a link, like:
GridName.LabelName.Value = "<a href='C:\ProgFile\mydialer.exe?param=" & GridName.SomeFieldName.Value & "'>Click Here</a>".
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
favc4
Posts: 30
|
| Posted: 06/13/2006, 6:17 AM |
|
Did not work embeeding html tags into a label control... Anyhow, I made an alternate test with a simple HTML file, made a static link, and when making a link pointing to any path within any file of the client PC the link is rendered or interpreted by IE6 as
File:///C:Windows/system32/notepad.exe when clicking on it you get the download dialog... This put me under the Java arena, can you advise on any good websites offering scripts to achieve what i want? How can I reference the current page any control value? (client side?)
Many Thanks for your kind help Peter
_________________
Programming win32 and went crazy... |
 |
 |
peterr
Posts: 5971
|
| Posted: 06/13/2006, 12:02 PM |
|
I thought that CCS was changing something in your link, but now I see that what you are trying to do is not possible, especially since Web browser changes your link to such format. I realize now that if any Web browser allowed what you are trying to do then there would be total destruction on earth... Imagine thousands of hackers having fun posting links on Websites and forums that run some executables on your computer. No, no computer, Web browser or JavaScript can allow that. AFAIK JavaScript also has many security features built-in to prevent such situations.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|