millers Posted May 28, 2008 Report Share Posted May 28, 2008 Sveiki man ir jautājums kā pareizāk būtu šis links jāizveido es vēlos lai atver jaunā logā to adresi ,bet meiģinaju kko šadi nesanāca echo("<a href='#' onClick='window.open('http://.$POLL_URL . 'result.php?'. htmlspecialchars($POLL_ID_PARAM_NAME).'='. htmlspecialchars($poll_id).','mywindow','width=480,height=410')'/>test<a />"); Link to comment Share on other sites More sharing options...
andrisp Posted May 28, 2008 Report Share Posted May 28, 2008 Labāk parādi jau uzģenerētu HTML. Tb to, kā tas <a> izskatās iekš pārlūka, kad atver View -> Source. Kā arī uzreiz jau varu pateikt, ka trūkst return false; pašās beigās (tas tāpēc vajadzīgs, lai links pats par sevi neizpildītos). Link to comment Share on other sites More sharing options...
millers Posted May 28, 2008 Author Report Share Posted May 28, 2008 kr4 ir taa tas php code ir sads echo("\t\t<a href=\"" . $POLL_URL . "results.php?" . htmlspecialchars($POLL_ID_PARAM_NAME) . "=" . htmlspecialchars($poll_id) . "\">" . htmlspecialchars($VIEW_RESULTS_STRING) . "</a>\r\n"); un es vienkarsi domaju ar to javascript meiginat ka sakombineet lai vertu vala jauna logaa. Link to comment Share on other sites More sharing options...
andrisp Posted May 28, 2008 Report Share Posted May 28, 2008 Tak tu jau iekopēji to kodu vienreiz (starpcitu, lūdzu, izmanto CODE tagu). Izdari to, ko lūdzu! Link to comment Share on other sites More sharing options...
millers Posted May 28, 2008 Author Report Share Posted May 28, 2008 (edited) sadi izskatas caur sorce <a href='#' onClick='window.open('http://.inc/poll/poll/ . 'result.php?'. htmlspecialchars(pollid).'='. htmlspecialchars(1).','mywindow','width=480,height=410')'/>test<a /> bet man vajg lai viņš šo link atver jaunā mazā lodziņā Edited May 28, 2008 by millers Link to comment Share on other sites More sharing options...
andrisp Posted May 28, 2008 Report Share Posted May 28, 2008 Kaut ko nepareizi ar pēdiņam esi sadarījis, tāpēc arī nepareizi uzģenerējas tas kods. Link to comment Share on other sites More sharing options...
millers Posted May 28, 2008 Author Report Share Posted May 28, 2008 bet ja tā padomā tad jau viņjam tikuntā būtu jauns logs jāatver vaitad ne? Link to comment Share on other sites More sharing options...
Rich Bitch Posted May 28, 2008 Report Share Posted May 28, 2008 (edited) kautkaa shaadi bet izskataas ka tev tas ir ieksh echo <a href=\"#\" onClick=\"window.open('http://.inc/poll/poll/ esult.php?". htmlspecialchars(pollid)."=". htmlspecialchars(1)."','mywindow','width=480,height=410');\"/>test<a /> Edited May 28, 2008 by Rich Bitch Link to comment Share on other sites More sharing options...
andrisp Posted May 28, 2008 Report Share Posted May 28, 2008 millers, nē, tev tur javascript kļūda notiek. Link to comment Share on other sites More sharing options...
millers Posted May 28, 2008 Author Report Share Posted May 28, 2008 (edited) Ideāli .. thxxxx Edited May 28, 2008 by millers Link to comment Share on other sites More sharing options...
marcis Posted May 28, 2008 Report Share Posted May 28, 2008 Un pamācies html. <a /> <a></a> Link to comment Share on other sites More sharing options...
Recommended Posts