Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   javascript:void(0) (https://thetfp.com/tfp/tilted-technology/104690-javascript-void-0-a.html)

Derwood 05-16-2006 11:13 AM

javascript:void(0)
 
what would cause this are some scripts XP only? i'm upgraded to the latest version of firefox but i can't see a virtual seating chart on a minor league baseball website. i get the error on a roll over

Derwood 05-16-2006 07:07 PM

okay, so no one?

NeoRete 05-17-2006 05:06 AM

It depends on if their code is to blame. What is the address of the website that you are trying to see the virtual seating chart on? Others visting the site would at least be able to figure out if the site's code is to blame or your web browser's.

FYI: A common usage for javascript:void(0) is making a link that is null. More info on that at http://www.webdevelopersnotes.com/tu...ndblclick.php3

Derwood 05-17-2006 06:07 AM

http://statecollegespikes.com/ballpark/seating/

My wife got it to work on IE on her Windows XP machine. It works in neither IE or Firefox on my Windows ME machine

Jinn 05-17-2006 06:28 AM

It's likely not that you're on Windows ME, but that you're on an old version of IE. Help > About Internet Explorer.

It works on IE 6.0, but not FF 5.0.

I'm looking at the JS (hopefully) find out why.. :)

Jinn 05-17-2006 06:49 AM

These are the individual seat pictures if you want them (they're actually bigger than they show up on their preview)..

<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/481.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/481.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/482.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/482.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/483.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/483.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/484.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/484.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/485.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/485.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/486.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/486.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/487.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/487.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/488.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/488.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/489.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/489.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/490.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/490.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/491.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/491.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/492.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/492.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/493.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/493.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/494.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/494.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/495.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/495.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/496.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/496.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/497.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/497.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/498.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/498.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/500.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/500.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/501.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/501.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/502.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/502.jpeg.450.jpeg</a>
<a href="http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/595.jpeg.450.jpeg"> http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/595.jpeg.450.jpeg</a>

Redlemon 05-17-2006 06:53 AM

The rollover doesn't do anything in Bon Echo either (the nightly builds of what will become Firefox 2.0), just FYI.

Jinn 05-17-2006 06:53 AM

It's actually THIS command that FF and older versions of IE don't like:

Code:

javascript:popup("http://statecollegespikes.com.ismmedia.com/ISM2/SeatingChart/498.jpeg.200.jpeg", 17);
If you put a javascript code directly in the URL box of your browser, you can see what I mean -- returns nothing in FF, works in IE 6...

Jinn 05-17-2006 07:23 AM

The page uses two things that cause it to fail on Firefox;

document.all['dek']

This throws about a bajillion errors in the firefox javascript console (Tools > Javascript Console), because document.all is a nonstandard way of referencing an object by it's ID.

An explanation is here:
http://www.metalusions.com/backstage/articles/8/

Quote:

Originally Posted by metalusions.com
Before the world wide web consortium standardized the DOM (document object model) used by browser scripting languages, JScript, Microsoft's clone of the Netscape scripting language JavaScript, used document.all to reference elements by their IDs.
Many web sites are still using this over 4 years after the standard DOM was released as a recommendation. Also many scripting help sites still teach this method of element access.

The next big problem is that they use innerHTML, another nonstandard way to insert content into a tag -- in this case, inserting a table into a DIV tag. Firefox won't handle this bastardization of W3C DOM referencing, unfortunately. And neither should Internet Explorer. But that's a different story.

I'd fix it and create you a page that works in both, but it's actually quite a bit of work to replace an innerHTML tag with the proper DOM commands.

Make sense?


All times are GMT -8. The time now is 01:30 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73