problems with SmartNavigation¡¡¡¡

N

Nestus

Hi, im developing a solution in ASP.Net, i have a page that i need to use
the smartnavigation in true, the problem occurs when i put in the directive
@Page SmartNavigation = true my page trhows a error in the next line, i
really dont understand why the page trhows that error. Here is the line that
make the error.

Response.Write("<script
language=javascript>window.parent.frames[""main""].location='OpcionReporte.a
spx';</script>")

Tks

Ernesto
MX
 
N

Nestus

That will be the solution if you use SmartNavigation don't use javascript,
but here appears another problem that i solved with javascript and is that
i need to open a page in a diferent frame that was requested, do you know
how to do that but without javascript

Tks for everything
Ernesto
MX

sstevens said:
I have run into similar problems and have done some research. The consensus
that I have found is that smartnavigation and javascript don't play well
together. If you set smartnavigation to false I bet your page will work
fine. I have not found a way around this issue and I would to curious to
know if there is one. As for me I have just found ways to not use javascript
Hi, im developing a solution in ASP.Net, i have a page that i need to use
the smartnavigation in true, the problem occurs when i put in the directive
@Page SmartNavigation = true my page trhows a error in the next line, i
really dont understand why the page trhows that error. Here is the line that
make the error.

Response.Write("<script
language=javascript>window.parent.frames[""main""].location='OpcionReporte.a
spx';</script>")

Tks

Ernesto
MX
 
B

bruce barker

because smart nav works by posting to a hidden frame, when you code
refrences window.parent, its the posting page, not the posting pages parent.
as smart nav using the hidden frame is determined at client time, your code
needs to do a little testing to detemine if its in hidden iframe or not.

-- bruce (sqlwork.com)
 
N

Nestus

could you give a little example about the testing ???

Tks

bruce barker said:
because smart nav works by posting to a hidden frame, when you code
refrences window.parent, its the posting page, not the posting pages parent.
as smart nav using the hidden frame is determined at client time, your code
needs to do a little testing to detemine if its in hidden iframe or not.

-- bruce (sqlwork.com)

Nestus said:
Hi, im developing a solution in ASP.Net, i have a page that i need to use
the smartnavigation in true, the problem occurs when i put in the directive
@Page SmartNavigation = true my page trhows a error in the next line, i
really dont understand why the page trhows that error. Here is the line that
make the error.

Response.Write("<script
language=javascript>window.parent.frames[""main""].location='OpcionReporte.a
spx';</script>")

Tks

Ernesto
MX
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top