Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.
'(object reference)' is null or not an object
|
|||||||
![]() |
| Thread Tools |
|
#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. |
![]() |
| Thread Tools | |
|
| 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.




