Connecting Tech Pros Worldwide Help | Site Map

ajax/javascript blocked ?

  #1  
Old July 10th, 2009, 09:36 AM
Newbie
 
Join Date: Nov 2006
Posts: 4
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, 19 views)
File Type: txt provincies.txt (1.6 KB, 16 views)
  #2  
Old July 10th, 2009, 10:07 AM
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,485
Provided Answers: 9

re: ajax/javascript blocked ?


if JavaScript is disabled, AJAX will not work either.
  #3  
Old July 13th, 2009, 01:53 PM
Newbie
 
Join Date: Nov 2006
Posts: 4

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?
  #4  
Old July 13th, 2009, 03:54 PM
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,485
Provided Answers: 9

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)
  #5  
Old July 20th, 2009, 10:40 AM
Newbie
 
Join Date: Nov 2006
Posts: 4

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
inline javascript blocked when loading asynchronously pjdelaere answers 3 July 11th, 2008 04:24 AM
AJAX vs. Cookies - Am I just silly? dougloj answers 9 February 19th, 2007 10:35 PM
Synchronous form field validation with Atlas/AJAX against a databa AECL_DEV answers 2 August 11th, 2006 01:15 PM
AJAX Issue whreed@gmail.com answers 12 July 8th, 2006 02:25 AM