Displaying pages in a frame

This is a discussion on "Displaying pages in a frame" within the JavaScript Forum section. This forum, and the thread "Displaying pages in a frame are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 24th, 2006, 18:47
New Member
Join Date: Dec 2006
Location: london
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Displaying pages in a frame

Hi there,
I've written a short piece of script which enables me to show a selected user profile. However, instead of showing this on a new page, I want it to be displayed in the in-line frame (Profile) I've created - see code below.
any help would be gratefully receieved.
<% Option Explicit %>
<!--#include file="../usrmgmt/common.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- #BeginTemplate "pgs.dwt" -->
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="Title" content="Porchester Golf Society - PGS">
<meta name="Author" content="Rakesh Gupta">
<meta name="Subject" content="Golf Society">
<meta name="description" content="This is the Porchester Golf Society website (PGS). Details of all the members, forthcoming golf days during 2004.PGS was established in 1998">
<meta name="keywords" content="PGS, Porchester Golf Society, Golf, 2004, members, events, matchplay, courses,golf forum">
<meta name="Language" content="English">
<meta name="Expires" content="Now">
<meta name="Abstract" content="Porchester Golf Society">
<meta name="Copyright" content="© Porchester Golf Society 1999">
<meta name="Designer" content="Rakesh Gupta">
<meta name="Publisher" content="Rakesh Gupta">
<meta name="Revisit-After" content="1 Days">
<meta name="Distribution" content="Global">
<meta name="Rating" content="Safe For Kids">
<meta name="Category" content="Recreation &amp; Sport">
<meta name="Robots" content="Follow">
<meta name="Reply-To" content="webmaster@porchestergs.com">
<link rel=stylesheet type="text/css" href="../styles.css">
<!-- #BeginEditable "doctitle" -->
<title>Select name</title>
<script>
function show_player() {
var sel = document.player_form.player.selectedIndex
var pl = document.player_form.player[sel].value;
var loc = "../profiles/"+pl+".asp";
//alert(loc);
target = "_parent"
document.location = loc;
}
</script>
<!-- #EndEditable -->
</head>
<body>
<body style="margin: 20px 30px; background-attachment: fixed; background-image: url('../images/back_header.gif');" >
<table style="width: 800px" cellspacing="0" cellpadding="0" class="style2" >
<tr>
<td>
<!--webbot bot="Include" U-Include="../myborders/top.asp" TAG="BODY" --></td>
</tr>
</table>
<table style="width: 801px" cellspacing="0" cellpadding="0" class="style3">
<tr>
<td style="height: 80%; width: 107px" align="left" valign="top">
<!--webbot bot="Include" U-Include="../myborders/left.asp" TAG="BODY" --></td>
<!-- #BeginEditable "main" -->
<td>
<table style="width: 100%">
<!-- MSTableType="layout" -->
<tr>
<td style="width: 145px">
<font color="#2A3B75">Select name</font>
<form name="player_form">
<select name="player" size="10" style="height: 342px">
<option selected value="aaaaa">aaaaa</option>
<option value="bbbbbb">bbbbbb</option>
<option value="ccccccc">cccccc</option>
</select>
<p>
<input type="button" value=" Show info " onclick="show_player();">
</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
</form>
&nbsp;</td>
<td valign="top">
<iframe name="Profile" id="I1" style="width: 451px; height: 704px" src ="../profiles/prfile_blank.htm">Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></td>
</tr>
</table>
</td>
<!-- #EndEditable -->
</td> </tr>
</table>
<table style="width: 800px" cellspacing="0" cellpadding="0">
<tr>
<td>
<!--webbot bot="Include" U-Include="../myborders/bottom.asp" TAG="BODY" --></td>
</tr>
</table>
</body>
<!-- #EndTemplate -->
<!-- #EndTemplate -->
</html>
Reply With Quote

  #2 (permalink)  
Old Dec 25th, 2006, 09:44
New Member
Join Date: Dec 2006
Location: london
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Displaying pages in a frame

Issue has been resolved:-)
by adding the following
window.frames['Profile'].location.href = loc;
Reply With Quote
Reply

Tags
forms, in line frame

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
EASY PEASY Displaying frame address in another frame question molotov JavaScript Forum 3 Nov 20th, 2007 17:29
Problems with Organising Website Files - Folders Stop My Pages from Displaying thebagman Website Planning 10 Sep 4th, 2007 22:12
php pages displaying nothing!? gBay PHP Forum 4 Jul 24th, 2007 20:29
using a div like a frame to display other web pages harv Web Page Design 6 Aug 31st, 2006 18:28
Scripting Needed(adding pages to pages) Amari Classic ASP 1 Sep 4th, 2004 18:06


All times are GMT. The time now is 10:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43