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
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