Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.
Collaborate in the cloud with Office, Exchange, SharePoint, and Lync
|
|||||||
Collaborate in the cloud with Office, Exchange, SharePoint, and Lync
'(object reference)' is null or not an object
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
'(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
|
|||
|
|||
|
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
|
|||
|
|||
|
i will try that ....
thanks 4 ur reply
|
|
#4
|
|||
|
|||
|
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 Last edited by M.J; 05-17-2005 at 05:12 AM.. |
|
#5
|
|||
|
|||
|
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. |
|
|
![]() |
| 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 |
|
|
All times are GMT -4. The time now is 05:08 AM.



Downloader.Wimad.E Object