HashanChamara / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
0 stars 0 forks source link

form output after other output #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
for example you have index.php

CreateTimeStart(); // start the timer for how long the script takes
include 'some_file_with_php_form_builder_class_in_it.php'
echo CreateTimeEnd(); // Show how long the script takes

or

<div style="somestyles">
$form_addcast = new form("addcast");
$form_addcast->addHidden("a", "update_movie");
$form_addcast->addHidden("mid", $mid);
$form_addcast->setAttributes(array(
"width" => 400
));
$form_addcast->addTextbox("IMDB ID:", "IT_TXT_New_IMDBID");
$form_addcast->addTextbox("Role:", "IT_TXT_New_Role");
$form_addcast->addButton();
$form_addcast->render();
</div>

will be displayed as:
<div style="somestyles">
</div>
php-form-builder-class-output

if you run it you see the output from CreateTimeEnd() before the form.

What is the expected output? What do you see instead?
form should be displayed before the CreateTimeEnd()-output

What version of the product are you using? On what operating system?
1.1.1/1.1.2 on win7 with xampp

Original issue reported on code.google.com by woelfc...@gmail.com on 31 Oct 2010 at 5:03

GoogleCodeExporter commented 8 years ago
The form's resources - javascript/css files - are loaded asynchronously via 
javascript before the form's content is displayed, which is why the output of 
your CreateTimeEnd() function is seen before the form.

In your issue, you mentioned that the form's output was added to your webpage 
after it's containing div had closed.  This shouldn't be happening.  Please 
verify that this is indeed occurring by viewing the webpage source.  If so, I 
will look into this further.

- Andrew

Original comment by ajporterfield@gmail.com on 31 Oct 2010 at 5:23

GoogleCodeExporter commented 8 years ago
No response from user, so this issue is being closed.

Original comment by ajporterfield@gmail.com on 8 Nov 2010 at 1:29