Dean Williams
Forum Replies Created
-
I have now added handling for reload code errors, if you enable debug mode for AAPL it will tell you what errors are occurring.
enabling debug mode on AAPL should now give you error warnings for things like this. please update.
You have an error in your reload code which is halting your script.
FB.init({
appId : ‘260051607443694’, // App ID
//channelUrl : ‘//WWW.YOUR_DOMAIN.COM/channel.html’, // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});Uncaught ReferenceError: FB is not defined
I figured out what the problem is, you have an error in your reload code, if an error occurs in this function then the JavaScript is halted meaning the content is not moved back into the page as you would expect.
It sounds like you have a problem with your wordpress install… Why would the plugin path coming from:
<?php echo plugins_url( “jquery.js” , __FILE__ );?>
return any quotes?!?!?! It is a PATH.
I have actually changed this in the latest version to use jQuery instead so maybe this will help in your case, I would check your installation path and made sure you did not include any quotes.
Let me know if this works.
I’m releasing 2.5.14 which will disable this warning unless you enable the debug mode!
However how did you fix your problem?
Unfortunately this code is required for compatibility with IE6/IE7 due to a “vanishing dom” error.
This code simply moves the div outside your page while it is invisible so you should not see anything. Once loaded a similar code moves it back.
So your problem must be with something else if you can see the content shifting outside the screen.
I do not recommend anyone to remove this as it will limit your sites browser compatibility.
Do you have a link where I can test this? Not 100% sure what you are referring to 😮
BTW futtta – thank you for helping this guy reach his solution. You have helped your own plugin and AAPL – and I’m grateful.
What about AAPL guys?? Dont forget me :p
Anyway I have tried to pick out the successful reload code from this post but I’m a little confused.
Could you please post your reload code so I can share it with the community.
P.S. AAPL does not need work – unfortunately this is the nature of AJAX, if content in the page changes then bindings are lost and need to be re-called, this is the reason for the reload code function. All we can do is collect reload solutions and make them available for everyone to use.
Hey Dave.
Yes I can clean up the comments, not sure why comments in code is a problem, since NOONE should EVER be looking at the code. And if they do it’s their own risk anyway 😉
But yeah – Cleansing it will be fine.
Okay I’m going to be adding an option to disable the “scrolltotop” and possibly even “show content behind loading” options so you can keep the content there.
However I do have to say, scrolling to the top of the document makes sense as the content of the page changes, without it the user is potentially going to land in the middle of a document when they move pages, which could be confusing.
However it is always good to have options 🙂
If this script is loaded by ajax, ajax unfortunately strips out the script and does not execute it – this is I believe for security reasons.
You will need to load the javascript outside of the content and then get it to modify the content inside – then use a reload code to load it when ajax is finished loading.
You need to use the jScrollPane reload code which is on the reloads webpage of my site.
go to: http://wordpress.org/support/plugin/advanced-ajax-page-loader/
at the bottom of the page is a form for creating a new topic, WordPress are not exactly making the interface easy to understand to be honest – so dont worry about it 🙂