Javascript - external link to framset

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Jordan

    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
  • Jim Ley

    #2
    Re: Javascript - external link to framset

    On 28 Sep 2004 01:08:40 -0700, tom@jb-solutions.co.uk (Tom Jordan)
    wrote:[color=blue]
    > 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.[/color]

    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.

    Comment

    • kaeli

      #3
      Re: Javascript - external link to framset

      In article <7f70719d.04092 80008.73fd567a@ posting.google. com>, tom@jb-
      solutions.co.uk enlightened us with...[color=blue]
      >
      > 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.
      >[/color]

      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.



      Comment

      Working...