Results 1 to 14 of 14
Thread: js :D
Hybrid View
-
21st October 2008 23:54 #1
js :D
.
AJAX:
http://www.w3schools.com/PHP/php_ajax_database.asp
, , txtHint , , :
, , select, showUser(); php id="txtHint".Code:<select name="cat" onchange="showUser(this.value)"> <option.... <option.... </select> <select name="select" id="txtHint"> </select>
w3 <div id="txtHint"...
.
, IE6/7.
.
"" php , "". , , , .
JS, .
.. .
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
22nd October 2008 00:26 #2
:
1) "select" PHP-.
2) <div> id - txtHint "" select, "" AJAX-.
3) .
-
22nd October 2008 00:40 #3
, , ...

...
, + , . , onchange $_POST... .
PS - , .
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
22nd October 2008 00:43 #4
( - bad / good) $_REQUEST . "post" $_POST. Survive.
-
22nd October 2008 01:53 #5
Last edited by Bombera; 22nd October 2008 at 01:58.
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
22nd October 2008 09:38 #6
z0ne, , !
Bombera, ID & name (..!?, ,
) .
.
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
22nd October 2008 23:50 #7
, , id name!
JS Option.
...
, ?
( ) AJAX.
- onSubmit- .
, ( ).
AJAX, . ( json.)
- , - alert .
-
23rd October 2008 14:06 #8
JS- , show();
php option- .
:
: , - .Code:<select name="cat" onchange="show(this.value)"> <option> </option> <option value="4"> e</option> </select> <select name="subcat" id="txtHint"> </select>
div - .Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
23rd October 2008 16:03 #9(SPAN, DIV, TD - ), , IE . (option)? , . - => . , , . , . . ?Code:
document.getElementById("txtHint").innerHTML=xmlHttp.responseText
(name id) . - - , ( ,
). , document.forms[], , . . Name deprecated, . , . , .
, - . , , . , .
P.S. innerHTML, . getElementdById() , . , <option>teskta ot zaqwkata
tuka</option>.
:
http://msdn.microsoft.com/en-us/libr...93(VS.85).aspx
bool canHaveHTML(void). , .
P.S.S . , ! .Last edited by delian; 23rd October 2008 at 16:55.
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
23rd October 2008 21:43 #10
1. AJAX.
, ( ). .
2. , ( ), - . JS- . .
3. "name" , . , . - , , . . "id" ( ).
4. , , , . . , , :
, , optList . :
5. , innerHTML, . '<option value="1">edno</option><option value="2">dve</option>'.Code:function loadOptions(optList) { var sel = document.getElementById('txtHint'); // , sel.options.length = 0; // var newOpt; // option for (var i in optList) { // newOpt = document.createElement('option'); newOpt.value = i; newOpt.innerHTML = optList[i]; sel.appendChild(newOpt); // } }
:
.Code:<select id="txtHint"> <option/> </select> <script> var sel = document.getElementById('txtHint'); sel.innerHTML = '<option value="1">edno</option>'; alert(sel.innerHTML); </script>
, ( )...Last edited by Flower; 23rd October 2008 at 22:40.
-
24th October 2008 00:19 #11
.
Bombera:
option-, .
, JS- value-, .js-a .php GET, :
value- , sql :
<option value=$sql['id']>$sql['name']</option> .. .
, .
==============
Flower:
1. , php , - , , sql, php w3.
...
, JS , , , z0ne -.
, ...
===
, , , , ...
, JS ?
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
24th October 2008 01:24 #12
, . . , , . JS, , .
, , -
P.S. AJAX . " ", AJAX. , , AJAX . Java , , 2000-. javascript-, DIV-. .
IE4/5 , .Last edited by Bombera; 24th October 2008 at 01:33.
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
24th October 2008 01:37 #13
, . :P
" JS, , ." .
, , , .
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
24th October 2008 01:44 #14
-,

"1" , "0" .
, .Code:switch(stringa_ot_servera){ case "0": izwyrshi_deistwiq_ako_dannite_sa_OK(); break; case "1": izwyrshi_deistwiq_ako_dannite_smuchat_demek_sa_newalidni(); break; }Last edited by Bombera; 24th October 2008 at 02:25. Reason:
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in