Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Edytor HyperTextArea (WYSIWYG), Jak jego zawartość przekazać na następną stronę?
unloco
post 23.08.2010, 19:04:54
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 13.04.2010

Ostrzeżenie: (0%)
-----


Witam. Zaimplementowałem w swoim formularzu edytor wizualny "HyperTextArea". Rozpakowałem go do katalogu ze stroną (otrzymując podkatalog "javascript" w którym znajdują się skrypty edytora).

Tworzę jeszcze formularz ($_POST) który będzie przekazywał dane do następnej strony)

  1. <form action=ogloszenie_praca_verify.php method=post>
  2. <!-- tutaj buttony i inne inputtexty do przekazania na następną stronę -->
  3. </form>


Może mi ktoś powiedzieć jak mam przekazać zawartość edytora na następną stronę?

Kod edytora jest napisany w javie:

  1. <script language="javascript" src="javascript/HyperTextArea.js">
  2.  
  3. <script language="JavaScript" type="text/javascript">
  4. area = new HyperTextArea("area1", 'Treść', 520, 200,"javascript");


i ma się on znajdować wewnątrz formularza. Jak go przekazać do następnej strony?

Na stronie twórcy (http://hypertextarea.sourceforge.net/faq.html) jest napisane jak to zrobić ale nie mogę tego w ogóle rozkminić chociaż znam dobrze angielski:

Cytat
* This code must be inside <form></form> tags. Often you can just replace a <textarea name="myField"></textarea> with the code above. Make sure that the name of the <textarea/> is the same as the name that you give to your HyperTextArea.
* The first argument ("area1" above) is the name of the HyperTextArea instance. More on that later.
* The second argument is the HTML content that you would like to load up in the HyperTextArea when it initializes.
* The third and fourth arguments are the height and width respectively
* The fifth argument is the path to the installation directory ("/javascript ") in this example, although you can install HyperTextArea in any directory on your web site that is accessible via a web browser.

Load your page and laugh heartily as you now have a WYSIWYG editor!


Cały problem polega na tym, że chociaż edytor mam wewnątrz <form></form> to nie wiem w jaki sposób jego zawartość przesłać dalej?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 12:51