Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Blocking

Status
Not open for further replies.

ice7899

Programmer
May 14, 2006
59
GB
I am thinking of implementing some javascript code to automatically change the options of a drop down list depending on the values of other drop down lists. The problem I am getting is that in internet explorer ( with Windows XP sp 2) my script is blocked by default.An information bar says that active content has been blocked. If this happens for most users, I may be better implementing this code on the server side. Does anyone have any advice on this matter? Would it be better to implement this functionality on the client or the server side?
 
I may be wrong but I think the only reason you are getting the script blocked is because you are running it locally.
If it was running from a web server then the script would only be blocked if you had disabled javascript in your browser security.

As for the dependent list boxes though, if any clients have javascript disabled in their browser then your app will fail for them so you need to consider your audience.

You could do a great deal of this server side but remember that typically you would use an onchange event to trigger the update which still means the use of javascript.


At my age I still learn something new every day, but I forget two others.
 
Alternatively and with broader range of applicability, this.
[tt] document.forms['form'].elements['textbox'].value.split(/\s/).length;[/tt]
 
Sorry! wrong thread, even deleted thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top