Solved

not able display the data in the content

Posted on 2014-04-08
3
138 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 30

Expert Comment

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

Author Comment

by:roy_sanu
Comment Utility
only the layout  or border  not the data inside it
0
 
LVL 2

Accepted Solution

by:
Immanuel Phillips earned 410 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now