Dubey, Asheem wrote:

>Here is the problem.. I have a slideshow displaying 1 image at a time. I have 
>a previous and next record link. These links are essentially form images 
>submitting to the same page..
>
><input type="image" src=""
>onClick="location.href('slideshow.cfm?actionName=btnView_Next&ImageID=#ImageID#');">
>
>This works perfectly in IE 5 and above, major Mozilla flavors (for windows) 
>however it doesnt work in Mac browsers (version 10, Safari browser). Any 
>suggestions would be appreciated.
>  
>
Blimey!  Thats a bit excessive! 

This :
<a href="slideshow.cfm?actionName=btnView_Next&ImageID=#ImageID#"><img 
src="buttonimage.jpg" border=0></a>

is exactly the same thing, but without the javascript.

The one obvious thing that is wrong with the JS you have above is that 
you must use the full object path, so you would have 
onClick="document.location.href(....)". Other problems might be that 
this form element isn't in the middle of a <form></form>

IE is awful in that it makes assumptions for you, where as other 
browsers expect you to tell them exactly what you want.  I strongly 
recommend that you use Firefox (http://snipurl.com/download_firefox) 
with the web developer extension (http://snipurl.com/firefox_webdevext) 
when developing HTML or JS.

Regards

Stephen


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:480
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to