Tuesday, May 28, 2024
 Popular · Latest · Hot · Upcoming
27
rated 0 times [  30] [ 3]  / answers: 1 / hits: 18868  / 13 Years ago, fri, july 8, 2011, 12:00:00

Is this a valid way to refresh part of webpage:



$(#content).load(location.href+ #content>*,);


Note that I'm not requesting any new data here, but basically re-loading the content of a div as part of an .ajax success function.



This seems much easier than requesting data through an ajax function and loading that into the page, but I'm wondering if there are any drawbacks or issues with this method.


More From » jquery

 Answers
63

On this page: http://blog.mediasoft.be/partial-page-refresh-with-ajax-and-jquery/ it appears that some people are having trouble getting this to work on IE, so I'm going to assume it's not 100% reliable yet and will continue to use the standard way of refreshing content using JQuery for now.


[#91288] Thursday, July 7, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
piper

Total Points: 734
Total Questions: 93
Total Answers: 112

Location: Burundi
Member since Wed, Apr 6, 2022
2 Years ago
;