Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

  New Posts New Posts RSS Feed - comment_form.js
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Windows Web Hosting 30 Day Free Trial

Windows Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For more information see our Windows Hosting 30 Day Free Trial page.

comment_form.js

 Post Reply Post Reply
Author
Roberto Randall View Drop Down
Groupie
Groupie
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post Topic: comment_form.js
    Posted: 26 October 2011 at 9:13pm

With this change (120000) still gives an error, but goes away after loading the page.

 I've seen in the file "comment_form.js" has the same code that is in "default_javascript.js." What changes is a "2".

 If post.asp change the word "getAjaxData2" and write "getAjaxData" works well and is the same code that has "Web Wiz forum."

 I see that the file "comment_form.js" is useless if you use the original code used by the forum and exists in "Web Wiz Newspad" writing "getAjaxData."

http://www.VidaUna.com - http://www.SanPedroAlcántara.es - http://www.LaNoción.es
Back to Top
Roberto Randall View Drop Down
Groupie
Groupie
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2011 at 9:25pm
I have also seen in "comment_form.js" (may be I'm wrong) that the following function is missing or left over "2" (XMLHttpRequest2 or XMLHttpRequest).
 
 
//create XMLHttpRequest object
function createXMLHttpRequest2(){
 if (window.XMLHttpRequest){
  xmlHttp2 = new XMLHttpRequest();
 }else if (window.ActiveXObject){
  xmlHttp2 = new ActiveXObject('Msxml2.XMLHTTP');
  if (! xmlHttp2){
   xmlHttp2 = new ActiveXObject('Microsoft.XMLHTTP');
  }
 }
}
http://www.VidaUna.com - http://www.SanPedroAlcántara.es - http://www.LaNoción.es
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Points: 8028
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2011 at 9:57am
It's done like this by design and I would recommend not changing it or you could break functions of NewsPad.

The reason for using two AJAX functions is that some pages have more than one feature that uses AJAX. If you have a single AJAX function if it is called while another AJAX call is being carried out it will crash the AJAX call.

To prevent this some AJAX features use the XMLHttpRequest function while others use XMLHttpRequest2. This then prevents conflicts if both features make an AJAX call at the same time.
Back to Top
Roberto Randall View Drop Down
Groupie
Groupie
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2011 at 2:28pm
I do not understand is why the code "comment_form.js" an error while loading the page and the code of "default_javascript.js" gives no error. The two codes are the same just change "2".
http://www.VidaUna.com - http://www.SanPedroAlcántara.es - http://www.LaNoción.es
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Points: 8028
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2011 at 2:49pm
There is an error that has been fixed for the next release on line 25 of comment_form.js which should be as below to prevent an error in the event handler:-

if (xmlHttp2.readyState == 4 || xmlHttp2.readyState=='complete'){
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Web Wiz on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved