![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 4
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2005
Posts: 4
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
don't get you, but maybe this is useful to you?
|
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Aug 2005
Posts: 4
Rep Power: 0
![]() |
thank you
|
|
|
|
|
|
#7 |
|
Newbie
Join Date: Aug 2005
Posts: 4
Rep Power: 0
![]() |
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? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|