Re: begining to work with php for my site



richard wrote:
On Sat, 30 Aug 2008 21:29:13 -0400, Jerry Stuckle
<jstucklex@xxxxxxxxxxxxx> wrote:

richard wrote:
I've been playing around with some various designs for my site and
have come up with one that I like quite well. Drawback is, the
javascript portion kind of sucks in the fact that nothing happens
unless JS is enabled.

I've been looking at various tutorials and see that PHP is somewhat
similar to BASIC, and other languages. So some of it I already know.

What I've designed is a basic 3 column layout. Left column is the main choices, primarily an alphabet listing. Which
could easily be put in a drop down box. Right now it's just for
testing.

The middle column has the crux of the data in numerous text boxes.
Each text box contains a link which when clicked on, shows another
page in the 3rd column which for now, is an iframe.

My idea is, basically have the data for the text boxes stored in an
array, rather than on a page itself, and then displaying the called
content in a division cell rather than an iframe.

This way, loading of the initial page should be faster and the data
could be manipulated in other ways easier.

I know of a site for html templates, oswd.org {i think}.
Is there a similar site for php?

If anyone can clue me on how to go about doing this I'd appreciate it.




PHP is server side, and the only thing the browser sees is what you send in the html. Data stored in an array in PHP never reaches the browser unless you output it.

And once the data is displayed by the browser, your PHP script has already completed it's work and terminated.

I understand the basics. What I have now is basically a 100kb html
text file. I figure the user doesn't really need to see the entire
list unless they want to see it. That would speed up loading.

I used "Liberty BASIC" to do the repetitive html stuff and I could
easily do the same thing in PHP.


That's fine. But since you don't want to use javascript (or AJAX, which uses javascipt) or frames, you have no choice but to load the entire page.

If you only send part of the data, you must have a way to get the rest of the data. This means either javascript (AJAX), frames (which will reload part of a page) or a reload of the entire page.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: begining to work with php for my site
    ... I've been looking at various tutorials and see that PHP is somewhat ... and the only thing the browser sees is what you send in the html. ... To do what I believe you want, you'd need either javascript, iframes, or frames. ...
    (comp.lang.php)
  • Re: Obstacles for Tcl/Tk commercial application development ?
    ... printing tabular-report type data? ... is that most modern desktops will have a web browser available. ... - Generate HTML using the tcllib HTML package. ... Javascript like the following: ...
    (comp.lang.tcl)
  • Attempt to de-mystify AJAX
    ... A javaScript enabled web browser. ... One of the first things to happen is toward the last in the html code: ... Set the onReadyStateChange handler to our processChange() function ... I like PHP so our example uses php. ...
    (comp.databases.pick)
  • Re: Graphically edit a page?
    ... I realized after posting that PHP is rather beside the point. ... >| using PHP to save the info in my database. ... The onClick function will point to a javascript function to tell the ... If the user is using a text only browser then the page is unusable - ...
    (comp.lang.php)
  • Re: JS, DOM and tr... IE problems!
    ... I've got a problem with javascript and DOM. ... Capitalisation is often used in HTML markup, ... If you post what your browser is actually getting (e.g. using view ...
    (comp.lang.javascript)