/    Sign up×
Community /Pin to ProfileBookmark

I want to reload a div, not a page …

Hey,
I want to reload a div only, not the full page. I know that i will get a lot of answers by googling. Bt my case is something different. I dont want to change the content inside the div. I jzt want the div to get reloaded, I dont want to post any new content into the div. An answer for this i was not able to find from googling. Please help me.

Thanks in advance,
Nejwrks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Sup3rkirbyJun 03.2014 — If you're looking for an answer you'll have to explain exactly what it is you want.

Currently your post doesn't make a whole lot of sense. You say you want to simply reload a [B]<div>[/B] on your page (without reloading the page itself), however you don't actually want to change the content of the [B]<div>[/B]. And thus I propose the question: why reload the [B]<div>[/B]?

It would seem that by definition something on the page (at least within the source) would have to change in order for any sort of reload action to take place on an element. And ultimately it still comes down to "why?" if you aren't going to change anything on the page. I am almost certain your answer will involve AJAX, but I can't tell you anything beyond that without knowing why you're trying to 'reload' something, except that it doesn't change (which kind of defeats the purpose).
Copy linkTweet thisAlerts:
@toicontienJun 03.2014 — I think we can infer what the OP wants: [url=https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started]AJAX[/url].
Copy linkTweet thisAlerts:
@deathshadowJun 04.2014 — ultimately it still comes down to "why?"[/QUOTE]
That's what I'm thinking -- if you aren't changing it's content, changing it's appearance, or otherwise... changing it, just what the devil is "reloading" it going to accomplish other than waste bandwidth?!?
×

Success!

Help @nejwrks spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...