Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 2nd, 2006, 5:03 PM   #11
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
the people who disable this are people like me. people stuck with dialup (b/c i live in the country). the most i ever do is disable images. how about THIS solution.

<<IF YOU DISABLE JAVASCRIPT THIS SITE WILL NOT WORK PROPERLY>>
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 2nd, 2006, 7:03 PM   #12
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Pretty much what I do, except I'm normally a little ruder. Put in in 'noscript' tags.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 2nd, 2006, 7:33 PM   #13
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
Quote:
Originally Posted by Arevos
I can access the site.

Your site appears to be AJAX, using XMLHttpRequest. Perhaps you could construct a form that would send data normally to your application through standard CGI, and then use javascript to "override" the form. Perhaps this would be as easy as adding in an onClick event, or perhaps the POST address of the form would need to be changed. Regardless, javascript can easily edit the DOM of a page.

So, you could have a normal CGI application for those without Javascript, and a fancy AJAX application for those with it.
I think I like the sound of that the best... I like the idea of the user not having to make a decision based on whether or not they have Javascript. I guess I'll need to start learning up on what CGI is...
Writlaus is offline   Reply With Quote
Old Apr 2nd, 2006, 7:51 PM   #14
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
CGI is an interface. Most Perl, PHP, and other server-side scripts dealing with the typical web transaction deal with that interface. You now know all you need to know about CGI for lebenty-jillion percent of your efforts.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 3rd, 2006, 8:25 PM   #15
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
I think 10% is much too high. I would place it around 2% from statistics gathered from sites that I created. I imagine it all depends on your website's target audience.
I initially went crazy with all the JavaScript magic and made my pages require it... going slightly more relaxed these days. I use it now, in conjunction with work on the server side, to add faster page loading and a couple of useless bits of eye candy while retaining core functionality, e.g you can see at a (very old) design of my site at http://paul.giannaros.org - e.g click on the "contact" link with JS enabled and then again with it disabled.
Cerulean is offline   Reply With Quote
Old Apr 4th, 2006, 5:36 AM   #16
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 3 Agent 47 is on a distinguished road
Quote:
Originally Posted by Cerulean
I think 10% is much too high. I would place it around 2% from statistics gathered from sites that I created.
How reliable is your source?
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"
Agent 47 is offline   Reply With Quote
Old Apr 4th, 2006, 9:13 PM   #17
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Originally Posted by Agent 47
How reliable is your source?
As reliable as the script that generated the statistics on my servers?
From the w3schools website:
Quote:
W3Schools is a website for people with an interest for web technologies. These people are more interested in using alternative browsers than the average user. The average user tends to use Internet Explorer, since it comes preinstalled with Windows. Most do not seek out other browsers.
Like I stated, the amount of people hitting up your site that have JS disabled will depend on your website's audience. That extract from the w3schools site sums up why it may have a larger amount of people visiting it with JS disabled - more tech-savvy users, more users of text-only browsers, etc.
Cerulean is offline   Reply With Quote
Old Apr 17th, 2006, 1:36 AM   #18
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
It seems like half of my friends I refer to the site I wrote, Javascript doesn't work for. The regular html loads fine, but the Javascript portions won't work. I'm thinking that maybe Firefox reads it and Internet Explorer doesn't.

www.putphrase.net is the address (Yes, I moved it to a paid host =D)

The phrase should be displayed between the Thumbs-up and Thumbs-down, and should load a new phrase once the page is loaded. The skip button should load a new phrase, as should the Thumbs-up and Thumbs-down after sending the vote. All of this is Javascript.

Could some of you go the link, and see if the phrases load in your browser? And if they don't, could you say what browser you use? It would be a great help. Also, if you have an idea of what the problem might be, that would be cool too...

Note: If the page is blank, it's probably because I'm working on it and it has a parse error or something. Thanks again.
Writlaus is offline   Reply With Quote
Old Apr 17th, 2006, 6:42 AM   #19
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Works in:
  • Konqueror 3.5
  • Opera 8
  • Firefox 1.5
Doesn't work in:
  • IE 6
  • IE 5.5
  • IE 5
A couple of points - fix up your markup. It's quite bad in some places - e.g:
<img src="images/thumbs-up.GIF"</span>

I'm therefore drawn to the conclusion that your friends didn't have JavaScript disabled, just that they were viewing your site with the most popular browser on the market. :banana:
Cerulean is offline   Reply With Quote
Old Apr 17th, 2006, 6:50 AM   #20
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I think it's a mistake to have the "You need Javascript" message displayed at all times. Forty jillion people don't know what Javascript is, or even that it exists. You're just chasing them away. Design your page so that it works with or without. Don't tell your user which they are looking at. Just handle it. Youainnagonnaget brownie points from your users for being slick. You'll have to go to a forum for that.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC