Solved

not able display the data in the content

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
"Go Fund Me" type plugin 5 43
Convert Silverlight ERP To Angularjs,HTML5 3 59
Help with Javascript to round decimal points to 2 13 34
toggle content 12 25
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

733 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