Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $.ajax({
- url: "/myurl",
- dataType: "text",
- success: function( data, textStatus, jqXHR ) {
- var parsedtext = data.split(',');
- $.each(parsedtext, function() {
- $("#text").append(this);
- });
- }
- });
- });
- $(function(){
- $.ajax({
- url: "/myurl",
- dataType: "text",
- success: function( data, textStatus, jqXHR ) {
- var parsedtext = data.split(',');
- $.each(parsedtext, function() {
- $("#text").append(this);
- }).done(function() {
- alert('done');
- startnewfuction();
- });
- }
- });
- });
Add Comment
Please, Sign In to add comment