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: Wed, 21 Sep 2005 12:02:45 -0400,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


brain freze on location.href   
I have some code that has some ASP pages in a frameset. This line of code

   parent.filmDisplay.location.hef=ActionOptions[ACTION_PRINT].Action + 
FFIDArray.length;

is executed. I would expect the page to be requested, and the results sent 
to that frame. This page is already loaded in that page. The only thing I 
can think of that would cause the page not to be re-requested is if it is 
cached.  It shouldn't since

 Response.Expires = -100000
Response.AddHeader "cache-control","no-store"
Response.AddHeader "Pragma","no-cache"

(ASP for sending header).

is executed at the top of the page I want to reload. I am sure I am missing 
something obvious. What could be causing my page not to reload?

Thanks
date: Wed, 21 Sep 2005 12:02:45 -0400   author:   Stephanie

Re: brain freze on location.href   
Sorry inadequate info
"Stephanie"  wrote in message 
news:eZEQsXsvFHA.2540@TK2MSFTNGP09.phx.gbl...
>I have some code that has some ASP pages in a frameset. This line of code
>
>   parent.filmDisplay.location.hef=ActionOptions[ACTION_PRINT].Action + 
> FFIDArray.length;
>

ActionOptions[Action_Print].action contains a page w/ query string and 
FFIDArray contains the value of the query string.

> is executed. I would expect the page to be requested, and the results sent 
> to that frame. This page is already loaded in that page. The only thing I 
> can think of that would cause the page not to be re-requested is if it is 
> cached.  It shouldn't since
>
> Response.Expires = -100000
> Response.AddHeader "cache-control","no-store"
> Response.AddHeader "Pragma","no-cache"
>
> (ASP for sending header).
>
> is executed at the top of the page I want to reload. I am sure I am 
> missing something obvious. What could be causing my page not to reload?
>
> Thanks
>
date: Wed, 21 Sep 2005 12:05:26 -0400   author:   Stephanie

Re: brain freze on location.href   
Stephanie  wrote:
> I have some code that has some ASP pages in a frameset. This line of
> code
>   parent.filmDisplay.location.hef=ActionOptions[ACTION_PRINT].Action +
> FFIDArray.length;
>
> is executed. I would expect the page to be requested, and the results
> sent to that frame. This page is already loaded in that page.

Are you saying you set location.href to the same string that it already 
holds? This is a no-op. If you want to reload the current page, call 
location.reload(true)
-- 
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: Wed, 21 Sep 2005 13:20:16 -0400   author:   Igor Tandetnik

Re: brain freze on location.href   
"Igor Tandetnik"  wrote in message 
news:e$4bPDtvFHA.4032@TK2MSFTNGP15.phx.gbl...
> Stephanie  wrote:
>> I have some code that has some ASP pages in a frameset. This line of
>> code
>>   parent.filmDisplay.location.hef=ActionOptions[ACTION_PRINT].Action +
>> FFIDArray.length;
>>
>> is executed. I would expect the page to be requested, and the results
>> sent to that frame. This page is already loaded in that page.
>
> Are you saying you set location.href to the same string that it already 
> holds? This is a no-op. If you want to reload the current page, call 
> location.reload(true)

The sstring contains a different values in the URL, though it is the same 
page

in the first case

PageName.asp was loaded

The location.href is

PageName.asp?Selected=1



> -- 
> 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: Wed, 21 Sep 2005 13:41:41 -0400   author:   Stephanie

Re: brain freze on location.href   
Stephanie  wrote:
> "Igor Tandetnik"  wrote in message
> news:e$4bPDtvFHA.4032@TK2MSFTNGP15.phx.gbl...
>> Are you saying you set location.href to the same string that it
>> already holds? This is a no-op. If you want to reload the current
>> page, call location.reload(true)
>
> The sstring contains a different values in the URL, though it is the
> same page

Another possible problem is cross-domain scripting restrictions. Do all 
three frames come from the same domain? In other words, is the server 
name part of the three URLs the same?
-- 
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: Wed, 21 Sep 2005 13:55:33 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


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