I just developed my first application using only one page.
.. he is confused
My idea was to create an application that maximized the working environment. In particular, I wanted a detailed overview of some application data to be displayed in a pop-up window that would maintain its state regardless of the application section in which they were located.
Thus was born my Frankenstein.
What ultimately happened due to budget / time constraints is a code that got out of hand. The various sections of my JavaScript source got confused. Maintaining the proper state of different views, I was ... difficult.
With proper planning and technique, I believe that the “one page” approach is a very simple way to discover some very interesting possibilities (for example, widgets that maintain state in application sections). But it also opens up many ... many potential problem areas. including...
- Flooding the global namespace (if you don’t have your own ... do one )
- Organizing code can easily get ... out of control.
- Context is very easy
I am sure there is more ...
In short, I would strongly recommend that you stay away from JavaScript dependency for compatibility issues. What I understood is that you just don't need to rely on JavaScript for everything.
I am in the process of removing JavaScript dependencies in loo Progressive Enhancement . It just makes sense. You can achieve the same or similar effect with properly encoded JavaScript.
The idea too ...
- Design a well-formatted, fully functional application without any JavaScript
- Style
- Wrap everything with JavaScript
Using Progressive Enhancement, you can develop the application as possible for the user as possible.
Derek adair
source share