Hello
I have this problem.
When starting new IE page programmatically, the IE page opens the proper
page but it ignores bookmark, however when I insert the same address
directly into IE, the webpage opens properly at bookmark.
Why is that difference?

rtn = ShellExecute(Me.hwnd, "Open", "IExplore.exe", App.Path &
"\options_help.htm#HARDWARE", App.Path, vbNormalFocus)

Re: IE does not open at bookmark! by Omar

Omar
Thu Jun 14 05:42:41 CDT 2007

On 14 juin, 03:44, "Jack" <replyto@it> wrote:
> Hello
> I have this problem.
> When starting new IE page programmatically, the IE page opens the proper
> page but it ignores bookmark, however when I insert the same address
> directly into IE, the webpage opens properly at bookmark.
> Why is that difference?
>
> rtn = ShellExecute(Me.hwnd, "Open", "IExplore.exe", App.Path &
> "\options_help.htm#HARDWARE", App.Path, vbNormalFocus)

Hi,
you hadn't precise if you use a script or ASP and where you putted
this text
Omar Abid


Re: IE does not open at bookmark! by mayayana

mayayana
Thu Jun 14 09:02:45 CDT 2007

I've noticed that IE is buggy in that regard. For my
own website I use PHP includes to insert a menu, etc.
based on the browser. When I click an in-page link on
a local (on my own PC), menu-less page in IE it doesn't
work. But if I use a normal HTML page it does. I wonder
if IE gets confused by the fact that the pre-include page
is not properly formatted.
That's not an answer to your question, but maybe it will
provide a clue.

> I have this problem.
> When starting new IE page programmatically, the IE page opens the proper
> page but it ignores bookmark, however when I insert the same address
> directly into IE, the webpage opens properly at bookmark.
> Why is that difference?
>
> rtn = ShellExecute(Me.hwnd, "Open", "IExplore.exe", App.Path &
> "\options_help.htm#HARDWARE", App.Path, vbNormalFocus)
>
>



Re: IE does not open at bookmark! by Thomas

Thomas
Thu Jun 14 09:19:56 CDT 2007

PHP is a server-side scripting language, therefore unless you are accessing the page via http from a
web server that supports the specific server-side script, then the functions will not work.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"mayayana" <mayaXXyana1a@mindXXspring.com> wrote in message
news:9Ubci.38$iz5.31@newsread4.news.pas.earthlink.net...
> I've noticed that IE is buggy in that regard. For my
> own website I use PHP includes to insert a menu, etc.
> based on the browser. When I click an in-page link on
> a local (on my own PC), menu-less page in IE it doesn't
> work. But if I use a normal HTML page it does. I wonder
> if IE gets confused by the fact that the pre-include page
> is not properly formatted.
> That's not an answer to your question, but maybe it will
> provide a clue.
>
>> I have this problem.
>> When starting new IE page programmatically, the IE page opens the proper
>> page but it ignores bookmark, however when I insert the same address
>> directly into IE, the webpage opens properly at bookmark.
>> Why is that difference?
>>
>> rtn = ShellExecute(Me.hwnd, "Open", "IExplore.exe", App.Path &
>> "\options_help.htm#HARDWARE", App.Path, vbNormalFocus)
>>
>>
>
>



Re: IE does not open at bookmark! by mayayana

mayayana
Thu Jun 14 18:42:42 CDT 2007

> PHP is a server-side scripting language, therefore unless you are
accessing the page via http from a
> web server that supports the specific server-side script, then the
functions will not work.
>
Yes, but I'm not talking about that. As I said, the problem
happens for me with *local* files. If I open the PHP file
without the extra PHP include added then IE gets confused
by in-page links. But if I put the include code in "by hand" and
create a "finished" HTML file, it does work. In both cases I'm
talking about a file opened on my own PC.



Re: IE does not open at bookmark! by Larry

Larry
Thu Jun 14 19:23:04 CDT 2007


"Jack" <replyto@it> wrote

> I have this problem.
> When starting new IE page programmatically, the IE page opens the proper
> page but it ignores bookmark, however when I insert the same address
> directly into IE, the webpage opens properly at bookmark.
> Why is that difference?
>
> rtn = ShellExecute(Me.hwnd, "Open", "IExplore.exe", App.Path &
> "\options_help.htm#HARDWARE", App.Path, vbNormalFocus)

