Solved

not able display the data in the content

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Jquery Autocomplete PHP script 3 37
jQuery Parallax 1 38
window.setInterval not firing 7 29
How to drill down using class name and find the text? 25 32
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using 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…

912 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

24 Experts available now in Live!

Get 1:1 Help Now