Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a dynamic one page web application [closed]

I would like to make a web application (PHP) that will have overlay container that contain dynamic fields/forms.

I would like the user to complete the form but not be taken away from the main part of the page.

Imagine, browsing a website and reporting a page error into an overlay but not being taken away from the page you were reading.

Also, is it possible to make the form multiple parts/pages, such as user clicks next button and the next part of the form is presented?

like image 269
BoilerBam Avatar asked Sep 07 '10 04:09

BoilerBam


People also ask

Are single page applications dynamic?

A single-page application (SPA) is a web application or website that interacts with the user by dynamically rewriting the current web page with new data from the web server, instead of the default method of a web browser loading entire new pages.

Is a dynamic website a web application?

A web application is a collection of static and dynamic web pages. A static web page is one that does not change when a site visitor requests it: The web server sends the page to the requesting web browser without modifying it.

What three components do you need to create a dynamic web page?

There are three main components of creating dynamic web pages: a web server, a server-side programming language, and a database.


2 Answers

Nice example of this type of web app here, with some useful tips:

  • The Future of Web Apps - Single Page Applications
like image 111
Chris Fulstow Avatar answered Sep 23 '22 18:09

Chris Fulstow


What you are looking for is called ajax.

Using jQuery you could easily create the kind of form you want where the whole page is not reloaded upon submission.

Going into more details, check out jQuery UI. There a set of usually very simple to implement power tools to help create a dynamic webpage.

So jQuery UI stuff for layout (look at tabs) and ajax through jQuery for your communication with the server (PHP).

like image 40
Iznogood Avatar answered Sep 22 '22 18:09

Iznogood