Einzelnen Beitrag anzeigen

Benutzerbild von MrSpock
MrSpock
(Co-Admin)

Registriert seit: 7. Jun 2002
Ort: Owingen
5.865 Beiträge
 
Delphi 2010 Professional
 
#11

Re: PHP Anweisungen funktioniert nicht im Browser

  Alt 10. Mär 2009, 18:58
Hallo,

ich versuche hier nochmal mein Glück.

Wie gesagt, ich habe die sehr einfache Anwendung oben. Wenn ich den Schalter betätige, wird die Seite neu geladen, aber die Beschriftung ändert sich nicht. Interessanterweise durchläuft die Anwendung auch die OnClick Methode nicht. Ich kann in D4PHP einen Breakpoint setzen, aber die Anwendung kommt dort irgendwie nicht an.

Im Objektinspektor wird aber die Verknüpfung angezeigt.

Der Quellcode der Seite sieht so aus:

Code:
[xml]<html DIR=ltr >
<head>
<title>Unit1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="file:///C:/Program Files/CodeGear/Delphi for PHP/2.0/vcl/js/common.js"></script>
<script type="text/javascript">var Unit1=new Object(Object);</script>
<script type="text/javascript">
<!--
function Button1ClickWrapper(event, hiddenfield, submitvalue, wrappedfunc)
{

var event = event || window.event;
submit1=true;
submit2=true;
if (typeof(wrappedfunc) == 'function') submit1=wrappedfunc(event);
hiddenfield.value = submitvalue;
form = hiddenfield.form;
if ((form) && (form.onsubmit) && (typeof(form.onsubmit) == 'function')) submit2=form.onsubmit();
if ((submit1) && (submit2)) form.submit();
return false;

}

           function Edit1_updatehidden(event)
            {
               edit=findObj('Edit1');
                hidden=findObj('Edit1_hidden');
                hidden.value=edit.value;
                            }
        -->
</script>
</head>

<body style=" margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; " >
<form style="margin-bottom: 0" id="Unit1" name="Unit1" method="post"  action="/unit1.php"><input type="hidden" id="Button1SubmitEvent" name="Button1SubmitEvent" value="" /><input type="hidden" name="Edit1_hidden" value="">
<table width="800"  style="height:600px" border="0" cellpadding="0" cellspacing="0" ><tr><td valign="top">
<div id="Button1_outer" style="Z-INDEX: 0; LEFT: 64px; WIDTH: 75px; POSITION: absolute; TOP: 48px; HEIGHT: 25px">

<input type="submit" id="Button1" name="Button1" value="Button1" onclick="return Button1ClickWrapper(event, findObj('Button1SubmitEvent'), 'Button1_Button1Click')" style=" font-family: Verdana; font-size: 10px; background-color: #00FF00;height:25px;width:75px;"  tabindex="0"   />
</div>
<div id="Label1_outer" style="Z-INDEX: 1; LEFT: 72px; WIDTH: 75px; POSITION: absolute; TOP: 104px; HEIGHT: 13px">
<div id="Label1" style=" font-family: Verdana; font-size: 10px; height:13px;width:75px;"  >Label1</div>
</div>
<div id="Edit1_outer" style="Z-INDEX: 2; LEFT: 152px; WIDTH: 121px; POSITION: absolute; TOP: 96px; HEIGHT: 21px">
<input type="text" id="Edit1" onchange="return Edit1_updatehidden(event)" name="Edit1" value="" style=" font-family: Verdana; font-size: 10px; height:20px;width:121px;"   tabindex="0"   />
</div>
</td></tr></table>
</form></body>
</html>
Es sieht also zumindest so aus, als sei der Schalter mit der Methode verknüpft. Wer kann erklären, warum diese Anwendung nicht funktioniert?

[edit=mkinzler]Tag korrigiert Mfg, mkinzler[/edit]
Albert
Live long and prosper


MrSpock
  Mit Zitat antworten Zitat