[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [PHP][HTML]



Den Sat, 13 Dec 2003 22:10:45 +0100
Amir Salihefendic <sslug@sslug> skrev:

> Tak for den smukke tegning ;), men jeg kan stadigt ikke se problemet.

:)
 
> Sådan vil jeg løse problemet hvis jeg skulle tjekke om brugeren havde 
> trykket på en af knapperne.
> <script type="text/javascript">
> <!--
> function er_den_trykket()
> {
> 	document.lala.er_den_det.value = "1";
> }
> 
> // -->
> </script>
> 
> <form name="lala" method="post">
> 	<input type="button" value="Tryk her" onclick="er_den_trykket()"
> 	/><div id="skjul" style="display: none;"><input type="text" 
> name="er_den_det" /></div>
> </form>
> 
> håber det hjalp

Det hjalp ikke på min frustration over at MS ikke kan finde ud af lave
noget der virker som de siger.

Jeg har lavet det. Det er ikke svært men det er noget møg når man skal
bruge det i mange forme. Funktionen ryger i et glogalt script men jeg
skal jo stadig skrive onclick="SubmitForm(this)"

Kode:
----------------------
function SubmitForm(obj)
{
   document.getElementById("btnPress").value = obj.name;
   return true;
}


<form action="_URL_" method="POST">
<input type="hidden" name="btn" id="btnPress" value="">
 <button type="submit" name="AddMe" onclick="SubmitForm(this)">
  <img src="img.png" alt="">Tilføj mig
 </button>
</form>
-----------------------

(John =;-)
-- 
Den sikre vej til en sikker backup... ALBackup
http://www.adilock.dk/~john/albackup/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:43 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *