
Originally Posted by
letom
fine...
@Adrain FYI check Bold letters....
???
If you're asking what I mean by that:

Originally Posted by
letom
Please note this can be done using
$('<div/>').html(data).find('layer').html();
This seems to indicate you found a solution to your problem

Originally Posted by
letom
some more additional coding part i have missed when copying that..
I cannot do it with the above coding part only.
This seems to indicate that you did not find a solution

Originally Posted by
letom
but it is working fine.
This seems to indicate that you did.
So, John and I are a little unclear about which part(s) of the code you are still having trouble with - that's what I was trying to ask you.
Now, as for this:

Originally Posted by
letom
Any solution for the following
Code:
function (she) {
var $gt = $('<div/>').html(she);
$("#cyxhka").html( $gt.find('#istv').html() );}
If she is taking a decision, i am not loading for some while, how can we show a error message ..
Is this a new question, or part of your original question?
I'm not sure what you mean by "if she is taking a decision". Are you asking how to show an error message if she
cannot be loaded as html, or if you can't find the element with id=istv
? This might be what you're looking for:
Code:
function( she ){
var istv = $( she ) // create a jQ object from she (presumably an html string)
.find( '#istv' ); // and look for the element with id=istv
if( istv.length > 0 ){ // check the length of the resulting jQ object
$( '#cyxhka' ).append( istv ); // append it to the element id=cyxhka
}
else{
alert( 'no element matching id=istv found' );
}
}
Bookmarks