Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sat, 12 Jul 2008 21:47:01 -0700,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


Accessing to html file elements   
There is a html file in some place, 
for example in this location
http://www.bsite.com/page.html 
I'd like to use 
var d=document;
var o=d.getElementById("ElId");
But how can I bind the  document (i.e. object d)
and file http://www.bsite.com/page.html ?
date: Sat, 12 Jul 2008 21:47:01 -0700   author:   Cyol

Re: Accessing to html file elements   
"Cyol"  wrote in message
news:EB72C75E-8A49-49FB-998E-9393A4E42472@microsoft.com
> There is a html file in some place,
> for example in this location
> http://www.bsite.com/page.html
> I'd like to use
> var d=document;
> var o=d.getElementById("ElId");
> But how can I bind the  document (i.e. object d)
> and file http://www.bsite.com/page.html ?

Create an iframe, set its src= to your URL, wait until it loads, then 
access its document.

Note that it would only work if the main page is loaded from the same 
domain. For security reasons, it is not possible for a page from one 
domain to inspect pages from another.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Sun, 13 Jul 2008 11:40:41 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us