3 Replies - 409 Views - Last Post: 17 February 2017 - 10:06 AM

#1 nik0p0l  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 10-March 16

Change file loading from web to a local file

Posted 16 February 2017 - 08:50 PM

Hi,

Please, I need some help with a jquery script:

void 0==e.fn.ajaxForm&&e.getScript(("https:"==document.location.protocol?"https://":"http://")+"malsup.github.io/jquery.form.js");

This part of the script load the "jquery.form.js" file from the url "malsup.github.io/" but I already have that file in the same folder that the jquery file is located, I want to modify the script so the file will be loaded from a local directory and not from an internet site, thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Change file loading from web to a local file

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 4129
  • View blog
  • Posts: 13,023
  • Joined: 08-June 10

Re: Change file loading from web to a local file

Posted 17 February 2017 - 01:03 AM

use a script tag with your local path.
Was This Post Helpful? 0
  • +
  • -

#3 nik0p0l  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 10-March 16

Re: Change file loading from web to a local file

Posted 17 February 2017 - 09:34 AM

Dormilich,

Thanks for your reply but I dont want to use URLs, I want to load the file from a LOCAL DIRECTORY.
Was This Post Helpful? 0
  • +
  • -

#4 astonecipher  Icon User is offline

  • Too busy for this
  • member icon

Reputation: 2329
  • View blog
  • Posts: 9,359
  • Joined: 03-December 12

Re: Change file loading from web to a local file

Posted 17 February 2017 - 10:06 AM

You aren't understanding what is being said.

Link Resources.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1