For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 12 replies, 5 voices, and was last updated 19 years, 12 months ago by
David Orriss Jr.
-
AuthorPosts
-
md2281MemberMaybe it’s me but XMLHttpRequest and ActiveXObject are unrecognized and throw compiler warnings, any way around this as I like to keep the warnings dialog empty.
This is a simple stand alone JS file.
March 6, 2006 at 8:01 am #247787
Riyad KallaMemberCan you paste an example file for us please?
March 8, 2006 at 4:21 pm #248082
md2281Memberfunction NodeAsync(url, fields, callback) { // code for Mozilla, etc. NodeXmlHttp = new XMLHttpRequest(); if (!NodeXmlHttp) { NodeXmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } if (NodeXmlHttp) { NodeXmlHttp = new XMLHttpRequest(); NodeXmlHttp.onreadystatechange = callback; NodeXmlHttp.open("POST",url,true); NodeXmlHttp.setrequestheader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); if ( fields && fields.length > 0 ) { NodeXmlHttp.send(fields.join('&')); } else { NodeXmlHttp.send(null); } } }March 8, 2006 at 4:27 pm #248084
Riyad KallaMemberI can’t reproduce this, when I paste this into a flie (test.js) and open it and save it and validate it, no errors or warnings are marked anywhere. If you close the file then right-click on it and do Open With > MyEclipse Javascript Editor, does it work? I wonder if you are using another editor.
March 9, 2006 at 6:19 am #248141
rateotyMemberhello,
I can reproduce it:
function retrieveUrlForProcess(url,process){
var stateHandler;
var req;
if (window.XMLHttpRequest) { // Non-IE browsers
req = new XMLHttpRequest();
isIE=false;
} else {
if (window.ActiveXObject) { // IE
req = new ActiveXObject(“Microsoft.XMLHTTP”);
}
}
..
I see 2 warnings:
XMLHttpRequest declaration is not found
ActiveXObject declaration is not foundI’am using the MyEclipse javascript editor.
regards. Jürgen
March 9, 2006 at 7:27 am #248147
Riyad KallaMemberAhh got it, I see them now. I’ll report the issue.
July 26, 2006 at 12:47 pm #255572
mcarr67MemberAny update on this?
July 26, 2006 at 12:54 pm #255573
Riyad KallaMemberWarnings are still marked as the JS validator doesn’t know about these objects (yet).
July 26, 2006 at 1:02 pm #255575
mcarr67MemberCan we switch it to use IE and still debug?
July 26, 2006 at 1:51 pm #255577
Riyad KallaMemberNo, debugging JS is only done using the internal Web 2.0 Browser. In 5.0 GA this process is going to be streamlined a lot.
August 28, 2006 at 5:53 pm #257750
David Orriss JrParticipant@rateoty wrote:
hello,
I can reproduce it:
function retrieveUrlForProcess(url,process){
var stateHandler;
var req;
if (window.XMLHttpRequest) { // Non-IE browsers
req = new XMLHttpRequest();
isIE=false;
} else {
if (window.ActiveXObject) { // IE
req = new ActiveXObject(“Microsoft.XMLHTTP”);
}
}
..
I see 2 warnings:
XMLHttpRequest declaration is not found
ActiveXObject declaration is not foundI’am using the MyEclipse javascript editor.
regards. Jürgen
These warnings still occur in 5.0GA. Is this just going to be “the way it is” with the JavaScript editor in ME? If so, kinda a bummer.. I was looking forward to some codeinsight support on those objects..
August 28, 2006 at 6:23 pm #257753
Riyad KallaMemberThere is a long way to go with the JS editor and it will improve over time, this definately isn’t “the way it is”, just “the way it was for 5.0 so we could get the 100 or so other features in instead of just the improved JS editor” 🙂
August 28, 2006 at 6:37 pm #257760
David Orriss JrParticipantLOL! Fair enough. Thanks for the update, Riyad! 🙂
-
AuthorPosts
