Post by Pebble on Jun 14, 2013 7:34:22 GMT -8
Hi Everyone!
After writing a plugin I decided to test it in Chrome (I write them in IE and FF) and noticed that when going to a thread from the Home page via the thread name in the last post column, the plugin runs and all looks good... and then the page reloads (the ajax call for the posts only) and so anything done via the plugin is removed as it doesn't run again.
It's probably easier to see what I'm trying to describe by visiting PebblePlugins and then selecting the link 'Member Gallery In Post' . You'll see that the plugin runs and then the posts revert to their previous state. This behaviour doesn't happen in FF and IE10.
The gallery plugin runs after
BUT the signature resize plugin runs after
And the same problem exists with both in Chrome.
Anyway.... What I'm asking is, is this a bug? something to do with the search function and the posts reloading after the search has completed? Or do I need to re-write the code to run after the ajax call if it's Chrome ? (it seems strange that this behaviour is only for chrome)
I'm thinking that hooking onto the after search function for Chrome may fix this , but didn't want to add coding if this is a bug.
Thanks in advance for any info.
Cheers,
Pebble.
(I hope I explained it properly. If not , I'll add any extra info that's needed.)
Extra info:
The pages/plugins work fine when accessing the page from other links or using pagination.
There are no edits to the templates and the site is only a few weeks old.
It's Chrome Version 27.0.1453.110 m
Win 8
EDIT: This happens as a guest or logged in.
After writing a plugin I decided to test it in Chrome (I write them in IE and FF) and noticed that when going to a thread from the Home page via the thread name in the last post column, the plugin runs and all looks good... and then the page reloads (the ajax call for the posts only) and so anything done via the plugin is removed as it doesn't run again.
It's probably easier to see what I'm trying to describe by visiting PebblePlugins and then selecting the link 'Member Gallery In Post' . You'll see that the plugin runs and then the posts revert to their previous state. This behaviour doesn't happen in FF and IE10.
The gallery plugin runs after
$(document).ready(function() {
BUT the signature resize plugin runs after
(window.attachEvent)?window.attachEvent("onload",imrs):window.addEventListener("load",imrs,false);
And the same problem exists with both in Chrome.
Anyway.... What I'm asking is, is this a bug? something to do with the search function and the posts reloading after the search has completed? Or do I need to re-write the code to run after the ajax call if it's Chrome ? (it seems strange that this behaviour is only for chrome)
I'm thinking that hooking onto the after search function for Chrome may fix this , but didn't want to add coding if this is a bug.
Thanks in advance for any info.
Cheers,
Pebble.
(I hope I explained it properly. If not , I'll add any extra info that's needed.)
Extra info:
The pages/plugins work fine when accessing the page from other links or using pagination.
There are no edits to the templates and the site is only a few weeks old.
It's Chrome Version 27.0.1453.110 m
Win 8
EDIT: This happens as a guest or logged in.