Forum Moderators: open

Message Too Old, No Replies

Frames Expert Required, ASP knowledge helps

         

powerslave

1:01 pm on Apr 30, 2005 (gmt 0)

10+ Year Member



I have a shopping cart application I downloaded from the net that I am Re-engineering. It is all coded in ASP using some JS

Now I need 2 things changed to it, 1 of them may do.

This web page starts off on the default.asp and then it runs fine. Problem is when I go view source it shows up alot of info for the life of me cannot find anywhere! and dont know how to get rid of.

Alternately i can run the frames page and it runs except areas of the frame dont reload and show an updated amount spent on your shopping cart.

code goes like

top.center.frames[2].location = "pagename.asp";

Now that code dont work if i run it all from the other page.asp page with all the frames in it for some reason.....says top.center.frames[2].location is not an object or is null

So does anyone know how to call a reload on a certain area of the frame?

And Or does anyone know how to remove information from when u select "view source", this does not show the frames information like source code usually does so dont tell me the obvious, but info i cannot find anywhere! And really need to get rid of it :)

Thanks

adni18

2:03 pm on Apr 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you post the frame structure for your pages, because (no offense) I cannot make out what frames are where. Perhaps it is not working because you are using nested frames in one?

Top = WHOLE FRAMESET (FROM TOP OF SCRIPT)

Parent = Frameset in which the frame calling this variable is located in most locally.

powerslave

11:42 am on May 1, 2005 (gmt 0)

10+ Year Member



Heres the frames page code

What it needs to do is reload the middle_right.asp page in its frame and its not doing that.

I put pagename.asp as an example in my previous post, its real code has middle_right.asp in there

Thanks

<HTML>

<HEAD>

<TITLE>Lets Go Shopping</TITLE>
</HEAD>

<FRAMESET ROWS="70,50%" BORDER=0 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<FRAME SRC="top.asp" NAME=top NORESIZE SCROLLING=no MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=0>
<FRAMESET ROWS="36,50%" BORDER=0 FRAMEBORDER=0>
<FRAMESET COLS="170,100%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="middle_left.asp" NAME="cart" NORESIZE SCROLLING=no MARGINWIDTH=0 MARGINHEIGHT=12 BORDER=0 FRAMEBORDER=0>
<FRAME SRC="middle_right.asp" NAME="middle_right" SCROLLING=no MARGINWIDTH=10 MARGINHEIGHT=2 FRAMEBORDER=0>
</FRAMESET>
<FRAMESET COLS="170,50%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="categories.asp" NAME=categories NORESIZE MARGINWIDTH=6 MARGINHEIGHT=2 FRAMEBORDER=0>
<FRAME SRC="main.asp" NAME=main MARGINWIDTH=10 MARGINHEIGHT=9 FRAMEBORDER=0>
</FRAMESET>
</FRAMESET>
</FRAMESET><noframes></noframes>
</FRAMESET>
</HTML>

adni18

12:47 pm on May 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



top.center.frames[2].location

The answer lies in here, as center is not a valid frame name. The following should work:

top.frames[2].location.reload()