473,809 Members | 2,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript - external link to framset

Hi all,

Ok, could do with some advice on this.

I've written a script in ASP for a client so they can compose HTML
newsletters and include various products from the online database.

I didn't create the original site, which is nicely done but sadly all
done in frames. Now the problem, in the body of the email I NEED to
link to various internal pages of the website. I know this isn't
possible using HTML (as far as I know). So, what I figured I could do
is link to a page on the site, run some Javascript to open the
frameset with the desired frame in the content window.

Sorry if this isn't very clear, I could really do with a point in the
right direction.

Any suggestions would be v much appreciated!

Tom
Jul 23 '05 #1
2 1541
On 28 Sep 2004 01:08:40 -0700, to*@jb-solutions.co.uk (Tom Jordan)
wrote:
Now the problem, in the body of the email I NEED to
link to various internal pages of the website. I know this isn't
possible using HTML (as far as I know). So, what I figured I could do
is link to a page on the site, run some Javascript to open the
frameset with the desired frame in the content window.


Nah, forget javascript, just create a frameset for each initial
combination you need to link to, it'll take moments and work for
everyone.

Jim.
Jul 23 '05 #2
In article <7f************ **************@ posting.google. com>, tom@jb-
solutions.co.uk enlightened us with...

I didn't create the original site, which is nicely done but sadly all
done in frames. Now the problem, in the body of the email I NEED to
link to various internal pages of the website. I know this isn't
possible using HTML (as far as I know). So, what I figured I could do
is link to a page on the site, run some Javascript to open the
frameset with the desired frame in the content window.


No, this can't be done unless the original frames author allowed for the
passing of a param to the frameset telling it which frame to load. Which she
or he should have, but probably didn't. ;)

You might be able to hack it, but most of the time, security restraints will
prevent you from changing the frameset with script from a script that isn't
resident in the frameset.

Now, if the author put script into his frame pages that loads the page into
the frameset if it is attempted to be loaded without it, you could just link
to the pages. This is what I do for my intranet frame app. I also do the
first thing I mentioned. I don't know what the original author did, though.

If you can modify the frameset page, you could easily allow the passing of a
page (url param) telling it what page to load...

--
--
~kaeli~
Join the Army, meet interesting people, kill them.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3

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

Similar topics

10
2112
by: Rob Fentress | last post by:
I am trying to develop very standards-compliant content using XHTML and CSS. I am using CSS positioning and thus need to only include my stylesheet on browsers I have tested to make sure they display correctly. The page is readable without the CSS though the formatting is not pretty, but browsers like Netscape 4.x bungle the positioning if I include the stylesheet, making it unreadable. I am using the JavaScript Browser Sniffer by Eric...
6
1866
by: KKramsch | last post by:
OK, here's the scenario: I have a CGI script that generates a page with frames (BTW, I'm not crazy about frames, but in this case the decision to use them is out of my hands). In a typical session, the user interacts with two of these frames extensively, and up to the very end of the session, this interaction is handled entirely client-side by a fairly elaborate JavaScript script. (This interaction takes place exclusively via HTML...
1
1867
by: lindsey.crocker | last post by:
I have a problem calling a framset from javascript - I will explain as best I can. I have a site with 2 frames. Left frame contains a javascript menu. Right frame contains the page and a scrolling javascript news item. I want to have a function on my scroller that when clicked on it calls the frameset for the news area and it replaces the entire current frameset.
6
2836
by: Tom Braun | last post by:
Hello! My first post here... I need to monitor if someone clicked on some (any) link in a subframe. Due to certain restrictions, the only place I can put some JavaScript is in the main (frameset) page, though. It appears you can do somehing like document.onClick = blah to ensure that the function blah is called when someone clicks on a link in the
9
3522
by: books1999 | last post by:
I have framset with leftFrame, mainFrame, TopFrame. I found this script : http://www.dynamicdrive.com/dynamicindex8/collapsemain.htm I wonder if it could be ajusted so that it collapses the same frame that calls it. As it is, If I put the function in the left frame it decreases the size of the topFrame. I want it to collaps itself. Is this doable, if not could you please point me to some other resource
4
3184
by: dennise9 | last post by:
My exeternal JS works fine when the call is placed in the page head or body. But if I call the same javascript from a (clicked) text link on the page, the script throws a JS error when it executes. Help! I can't figure this out. The external JS file is "members.js". Here's the code:
4
2647
by: fmaxwell | last post by:
Dear Group I have a very frustrating problem. I have been trying to make it more difficult to access external javascript files by using PHP sessions. This works beautifully locally (both in IE6 and IE7) and online in IE7, but frustratingly, online in IE6, the javascript does not render on the page, unless you refresh the page. Is there something different about the way IE6 handles sessions? Why
9
8431
by: Erwin Moller | last post by:
Hi, Can anybody comment on this? In comp.lang.php I advised somebody to skip using: <script language="javascript"> and use: <script type="text/javascript"> And mr. Dunlop gave this response:
5
12230
by: Joey | last post by:
I have the following in the head section of the ASPX page for my master page: <script language="javascript" type="text/javascript" src="MyCodeFile.js"></script> This includes my external javascript code file for my master page and all subscribing pages. But I ran into a problem. This only works for pages in the root directory of the site. The (relative) path is wrong for pages in other folders on the website.
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10379
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.