473,395 Members | 1,629 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,395 software developers and data experts.

forwarding to a different frame! help....

Hello,

This is actually more of html/script question, but since it is with a
asp.net project figured posted here.

Well I found a piece of code in here, of microsoft, to use for creating
menus/popups. It is great, however, I haven't been able to modify it to show
the forms that it opens in a different frame rather than the parent one!

Here is the part that I need help with:
<SPAN ONCLICK="parent.location.href='http://somesite.com'">
menu Item 1</SPAN>
from this link:
http://msdn.microsoft.com/workshop/s...usingpopup.htm

I tried to replace the whole span with a regular <A> that has a target, but
didn't do anything. So I think in order for me to be able to use this will
need to modify this code to have a different target than the parent frame!

Thanks in advance for your help.
Nov 19 '05 #1
2 1018
try
<a href="javascript:parent.location.href='http://somesite.com'">menu Item
1</a>

or

<a href="http://somesite.com" target="name_of_parent_frame">menu Item 1</a>

HTH, ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
"Reza Solouki" <Re*********@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Here is the part that I need help with:
<SPAN ONCLICK="parent.location.href='http://somesite.com'">
menu Item 1</SPAN>
from this link:
http://msdn.microsoft.com/workshop/s...usingpopup.htm
I tried to replace the whole span with a regular <A> that has a target, but didn't do anything. So I think in order for me to be able to use this will
need to modify this code to have a different target than the parent frame!

Thanks in advance for your help.

Nov 19 '05 #2
The first option opens in the source frame, which is what I am trying to
change to opening in another frame.
The 2nd option doesn't even respond, tried it already.

"Martin Eyles" wrote:
try
<a href="javascript:parent.location.href='http://somesite.com'">menu Item
1</a>

or

<a href="http://somesite.com" target="name_of_parent_frame">menu Item 1</a>

HTH, ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
"Reza Solouki" <Re*********@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Here is the part that I need help with:
<SPAN ONCLICK="parent.location.href='http://somesite.com'">
menu Item 1</SPAN>
from this link:

http://msdn.microsoft.com/workshop/s...usingpopup.htm

I tried to replace the whole span with a regular <A> that has a target,

but
didn't do anything. So I think in order for me to be able to use this will
need to modify this code to have a different target than the parent frame!

Thanks in advance for your help.


Nov 19 '05 #3

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

Similar topics

4
by: Ray Schaeffer | last post by:
Hi, I've written a very simple test HTML/JS program where the JS code in one frame writes to a different frame with "parent.frame1.document.write(...". This seems to work ok with IE-6, but with...
2
by: Paul | last post by:
I have a simple frame-based application where title information appears in a top frame and a lower frame contains the content for the application. One of the needs for this app is for a status...
3
by: dana lees | last post by:
Hi, I'm writing a C# asp.net web application. I have a frameset in which the upper frame contains a "print" button and the lower frame contains content of a different domain. Since i cannot...
0
by: nicholas | last post by:
I use session variables that stores data for a shopping basket. The site runs at www.mysite.com/france and works fine. But I also have the domainname: www.mysiteforfrance.com So, on a Plesk...
18
by: R. Bernstein | last post by:
Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no "restart" ("R" in...
7
by: pigeonrandle | last post by:
Hi, Does anyone know if there is a way to foward messages that a form receives to another application form. I was thinking i could override WndProc, but i don't know how to forward any messages...
1
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and...
6
by: mcl | last post by:
I have a domain name which is set up for web forwarding with a frame. I have a link on one of the site's pages to an external site. When I select the link the external site is displayed correctly...
1
by: redgoals | last post by:
Hi All, I will be creating a white label website for car hire dealers. My main website will be called something like: carhire.com, the content on carhire.com will be pulled in from a database. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.