
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
28.02.2005, 17:03
|
|||
|---|---|---|---|
|
|||
Шаблорнные запросы |
|||
|
#18+
Здравствуйте! У меня вопрос, есть html: <head> <TITLE>База работников</TITLE> <script type="text/javascript"> function validate() { txt1=document.FaForm.FirstName.value txt2=document.FaForm.LastName.value window.open("http://localhost/northwind/templates/updnew.xml"+"?FirstName="+"txt1"+"&"+"LastName="+"txt2") } </script> </head> <body> <i>Для добавления нового работника введите имя и фамилию.</i> <table border=2> <form name="FaForm" onsubmit="return validate()"> <tr> <td align=right width=100pt><B>Имя</B></td> <td align=center><input type=text name=FirstName size=28></td> <br> </tr> <tr> <td align=right><B>Фамилия</B></td> <td align=center><input type=text name=LastName size=28></td> </tr> </table> <br> <input type="submit" value="Добавить"> </form> </body> Есть xml: <?xml version="1.0"?> <employeeupdate xmlns:updg="urn:schemas-microsoft-com:xml-updategram"> <updg:header> <updg:param name="FirstName"/> <updg:param name="LastName"/> </updg:header> <updg:sync > <updg:after> <Employees FirstName="$FirstName" LastName="$LastName" /> </updg:after> </updg:sync> </employeeupdate> Как в этой строке получать значения вместо txt1 и txt2??? window.open("http://localhost/northwind/templates/updnew.xml"+"?FirstName="+"txt1"+"&"+"LastName="+"txt2") ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&mobile=1&tid=2152898]: |
0ms |
get settings: |
5ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
28ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
24ms |
get tp. blocked users: |
1ms |
| others: | 194ms |
| total: | 286ms |

| 0 / 0 |
