1

I have tried to append a html file into a html file using the $.get method as well as $.ajax and .load methods. the actual issue is that the file does not append yet works when opened alone. could it be that the site is running from the computer and not a server? or is there something that needs to be declared in either the html files.

Yusaf Khaliq
  • 3,333
  • 11
  • 42
  • 82

1 Answers1

0

In Chrome it will not work until you upload it to the server or use a local server.
I like XAMPP

Open google chrome through cmd prompt with cmd:
chrome.exe --allow-file-access-from-files
(P.S: untested.)

Roko C. Buljan
  • 196,159
  • 39
  • 305
  • 313
  • ill try in opera and firefox ;) – Yusaf Khaliq Jun 21 '12 at 18:52
  • you've helped me once again bud...i wouldn't want to allow access file because the website i want is going to be a file to show some holiday pictures and shared to some family soo... :/ . thankyou though i would've been here for days figuring it. – Yusaf Khaliq Jun 21 '12 at 23:35