My first suggestion would be that you are calling explorer and attempting to
pass it a parameter, when what you may really want to do is just open the
page using the default browser:

http://support.microsoft.com/kb/224816

Something like:

rtn = ShellExecute(Me.hWnd, "open", App.Path & "\options_help.htm#HARDWARE", 0, 0, vbNormalFocus)

See if that works for you....
LFS



Re: IE does not open at bookmark! by Jack

Jack
Thu Jun 14 20:46:19 CDT 2007

Nope.
The line:
rtn = ShellExecute(Me.hwnd, "open", App.Path & "\options_help.htm#HARDWARE",
0, 0, vbNormalFocus)
does not invoke IE at all.
I have tried also:
rtn = ShellExecute(Me.hwnd, "open", App.Path & "\options_help.htm",
"#HARDWARE", 0, vbNormalFocus)
and that line invokes IE but not at the bookmark.
The interesting part is that it was working properly before (a year ago)
Jack

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:OuR5tMurHHA.3276@TK2MSFTNGP04.phx.gbl...
>
> "Jack" <replyto@it> wrote
>
>> I have this problem.
>> When starting new IE page programmatically, the IE page opens the proper
>> page but it ignores bookmark, however when I insert the same address
>> directly into IE, the webpage opens properly at bookmark.
>> Why is that difference?
>>
>> rtn = ShellExecute(Me.hwnd, "Open", "IExplore.exe", App.Path &
>> "\options_help.htm#HARDWARE", App.Path, vbNormalFocus)
>
> My first suggestion would be that you are calling explorer and attempting
> to
> pass it a parameter, when what you may really want to do is just open the
> page using the default browser:
>
> http://support.microsoft.com/kb/224816
>
> Something like:
>
> rtn = ShellExecute(Me.hWnd, "open", App.Path &
> "\options_help.htm#HARDWARE", 0, 0, vbNormalFocus)
>
> See if that works for you....
> LFS
>
>



Re: IE does not open at bookmark! by mayayana

mayayana
Thu Jun 14 22:08:32 CDT 2007

I just tested this and it's not quite as I'd thought.
It's more strange: On my PC I store a copy of
my website files. I have php3 files, assigned to
IE. I also created a .phi extension for testing
IE-specific pages. In-page links do not work in
either file when loaded in IE, regardless of whether
the include code has been added. But they do work if
I rename the .php3 file with an HTML extension! And
they work online, when a .php3 page is loaded from
my web server.


> > PHP is a server-side scripting language, therefore unless you are
> accessing the page via http from a
> > web server that supports the specific server-side script, then the
> functions will not work.
> >
> Yes, but I'm not talking about that. As I said, the problem
> happens for me with *local* files. If I open the PHP file
> without the extra PHP include added then IE gets confused
> by in-page links. But if I put the include code in "by hand" and
> create a "finished" HTML file, it does work. In both cases I'm
> talking about a file opened on my own PC.
>
>



Re: IE does not open at bookmark! by Larry

Larry
Thu Jun 14 22:24:09 CDT 2007


"Jack" <replyto@it> wrote
> I have tried also:
> rtn = ShellExecute(Me.hwnd, "open", App.Path & "\options_help.htm",
> "#HARDWARE", 0, vbNormalFocus)
> and that line invokes IE but not at the bookmark.
> The interesting part is that it was working properly before (a year ago)

OK, see if this gets you farther along:

