JQuery load function and Ajax

0
June 25, 2016

Hi jquery Men,

I created a page (index.html, including the embedded javascript) with a div loaded by an external html content. But in this new content the click function I defined in the index.html page does not work in the new content.

Then my question is: do i need to include all javascript in the external html content ?

Thx for your answers.

Comments See all(0)

Add comment
0
June 25, 2016

The DOM is being manipulated after the DOM is loaded.  You'll need to rebind the click event or use the

.live()

method to capture the new DOM element and bind the event.

Related Questions

google.load function doesn't work if called from jquery ready function?

I'm using the Google AJAX APIs, but some reason google.load works when run through normal javascript, but if I call the method from my jquery ready function it doesn't work. Code and output is below, Read More

Views

20

Votes

0

Answers

1

June 24, 2016

Sometimes the Load Method can't exhibit some really easy HTML data. Jquery.load bug?

The code is supposed to generate this: PS: This is generated by a PHP Function that the Ajax Load Method Calls. I got this by looking at the source code in the Firefox without using JQuery. <div Read More

Views

28

Votes

0

Answers

1

June 25, 2016

Access html content loaded with jQuery's load() function

Hello, I'm a bit confused by how jQuery ajax works. I'm trying to create a customer management system (CMS) with jQuery and php. I want to give the user the opportunity to create a car. Let's say he Read More

Views

33

Votes

0

Answers

4

June 20, 2016

Ajax, jquery, external forms and global variables

I am wanting to create a questionnaire form using ajax/jquery. The basic and simplified structure is in the code snippet. What I want to do is the user fills out form 1 which is a questionnaire. When Read More

Views

31

Votes

0

Answers

3

August 17, 2011

Issue with .html() JQuery method

Hello there! Following with the workspace of the previous video, the given files are index.html, javascript-example.html, jquery-example.html and sidebar.html plus the css folder. In the file jquery-e Read More

Views

43

Votes

0

Answers

1

June 05, 2016

[Help] jquery Cycle problem with Ajax image load

Hi I've got a problem with the cycle plug in. I've applied to this the touchwipe plugin. The gallery of images is loaded via ajax. When it makes the anchor menu (paginator) it applies the class act Read More

Views

29

Votes

0

Answers

0

June 23, 2016

JQuery Load and missing data

Hello ! I have a webpage containing lots of php and JQuery code. From this webpage, I use the Load function to open popup window and load webpages inside it. I noticed that, randomly, I get some con Read More

Views

33

Votes

0

Answers

2

June 19, 2016

load() function loads images as text

I'm building a gallery plugin for wordpress using jquery and ajax.  Whereas the load() function I'm using works great to load blog posts and such, when I attempt to use load() on an image link, it loa Read More

Views

15

Votes

0

Answers

0

June 21, 2016

jQuery1.6 load function callback bug in IE?

Hi Folks I think that in jQuery 1.6 the callback function is failing in IE(8). I've reverted back to jq1.4 and all is okay. Sample code that fails in 1.6 for IE 8; $('#addeditcontactcontent').load Read More

Views

24

Votes

0

Answers

1

June 23, 2016

href title did not display after using load function

Hi All, When I move mouse over a href link in a single html page, like test1.html, IE 8/9 will display the href title (can be used as a tip), after using jquery load function to load the html file i Read More

Views

7

Votes

0

Answers

2

June 20, 2016

Selector Within Ajax

I have a table of data coming from Ajax. It has a class of gridtable. I want to click on a link in that table and call the a.gridtable selector function (line 9) below. But the Ajax created table does Read More

Views

12

Votes

0

Answers

2

June 17, 2016

how to concatenate "#id" variable to url in load()

I have different 2 li elements each with data-load ="#content01" and data-load="#content02". When I hover li[0],  i want to load the particular "#content01" from my source url... $('.navContx li'). Read More

Views

13

Votes

0

Answers

4

June 18, 2016

load function does not work in IE 6

hi, my website www.hotel-nova.com works fine in IE7 and IE8. in IE6 the content does not load. what could be the reason for this? //content load start http://net.tutsplus.com/tutorials/javascrip Read More

Views

17

Votes

0

Answers

0

June 24, 2016

Ajax call is breaking site

Hello members of the jQuery forums, Coming here is my last resort, i've been trying for a whole week to get my problem solved. I have asked on StackOverflow, Multiple Forums, and the jQuery IRC Chann Read More

Views

13

Votes

0

Answers

0

June 23, 2016

Load() issue and script getting disabled?

I followed a simple example on the jquery site where I load a html page inside a div. The page does load inside the div correctly however what i noticed is that the page that loads inside the div, its Read More

Views

8

Votes

0

Answers

0

June 24, 2016

Odd behavior with $.ajax() in jquery 1.4.2

I've got a page where the user can enter simple data: Description: Quantity: Price: When they hit the AddItem button I use jQuery and AJAX load the data in to the database (MySQL 5.1.3): Read More

Views

37

Votes

0

Answers

1

June 24, 2016

jquery use in a page with multiple panels

The question I have is more theory/best practice question.  I'll tell you my goal (which I've been working for some time but have yet to find an elegant solution) and what I've tried.  I'd like to hea Read More

Views

19

Votes

0

Answers

4

June 24, 2016

Jquery Ajax Post not working in firefox and safari

Hello, I am doing simple Jquery ajax post to php and I am very new to three languages. Any suggestion or guidance. I have two iframes 1)iframe 1 is Navigation menu(loaded with flash menu). 2)ifr Read More

Views

19

Votes

0

Answers

1

June 24, 2016

Google Map does not display entirely when using ajax!

I have a problem since three days about google map. I want to use jQuery to dynamically load the map in a page. Here is the code: In left side page, a script that loads the page into the right one: & Read More

Views

27

Votes

0

Answers

4

June 22, 2016

ajax .loa() in IE

I have the following code which works perfectly well in all other browsers except IE.  The code is: function uploadMessage() { var message = $('#message').val(); var user = $('#user').val(); $.aja Read More

Views

12

Votes

0

Answers

0

June 24, 2016