Inserting other pages into body of main page
11-03-2007, 11:08 AM
|
Inserting other pages into body of main page
|
Posts: 8
Name: Jeff G.
|
Greetings -
I'd like to (virtually) insert a web page into the body of another web page. That is, I'd like to insert a second page into the middle of the main page with a script, not actually edit the main page and physically insert the page. That way, should I want to edit the second page in the future, I don't have to edit both the second page and the main page. Make sense?
I remember seeing an example once of this being done using an ASP script, and I'd think Java would be able to handle it. An example script or a link to a site with instructions would be greatly appreciated.
__________________________________________________ ____
Also, I asked the following in the 'Computer' section because I didn't see anywhere else to post it, but I don't think many people are reading it. With the Admins' kind permission, allow me to ask it here.
I'm looking for a good site-updater, something at least as sophisticated as Adobe GoLive. As a site-updater, it's a great program, but it has some inherent bugs that I could do without. It's main problem is that it gives up immediately if the 'Net clogs up for a second, issuing an error message and NOT keeping track of what's already been uploaded during that session. So you have to upload everything all over again. I had a 1-hour upload bail out at the 99% mark yesterday, so I figure it's time for a change.
FWIW, I've looked at two 'dedicated' site-updating programs, but neither was anywhere near as sophisticated as GoLive. It not only displays a list of the files to be uploaded, so you can pick & choose, but it also sweeps for 'orphan' files, allowing you delete the unlinked clutter.
Exit question: Does anyone know if Dreamweaver has site-updating capabilities? I looked over the "Full features" area on Adobe but it never mentions it.
Thanks, all,
Jeff
|
|
|
|
11-03-2007, 01:32 PM
|
Re: Inserting other pages into body of main page
|
Posts: 1,083
|
You can do it with php. You can also use an iframe.
I don't do windows server so if it can be done with asp someone esle will have to reply.
Learn to use FTP for your uploads. If that times out you just start again where it stopped.
|
|
|
|
11-03-2007, 01:58 PM
|
Re: Inserting other pages into body of main page
|
Posts: 13,644
Location: Blackpool. UK
|
Yep Dreamweaver can do site updates look for "Synchronise"
or take a look at WebMaestro. The author is a mod here ForrestCroce so support isn't too far away
ASP can do includes as well and SSI can also be used.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
11-06-2007, 11:13 AM
|
Re: Inserting other pages into body of main page
|
Posts: 8
Name: Jeff G.
|
Colby, thanks for reminding me about the IFrames command. It's crude and clunky, but for a quick insert job, it'll do fine.
As far as this goes, though:
"Learn to use FTP for your uploads. If that times out you just start again where it stopped."
Using an FTP client to update a site might be okay if you have 20 files on the site, but I've got over 1,300. If I spend an hour updating 19 files in 14 folders, then, using FTP, I have to remember every file I updated and individually transfer them, folder by folder, to the site. At some point, one really needs an automatic updater.
Chris, thanks for mentioning WebMaestro. I remember reviewing it a while back, but it's not sophisticated enough. Ideally, a site updater should:
- First list, then update newer files to the site
- 'Synchronize' the sites and download any extra files on the server to the local computer
- Find, list, and delete orphan files, both locally and on the site.
Between both Adobe PageMaul and GoLivid, the above can be accomplished, but neither program does all three. Just another example of programs being written by people who don't actually use them.
I'll give Dreamweaver a try and see what's up. I don't have my hopes up, but if it does an exceptional job, I'll report back here.
Jeff
|
|
|
|
11-06-2007, 01:34 PM
|
Re: Inserting other pages into body of main page
|
Posts: 8
Name: Jeff G.
|
I have an update on Dreamweaver's 'Synchronize' feature, if anyone's interested. There are two good things and two bad things.
The Good:
- It does all three main functions of a site updater; update, synchronize and delete orphan files. You choose which of the three functions you want when you start the 'Synchronize' process.
- It also does what Pagemill used to do, but GoLive doesn't -- another seriously annoying thing about GoLive. Pagemill and Dreamweaver scan the site, compare the dates against the files on the computer, then upload the newer ones. GoLive makes some kind of 'database' of the remote files, so if you put in an image file of an older OS, or use a different computer, you have to start all over again. So kudos to Dreamweaver for going about it the logical way. Now watch Adobe, its new owner, screw around with it and do it the GoLive way in the next version.
The bad:
- I could have sworn the first time it listed out the files to upload it was in folder format, then I clicked the "Show all files" box to list them all out, but it's never gone back to 'folder mode' since. This is something of a pain if you just want to upload (or not upload) just one folder.
- The 'transfer' box doesn't show any indication as to the overall progress, just file-by-file. That would actually have to go on the 'Odd' list, since programs like this almost always have some kind of overall bar graph or 'time remaining' figure.
Of course, the real test will be when it hits some serious 'Net congestion. I've been using it for about a half an hour now, but little DU Meter has reported relatively smooth sailing. So far. It'll be interesting to see if it turns belly-up at the first sign of trouble, like GoLive does.
Jeff
|
|
|
|
11-07-2007, 04:16 AM
|
Re: Inserting other pages into body of main page
|
Posts: 9
Name: Rohan Shenoy
Location: Thane-Vashi,Mumbai,India
|
Does including one page into another affect SEO ?
|
|
|
|
11-07-2007, 04:26 AM
|
Re: Inserting other pages into body of main page
|
Posts: 13,644
Location: Blackpool. UK
|
Quote:
|
Does including one page into another affect SEO
|
In what way?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
11-07-2007, 08:13 AM
|
Re: Inserting other pages into body of main page
|
Posts: 39
Name: Martin
|
Id like to know that to
|
|
|
|
11-20-2007, 10:10 AM
|
Re: Inserting other pages into body of main page
|
Posts: 1
|
Quote:
Originally Posted by chrishirst
In what way?
|
in search engine crawl surely...
i think include with PHP or ASP or another ServerSideScripting does not effect the crawl, but deffrent if you use an iframe.
|
|
|
|
05-29-2008, 09:44 PM
|
Re: Inserting other pages into body of main page
|
Posts: 202
Location: Flordidian
|
I'd like to know if using includes to build your page has drawbacks, or if the search engines will crawl the php pages.
|
|
|
|
05-29-2008, 09:53 PM
|
Re: Inserting other pages into body of main page
|
Posts: 27
Name: Seb
|
Don't they just crawl the rendered HTML?
Like how the browser shows it?
|
|
|
|
05-29-2008, 11:38 PM
|
Re: Inserting other pages into body of main page
|
Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
|
Yes, if you use PHP/ASP/SSI to include it does, but iframes and frames bring up the question of what do they do in that case.
__________________
PHP Code:
<?php echo "Hello World"; ?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
|
|
|
|
05-30-2008, 06:56 PM
|
Re: Inserting other pages into body of main page
|
Posts: 13,644
Location: Blackpool. UK
|
Quote:
Originally Posted by Capt Quirk
I'd like to know if using includes to build your page has drawbacks, or if the search engines will crawl the php pages.
|
Right click -> View Source - That's what the SE crawlers see
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
05-30-2008, 11:36 PM
|
Re: Inserting other pages into body of main page
|
Posts: 202
Location: Flordidian
|
Ok, that makes sense. So is there a right way/wrong way?
|
|
|
|
05-31-2008, 01:40 AM
|
Re: Inserting other pages into body of main page
|
Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
|
Umm with PHP I'd suggest using require_once() myself. Seems to be best. Chris, that still asks about iframes, since it sees the iframe information, does it follow the link and parse it in?
__________________
PHP Code:
<?php echo "Hello World"; ?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
|
|
|
|
05-31-2008, 09:20 AM
|
Re: Inserting other pages into body of main page
|
Posts: 202
Location: Flordidian
|
Assuming I know nothing about php, what do you mean by require_once()?
|
|
|
|
05-31-2008, 11:13 AM
|
Re: Inserting other pages into body of main page
|
Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
|
__________________
PHP Code:
<?php echo "Hello World"; ?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
|
|
|
|
05-31-2008, 02:17 PM
|
| |