rtn = ShellExecute(Me.hwnd, "open", "iexplore.exe", file:/// & App.Path & "\options_help.htm#HARDWARE", 0, vbNormalFocus)

Note: Calling IE specifically, and using the file:/// identifier....

(It worked here)
LFS



Re: IE does not open at bookmark! by Jack

Jack
Thu Jun 14 22:37:49 CDT 2007

I have tried that already.
It invokes IE all right, but it ignores bookmark.
Jack

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:eNNQ3xvrHHA.500@TK2MSFTNGP02.phx.gbl...
>
> "Jack" <replyto@it> wrote
>> I have tried also:
>> rtn = ShellExecute(Me.hwnd, "open", App.Path & "\options_help.htm",
>> "#HARDWARE", 0, vbNormalFocus)
>> and that line invokes IE but not at the bookmark.
>> The interesting part is that it was working properly before (a year ago)
>
> OK, see if this gets you farther along:
>
> rtn = ShellExecute(Me.hwnd, "open", "iexplore.exe", file:/// & App.Path &
> "\options_help.htm#HARDWARE", 0, vbNormalFocus)
>
> Note: Calling IE specifically, and using the file:/// identifier....
>
> (It worked here)
> LFS
>
>



Re: IE does not open at bookmark! by Larry

Larry
Thu Jun 14 22:57:53 CDT 2007


"Jack" <replyto@it> wrote
> I have tried that already.
> It invokes IE all right, but it ignores bookmark.

I tested it on W2K SP4 using IE 6.0.2800.1106 and just a short
htm file that had a bookmark. It went to the bookmark.

What system are you working with?

LFS



Re: IE does not open at bookmark! by Larry

Larry
Thu Jun 14 23:00:23 CDT 2007


"Jack" <replyto@it> wrote

> I have tried that already.
> It invokes IE all right, but it ignores bookmark.

> rtn = ShellExecute(Me.hwnd, "open", "iexplore.exe", file:/// & App.Path &
> "\options_help.htm#HARDWARE", 0, vbNormalFocus)


Is it likely that your App.Path has spaces in the name? If so,
you may need to surround that entire parameter in qu0tes.

LFS



Re: IE does not open at bookmark! by Frank

Frank
Fri Jun 15 07:05:02 CDT 2007

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:uqkMtEwrHHA.4020@TK2MSFTNGP05.phx.gbl...
>
> "Jack" <replyto@it> wrote
>> I have tried that already.
>> It invokes IE all right, but it ignores bookmark.
>
> I tested it on W2K SP4 using IE 6.0.2800.1106 and just a short
> htm file that had a bookmark. It went to the bookmark.
>
> What system are you working with?
>
> LFS
>
>

The problem is IE7. It has a problem with anchors. At least mine won't go
to them.

--
Frank Saunders, MS-MVP OE/WM
Do not send mail.


Re: IE does not open at bookmark! by Robert

Robert
Fri Jun 15 09:54:06 CDT 2007

"Frank Saunders, MS-MVP OE/WM" <franksaunders@mvps.org> wrote in message
news:73CA66FA-E130-4D82-80B9-FBE73170F1FF@microsoft.com...
> "Larry Serflaten" <serflaten@usinternet.com> wrote in message news:uqkMtEwrHHA.4020@TK2MSFTNGP05.phx.gbl...
>>
>> "Jack" <replyto@it> wrote
>>> I have tried that already.
>>> It invokes IE all right, but it ignores bookmark.
>>
>> I tested it on W2K SP4 using IE 6.0.2800.1106 and just a short
>> htm file that had a bookmark. It went to the bookmark.
>>
>> What system are you working with?
>>
>> LFS
>>
>>
>
> The problem is IE7. It has a problem with anchors. At least mine won't go to them.


Yes. The same thing happens sometimes with links from OE messages.
I have wondered if the characterset of the source of the link has something
to do with it? E.g. maybe doublebyte characters don't work or vice versa?

Also, since it is probably some kind of parser problem what happens
if you encode the # as %23 and try with that instead?
E.g. the % would have to be more allowed by a scan of a URL
than a # would be, so maybe that would get the # and its label
through to a different processing layer where both could be interpreted
as intended? Etc.


FWIW

Robert
---



Re: IE does not open at bookmark! by Jack

Jack
Fri Jun 15 12:39:04 CDT 2007

Ok.
Now I know why it worked before but not now.
I have upgraded my IE to version 7 several months ago.
Jack

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:uqkMtEwrHHA.4020@TK2MSFTNGP05.phx.gbl...
>
> "Jack" <replyto@it> wrote
>> I have tried that already.
>> It invokes IE all right, but it ignores bookmark.
>
> I tested it on W2K SP4 using IE 6.0.2800.1106 and just a short
> htm file that had a bookmark. It went to the bookmark.
>
> What system are you working with?
>
> LFS
>
>



Re: IE does not open at bookmark! by Jack

Jack
Fri Jun 15 12:54:12 CDT 2007

Hi Robert,
I have tried your suggestion using %23 instead of # but IE cannot find file.
I've also pasted the full address directly into IE:
file:///I:/Documents%20and%20Settings/jastrzebiec/My%20Documents/My%20Progs/PhoneDialer40/options_help.htm%23HARDWARE"
with the same result >>> IE cannot find file.
Jack

"Robert Aldwinckle" <robald@techemail.com> wrote in message
news:u%23Ihfz1rHHA.1204@TK2MSFTNGP04.phx.gbl...
> "Frank Saunders, MS-MVP OE/WM" <franksaunders@mvps.org> wrote in message
> news:73CA66FA-E130-4D82-80B9-FBE73170F1FF@microsoft.com...
>> "Larry Serflaten" <serflaten@usinternet.com> wrote in message
>> news:uqkMtEwrHHA.4020@TK2MSFTNGP05.phx.gbl...
>>>
>>> "Jack" <replyto@it> wrote
>>>> I have tried that already.
>>>> It invokes IE all right, but it ignores bookmark.
>>>
>>> I tested it on W2K SP4 using IE 6.0.2800.1106 and just a short
>>> htm file that had a bookmark. It went to the bookmark.
>>>
>>> What system are you working with?
>>>
>>> LFS
>>>
>>>
>>
>> The problem is IE7. It has a problem with anchors. At least mine won't
>> go to them.
>
>
> Yes. The same thing happens sometimes with links from OE messages.
> I have wondered if the characterset of the source of the link has
> something
> to do with it? E.g. maybe doublebyte characters don't work or vice
> versa?
>
> Also, since it is probably some kind of parser problem what happens
> if you encode the # as %23 and try with that instead?
> E.g. the % would have to be more allowed by a scan of a URL
> than a # would be, so maybe that would get the # and its label
> through to a different processing layer where both could be interpreted
> as intended? Etc.
>
>
> FWIW
>
> Robert
> ---
>
>



Re: IE does not open at bookmark! by Jack

Jack
Fri Jun 15 13:07:50 CDT 2007

Yes there are spaces, but IE converts them to %20 anyway.
just like that:
file:///I:/Documents%20and%20Settings/jastrzebiec/My%20Documents/My%20Progs/PhoneDialer40/options_help.htm#HARDWARE

It is purely IE7 problem.
Jack

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:OZM%23GGwrHHA.3276@TK2MSFTNGP04.phx.gbl...
>
> "Jack" <replyto@it> wrote
>
>> I have tried that already.
>> It invokes IE all right, but it ignores bookmark.
>
>> rtn = ShellExecute(Me.hwnd, "open", "iexplore.exe", file:/// & App.Path &
>> "\options_help.htm#HARDWARE", 0, vbNormalFocus)
>
>
> Is it likely that your App.Path has spaces in the name? If so,
> you may need to surround that entire parameter in qu0tes.
>
> LFS
>
>



Re: IE does not open at bookmark! by Tom

Tom
Fri Jun 15 13:22:14 CDT 2007

All versions of IE convert the spaces to %20. Other browsers simply may not
recognize the link because of the spaces.

There should be no spaces in links/files.
--
===
Tom Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
===
"Jack" <replyto@it> wrote in message
news:uzEqRg3rHHA.3884@TK2MSFTNGP04.phx.gbl...
| Yes there are spaces, but IE converts them to %20 anyway.
| just like that:
|
file:///I:/Documents%20and%20Settings/jastrzebiec/My%20Documents/My%20Progs/PhoneDialer40/options_help.htm#HARDWARE
|
| It is purely IE7 problem.
| Jack
|
| "Larry Serflaten" <serflaten@usinternet.com> wrote in message
| news:OZM%23GGwrHHA.3276@TK2MSFTNGP04.phx.gbl...
| >
| > "Jack" <replyto@it> wrote
| >
| >> I have tried that already.
| >> It invokes IE all right, but it ignores bookmark.
| >
| >> rtn = ShellExecute(Me.hwnd, "open", "iexplore.exe", file:/// & App.Path
&
| >> "\options_help.htm#HARDWARE", 0, vbNormalFocus)
| >
| >
| > Is it likely that your App.Path has spaces in the name? If so,
| > you may need to surround that entire parameter in qu0tes.
| >
| > LFS
| >
| >
|
|