Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 23rd, 2005, 11:23 AM   #1
forumuser
Newbie
 
Join Date: Aug 2005
Posts: 4
Rep Power: 0 forumuser is on a distinguished road
how to reference parent browser

i have a custom button on the browser toolbar which points to a html application (HTA) which launches it when clicked.

an instruction such as

window.location.href

gives the URL of the HTA rather than the browser that launched it.

how do i reference the DOM of the browser from the HTA?

i have winxp sp2 with ie6.0
forumuser is offline   Reply With Quote
Old Aug 23rd, 2005, 11:29 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Your question isn't entirely clear. A document is served from the url that references it, it is rendered by the client browser, and there you are. You can't unilaterally address a client from a server in the normal course of events. It's a momentary, stateless, request/response situation initiated by the client, not a continuous-connection, interactive relationship.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 23rd, 2005, 11:46 AM   #3
forumuser
Newbie
 
Join Date: Aug 2005
Posts: 4
Rep Power: 0 forumuser is on a distinguished road
i do not want to address a client from the server.

i want to process pages that i am viewing in my browser. i have added a custom button to the toolbar of my browser. the custom button points to a html application (HTA) which is local on my computer. when i click on the custom button i want the HTA to run and process the web page that i am viewing. but i have a problem.

in the local HTA an instruction such as

window.location.href

gives the URL of the HTA rather than the browser that launched it.

i want to reference and access the DOM of the browser (from the HTA) that launched the HTA, so that i may process the URL of the browser and other objects.

i am running winxp sp2 with ie6.0
forumuser is offline   Reply With Quote
Old Aug 23rd, 2005, 11:49 AM   #4
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
don't get you, but maybe this is useful to you?
Polyphemus_ is offline   Reply With Quote
Old Aug 23rd, 2005, 12:32 PM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I'd suggest addressing it with a plug-in.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 23rd, 2005, 1:10 PM   #6
forumuser
Newbie
 
Join Date: Aug 2005
Posts: 4
Rep Power: 0 forumuser is on a distinguished road
thank you
forumuser is offline   Reply With Quote
Old Aug 23rd, 2005, 1:58 PM   #7
forumuser
Newbie
 
Join Date: Aug 2005
Posts: 4
Rep Power: 0 forumuser is on a distinguished road
it has been brought to my attention that

window.opener
Sets or retrieves a reference to the window that created the current window.

resolves my problem.

except window.opener is returning null when the HTA is launched from the browser.

can anybody suggest further solutions?
forumuser is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:33 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC