AI Assistant
Notifications
Clear all

Refresh page

2 Posts
2 Users
0 Reactions
2,680 Views
 uber
(@uber)
New Member
Joined: 10 years ago
Posts: 1
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#489]

Hi,

I'd like my page to automatically reload everytime a user posts a new comment or reply. Trying the implement the following code in javascript:

document.location.reload(true);

However i'm unsure where this line should be placed and whether it's the correct implementation.

Thank you!



   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 11 years ago
Posts: 4248
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hope you familiar with jQuery. you should add reloaded function in wpdiscuz.min.js file. It's currently minimized, you should extend and find this function:

H(document).delegate(".wc_comm_submit","click",function(){
      ....
      
      V(am).done(function(at) {

            ...... your code should be after last comment submitter functions...

      }
      ....
}


   
ReplyQuote
Share:
Scroll to top