Connecting Tech Pros Worldwide Forums | Help | Site Map

ajax/javascript blocked ?

Newbie
 
Join Date: Nov 2006
Posts: 4
#1: Jul 10 '09
hi all,

I have a site running where ppl can add their events into a database.
when they choose a country from a listbox, a second listbox (province gets filled with options depending on the choise in the first.)

This is doen through ajax/javascript.
all works well but on some pcs (5%) it does not fill the second listbox with the options.
As far as I have been able to determin it is always on a pc at work of the user.
So I guess some of the functionalities of ajax/javascript are blocked.
Am I correct in assuming this?

attatched the code snippet of the main page and the help page that is called to display the second listbox.
Attached Files
File Type: txt code snippet.txt (1.7 KB, 29 views)
File Type: txt provincies.txt (1.6 KB, 28 views)

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 4,300
#2: Jul 10 '09

re: ajax/javascript blocked ?


if JavaScript is disabled, AJAX will not work either.
Newbie
 
Join Date: Nov 2006
Posts: 4
#3: Jul 13 '09

re: ajax/javascript blocked ?


Quote:

Originally Posted by Dormilich View Post

if JavaScript is disabled, AJAX will not work either.

that I know,

But the problem is that I cannot check the settings of my surfers.
Is there a way to check if they have the correct settings?
and if they have not, automattically show an alert on the page of my site?
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 4,300
#4: Jul 13 '09

re: ajax/javascript blocked ?


Quote:

Originally Posted by djemmers View Post

and if they have not, automattically show an alert on the page of my site?

you can't show an alert-that would require JavaScript enabled-but you can leave a note. either via <noscript> or via a html (text) element that is deleted if JavaScript is enabled.

you could also make a fallback with a form instead of AJAX (forms do not depend on JS)
Newbie
 
Join Date: Nov 2006
Posts: 4
#5: Jul 20 '09

re: ajax/javascript blocked ?


tnx,

I'll make a noscript message then.
And see if the ones with the problem see that message.

greetings
Reply