473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Generating Page Preview

I'm currently working on a management type of interface for a website.
It's a PHP site with a MySQL backend. What I'd like to do is have a
text box for editing text on the site, as well as a few other things,
and then be able to generate a preview of the site. The preview is
where I'm lost. I'm not even sure if it's possible, but what I'd like
is either an image generated from the URL or a way to quickly and easily
render the page but on a much smaller scale. Is this possible? If so,
how would I go about it?

TIA,
Justin

Sep 13 '05 #1
4 1779
Justin wrote:
I'm currently working on a management type of interface for a website.
It's a PHP site with a MySQL backend. What I'd like to do is have a
text box for editing text on the site, as well as a few other things,
and then be able to generate a preview of the site. The preview is
where I'm lost. I'm not even sure if it's possible, but what I'd like
is either an image generated from the URL or a way to quickly and easily
render the page but on a much smaller scale. Is this possible? If so,
how would I go about it?

TIA,
Justin


have you thought about using iframes?
Sep 13 '05 #2
On Tue, 13 Sep 2005 18:51:17 GMT, muldoonaz wrote:
Justin wrote:
I'm currently working on a management type of interface for a website.
It's a PHP site with a MySQL backend. What I'd like to do is have a
text box for editing text on the site, as well as a few other things,
and then be able to generate a preview of the site. The preview is
where I'm lost. I'm not even sure if it's possible, but what I'd like
is either an image generated from the URL or a way to quickly and easily
render the page but on a much smaller scale. Is this possible? If so,
how would I go about it?

TIA,
Justin


have you thought about using iframes?


It's an idea, but I'd like it to be a scaled down version that won't
require scrolling to view.

Sep 13 '05 #3

"Justin" <cR********@EhToHtIpSop.com> wrote in message
news:51****************************@40tude.net...
On Tue, 13 Sep 2005 18:51:17 GMT, muldoonaz wrote:
Justin wrote:
I'm currently working on a management type of interface for a website.
It's a PHP site with a MySQL backend. What I'd like to do is have a
text box for editing text on the site, as well as a few other things,
and then be able to generate a preview of the site. The preview is
where I'm lost. I'm not even sure if it's possible, but what I'd like
is either an image generated from the URL or a way to quickly and easily
render the page but on a much smaller scale. Is this possible? If so,
how would I go about it?

TIA,
Justin


have you thought about using iframes?


It's an idea, but I'd like it to be a scaled down version that won't
require scrolling to view.


it can do, swap the style sheet for a "mini.css" which uses smaller fonts,
tables, images ect...interesting idea actually.

Failing that you would have to create a jpeg for each of the pages that
*could" be created and load that. I have done this in the past but only
where there have been 10 or possibilities.
Sep 13 '05 #4
In article <1l******************************@40tude.net>,
Justin <cR********@EhToHtIpSop.com> wrote:
I'm currently working on a management type of interface for a website.
It's a PHP site with a MySQL backend. What I'd like to do is have a
text box for editing text on the site, as well as a few other things,
and then be able to generate a preview of the site. The preview is
where I'm lost. I'm not even sure if it's possible, but what I'd like
is either an image generated from the URL or a way to quickly and easily
render the page but on a much smaller scale. Is this possible? If so,
how would I go about it?


This isn't possible using PHP. Basically what you want is a thumbnail of how
the page will look *when rendered* by a web browser.

PHP doesn't know *anything* about how the resulting page will look and can't
generate such preview.

But are you managing content or the entire site (i.e. design, menu et all) with
this script? I am the author of a CMS system myself and whenever a user in my
system edits a text and submits, it will be shown in the correct context on the
site and will thuis be fully previewable - only in true, live, full-scale.

What kind of extra step are you trying to avoid? Why not have the user switch
between a view and edit mode of their site?

--
Sandman[.net]
Sep 14 '05 #5

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

Similar topics

0
by: Mark | last post by:
Hi, I am trying to create a "print preview" window for a web site using asp.net. I have got a long way down the road to the solution but the problem I have now is that the text and lines on the...
7
by: Mark | last post by:
Hi, I am trying to create a "print preview" window for a web site using asp.net. I have got a long way down the road to the solution but the problem I have now is that the text and lines on the...
4
by: Evan T. Basalik | last post by:
In my ASP.NET application, I have a table (really a datagrid) that I am converting into an Excel sheet using ContentType = "application/vnd.ms-excel". It seems to work fine for most of my results,...
1
by: bennett | last post by:
I'm trying to write an ASPX page that uses an OleDbDataAdapter to get data from a SQL Server database. When I test the connection, it returns success, and when I preview the data using the...
2
by: Syam | last post by:
Hello everyone, I am just barely two months old into learning asp.net and vb.net. Currently I am working on a project to store customer database. I have a question about creating a preview page:...
9
by: igotyourdotnet | last post by:
I need to create a print preview page BUT my page I need to print has a grid and in the grid I have 2 or 3 columns that have links I want to hide the columns with the links on my print preview page...
2
by: bob.turner.uk | last post by:
Hi, I would like to supress the generating preview dialog of the print preview control. Does anyone know how to do this? Regards, Bob
0
by: bendorge | last post by:
Hi there, Using Python, I'm auto-generating an HTML file that contains: <input type="hidden" value="XXX" />, where XXX is XML data (encoded somehow). Articles regarding unicode are making my...
3
by: deciacco | last post by:
I'm trying to write a label printing SDI app with a small preview on the main form itself. Every time I run the InvalidatePreview event on the preview control to redraw the preview I get the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.