Problemet er at jeg bruger dette også: <base target="_blank">
Når folk de så voter på min side, så åbnes der et nyt vindue hvor siden bliver åbnet, det skal der ikke, så mit spørgsmål er, hvordan sætter jeg parent på den vote, så den ikke åbner op på ny??
Jeg fjerner ikke <base target="_blank"> da jeg har alt for mange links som skal åbnes i et nyt vindue, så det skal kun være dette voting script der skal bruge parent??
/* include files */ if(!isset($isinc_common)) { include dirname(__FILE__)."/common.$ext"; } if(!isset($isinc_poll)) { include dirname(__FILE__)."/poll.$ext"; }
/* returns the top of the booth or results table */ /* i know, i know.. sorry about the mess here.. */ function spew_top($p) { global $s_width, $s_bg, $s_bord, $s_txtface, $s_qtx, $s_qbg, $s_txtsize;
/* returns the entire html block for a voting booth */ function boothUI($p, $rand) { global $s_tx, $s_txtsize, $s_optsize, $s_txtface, $s_dirurl, $s_polllist, $ext, $symp_lang1, $symp_lang2, $symp_lang3, $QUERY_STRING, $SYMP_URL;
/* keep track if random poll displayed */ $rand = FALSE; if($pid == -1) { $rand = TRUE; }
/* do we have a cookie already for this poll? */ /* are we just viewing results? is our ip logged? */ $cookiename = "symp"."$p->tstamp"; if($s_cookielog != "0" && isset($sympvotes[$cookiename])) { return resultsUI($p, $sympvotes[$cookiename]); } elseif( (isset($vo) && $vo == $p->pid) || ($s_iplog != "0" && $p->voted != 0) ) { return resultsUI($p, -1); } else { return boothUI($p, $rand); } }
/* for use with templates, you can optionally change the following * three functions to use return instead of echo. this will return * all the html text instead of directly displaying it. */
function display_booth($pid) { echo get_booth($pid); } function random_booth() { echo get_booth(-1); } function newest_booth() { echo get_booth(-2); }
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.