1 Replies - 605 Views - Last Post: 09 October 2012 - 10:21 PM

#1 Crowz  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 68
  • Joined: 09-February 12

jQuery.ajax() noob question

Posted 09 October 2012 - 06:58 PM

Let's say I have a nav bar. Once something is clicked in the nav bar, it would open in a div called "textbox".
I have something called "Galleria.html", for example.

How would one project this html document into a div with jQuery.ajax()?
Is This A Good Question/Topic? 0
  • +

Replies To: jQuery.ajax() noob question

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3577
  • View blog
  • Posts: 10,444
  • Joined: 08-June 10

Re: jQuery.ajax() noob question

Posted 09 October 2012 - 10:21 PM

not at all. at least when Galleria.html is a valid HTML document (reason being that <html> and <body> must not occur more than once).

what you can do is load a HTML chunk via AJAX (e.g. via load()) and put it the current document.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1