Generating Page Preview

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

    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

  • muldoonaz

    #2
    Re: Generating Page Preview

    Justin wrote:[color=blue]
    > 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
    >[/color]

    have you thought about using iframes?

    Comment

    • Justin

      #3
      Re: Generating Page Preview

      On Tue, 13 Sep 2005 18:51:17 GMT, muldoonaz wrote:
      [color=blue]
      > Justin wrote:[color=green]
      >> 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
      >>[/color]
      >
      > have you thought about using iframes?[/color]

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

      Comment

      • Zoe Brown

        #4
        Re: Generating Page Preview


        "Justin" <cRyExM0O7V@EhT oHtIpSop.com> wrote in message
        news:51onbksmw2 lj$.l28bekobn7g l.dlg@40tude.ne t...[color=blue]
        > On Tue, 13 Sep 2005 18:51:17 GMT, muldoonaz wrote:
        >[color=green]
        >> Justin wrote:[color=darkred]
        >>> 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
        >>>[/color]
        >>
        >> have you thought about using iframes?[/color]
        >
        > It's an idea, but I'd like it to be a scaled down version that won't
        > require scrolling to view.[/color]

        it can do, swap the style sheet for a "mini.css" which uses smaller fonts,
        tables, images ect...interesti ng 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.


        Comment

        • Sandman

          #5
          Re: Generating Page Preview

          In article <1lqkjnv1eewoe$ .1v5n38zs2onqh. dlg@40tude.net> ,
          Justin <cRyExM0O7V@EhT oHtIpSop.com> wrote:
          [color=blue]
          > 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?[/color]

          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]

          Comment

          Working...