473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help with frames¡¡¡¡

Hi, i have a page with 3 frames and i want to open a page but in an specific
frame. How can i do this???

Tks

Ernesto
Nov 18 '05 #1
2 1108
You can't do that from within ASPX. Targeting frames is only possible on
client side.

Either, use standard Anchors (<a target=''...>) or add a client-side
JavaScript portion to your original page which is only executed on PostBack
if you want to update other frames after some form submission:

---
<asp:Literal Runat="server" ID="myScript" EnableViewState="False">
---
if (IsPostBack)
myScript.Text="<script>top.frames["+target+"].location="+...+"</script>";
---

HTH,
Axel Dahmen

-----------------------------------------
"Nestus" <jedd98@hotmail> schrieb im Newsbeitrag
news:Oz**************@tk2msftngp13.phx.gbl...
Hi, i have a page with 3 frames and i want to open a page but in an specific frame. How can i do this???

Tks

Ernesto

Nov 18 '05 #2
There are two ways:

1. Use frame index. This will open a page in the second frame.

window.top.frames[1].location = url;

2. Use frame id. This will open a page in the frame that has id="mySecondFrame".
I personally prefer this approach because you won't have to modify your code
if you reorganize the layout of your frames in the future.

window.top.frames('mySecondFrame').location = url;

Tommy,

"Nestus" <jedd98@hotmail> wrote in message news:<Oz**************@tk2msftngp13.phx.gbl>...
Hi, i have a page with 3 frames and i want to open a page but in an specific
frame. How can i do this???

Tks

Ernesto

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave Smithz | last post by:
Hi there, I have implemented a login sequence using session variables for a PHP/MySQL DB which I took over development. I read some books and this NG and it seemed straight forward. However the...
1
by: martingerber | last post by:
Hi, I have the following script (javascript in html document): <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>Standort Speichern</title>
14
by: TrvlOrm | last post by:
OK. After much playing around, I managed to get my frame page this far.. see code below. BUT...there are still errors with it, and what I would like to have happened is this: 1) On the Left...
8
by: heather.memmel | last post by:
I am in no way a scripter/programmer of any kind but I am in charge of a number of online videos. Anyway I need help debugging my javascript which has been pieced together from several other...
2
by: pete K | last post by:
I'm sure this is something simple that I'm missing, but here's my problem. I have two frames. <frameset> <frame name="rtop" src="something1.aspx"> <frame name="rbottom" src="something2.aspx">...
3
by: mailto.anand.hariharan | last post by:
Hello group. This is my first message in this group, and my first stab at Javascript. I am trying to tweak the code for the "FOLDOC button" (http://foldoc.org/foldoc/tools.html) to be able to...
0
by: thompson_38 | last post by:
Is the difference between calling a HTML page by it location (axWebBrowser.Navigate("C:projecthome\home.htm" ref 0, ref 0, ref 0, ref 0)) and being able to access the frames in that page using ...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.