Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
V,
I'm not sure I fully understand.
Are you saying that ..> etc. are not served, or that it is served but you don't know how to strip it?
Airshow
Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
I'm struggling with "later".
Do you mean: and ... do not appear in data and are therefore not available to be stripped?
and ... appear in data but you don't know how to strip them?
Airshow
Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
OK, the best way to approach this is to handle ajax requests outside the MVC framework such that you have total control over what is returned.
If you can't do that, then try.
$(document).ready(function(){
var url_select_file = "index.php";
$.post(
url_select_file,
{ component: "tinymce_details", action: "selecticondata" },
function(data){
alert($(data).filter('#ContentPane').html());
}
);
untested
All I have done is to change .find() to .filter() . It may work.Airshow
Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
V,
I have done some research for you and come to the conclusion that you can stay within the MVC framework by doing what is called "rendering a partial view".
As I understand the term, "partial views" can be used to build common page components for incorporation into whole pages as they are built, or served as ajax responses for incorporation by javascript into a previously-served page. Thus, you can serve an HTML snippet rather than an entire page, which is exactly what you want.
That is as much as I know. For more information, see your framework's documentation or try googling the name of your framework plus "partial view".
Airshow
Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
No worries, your English is fine. I was a little slow to understand but I think I got there.
Good luck and yes, Happy New Year.
Airshow
Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372