Questions about storing or hosting an HTML file on the Internet

Hi.

Just thought I’d post an update on this issue.

I cannot test it until I’m back at work, but the suggestion provided by the IT/SharePoint technical staff was that my code referred to a recent version of JQuery, whereas SharePoint references an older version, so I just need to refer to the older JQuery in my code. I’m not getting too excited just yet, but it sounds like this could be the answer! I would have never guessed that SharePoint referenced it’s own JQuery!

The thing I am worried about though, is that the SharePoint refers to quite an older version of JQuery, I think 1.x, so I am hoping that, since there is a LOT of complex code in the code, all the features of the file work with the old version of JQuery and none are adversely affected!

Will hopefully post back with good news when I’m able to test!

1 Like

Hi.

Unfortunately, the above suggestion didn’t work.

I do, however, have another idea, which I am fairly confident about! It is to upload the JQuery file (current version) to SharePoint and change the JQuery reference in my code from the CDN to the uploaded file.

Surely this time!

Hi.

Unfortunately, the above suggestion didn’t work either!

If I try to open the JQuery .js file from the CDN in the web browser at work or whilst it is uploaded within SharePoint, I get an access denied message and if I download it to my pc and try to open it, it does not open in any program as it doesn’t seem a program has been assigned to open it. I have to manually use ‘Open With’. I am wondering how another software program the organisation uses manages to work with JQuery.

Anyhow, I have two other ideas and would be grateful if anyone could confirm if either were possible before I spend any time and effort working on something that cannot be achieved.

Add the JQuery .js file code to my actual webpage HTML file and refer to it.

or

Change any code in my webpage HTML file so that it is compatible with the older version of JQuery (1.x.x.).

I have found the following information at the following site and will give that a try also.

you use the migrate plugin to add backwards
compatibility to your newer version (1.9+). First replace your old
version of jQuery with the new one, then add a reference to the migrate
plugin. As if by magic, the deprecated elements removed in the more
recent version are restored and your existing code works:

Any advice would be appreciated.

Thanks.

Hi.

Just to update, the migrate option didn’t work either.

Thanks.

Hi.

Just another update.

There was a recent drive at work by the people at the top to get some tasks done and as my file was relevant to the project, I thought it would be the best opportunity to submit my request to IT and even then, they had to think about it! It was being looked into and nothing was decided, but I am optimistic that they may agree to host it.

Thanks everyone, for all your helpful advice. Hope I do not have to post back concerning this subject again (in a nice way, of course).

i think may be you should set up a small server in your intranet ,and make the file available on it .and download the js file and put it on that server.