Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loading a web page with frames

0 views
Skip to first unread message

Jim Menges

unread,
Jun 5, 2002, 3:23:21 PM6/5/02
to
Is it possible to have a browser open and load a specific frame in the web
page that it is loading?

I am using:

ShellExecute(NULL, "open", "http://www.theaddress.com/index.html", 0, 0,
SW_SHOWNORMAL);

to load up a page and it works fine, but what I would really like is to be
able to load up a specific html page in the frame "main" in the index.html.

Is this possible?

Thanks.

Remy Lebeau [TeamB]

unread,
Jun 5, 2002, 3:57:55 PM6/5/02
to
Not with ShellExecute(). You can only load the main page itself, or the
desired frame page itself directly, but not the frame page in the main page,
sorry.

Pretty much the only way to do it is to first load the main page, then
manipulate IE's COM interfaces directly to iterate through IE's DOM
(Document Object Model) and get control of the desired frame and force it to
re-load the desired page inside of it.


Gambit

"Jim Menges" <j...@imperialstar.com> wrote in message
news:3cfe6529_2@dnews...

Jim Menges

unread,
Jun 5, 2002, 4:22:02 PM6/5/02
to
Hmmmm. Thanks. That sounds like it could be a lot of work in an area that
I am clueless. Well, I guess I can either try to see if I have a book that
covers this COM / DOM stuff. (I know my developers guide has a COM section
that I still have to read.)

I wonder though, since I have been cramming JavaScript, CGI, and Perl into
my brain lately (and running out of room up there) if maybe I can somehow
work in a JavaScript function on the site that checks OnLoad whether it is
being loaded from the web, or from one of my programs, and then reacts
acordingly...

Looks like I have a lot more work to do here.....

Thanks again for the info / help.

Remy Lebeau [TeamB] <gamb...@yahoo.com> wrote in message
news:3cfe6be2$1_1@dnews...

Alex Bakaev [TeamB]

unread,
Jun 5, 2002, 5:19:43 PM6/5/02
to
I suggest getting the 'Programming Microsoft Internet Explorer 5' book.
I'm sure it will show you ways to do what you want.
.a

Jim Menges wrote:
[snip]

Remy Lebeau [TeamB]

unread,
Jun 5, 2002, 6:55:28 PM6/5/02
to
In that situation, yes you can. You an pass a query-line value to the file
that generates the main page (whether it be an HTML file with Javscript, or
a Perl script, or whatever), ie:

ShellExecute(NULL, "open",
"http://www.theaddress.com/index.html?some_value", 0, 0, SW_SHOWNORMAL);

Then have that file dynamically generate the HTML for the page, setting the
frame's src attribute dynamically as appropriate based on that query
parameter. Both Perl and Javascript can access the URL's query parameters.


Gambit

"Jim Menges" <j...@imperialstar.com> wrote in message

news:3cfe72ea_1@dnews...

0 new messages