...

View Full Version : Javascript Include Only Works on 3 out of 5 Computers



designguru
11-11-2006, 08:03 PM
I have recently launched a new web site that uses javascript to include pages and inventory from another server. The site seems to work 100% for me and most other viewers. However, some viewers are unable to view some of my inventory that is pulled in and I can't seem to figure out why. It has to be something with my structuring. If anyone can help me with this issue I would greatly appreciate it.

The Following Code Seems to Work With All Viewers


<script language = "javascript" src ="http://sitename.com/?bid=1234&sitenumber=0&tid=general_results&stype=0&kwds=test%20me%20here"></script>

However This Code Only Seems To Work On About 3 Out of 5 Viewers


<script language="javascript">
var bid= 1234;
var site =0;
document.write('<script language="javascript" src="http://sitename.com/?bid='+bid+'&sitenumber='+site+'&tid=inventory_results&'+ window.location.search.substring(1)+'" />');
</script>
</script>

This doesn't seem to be a browser issue because the viewers who can't see the inventory results are a mix....If anyone can help me with how I might need to structure my code to work for everyone I would greatly appreciate it.

Thanks

felgall
11-11-2006, 08:11 PM
There are a few things wrong with the code. Try this:


<script type="text/javascript">
var bid= 1234;
var site =0;
document.write('<script language="javascript" src="http://sitename.com/?bid='+bid+'&sitenumber='+site+'&tid=inventory_results&'+ window.location.search.substring(1)+'"><\/script>');
</script>

designguru
11-13-2006, 09:16 PM
I have implemented your code and it works well...However the problem still exist on certain computers.

I have however narrowed the problem down to what seems to be Norton Internet Security systems blocking the content...So Stupid.

Is it even possible to write a javascript include from another server so that Norton will not block it...What a pain. This isn't even an add displaying page...simply pulls in inventory from an external server.

I also see that there are several lawsuits against Norton pending for this same stupid stuff. They are class action suits filed for breaking copyright laws with the sites they are blocking quality content from....maybe some more of us should jump on board.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum