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: 11 Nov 2005 10:36:15 -0800,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


Javascript function opens wrong .aspx page   
Hello all,

I'm having an issue with the following:

I have an .aspx page with two html links that call distinct Javascript
functions.

I also have an iframe in the html of this .aspx page. The Javascript
functions are supposed to redirect the iframe to a new page (different
page for each link).

Here's my problem-

The first one works fine (ie. it loads the correct page into the
iframe. However, the 2nd simply will not load the page I want it to. It
instead loads a completely different page.

I have tried making the Javascript function load a page other than the
'problematic' one and that works fine.

Can you think of a reason that would cause this behavior? It appears to
be an issue with the specific .aspx page that I am trying to load...

Here's the function I'm using in Javascript (ClassInfo is the id of the
iframe):

function register()
{
        document.frames["ClassInfo"].location.href = "Register.aspx";

}

Any suggestions and help are much appreciated!

Thanks again-
Jeff
date: 11 Nov 2005 10:36:15 -0800   author:   unknown

Re: Javascript function opens wrong .aspx page   
jeff_mishima@hotmail.com wrote:
> Hello all,
>
> I'm having an issue with the following:
>
> I have an .aspx page with two html links that call distinct Javascript
> functions.
>
> I also have an iframe in the html of this .aspx page. The Javascript
> functions are supposed to redirect the iframe to a new page (different
> page for each link).
>
> Here's my problem-
>
> The first one works fine (ie. it loads the correct page into the
> iframe. However, the 2nd simply will not load the page I want it to.
> It instead loads a completely different page.
>
> I have tried making the Javascript function load a page other than the
> 'problematic' one and that works fine.
>
> Can you think of a reason that would cause this behavior? It appears
> to be an issue with the specific .aspx page that I am trying to
> load...

Probably. Look at its code to make sure it isn't doing any unexpected
response.redirects or server.transfers.



-- 
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
date: Mon, 14 Nov 2005 10:26:49 -0500   author:   Bob Barrows [MVP] com

Google
 
Web ureader.com


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