This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > FrontPage Programming > June 2007 > IE does not open at bookmark!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IE does not open at bookmark!
|
|
|
| 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)
| |
| Omar Abid 2007-06-14, 6:17 pm |
| 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
| |
| mayayana 2007-06-14, 6:17 pm |
| 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)
>
>
| |
| Thomas A. Rowe 2007-06-14, 6:17 pm |
| 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.
>
>
>
| |
| mayayana 2007-06-14, 10:17 pm |
| > 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.
| |
| Larry Serflaten 2007-06-14, 10:17 pm |
|
"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
| |
|
| 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
>
>
> 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
>
>
| |
| mayayana 2007-06-15, 3:32 am |
| 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.
> accessing the page via http from a
> 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.
>
>
| |
| Larry Serflaten 2007-06-15, 3:33 am |
|
"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
| |
|
| 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
>
> 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
>
>
| |
| Larry Serflaten 2007-06-15, 3:33 am |
|
"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
| |
| Larry Serflaten 2007-06-15, 3:33 am |
|
"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
| |
| Frank Saunders, MS-MVP OE/WM 2007-06-15, 6:16 pm |
| "Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:uqkMtEwrHHA.4020@TK2MSFTNGP05.phx.gbl...
>
> "Jack" <replyto@it> wrote
>
> 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.
| |
| Robert Aldwinckle 2007-06-15, 6:16 pm |
| "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...
>
> 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
---
| |
|
| 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 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
>
>
| |
|
| 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...
>
>
> 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
> ---
>
>
| |
|
| 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
>
>
>
>
> 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
>
>
| |
| Tom Willett 2007-06-15, 6:16 pm |
| 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
| >
| >
|
|
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|