473,654 Members | 3,062 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening a html file from a Command Button

Hi folkes

I have a simple html file with 2 frames, as my Help file to my DB.
It consists of 3 parts:

Help.htm = Is the main file with the 2 frames.

Index.htm = Is the left frame as a index with hyperlinks in it, link
to bookmarks in the right frame.

Contents.htm = Is the right frame with the help catagories, headed by
bookmarks, linked to the hyperlinks from the left frame.

The code I'm using now opens the file but doesn't jump to the bookmark
that is called.

strAppPath = CurrentProject. Path
strBookMark = "#Setup"

strAppName = "c:\program files\internet explorer\iexplo re.exe " _
& strAppPath & "\Help\Help.htm " & strBookMark

Call Shell(strAppNam e, 3)

If I call, contents.htm alone with the bookmarks in it. It jumps to
the required bookmark, no problem.

Its when I call, help.htm with the two frames in it, that the coding
for the bookmarks, dosen't seem to work. It opens the help file, but
doesn't jump to the called bookmark.

P.S.
Any ideas of calling "iexplore.e xe", without using the string
"c:\program files\internet explorer\iexplo re.exe "

Any help or ideas with my coding would be greatly appreciated.

Thanks for your time reading this.

Chris
Sydney
Australia
Nov 12 '05 #1
2 2022
try:

\Help\Help.htm# MyBookmark

John Bickmore
www.BicycleCam.com
www.Feed-Zone.com

"ChrisR" <ch***@krisarac omputers.com.au > wrote in message
news:97******** *************** ***@posting.goo gle.com...
Hi folkes

I have a simple html file with 2 frames, as my Help file to my DB.
It consists of 3 parts:

Help.htm = Is the main file with the 2 frames.

Index.htm = Is the left frame as a index with hyperlinks in it, link
to bookmarks in the right frame.

Contents.htm = Is the right frame with the help catagories, headed by
bookmarks, linked to the hyperlinks from the left frame.

The code I'm using now opens the file but doesn't jump to the bookmark
that is called.

strAppPath = CurrentProject. Path
strBookMark = "#Setup"

strAppName = "c:\program files\internet explorer\iexplo re.exe " _
& strAppPath & "\Help\Help.htm " & strBookMark

Call Shell(strAppNam e, 3)

If I call, contents.htm alone with the bookmarks in it. It jumps to
the required bookmark, no problem.

Its when I call, help.htm with the two frames in it, that the coding
for the bookmarks, dosen't seem to work. It opens the help file, but
doesn't jump to the called bookmark.

P.S.
Any ideas of calling "iexplore.e xe", without using the string
"c:\program files\internet explorer\iexplo re.exe "

Any help or ideas with my coding would be greatly appreciated.

Thanks for your time reading this.

Chris
Sydney
Australia

Nov 12 '05 #2
ch***@krisaraco mputers.com.au (ChrisR) wrote in message news:<97******* *************** ****@posting.go ogle.com>...
Hi folkes

I have a simple html file with 2 frames, as my Help file to my DB.
It consists of 3 parts:

Help.htm = Is the main file with the 2 frames.

Index.htm = Is the left frame as a index with hyperlinks in it, link
to bookmarks in the right frame.

Contents.htm = Is the right frame with the help catagories, headed by
bookmarks, linked to the hyperlinks from the left frame.

The code I'm using now opens the file but doesn't jump to the bookmark
that is called.

strAppPath = CurrentProject. Path
strBookMark = "#Setup"

strAppName = "c:\program files\internet explorer\iexplo re.exe " _
& strAppPath & "\Help\Help.htm " & strBookMark

Call Shell(strAppNam e, 3)

If I call, contents.htm alone with the bookmarks in it. It jumps to
the required bookmark, no problem.

Its when I call, help.htm with the two frames in it, that the coding
for the bookmarks, dosen't seem to work. It opens the help file, but
doesn't jump to the called bookmark.

P.S.
Any ideas of calling "iexplore.e xe", without using the string
"c:\program files\internet explorer\iexplo re.exe "

Any help or ideas with my coding would be greatly appreciated.

Thanks for your time reading this.

Chris
Sydney
Australia


Thanks John for your time.

But that doesnt solve my problem.
Because of the 2 frames in the Help.htm file. The bookmark extension
"#Setup" for the string doesnt work.
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
11072
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
2
2234
by: Lyn | last post by:
Hi, I am working on a genealogy project in which I have two tables: Person -- one record for each person in the family. Each record has a unique Autonum field (IDPerson). Partnerships -- one record for each marriage. Each record has a unique Autonum field (ID), and also contains two fields IDPartnerMale and IDPartnerFemale. Both of the latter fields match records in the Person table via IDPerson.
21
12955
by: Sender | last post by:
I have two questions: (1) I just want to check whether a .txt file is empty or not (without opening it). Like I click on a command button then it should give message EMPTY if is empty and show message "NON EMPTY" if it is not empty. (2) What are the steps to open a notepad file (C:\XYZ\abc.txt) in a VB Text Box. Thanks
8
1408
by: Thaqalainnaqvi | last post by:
Several times I logged-in successfully but after log-in I can't use features/services which were shown prior to my login. Can anyone exoert from this forum check , is it technical fault of Bank Web Site or this problem pertaining to the user(me). <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META Http-Equiv="Cache-Control" Content="no-cache">
3
10237
by: Andrew Poulos | last post by:
There's a HTA application that's running on a local computer (not from a URL) and the user can open a new HTML window by clicking a button The first time the user clicks the button the window opens. Any subsequent click causes this dialog, with this error, to appear: "Error: The remote server machine does not exist or is unavailable" The relevant code is
2
1351
by: gauravalc | last post by:
I am newbie in VB. I have access database in which i stored paths of the file. Now I want to open the file which are have the respective path using VB command button. A form comes which shows paths in a record and a command button. On clicking the button i should be able to open the file having the path shown in the textbo of the form. -The files paths stored in the database field may be text, doc ,ppt, pdf, xls. -The textbox name is "text2"...
0
1053
by: Alexnb | last post by:
Okay, so what I want my program to do it open a file, a music file in specific, and for this we will say it is an .mp3. Well, I am using the system() command from the os class. The problem I am running into is that when I send the path of the file to the system() command, which for those of you who don't know the system command is the equivalent of typing one command into command prompt or terminal depending on your system. But let's say...
34
5335
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File "<pyshell#10>", line 1, in <module> os.startfile("C:\Documents and Settings\Alex\My Documents\My
16
5171
by: Phil Stanton | last post by:
I have a form with a button which is supposed to open an Excel file (With lots of Macros /VBA) in it. The Excel file gets it's data from the Access program Here is the code Private Sub Storage_Click() On Error GoTo Err_Storage_Click
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.