Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-08-22 10:03:28

abmcr
New member
Registered: 2005-08-22
Posts: 4

Multiple field in a page with one xinha textarea

I try to insert a textarea (xihna) and others fields (such a input text, input password): but they are not visible in the page. What i do? Thank you for any response.

Andrea - ITALY

Offline

#2 2005-08-23 12:30:45

abmcr
New member
Registered: 2005-08-22
Posts: 4

Re: Multiple field in a page with one xinha textarea

For a explanation:
i have this php file

<!DOCTYPE BHTML PUBLIC "-//BC//DTD BHTML 3.2 Final//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title></title>
  <!--<link rel="stylesheet" href="full_example.css" />-->
  <link rel="stylesheet" href="../../css/mainmenu.css" />
  <script type="text/javascript">
       // in this example we do a little regular expression to find the absolute path.
    _editor_url  = document.location.href.replace(/pagina\.php.*/, '')
    _editor_lang = "it";      // And the language we need to use in the editor.
  </script>

  <!-- Load up the actual editor core -->
  <script type="text/javascript" src="htmlarea.js"></script>

  <script type="text/javascript">
    xinha_editors = null;
    xinha_init    = null;
    xinha_config  = null;
    xinha_plugins = null;

       xinha_init = xinha_init ? xinha_init : function()
    {
     
      xinha_plugins = xinha_plugins ? xinha_plugins :
      [
       'CharacterMap',
       'ContextMenu',
       'FullScreen',
       'ListType',
       'Stylist',
       'SuperClean',
       'TableOperations',
       'ImageManager'
      ];

     // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  smile
     if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
 
      xinha_editors = xinha_editors ? xinha_editors :
      [
        'myTextArea'
      ];

       xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();

      xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);

      HTMLArea.startEditors(xinha_editors);
    }
    window.onload = xinha_init;
  </script>
</head>
<body>
<form id="editors_here" action="test.php" method="POST">
    <textarea id="myTextArea" name="myTextArea" rows="10" cols="80" style="width:100%"></textarea><br>
<inpu type="text" name="my_name"><br>   
<input type='submit' value='OK'>
</form>
<!-- Contenuto textarea-->
<div id="lipsum" style="display:none">
    <?php
   
         echo 'mytext';
    ?>
</div>
<script src="full_example.js"></script>
</body>
</html>

In this page the field 'my_name not appears and in the test.php page a have simply:

<?php
print_r($_POST);
?>

What i get in the test.php page is the only value of the text area .
What i do? Thank you

Offline

#3 2005-08-25 00:53:19

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Multiple field in a page with one xinha textarea

You start by writing <inpuT instead of <inpu

<inpu type="text" name="my_name"><br>   
<input type='submit' value='OK'>

James Sleeman

Offline

#4 2005-08-25 03:57:45

abmcr
New member
Registered: 2005-08-22
Posts: 4

Re: Multiple field in a page with one xinha textarea

Ok: the error is now corrected as:
[...]
<body>
<form id="editors_here" action="b.php" method="POST">
    <textarea id="myTextArea" name="myTextArea" rows="10" cols="80" style="width:100%">mytext</textarea><br>
<input type="text" name="my_name"value="aa"><br>   
<input type='submit' value='OK'>
</form>
</body>
</html>
and when i get the $_POST i obtain the value of field; but the textarea value (in this example 'mytext') don't appears in the xinha area. Sic.... Thank you.

Offline

#5 2005-08-25 04:03:05

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Multiple field in a page with one xinha textarea

You'll have to post a URL where we can view the problem.


James Sleeman

Offline

#6 2005-08-25 04:32:58

abmcr
New member
Registered: 2005-08-22
Posts: 4

Re: Multiple field in a page with one xinha textarea

I have resolved: the error was in the html file. Thank you.

Offline

Board footer

Powered by FluxBB