Page 1 of 1
Single-Page Architectures in PHP
Posted: Tue Dec 10, 2013 11:29 pm
by rugved
Hello!
I want to create a single-page architecture in PHP but I don't know where to start.
A single-page architecture is something similar to this:
http://php.net/manual/en/internals2.str ... ecycle.php When we click on the Feedback & Ideas Form (on the right hand side) which is a different .php page, it is appears on top of the
http://php.net/manual/en/internals2.str ... ecycle.php page. Also if you observe carefully, when it is clicked, the URL doesn't change.
Can anyone please provide me a tutorial for beginners on how to create single-page architectures like this? Thank you in advance.
Re: Single-Page Architectures in PHP
Posted: Wed Dec 11, 2013 1:22 am
by requinix
1. A "single-page architecture" is a bad design. Don't do it.
2. That's not a "single-page" anything to begin with. It's just a popup so you don't leave the page you were on.
The most common term for that is
modal dialog.
Re: Single-Page Architectures in PHP
Posted: Wed Dec 11, 2013 1:31 am
by rugved
requinix wrote:1. A "single-page architecture" is a bad design. Don't do it.
2. That's not a "single-page" anything to begin with. It's just a popup so you don't leave the page you were on.
The most common term for that is
modal dialog.
Thank you for replying.
I am an R&D engineer and have been told to do by my company to do a research on such single-page web applications. So whether I like it or not is irrelevant. Secondly, I wish to learn how to create Modal Dialog in a website. So thank you for providing me the link.

Re: Single-Page Architectures in PHP
Posted: Wed Dec 11, 2013 12:45 pm
by requinix
Research is fine and all, but make sure you know what you're getting into before doing it. When people do it the two most common problems are (1) URL doesn't change which means pages can't be bookmarked or linked to or opened in other tabs, and (2) doing it so that back/forward buttons don't work and that closing and re-opening a tab doesn't display the same page but rather goes back to the "root" of the site.
Re: Single-Page Architectures in PHP
Posted: Wed Dec 11, 2013 11:13 pm
by Christopher
rugved wrote:I am an R&D engineer and have been told to do by my company to do a research on such single-page web applications. So whether I like it or not is irrelevant.
First, I'd recommend googling for "single-page web applications" where you will find articles and books on the subject. The term just means Javascript applications that use Ajax to communicate with the server. A quick search for "javascript ajax" will provide a lot of information. There are also many Javascript frameworks that can help you with your your company's task.
Re: Single-Page Architectures in PHP
Posted: Wed Dec 11, 2013 11:15 pm
by Christopher
requinix wrote:Research is fine and all, but make sure you know what you're getting into before doing it. When people do it the two most common problems are (1) URL doesn't change which means pages can't be bookmarked or linked to or opened in other tabs, and (2) doing it so that back/forward buttons don't work and that closing and re-opening a tab doesn't display the same page but rather goes back to the "root" of the site.
There are ways to deal with both bookmarking and back/forward on Javascript/Ajax pages. I know Google manages to make them work as expected in their apps.
Re: Single-Page Architectures in PHP
Posted: Fri Dec 13, 2013 5:37 am
by Faheemkhan
Great information. Very useful to me. Actually I was searching the same since many days. Thanks.