× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Nathan,

Rather than writing JavaScript to show or hide content that
applies to just one page, how about just embedding that
content in just one of the pages?

D'oh!

Good idea.

Thanks,
Kelly


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin
Sent: Friday, July 10, 2015 7:01 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] 7 lessons from my first responsive web site


1. Does this example constitute a single page app (SPA)?


Yes, at least it fits the Wikipedia definition for SPAs:

https://en.wikipedia.org/wiki/Single-page_application

Personally, I tend to differentiate between "applications" which merge database content with HTML vs. "sites", which essentially serve static content.


If this is an SPA, then it shows a very simple, responsive SPA
requires little in the way of JavaScript libraries or frameworks.


Good observation and point. I've opined a couple of times lately that most JavaScript and CSS frameworks are overly scoped, which is a difficult position to take because some are so popular.


2. Are there pitfalls to modifying the site layout based on the
content being loaded into the page?


I don't have enough experience with SPAs yet to have a good feel for the constraints one may run into as the complexity and functional requirements increase. I hope to gain that kind of experience.


The site has a light blue box extending across the page containing the
site theme (i.e., "Social hope is faith in the ability of human beings
to care for each other"). I would like the site theme to show only on
the home page. I would like it hidden on the other pages to give more
scree real estate to the content of the page.


Rather than writing JavaScript to show or hide content that applies to just one page, how about just embedding that content in just one of the pages?
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.