CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Problem with frame

Print topic Send  topic

Author Message
Livinus

Posts: 48
Posted: 12/08/2009, 7:17 PM

Hi all,

I have four frames: topframe,leftframe,mainframe and rightframe.In the leftframe, I have a grid form that displays a list of titles retrieved from a database as links. Each title link takes one to a description page page for that particular selection.i want to have this description page displayed in mainframe. Each time I select a link however, a new browser page is opened to display the description which is not what i want. I want the description page to be displayed within mainframe.

Can any one help with a suggestion on how to get this done

Regards.

Livinus
View profile  Send private message
Chris__T


Posts: 339
Posted: 12/09/2009, 7:37 AM

how do you have your links set up on this description page?

I have something similar with a left frame and a right (main) frame. In the left are links and depending on which one is pressed, it opens the page in the right (main) frame

Mine are setup in buttons, though and I needed to use functions for the onclick() in each button:

function goto_other()  
{  
 var w_left=Math.ceil((screen.width-480)/2);  
 var TempID=document.permit.Text1.value;  
 var win=window.open("http://ccnet-appserver/permit3/building/build_Other.asp?Permit_ID="+TempID,"mainframe");  
}

then the onclick for the button:
  
onclick="javascript:goto_other();"  

I'm thinking the window.open method might be the only thing you need in there. with the frame you want to open into in quotes after the url link:
window.open("http://www.test.com","mainframe"); 

well, if you are just using <a href>....... then you don't need the window.open

try this:
<a href="http://example.com/" target="xxxxx">Example.com</a> 

where xxxxx would be the name of your frame

hope this helps a bit.
View profile  Send private message
Livinus

Posts: 48
Posted: 12/09/2009, 10:12 AM

Thank you Chris, the title list is a normal grid page. The label on the grid page was changed to link and the link configured to open in the mainframe but it is not working that way. I will try out your order suggestions and report back later.

Regsrds.

Livinus
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.