Buon giorno, ho questo problema.
Invio dei valori da pagina1.php, tramite Get a pagina2 in questo modo:
codice:
header("Location: pagina2.php?keepThis=true&TB_iframe=true&height=250&width=380&title=areariservata&class=thickbox");
exit;
//pagina2.php č strutturata in questo modo
<script type="text/javascript" src="js/jquery-1.1.3.1.pack.js"></script>
<script type="text/javascript" src="js/thickbox.js"></script>
<link rel="stylesheet" href="css/thickbox.css" type="text/css" media="screen" />
<FORM METHOD='POST' ACTION="index.php">
username: <INPUT TYPE='TEXT' SIZE='20' NAME='posted_username' />
password: <INPUT TYPE='PASSWORD' SIZE='20' NAME='posted_password' />
</FORM>
in questa porzione di script, dovrei fargli intercettare il valore che gli passo per GET del valore "class=tickbox", che invio tramite header(....).
All'interno della funzione sottostante, ci sono questi parametri tb_init('a.thickbox, area.thickbox, input.thickbox'); e sono quelli per cui il valore thickbox, fa il suo dovere.
Come faccio ad inserire un'altro parametro che contenga quel valore?
codice:
//on page load call tb_init
$(document).ready(function(){
//qui ho inserito un'altro parametro body.thickbox, ma non vā
tb_init('a.thickbox, area.thickbox, input.thickbox /*,body.thickbox*/');//pass where to apply thickbox
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;
});
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
$(domChunk).click(function(){
var t = this.title || this.name || null;
var a = this.href || this.alt;
var g = this.rel || false;
//qui anche, ma niente
//var s = this.body || this.class;
//anche qui, ma niente
tb_show(t,a,g /*,s*/);
this.blur();
return false;
});
}
Sapete come fare?
Spero di essere stato chiaro.
Grazie mille.....