Question

Asked on 2007-08-10 at 04:35:41ID: 25449348

Showing a perl flat file based forum within an iframe when searched from an engine.

by: professionalsteve500

Rating7.2Very Good

A little information:

server: linux
homepage: www.w8k8.com
forum page (that contains the perl forum in an iframe): www.w8k8.com/forum.html
perl forum (directly): www.w8k8.com/cgi-bin/forum/Blah.pl

What should happen:

My site contains a Perl forum, using javascript i can link in and out of it while keeping it in its iframe on the page /forum.html, and i can link to certain pages within the forum, an example:

www.w8k8.com/index.html has a link like this in it:

<a href=forum.html?ifsrc=/cgi-bin/forum/Blah.pl?b-gb>General Discussion </a>

using the code on www.w8k8.com/forum.html:

function getSource()
{
   ifsrc=location.search.substring(1)
   ifsrc=ifsrc.substring(6,ifsrc.length)
   document.getElementById('iframe1').src = ifsrc
}

It loads everything as it should be, maybe it would be best to look at the site if I've confused you already!

The Problem:

Say someone searches "w8k8 general discussion" from Google, they will get a link to the page www.w8k8.com/cgi-bin/forum/Blah.pl?b-gb, which if you go to you can see isn't within the iframe, i want them to be at this page <a href=forum.html?ifsrc=/cgi-bin/forum/Blah.pl?b-gb> but obviously you cant edit that on the Google side so my problem cannot be fixed with the previous solution.

Overview, what i would like to happen:

Google link to any forum page

before perl file loads user is redirected to the relevent perl subsection/page BUT now the page is within an iframe on forum.html.

I have tried to be as coherent as possible, please message me back if you are unsure what i am trying to do.

many thanks

Steve

Related Solutions

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution

View This Solution - Start Your 30 Day Free Trial
Zone
general
Tags
forum based iframe file
Participating Experts
2
Solution Grade
B

Replies

 by: mplungjan

Posted on 2007-08-10 at 05:22:55ID: 28178879

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-10 at 06:03:51ID: 28178880

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mjcoyne

Posted on 2007-08-10 at 06:22:01ID: 28178881

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mplungjan

Posted on 2007-08-10 at 06:23:17ID: 28178882

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-10 at 07:28:07ID: 28178883

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mplungjan

Posted on 2007-08-10 at 07:35:18ID: 28178884

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mplungjan

Posted on 2007-08-10 at 07:38:10ID: 28178885

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-10 at 07:53:02ID: 28178886

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mplungjan

Posted on 2007-08-10 at 11:11:35ID: 28178887

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-10 at 14:04:05ID: 28178888

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-11 at 12:04:16ID: 28178889

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mplungjan

Posted on 2007-08-12 at 00:02:33ID: 28178890

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-12 at 02:03:12ID: 28178891

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-12 at 11:14:15ID: 28178892

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mplungjan

Posted on 2007-08-12 at 23:33:38ID: 28178893

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalsteve

Posted on 2007-08-13 at 03:32:16ID: 28178894

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mplungjan

Posted on 2007-08-13 at 05:04:37ID: 28178895

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. mplungjan

    1,840

    0 points yesterday

    Profile

BrowseAre you an Expert?