[vwnc] URI from the file names problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] URI from the file names problem

Mark Pirogovsky-3
Hello All,

I came across interesting problem

We store bunch of help files in the HTTP directory with the root file
which can lookup the appropriate HTML documents
like the following:

file:///D:/Vw76/help/getting_started_csh.htm#24
file:///D:/Vw76/help/getting_started_csh.htm#NewGradation

When I put this line into the address box of Internet explorer, or
Chrome - it does open the starting file and then does appropriate redirect.

When I try to use that same line From the VW via

link:= "file:///D:/Vw76/help/getting_started_csh.htm#NewGradation"

OSSystemSupport concreteClass new ShellExecute: nil
        with: 'open'
        with: link
        with: nil
        with: nil
        with: 1

The initial page give me an error that it can not find the topic.  
Apparently the hash symbol either being stripped by the ShellExecute

Does anybody have any Idea how to work around this ?
 

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] URI from the file names problem

Alan Knight-2
There's the class ExternalWebBrowser which might be more immediately useful. And I don't have the 'open' command under Windows. But you might try URL-encoding the # and see if that makes a difference.

At 03:30 PM 6/11/2009, Mark Pirogovsky wrote:
Hello All,

I came across interesting problem

We store bunch of help files in the HTTP directory with the root file
which can lookup the appropriate HTML documents
like the following:

<a href="file://D:\Vw76\help\getting_started_csh.htm#24" eudora="autourl"> file:///D:/Vw76/help/getting_started_csh.htm#24
<a href="file://D:\Vw76\help\getting_started_csh.htm#NewGradation" eudora="autourl"> file:///D:/Vw76/help/getting_started_csh.htm#NewGradation

When I put this line into the address box of Internet explorer, or
Chrome - it does open the starting file and then does appropriate redirect.

When I try to use that same line From the VW via

link:= "<a href="file://D:\Vw76\help\getting_started_csh.htm#NewGradation" eudora="autourl"> file:///D:/Vw76/help/getting_started_csh.htm#NewGradation"

OSSystemSupport concreteClass new ShellExecute: nil
        with: 'open'
        with: link
        with: nil
        with: nil
        with: 1

The initial page give me an error that it can not find the topic. 
Apparently the hash symbol either being stripped by the ShellExecute

Does anybody have any Idea how to work around this ?
 

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

--
Alan Knight [|], Engineering Manager, Cincom Smalltalk

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] URI from the file names problem

Mark Pirogovsky-3
I was using same approach as in the ExternalWebBrowser.

privateOpenBrowserOn: link
    OSSystemSupport concreteClass new ShellExecute: nil
        with: 'open'
        with: link
        with: nil
        with: nil
        with: 1


I am not sure: either Win32 shell does not like the "| " -- pipe symbol
of hash  "#", or maybe it does not pass those parameters  at all while
opening the file.
IT works like a charm when opening files on the web like
http://server/file.html

Alan Knight wrote:

> There's the class ExternalWebBrowser which might be more immediately
> useful. And I don't have the 'open' command under Windows. But you
> might try URL-encoding the # and see if that makes a difference.
>
> At 03:30 PM 6/11/2009, Mark Pirogovsky wrote:
>> Hello All,
>>
>> I came across interesting problem
>>
>> We store bunch of help files in the HTTP directory with the root file
>> which can lookup the appropriate HTML documents
>> like the following:
>>
>> file:///D:/Vw76/help/getting_started_csh.htm#24
>> <file://D:%5CVw76%5Chelp%5Cgetting_started_csh.htm#24>
>> file:///D:/Vw76/help/getting_started_csh.htm#NewGradation
>> <file://D:%5CVw76%5Chelp%5Cgetting_started_csh.htm#NewGradation>
>>
>> When I put this line into the address box of Internet explorer, or
>> Chrome - it does open the starting file and then does appropriate
>> redirect.
>>
>> When I try to use that same line From the VW via
>>
>> link:= " file:///D:/Vw76/help/getting_started_csh.htm#NewGradation
>> <file://D:%5CVw76%5Chelp%5Cgetting_started_csh.htm#NewGradation>"
>>
>> OSSystemSupport concreteClass new ShellExecute: nil
>>         with: 'open'
>>         with: link
>>         with: nil
>>         with: nil
>>         with: 1
>>
>> The initial page give me an error that it can not find the topic.
>> Apparently the hash symbol either being stripped by the ShellExecute
>>
>> Does anybody have any Idea how to work around this ?
>>  
>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> --
> Alan Knight [|], Engineering Manager, Cincom Smalltalk
> [hidden email]
> [hidden email]
> http://www.cincom.com/smalltalk
> ------------------------------------------------------------------------
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>  

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] URI from the file names problem

Steven Kelly
In reply to this post by Mark Pirogovsky-3
That's not going to work: running a URL as a command in Windows doesn't
support the # bookmarks - it's a Windows limitation, not a VW problem.

Steve

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Mark Pirogovsky
> Sent: 11 June 2009 22:30
> To: VWNC
> Subject: [vwnc] URI from the file names problem
>
> Hello All,
>
> I came across interesting problem
>
> We store bunch of help files in the HTTP directory with the root file
> which can lookup the appropriate HTML documents
> like the following:
>
> file:///D:/Vw76/help/getting_started_csh.htm#24
> file:///D:/Vw76/help/getting_started_csh.htm#NewGradation
>
> When I put this line into the address box of Internet explorer, or
> Chrome - it does open the starting file and then does appropriate
> redirect.
>
> When I try to use that same line From the VW via
>
> link:= "file:///D:/Vw76/help/getting_started_csh.htm#NewGradation"
>
> OSSystemSupport concreteClass new ShellExecute: nil
>         with: 'open'
>         with: link
>         with: nil
>         with: nil
>         with: 1
>
> The initial page give me an error that it can not find the topic.
> Apparently the hash symbol either being stripped by the ShellExecute
>
> Does anybody have any Idea how to work around this ?
>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc