Reputation: 16062
I wanna use a jQuery UI Progress Bar Now i am dynamicly creating the progress bar (I'm creating an uploader simmilar to the one on gmail messages) And for some reason i get this error.
This is my code:
$('#' + file.id + " b").html('<div id="progressbar"></div>');
$( "#progressbar" ).progressbar({
value: file.percent
});
Which gives me this error:
Uncaught TypeError: Object [object Object] has no method 'progressbar'
Anyone has a clue why?
I do have the jQuery UI linked to the file as i'm already using a Dialog on the same page, so that's NOT the problem. Could it be that it messed up because the div does not exist in the intial page loading?
Upvotes: 1
Views: 4148
Reputation: 16062
With Shef's help the problem is solved. The problem was i had a custom jQuery UI library which didn't include the progressbar.
Upvotes: 2