Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-02-2006, 02:02 PM
WebProWorld Member
 

Join Date: Oct 2005
Location: Asheville, NC
Posts: 27
docholiday RepRank 0
Default need Serious help with forced JS from AJAX with Norton 2005

Apparently, this specific combo: Norton Internet Security 2005 / Internet Explorer 6.0 (I assume lower versions of IE as well) blocks forced JavaScript calls from AJAX.

i.e. I use a custom CMS to pull chunks of HTML code from my database ("templates") and throw them back to the browser via AJAX (prototype 1.5) when things are clicked in the browser by the user. Prototype supports sending javascript also at the same time alongside regular HTML.

This works great everywhere, except that Norton 2005 (no other versions) blocks passed JavaScript in Internet Explorer (not Firefox).

Example ("template1") :
Code:
<div style="text-align:center;">some text</div> <script type="text/javascript">doThisFunction();</script>

new Ajax.Updater('placeholder', '/this/template1', {asynchronous:true, evalScripts:true});
Any help would be greatly appreciated, I have no other way of doing what I need to do.
Reply With Quote
  #2 (permalink)  
Old 10-06-2006, 06:02 PM
WebProWorld Member
 

Join Date: Oct 2005
Location: Asheville, NC
Posts: 27
docholiday RepRank 0
Default

I know I'm replying to my own topic here, but I figured it out for those who need help on this later (I promise you will if you send any javascript through Norton's sticky fingers via AJAX).

Apparently, Internet Exploder (not a typo) is requiring the header of the type of information being sent in the call for Norton [firewall] to allow it to pass scripted data (no idea why), so here is what I came up with.

In the PHP, just before I write out my custom template call from the database, I send the header of the type of content I am sending, like this:
Code:
header('Content-Type: application/octetstream');
Hope this helps anyone else!!
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , , ,



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0