Newsgroup: it.comp.lang.javascript
Titolo: Variabili in Netscape

Secondo voi perchè non funziona in Netscape mentre in IE si ?
<SCRIPT LANGUAGE = 'JavaScript'>
function visu(dato) {
var xfoglio = dato.substring(0,5);
var xdato = dato.substring(5,20);
xxdato.value = xdato;                                        <----------
Questo è il rigo incriminato o bacato !!!
parent.frames[1].location = 'bianca.htm';
parent.frames[1].location = 'stradefi/D'+ xfoglio +'.htm';
}
</SCRIPT>
</head>
<body bgcolor='#FFFFFF'>
<font size='5' face='Verdana, Arial, Helvetica, sans-serif'>j</font>
<pre><p><font face='Verdana, Arial, Helvetica, sans-serif' size='1'>
<a href='listastra.htm'><i>torna indietro</i></a>
<a href=javascript:visu('19k45T21715549') Title = '19k45'>JAHIER PIERO
VIA</a>
<a href=javascript:visu('19k52T21715016') Title = '19k52'>JEFFERSON THOMAS
PIAZZA</a>
<a href=javascript:visu('19k28T21716604') Title = '19k28'>JERVIS GUGLIELMO
VIA</a>
 <a href=javascript:visu('19k36T21716106') Title = '19k36'>( 1)</a>
<a href=javascript:visu('19k43T21715753') Title = '19k43'>JOMMELLI NICCOLO'
VIA</a>
<a href=javascript:visu('18k07T21721909') Title = '18k07'>JUGOSLAVIA VIA</a>
<a href='listastra.htm'><i>torna indietro</i></a>
</font>
<input type='hidden' name='xxdato'></pre>
</body>
</html>
Grazie

 cerchero' un'altra donna dentro ai sogni di Tarzan...

questo era il rigo bacato !
xxdato.value = xdato;

del tutto arbitrario gli errori IMO serve solo a confondere le idee.
6 sicuro?
Io uso sempre l'oggetto location nudo & crudo e non mi ha mai dato problei
sia con IExploder che con netscoppio (si anche N si pianta troppo spesso
( )
Nettuno

6 sicuro?
Effettivamente parrebbe lo stesso, leggendo bene la documentazione...
Io mi ero fermato alla gerarchia degli oggetti, e per quella sembra
obbligatorio riferirsi alla proprieta' href dell'oggetto location,
eppure (parte finale):
---8<------8<------8<------8<------8<------8<------8<------8<---
Location 
Contains information on the current URL. 
 Client-side object
 Implemented in
    JavaScript 1.0
    JavaScript 1.1: added reload, replace methods
Created by 
Location objects are predefined JavaScript objects that you access
through the location property of a window object.
Description 
The location object represents the complete URL associated with a
given window object.
Each property of the location object represents a different portion of
the URL. 
In general, a URL has this form: 
protocol//host:port/pathname#hash?search
For example:
http://home.netscape.com/assist/extensions.html#topic1?x=7&y=2
These parts serve the following purposes:
- protocol represents the beginning of the URL, up to and including
the first colon. 
- host represents the host and domain name, or IP address, of a
network host. 
- port represents the communications port that the server uses for
communications. 
- pathname represents the URL-path portion of the URL. 
- hash represents an anchor name fragment in the URL, including the
hash mark (#). This property applies to HTTP URLs only. 
- search represents any query information in the URL, including the
question mark (?). This property applies to HTTP URLs only. The search
string contains variable and value pairs; each pair is separated by an
ampersand (&). 
A Location object has a property for each of these parts of the URL.
See the individual properties for more information. A Location object
has two other properties not shown here:
- href represents a complete URL. 
- hostname represents the concatenation host:port. 
If you assign a string to the location property of an object,
JavaScript creates a location object and assigns that string to its
href property. For example, the following two statements are
equivalent and set the URL of the current window to the Netscape home
page:
window.location.href="
http://home.netscape.com/
"
window.location="
http://home.netscape.com/
"


 parent.frames[1].location = 'bianca.htm';
