HighDots Forums  

Ritenta sarai pių fortunato!

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


Discuss Ritenta sarai pių fortunato! in the Javascript (Italian) forum.



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

Default Ritenta sarai pių fortunato! - 04-27-2008 , 03:35 PM






Ho uno script che per ragioni oscure sporadicamente fa cilecca
all'avvio.
Incontra una istruzione tipo:

document.getElementById('div1').style.width = 320;

ma l'elemento non ha fatto in tempo a crearsi ed č nullo.

non esiste una istruzione per farlo aspettare e ripassare.
ho provato un ciclo while ma lo script esegue sempre quello e non
riesce pių a fare nient'altro, tanto meno creare l'elemento.

C'č una soluzione?

--
http://interno.netsons.org

Reply With Quote
  #2  
Old   
ZER0
 
Posts: n/a

Default Re: Ritenta sarai pių fortunato! - 04-27-2008 , 03:50 PM






nonce999 <nonce999 (AT) haii (DOT) com> wrote:

Quote:
Ho uno script che per ragioni oscure sporadicamente fa cilecca
all'avvio.
Incontra una istruzione tipo:

document.getElementById('div1').style.width = 320;

ma l'elemento non ha fatto in tempo a crearsi ed č nullo.
Quello che dici non ha molto senso, va visto tutto il contesto.


--
"Se c'č qualcosa di pių importante del mio ego su questa nave,
la voglio catturata e fucilata."


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.