Frame to load info from link

Not sure if this is possible, we have two companies and i want to send a link via email to promote new designs, but i only want to create the content once and the link will take them to the regional site and the inner frame show the same design.

Example Link www.companyONE.com/LONDONframe.php?page=design.html or www.companyTWO.com/PARISframe.php?page=design.html

I was hopping that the info after the ?page= would be loaded into the frame, and having read this topic, http://www.freewaytalk.net/thread/view/29208 I thought i could solve the problem

But being new to freeway i am having great problems to implement as not sure if it was in a frame set or iframe and can to see where the <?=scr$?> goes. Is this possible to achieve and is there a simple couple of pages to show the code in how it could be done so i can just get the basic layout working.

Many thanks of reading and hope you can help

Best regards
Dave


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s a very simple example. If you try it, you may understand the way that it works, and then the rest of that thread should make perfect sense.

  1. Create a new Frameset with a top frame of fixed size and a bottom frame of indeterminate size (*).
  2. Set the filename of the frameset to whatever.php.
  3. In the Frames palette, select your bottom frame and change its source from the automatic page Freeway created to an external URL. In the external URL, paste in this code: <?php print rawurldecode($_GET['page')); ?>
  4. Use this URL (modified for your server) to test this page on your server (you cannot preview this on your Mac, it has to run on a PHP-enabled server) http://example.com/whatever.php?site=http%3A%2F%2Fwww.apple.com%2Fiphone

When you upload this to your server, correct the URL I entered above to match the actual public address of your server and the name of the frameset page you actually used, you should see a frameset with a fixed-height banner over the top of the Apple iPhone site.

You won’t need to enter a complete URL as the value of ‘site’, you could also use a relative link to a page in your own site, so you could have http://example.com/london.php?site=design.html and http://example.com/paris.php?site=design.html and as long as the london.php, paris.php, and design.html files were all in the same folder, this would just work.

Walter

On Feb 23, 2012, at 7:53 AM, wattie777 wrote:

Not sure if this is possible, we have two companies and i want to send a link via email to promote new designs, but i only want to create the content once and the link will take them to the regional site and the inner frame show the same design.

Example Link www.companyONE.com/LONDONframe.php?page=design.html or www.companyTWO.com/PARISframe.php?page=design.html

I was hopping that the info after the ?page= would be loaded into the frame, and having read this topic, http://www.freewaytalk.net/thread/view/29208 I thought i could solve the problem

But being new to freeway i am having great problems to implement as not sure if it was in a frame set or iframe and can to see where the <?=scr$?> goes. Is this possible to achieve and is there a simple couple of pages to show the code in how it could be done so i can just get the basic layout working.

Many thanks of reading and hope you can help

Best regards
Dave


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Many thanks for the quick reply Walter, But i am still having no luck i am sure it is me. I created a blank site and a new frameset renamed the frameset lon.php and added the code for the source to the bottom frame (external Other) http://tarratt-design.co.uk/lon.php?test.html

But it is not working and even more puzzling is if i right click to view the source it is blank my server says it is PHP namesco

Many thanks but i must be doing something very basic wrong


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

See what happens if you put a plain-text file in your server, named whatever.php containing just this one line of text:

<?php phpinfo(); ?>

Note that you must use a plain-text editor for this, Pages or Word will not do. TextWrangler, free from http://barebones.com is a good choice.

Use an FTP application to upload this file to your server, and then visit it in a browser. If you see a very tall page with lots of amusing details about your server, you can proceed to the next stage of troubleshooting. But if all you see is a blank white page, just as I do when I try to see your frameset, then you have larger issues to begin with. Either way, delete this file from your server as soon as you’re done looking at it. It will reveal technical details that an attacker could use, and Google has a long memory for posts such as this one.

Walter

On Feb 23, 2012, at 12:22 PM, wattie777 wrote:

Many thanks for the quick reply Walter, But i am still having no luck i am sure it is me. I created a blank site and a new frameset renamed the frameset lon.php and added the code for the source to the bottom frame (external Other) http://tarratt-design.co.uk/lon.php?test.html

But it is not working and even more puzzling is if i right click to view the source it is blank my server says it is PHP namesco

Many thanks but i must be doing something very basic wrong


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi walter done that and it comes back with all the info php vision 5.2.9


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay. Good. Now try adding the following to your Frameset page, using the Page / HTML Markup dialog. Be sure to put the code in the Before HTML section of that dialog. Publish and upload, and then see what you see:

<?php
	ini_set( 'display_errors', 1 );
	error_reporting( E_ALL );
?>

The page is not loading because of an error, but your server is configured to hide errors (which is prudent in a production server) so you just don’t know what kind of mistake you (or I) made. This should tell you something.

Walter

On Feb 23, 2012, at 12:42 PM, wattie777 wrote:

Hi walter done that and it comes back with all the info php vision 5.2.9


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

At home i tried on a PC and got error 500 but adding the php display error did not show any more info.

This is the basic code of the lon.php page which may show you my errors hopfully,

<?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); ?> Untitled1

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I just spotted what might be the problem.

The frameset URL should read:

<?php print rawurldecode($_GET['page']); ?>

rather than

<?php print rawurldecode($_GET['page')); ?>

Typo on my part with the close parenthesis in place of a close square bracket.

However, your example doesn’t show the error reporting code in the correct spot – did you put it in the Before HTML slot of the Page / HTML Markup dialog? It should appear before the DOCTYPE tag.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

looks like i can not post the code so i zipped it up http://tarratt-design.co.uk/File.zip
maybe this will help.

Thanks again for all your time

Dave


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, you have three instances of the show errors script in there now, so you can go back and delete all of them from the Page / HTML Markup dialog! Next, make the typo correction I suggested (change that inner close parenthesis to a close square bracket, and you should be all set.

Walter

On Feb 23, 2012, at 4:07 PM, wattie777 wrote:

looks like i can not post the code so i zipped it up http://tarratt-design.co.uk/File.zip
maybe this will help.

Thanks again for all your time

Dave


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That was it Walter ] you were keen eyed to spot it… :slight_smile:

Many thanks for your time and knowledge I can now figure out the rest.

With best regards
Dave


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options