|
|
|
|
 |
|  |
 |
fabpicca |
| [javascript] problemi |
01-05-2004 19:39 |
|
 |
fabpicca |
jesus robot d'acciaio

Registered: May 2002
Posts: 2166 (0.25 al dì)
Location: Pieve Emanuele
Corso: Ticom
Anno: 1°
Time Online: 12 Days, 23:12:28 [...]
Status: Offline
Edit | Report | IP: Logged |
[javascript] problemi
code:
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function openBrWindow(theURL,winName,features) {
window.alert("eseguo openBrWindow");
this.open(theURL,winName,features);
}
function introNew_DoFSCommand(command, args) {
var introNewObj = InternetExplorer ? introNew : document.introNew;
if (command=="openWindow"){
openBrWindow(args,'infoLoader','scrollbars=no,wid
th=300,height=300');
}
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub introNew_FSCommand(ByVal command, ByVal args)\n');
document.write(' call introNew_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
il suddetto codice javascript dovrebbe aprire una finestra quando da un filmato flash caricato sulla stessa pagina si clicca in una determinata area .Nello script flash c'è l'invocazione alla fscommand mandando alla pagina che contiene il filmato le due variabili command e args.
Il problema è che dovrebbe aprirsi un pop-up, in teoria, in pratica si apre solo con explorer.
ma la cosa divertente è che se metto la stessa window.open associata ad un evento ( onclick, onload, etc etc) funziona perfettamente.
suggerimenti?
__________________
my website?|ubuntu linux|get Firefox|grazie Polonia |bagdad sour
"Come va che non ha le corna e le zampe di Caprone?" gli opposi. "Oh, Giuvà", mi disse il prete "adesso non si usa più.Satana è furbo". (I.Silone, Fontamara)
"Al giorno d'oggi non bisogna essere intelligenti, perchè la gente si offende" (un ubriacone)
"close your eyes / pay the price / for your paradise" (DM) "whatever you want to change/you'd better start changing it in your mind" (Transatlantic)
|
|
01-05-2004 19:39 |
|
|
|  |
 |
fabpicca |
| uffa.....dai, aiutatemi! tu jam che sei il detento ... |
02-05-2004 12:21 |
|
 |
fabpicca |
jesus robot d'acciaio

Registered: May 2002
Posts: 2166 (0.25 al dì)
Location: Pieve Emanuele
Corso: Ticom
Anno: 1°
Time Online: 12 Days, 23:12:28 [...]
Status: Offline
Edit | Report | IP: Logged |
uffa.....dai, aiutatemi! tu jam che sei il detentore del sacro segreto di JS ...dai!!!
__________________
my website?|ubuntu linux|get Firefox|grazie Polonia |bagdad sour
"Come va che non ha le corna e le zampe di Caprone?" gli opposi. "Oh, Giuvà", mi disse il prete "adesso non si usa più.Satana è furbo". (I.Silone, Fontamara)
"Al giorno d'oggi non bisogna essere intelligenti, perchè la gente si offende" (un ubriacone)
"close your eyes / pay the price / for your paradise" (DM) "whatever you want to change/you'd better start changing it in your mind" (Transatlantic)
|
|
02-05-2004 12:21 |
|
|
|  |
 |
JaM |
| si sono il sacro detentore del JS (JaM Secret) ma ... |
02-05-2004 12:51 |
|
 |
JaM |
######

Registered: Jun 2002
Posts: 3604 (0.42 al dì)
Location: everywhere, anywhere, elsewhere...
Corso: ComDig
Anno: dott.??
Time Online: 62 Days, 16:55:46 [...]
Status: Offline
Edit | Report | IP: Logged |
si sono il sacro detentore del JS (JaM Secret) ma il tuo script non l'ho capito mica tanto....
non ho mai guardato le funzioni che recuperano informazioni sul browser ma cosi' a occhio direi che quell' if lungo con dentro le document.write va in esecuzione solo quando il browser e' explorer.... quindi il comportamento dello script e' corretto suppongo 
|
|
02-05-2004 12:51 |
|
|
|  |
 |
fulminato1 |
| scusa fab ma non ho capito qual è il fine ultimo ... |
17-05-2004 11:25 |
|
|
|  |
 |
| All times are GMT. The time now is 16:36. |
|
|
 |
|
 |
|
|
|  |
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|