Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.javascript > #8213
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
| Newsgroups | it.comp.lang.javascript |
| Subject | ReferenceError: define is not defined 1 ace.js:37:1 |
| Date | Thu, 1 Jun 2017 15:01:47 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 41 |
| Message-ID | <ogp37q$f55$1@gioia.aioe.org> (permalink) |
| NNTP-Posting-Host | uEGrr9ATMK7hR5zfa9SzSA.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-15; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
| X-Mozilla-News-Host | news://news.aioe.org:119 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Content-Language | it-IT |
| Xref | csiph.com it.comp.lang.javascript:8213 |
Show key headers only | View raw
salve, sono anni che non uso js, quindi perdonatemi la domanda sciocca.
Dunque:
<!DOCTYPE html>
<html lang="en">
<head>
<title>ACE in Action</title>
<style type="text/css" media="screen">
#editor {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<div id="editor">function foo(items) {
var x = "All this is syntax highlighted";
return x;
}</div>
<script src="ace-master/lib/ace/ace.js" type="text/javascript"
charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/javascript");
</script>
</body>
</html>
Ma nella console mi esce
ReferenceError: define is not defined 1 ace.js:37:1
Ho cercato su internet, ma dice che forse devo scaricare/includere un
ulteriore libreria.
OK perdonate ancora l'ignoranza, ma cosa bisogna fare esattamente?
Back to it.comp.lang.javascript | Previous | Next | Find similar
ReferenceError: define is not defined 1 ace.js:37:1 alex <1j9448a02@lnx159sneakemail.com.invalid> - 2017-06-01 15:01 +0200
csiph-web