|
|
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
Добрый день. Есть такой вопрос: Мне надо с помощью джаваскрипта создать форму и отослать её (но не в хтмл типа <form></form>, а именно динамическую с помощью скрипта). Подскажите пожно ли это сделать, и если можно, то как? Большое спасибо! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 02:31 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
получается никак? (((( )Ладно.... тогда подсажите пожалуйста, где можно почитать про POST запросы и т.д. ... Весь нэт обыскал, но никакой нужной инфы не нашёл. Везде описывается именно определение метода пост, но вот как сформулировать такой запрос вручную нигде не сказано :( Помогите пожалуйста! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 11:20 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
А что значит именно динамически с помощью скрипта? Имеется ввиду динамическая генерация страницы с какой-то формой? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 11:32 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
Можно вроде... Про фомы не в курсе (но они ничем не провинились), а вот пример как создаются другие элементы Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. Cache for Windows (x86-32) 2007.1.3 (Build 607) Wed Oct 17 2007 02:12:09 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 11:35 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
В сообщении правда ключевые символы просто "показались"... В примере они написаны Код: plaintext без пробелов... ---------- Cache for Windows (x86-32) 2007.1.3 (Build 607) Wed Oct 17 2007 02:12:09 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 11:37 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
Т.ч. умело используя методы createElement() и appendChild() строй что тебе хочется... ---------- Cache for Windows (x86-32) 2007.1.3 (Build 607) Wed Oct 17 2007 02:12:09 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 11:40 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
Хотя про form тут нет ни слова... автор Remarks In Microsoft® Internet Explorer 4.0, the only new elements you can create are IMG, AREA, and OPTION. As of Internet Explorer 5, you can create all elements in script, except for FRAME, IFRAME, and SELECT. In addition, the read-only properties of independently created elements are read/write. Before you use new objects, you must explicitly add them to their respective collections or to the document. To insert new elements into the current document, use the insertBefore or appendChild methods. You must perform a second step when using createElement to create the INPUT element. The createElement method generates an input text box, because that is the default INPUT type property. To insert any other kind of INPUT element, first invoke createElement for INPUT, then set the type property to the appropriate value in the next line of code. Attributes can be included with the sTag as long as the entire string is valid HTML. This is useful since you cannot set the NAME attribute at run time on A objects created with the createElement method. For example, to create an A element with a NAME attribute, include the attribute and value when using the createElement method. You can also use the innerHTML property. ---------- Cache for Windows (x86-32) 2007.1.3 (Build 607) Wed Oct 17 2007 02:12:09 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 11:42 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
krvsaХотя про form тут нет ни слова... автор Remarks In Microsoft® Internet Explorer 4.0, the only new elements you can create are IMG, AREA, and OPTION. As of Internet Explorer 5, you can create all elements in script, except for FRAME, IFRAME, and SELECT. In addition, the read-only properties of independently created elements are read/write. Before you use new objects, you must explicitly add them to their respective collections or to the document. To insert new elements into the current document, use the insertBefore or appendChild methods. You must perform a second step when using createElement to create the INPUT element. The createElement method generates an input text box, because that is the default INPUT type property. To insert any other kind of INPUT element, first invoke createElement for INPUT, then set the type property to the appropriate value in the next line of code. Attributes can be included with the sTag as long as the entire string is valid HTML. This is useful since you cannot set the NAME attribute at run time on A objects created with the createElement method. For example, to create an A element with a NAME attribute, include the attribute and value when using the createElement method. You can also use the innerHTML property. ---------- Cache for Windows (x86-32) 2007.1.3 (Build 607) Wed Oct 17 2007 02:12:09 EDT Думаю это именно та проблема с которой я стыкался... пробовал делать Код: plaintext а вот например Код: plaintext Спасибо ;) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 12:31 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
FuseА что значит именно динамически с помощью скрипта? Имеется ввиду динамическая генерация страницы с какой-то формой? Я имел ввиду что неохота создавать эту форму сразу на странице, а хотелось бы создать её только при нужде отправить данные на сервер (методом Пост). Дело в том, что все данные просчитываются скриптом, и пользователь ничего не вводит... Потому я посчитал лишним занимать "эфир" разными елементами типа <input type="hidden"> и всякое такое... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 12:36 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
К сожалению предложеный вариант работает только на те елементы, которые были приведены ранее, то есть: авторIn Microsoft® Internet Explorer 4.0, the only new elements you can create are IMG, AREA, and OPTION. As of Internet Explorer 5, you can create all elements in script, except for FRAME, IFRAME, and SELECT. В этот список форма не входит... ((( Может есть ещё какие-то методы создания елементов и форм? Заранее благодарен ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 15:24 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
Эта ссылка Или запрос Goooooooogl createElement("FORM") (Не отвечают потому что подозревают что Вы поленились сами погуглить) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 18:16 |
|
||
|
Работа с формами
|
|||
|---|---|---|---|
|
#18+
apapacy Эта ссылка Или запрос Goooooooogl createElement("FORM") (Не отвечают потому что подозревают что Вы поленились сами погуглить) УРА!!!! Спасибо... наконец-то ))) Я и в гугле уже был, и яндекс весь облазил... Просто не дружу я с поисковиками, запросы не так как надо видимо пишу... По ссылке есть всё что мне надо ))) ещё раз СПАСИБО!!! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.08.2008, 18:48 |
|
||
|
|

start [/forum/topic.php?fid=22&msg=35494304&tid=1455994]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
144ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 229ms |
| total: | 450ms |

| 0 / 0 |
