Usage in "closed" environment

Aug 4, 2011 at 2:00 AM

My business network is "walled off" from the internet. How should I modify the CEWP code to take this into account?

Thanks,

Charles

Nov 18, 2011 at 12:07 AM

Did you receive an answer to this? I'm also working in an office without external internet access. We have intranet only and I need to run it as a CEWP. I tried replacing this:

<script type="text/javascript" language="javascript" src="http://www.google.com/jsapi"></script>

<script type="text/javascript" language="javascript">
google.load("jquery", "1.3.2");
google.setOnLoadCallback(function() {

	$(document).ready(function() {

		(function($) {

 

with the following:

<script type=”text/javascript” src=”/intranet/SiteCollectionCode/jquery-1.3.2.min.js”></script> 

<script type="text/javascript" language="javascript">
	
$(document).ready(function() {
		(function($) {
and had no luck. I did try the original code at home where I do have internet access and it works beautifuly. 
We just need a way to get it running without internet access at work.
Any assistance would be greatly appreciated.
Nov 18, 2011 at 9:32 PM

OK. I was obviously tired and figured it out as soon as I looked at it today. Besides just changing the inital script load location from:

http://www.google.com/jsapi

To:

//my-local-url/jquery-1.3.2.min.js

And removing the below jquery loader and wrapper:

google.load("jquery". "1.3.2");
google.setOnLoadCallback(function() {
... ...
});

I forgot to replace the above wrapper with:

$(window).load(function(){
 ... your original code ...
});