also @ TechSpot: Nortel's internal network "owned" by hackers for almost a decade
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > Software Apps

Collaborate in the cloud with Office, Exchange, SharePoint, and Lync

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

Thread Tools Search this Thread
  #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
  #2  
Old 05-15-2005
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,165 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.
  #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
  #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..
  #5  
Old 05-17-2005
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,165 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.
Closed Thread

Similar Topics
Topic Replies Forum
Downloader.Wimad.E Object 1 Virus and Malware Removal
DirectX error? D3D object help 1 Windows OS
'undefined' is null or not an object 4 Virus and Malware Removal
A BHO ( Browser helper object) 2 Virus and Malware Removal
Unidentified Hanging Object 17 Other Hardware

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 05:08 AM.