Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > Misc. Software & Utilities

'(object reference)' is null or not an object

Reply
Bookmark / Share this page
Thread Tools
  #1  
Old 05-15-2005
M.J M.J is offline
Newcomer, in training
 
Member since: May 2005, 3 posts
'(object reference)' is null or not an object

hi

i am using a code to view some pictures .. and it work fine with me ..

but..

when i use the same code to view an other set of pictures this error appears
:

'(tdiv.style.left)' is null or not an object

how can i prevent that error ..

i want to use that code more than once in my page

can u help me plz ?

**********************************************

i took my code from this link:

http://www.dynamicdrive.com/dynamici...ightslide2.htm
Reply With Quote
  #2  
Old 05-15-2005
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,160 posts
That script looks rather convoluted.
On first glance, I'd say you may have to initialise i again when you use that routine a second or third time.
Alternatively, turn it into a separate javascript, e.g. slideshow.js that you can call up, using different sets of pictures.
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 05-15-2005
M.J M.J is offline
Newcomer, in training
 
Member since: May 2005, 3 posts
i will try that ....

thanks 4 ur reply
Reply With Quote
  #4  
Old 05-17-2005
M.J M.J is offline
Newcomer, in training
 
Member since: May 2005, 3 posts
i tried what u just said but it didn't work and i still have the same problem..

**************************************************
i attach a zip file to this Thread

* test.html

(it view 1 set of pictures and it is working fine .. this code call 4 java script file)

* code1.js

* code2.js

* code3.js

* code4.js

* p1.jpg

* p2.jpg

* p3.jpg

* p4.jpg

***************************************

if i duplicate the code in the file test.html in order to have 2 set of pictures with the same animation .. i am going to have this errore :
'(tdiv.style.left)' is null or not an object

***************************************

i hope this information can help u to fix that error
Attached Files
File Type: zip page.zip (16.7 KB, 2 views)

Last edited by M.J; 05-17-2005 at 05:12 AM.
Reply With Quote
  #5  
Old 05-17-2005
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,160 posts
When I duplicate that code, a second picture shows under the first moving lot.
The second picture does not change, it remains fixed on the red sunset.
No errors however.

My PC does not have MS Java, I uninstalled that and put Sun Java JRE 1.5.0.2 on instead.
That might be the reason.
You'll have to experiment yourself with this, I don't have the time I'm afraid.
Reply With Quote
Reply
Thread Tools

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Problem with DCom object sharing in Windows 2003 Server (clustered) ma.charron Windows OS 1 02-17-2005 06:37 PM
New Ad-aware reference file available TS | Thomas Old Frontpage News & Comments 0 08-13-2003 03:59 PM


All times are GMT -4. The time now is 11:01 AM.