4 Replies - 1019 Views - Last Post: 10 February 2013 - 01:57 PM

#1 amatzprogrammer  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 75
  • Joined: 07-July 11

Problem in calling external php with jquery file functions by jquery

Posted 09 February 2013 - 11:19 PM

I am trying to call an external php with jquery file. pagination sample . When I am viewing it directly, the jquery on it works, however, when i am calling it using jquery and assign it to <div>, the jquery code is not working. How can I solve this? Any one here knows why it is happening?
Is This A Good Question/Topic? 0
  • +

Replies To: Problem in calling external php with jquery file functions by jquery

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3541
  • View blog
  • Posts: 10,251
  • Joined: 08-June 10

Re: Problem in calling external php with jquery file functions by jquery

Posted 10 February 2013 - 02:05 AM

that happens because a JS include is not treated like a loading page. besides that, there will be no ready event anyways, because the document is already loaded.

and another one, it is illegal to load a full HTML document into an existing HTML document (except for frames).
Was This Post Helpful? 1
  • +
  • -

#3 amatzprogrammer  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 75
  • Joined: 07-July 11

Re: Problem in calling external php with jquery file functions by jquery

Posted 10 February 2013 - 04:26 AM

View PostDormilich, on 10 February 2013 - 02:05 AM, said:

...it is illegal to load a full HTML document into an existing HTML document (except for frames).

I think that's what really happen when i am calling it. Thank You for your reply sir! very much appreciated! :)/>

THANKS! IT WORKS! :)

This post has been edited by amatzprogrammer: 10 February 2013 - 04:34 AM

Was This Post Helpful? 0
  • +
  • -

#4 amatzprogrammer  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 75
  • Joined: 07-July 11

Re: Problem in calling external php with jquery file functions by jquery

Posted 10 February 2013 - 06:36 AM

sigh, i just realized, i can't use frames this time. Is there anyway for me to make the jquery works? I actually, make it worked before. It's just that, i can't get back my codes before. :'(
Was This Post Helpful? 0
  • +
  • -

#5 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3541
  • View blog
  • Posts: 10,251
  • Joined: 08-June 10

Re: Problem in calling external php with jquery file functions by jquery

Posted 10 February 2013 - 01:57 PM

what hinders you in loading that jQuery code into the original page and just call it when you finished inserting the content?
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1