Solved

not able display the data in the content

Posted on 2014-04-08
3
142 Views
Last Modified: 2014-04-22
Hi,

I was  trying to display the data in a jquery but getting only the content but not the data, "Maintain"  is my button click
what is the problem on it

<div id="dialog" class="dialog" style="display:none;"></div>
 $( "#Maintain").click( function() { 
    $( "#dialog").load( "tile/editFirst.html?profileKey=${webdUser.UserProfile.UserProfileKey}", function() {
      $( this ).dialog( {
        modal: true, title : 'Add/Edit ', minWidth: 500,
        buttons: { 
          "Save" : function() { $( this ).find( 'form' ).submit(); }
        }
      });
      
    });
  });

Open in new window

0
Comment
Question by:roy_sanu
3 Comments
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 39986753
getting only the content but not the data
: what do you exactly mean?
0
 

Author Comment

by:roy_sanu
ID: 39986827
only the layout  or border  not the data inside it
0
 
LVL 2

Accepted Solution

by:
Immanuel Phillips earned 410 total points
ID: 40016305
As long as the request is made from the same origin, the content should load correctly. Have you checked the response to see if there is a possible error with the request?

Taken from https://api.jquery.com/load/:

$( "#success" ).load( "/not-here.php", function( response, status, xhr ) {
  if ( status == "error" ) {
    var msg = "Sorry but there was an error: ";
    $( "#error" ).html( msg + xhr.status + " " + xhr.statusText );
  }
});

Open in new window


My guess is that there is an error with the response so you aren't actually receiving any data.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question