Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi for PHP/AddOn    [ Add a report in this area ]  
Report #:  65541   Status: Closed
LabeledEdit not work with javascript
Project:  HTML5 Builder Build #:  2.0.0.1041
Version:    2.0 Submitted By:   ALEXANDRE PADUA FONSECA
Report Type:  Crash / Data loss / Total failure Date Reported:  8/11/2008 2:12:33 PM
Severity:    Critical / Show Stopper Last Updated: 8/12/2008 12:47:32 AM
Platform:    All versions Internal Tracking #:  
Resolution: Test Case Error (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
LabeledEdit not work with javascript
Steps to Reproduce:
- New Project
- Add 1 LabeledEdit
- Add 1 Button
- Edit event the button ( JSClick )

   function Button1JSClick($sender, $params)
   {
   ?>
   //Adicione seu código javascript aqui
     alert(document.getElementById("LabeledEdit1").value);
    <?php
   }

or

   function Button1JSClick($sender, $params)
   {
   ?>
   //Adicione seu código javascript aqui
    alert(document.FrmPrinc.LabeledEdit1.getValue());
   <?php
   }
- Run Application
- add value in labelededit
- press Button show MessgBox ( undefinid ) and not the value labelededit
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 8/12/2008 12:48:04 AM -
value of LabeledEdit is stored hidden field.
Please see HTML data with Web browser.

correct JavaScript code is as below.

       function Button1JSClick($sender, $params)
       {
       ?>
         alert(document.getElementById("LabeledEdit1_value").value);
         return false;
       <?php
       }

Gary Neckers at 10/27/2008 12:49:25 PM -
alert(LabeledEdit1.getValue())

Server Response from: ETNACODE01