HighDots Forums  

Re: Problema con IE

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss Re: Problema con IE in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cristiano Larghi
 
Posts: n/a

Default Re: Problema con IE - 11-29-2007 , 08:28 AM






Il Thu, 29 Nov 2007 14:20:30 +0100, Ivan Marcialis ha scritto:

[CUT]

ti sparo lì una prova da fare:

Quote:
var textManager = null;
var ciao = "miao";

function start(){
this.textManager = new TextManager();
non so usando this in questo modo cosa può succedere ... dato che si
riferisce a una var globale prova a toglierlo (textManager=...)

Quote:
alert(this.textManager.getData());
come sopra

--
"qualcuno è andato per età
qualcuno perchè già dottore
e insegue una maturità, si è sposato, fa carriera
ed è una morte un po' peggiore"
F.G.


Reply With Quote
  #2  
Old   
Cristiano Larghi
 
Posts: n/a

Default Re: Problema con IE - 11-29-2007 , 08:45 AM






Il Thu, 29 Nov 2007 14:41:09 +0100, Ivan Marcialis ha scritto:

Quote:
Ho levato i this. ma errore sempre nello stesso punto e stesso errore
solo quei 2 che ti ho scritto, vero?

Quote:
var textManager = null;
var ciao = "miao";

function start(){
this.textManager = new TextManager();
togli questo this

Quote:
alert(this.textManager.getData());
e anche questo

io senza testarlo non vedo altri possibili errori ...

--
"Run rabbit run
dig that hole, forget the sun
and when at last the work is done
don't sit down, it's time to dig another one"
P.F.


Reply With Quote
  #3  
Old   
HyP
 
Posts: n/a

Default Re: Problema con IE - 11-29-2007 , 01:50 PM




"Ivan Marcialis" wrote in message news:fimedl$pcq$1 (AT) pietro (DOT) crs4.it...

Quote:
A questo punto visto che spedire tutto il sito non fa vi chiedo, esiste un
qualche ide javascript dove posso mettere breack point o una qualche
estensione per explorer che mi dice esattamente dove sta l'errore invece
che indicarmi il file html che contiene tutti i file .js
Con Visual Studio puoi....ma forse è un pelino esagerato installare il tutto
per fare un test :-)

Hai provato a mettere un alert() tra un file .js e l'altro ?


<script type="text/javascript" src="file1.js"></script>

<script type="text/javascript">alert('file1 è corretto!')</script>

<script type="text/javascript" src="file2.js"></script>

<script type="text/javascript">alert('file2 è corretto!')</script>

etc...

In questo modo puoi capire quando si manifesta l'errore e quindi in quale
file....



Ciauz,

HyP




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.