Ciao a tutti,
ho un link del genere:
http://www.pippo.com/products.asp?id...Idproducts=119
dove passo alla pagina dinamica PRODUCTS gli id di due campi del database per visualizzare il prodotto corrispondente.
Caricando la pagina da sola mi funziona.
Siccome il sito è strutturato a frame ho una funzione JS che verifica se le pagine richiamate sono contenute nel set di frame, altrimenti lo ricostruisce:
FUNZIONE JS:
[CODEfunction reDirect() {
if (window.top == window.self){
document.write('<frameset rows="121,*" BORDER="0" SPACING="0" FRAMEBORDER="0" FRAMESPACING="0" MARGINHEIGHT="0" MARGINWIDTH="0" SCROLLING="no" >');
document.write('<frame src="/homeup.htm" name="top" scrolling="no" noresize target="main" BORDER="0" SPACING="0" FRAMEBORDER="0" FRAMESPACING="0" MARGINHEIGHT=0 MARGINWIDTH=0>');
document.write('<frameset cols="157,*" BORDER="0" SPACING="0" FRAMEBORDER="0" FRAMESPACING="0" MARGINHEIGHT="0" MARGINWIDTH="0">');
document.write('<frame src="/menusx.asp" name="menu" scrolling="auto" noresize target="main" BORDER="0" SPACING="0" FRAMEBORDER=0 FRAMESPACING="0" MARGINHEIGHT="0" MARGINWIDTH="0">');
document.write('<frame src='+document.URL+'? scrolling="auto" name="main" target="_self" BORDER="0" SPACING="0" FRAMEBORDER="0" FRAMESPACING="0" MARGINHEIGHT="0" MARGINWIDTH="0">');
document.write('</frameset>');
document.write('</frameset>');
}
}
[/CODE]
questa funzione mi genera il seguente errore se viene richiamata con il link di cui sopra
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "119?"]'
/products.asp, line 12
cosa può essere???
grazie

Rispondi quotando
