This is a discussion on "[SOLVED] Showing something on a page - only if they have Javasciprt disabled." within the JavaScript Forum section. This forum, and the thread "[SOLVED] Showing something on a page - only if they have Javasciprt disabled. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Showing something on a page - only if they have Javasciprt disabled.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
You've lost me.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Last edited by Ed; Dec 24th, 2007 at 15:26. Reason: I wrote a bunch of garbage. |
|
||||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
Even though your doctype is 'XHTML', you are serving the page as 'HTML' (as Mike pointed out). Don't worry about this too much, many people use XHTML doctypes and serve them as HTML (which there is a bit of debate about, but I won't bore you with the details
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
Okay, okay...does this mean I should, or I shouldn't use Swagner's method?
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
||||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
It means you can use Swagner's method, as Mike said
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
Basically, that line of code says to the browser "I am HTML." The browser respects this, and it processes your page as HTML.
Because your page is being processed as HTML, you can use document.write. If you ever switch to real XHTML, then document.write will break your pages (it breaks well-formedness, which is a strict requirement of XHTML). |
|
|||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
Please don't shoot me!
This was my question before you showed me your method Mike. I have attempted to implement Swagner's method. Why doesn't it work here : http://simplifiedimpact.com/beta2.html
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
|||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
Quote:
...on second thoughts, don't answer that question. I actually think Swagner's method is better than mine. Quote:
I'm afraid I'm unfamiliar with the vagaries of document.write. Last edited by MikeHopley; Dec 24th, 2007 at 17:34. |
|
|||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
OK, I see that you're using my idea now. The problem is that when you use document.write, all code needs to be on one line. You can't separate the stuff within the document.write declaration. For example, you can't use this:
Hope that helps!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Last edited by Stuart; Dec 24th, 2007 at 17:55. |
|
|||
|
Re: Showing something on a page - only if they have Javasciprt disabled.
Thank You!
You can see what I wanted if you view http://simplifiedimpact.com/beta2.html with JavaScript enabled and disabled. I want to make my site accessible to every user and not just most. Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Last edited by Ed; Dec 24th, 2007 at 19:36. |
|
|||
|
Re: [SOLVED] Showing something on a page - only if they have Javasciprt disabled.
Glad to help! And may I add that your site is great! The sliding effect is really nice!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: [SOLVED] Showing something on a page - only if they have Javasciprt disabled.
Thank You Mike and aso186 as well, it's great that you both have such knowledge!
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
|||
|
Re: [SOLVED] Showing something on a page - only if they have Javasciprt disabled.
Hey, that's what the forumz are for!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [solved] Some images showing up, others not | Ohfrikenno | Starting Out | 2 | Apr 5th, 2008 15:24 |
| [SOLVED] CSS boxes not showing in IE6 | bulldog | Web Page Design | 2 | Mar 14th, 2008 19:45 |
| page showing different on different screens | xkatx21x | Web Page Design | 5 | Oct 26th, 2007 17:52 |
| Showing Current Page with Flash Slider Menu | samason | Flash & Multimedia Forum | 2 | Jun 9th, 2007 15:46 |
| Background page not showing up | aaronh | Web Page Design | 4 | Apr 30th, 2007 19:30 |