Hi, I have been trying to reload a widget that is displaying a twitter updates every couple of seconds, I have found this jquery script to do that.
var auto_refresh = setInterval( function() { $('.twitter-hash-tag-widget').fadeOut('slow').load(' script to be loaded ').fadeIn("fast"); }, 20000);
The problem is that when i put the full php script url it says error 500 server error every time it reloads (using firbug console) I was just wondering because its a widget it may be trying to reload everything in that php script and not just the function that controls the twitter updates. Im not very good at php yet and if someone could figure out what I have to do to get this working, I would appreciate it. Here is the widget source...
If I was going to do this I would create a PHP function that echo's the responce in JSON - then use the wonderful ajax function to pull the JSON responce from the function.
well looking at script its too difficult to understand what could be cause of error. but for 500 error's.
there are things like either if you server is older or if you use some function which is blocking something or doing something with allowed resources or its not allowed in server.
but isssue should be in code.
i don't know if it helps or not but please check this three plugins
I have been trying to reload a widget that is displaying a twitter updates every couple of seconds, I have found this jquery script to do that.
The problem is that when i put the full php script url it says error 500 server error every time it reloads (using firbug console) I was just wondering because its a widget it may be trying to reload everything in that php script and not just the function that controls the twitter updates. Im not very good at php yet and if someone could figure out what I have to do to get this working, I would appreciate it. Here is the widget source...
I know this is probably a lot to ask, but any help is appreciated.
http://api.jquery.com/jQuery.ajax/
I think load would work, but I find ajax just as easy and a little better laid out in my mind...
Sorry if that didn't help too much but I don't have time right now to go through your post fully lol :)
but for 500 error's.
there are things like either if you server is older
or if you use some function which is blocking something or
doing something with allowed resources or its not allowed in
server.
but isssue should be in code.
i don't know if it helps or not but please check this three plugins
http://www.webresourcesdepot.com/3-jquery-twitter-plugins-adding-tweets-to-your-website/
which might help the serve your purpose