Jquery and jScrollPane and ajax?

I think you need to set jScrollPane() to fire after the contents are loaded. If i'm not mistaken, the load method is ascynchronous and your jscrollpane() will fire before contents are loaded to html dome $("#left") Which means that it really isn't available when jscrollpane fired. Try to use the $.

AjaxSetup({ascync:false}) and see if that will help. You might have to use a $. Get method if the $.

AjaxSetup doesn't work for the load method.

I think you need to set jScrollPane() to fire after the contents are loaded. If i'm not mistaken, the load method is ascynchronous and your jscrollpane() will fire before contents are loaded to html dome $("#left"). Which means that it really isn't available when jscrollpane fired.

Try to use the $. AjaxSetup({ascync:false}); and see if that will help. You might have to use a $.

Get method if the $. AjaxSetup doesn't work for the load method. IE: $.

AjaxSetup({async:false}); $('#left'). Load('another-url. Php'); $('#left').jScrollPane(); if ajaxSetup don't work with the load method try to use the .

Get method $. AjaxSetup({async:false}); var $jqxhr = $. Get('another-url.

Php'); $jqxhr. Success(function(responseText,statusText,jqxhr){ $('#left'). Html(responseText); }); $jqxhr.

Complete(function(){ $('#left').jScrollPane(); }); $jqxhr. Error(function(){alert("error loading content");}); Hope it helps. Worked for me.

I had a similar problem.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions