The reason, if I had to guess without playing with it, is that your
.corners() execution is run on load, and sets some styles inline. When your
new elements are loaded, they don't have these inline styles (because they
were just appended). If this is the case, is right after you append the data
in your success callback, just re-execute your .corners() function.

If that's not right it should point you in the right direction... cheers!

Nic Luciano
http://www.twitter.com/nicluciano
http://www.linkedin.com/in/nicluciano


On Wed, Feb 11, 2009 at 9:35 PM, Davis <ywk...@gmail.com> wrote:

>
> hello Donkeybob,
>
> many thanks for your reply.
>
> I just use standard AJAX call a php and render xmlHttp.responseText
> ( return from php ) result back to the page. AJAX approach work fine
> without jquery inside any  normal page loading.
>
> also, i tested include a JS alert() inside a AJAX loaded page, it
> seems didnt trigger that JS at all...I thought it just normal load a
> page and then run those JS inside that page, but no luck..:(
>
> function display_nickpage_tab_content(uid,pid,tab_id,tab_page){
>
>        xmlHttp = GetXmlHttpObject()
>
>        if(xmlHttp == null){
>                alert ("Your browser does not support AJAX!");
>                return;
>          }
>
>        xmlHttp.onreadystatechange = function(){
>
>        var loader_menu = document.getElementById
> ('x_nickpage_tab_loading_'+pid);
>                if (xmlHttp.readyState == 4){
>                        var res = xmlHttp.responseText;
>                        loader_menu.innerHTML = res;
>
>                } else {
>                        loader_menu.innerHTML = '<img
> src="./templates/current-version/
> images/page-loading.gif" style="margin:5px;" alt="loading" />';
>                }
>
>        }
>
>        var url = "ajax-display-nickpage-tab-content.php";
>        var params = "uid="+uid
>                        +"&pid="+pid
>                        +"&tab_id="+tab_id
>                        +"&tab_page="+tab_page
>                        + "";
>
>        xmlHttp.open("POST",url,true);
>        xmlHttp.setRequestHeader("Content-type", "application/x-www-form-
> urlencoded");
>        xmlHttp.setRequestHeader("Content-length", params.length);
>        xmlHttp.setRequestHeader("Connection", "close");
>        xmlHttp.send(params);
>
> }
>
> many thanks for your help./Davis.

Reply via email to