The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> What kind of programming language is?
Beginner2012
post Mar 5 2015, 11:33 PM
Post #1


Newbie
*

Group: Members
Posts: 11
Joined: 8-June 12
Member No.: 17,238



I would like to know on What kind of programming language is on following code.

Does anyone have any suggestions?
Thanks in advance for any suggestions



<div class="steps-menu sm-block">
<div><img src="images/ysm_ds_step1_f.gif"/></div><a href="#" onclick="return onAction('next')" class="steps-menu-btn2"></a><a href="#" onclick="return onAction('view')" class="steps-menu-btn3"></a><a href="#" onclick="return onAction('done')" class="steps-menu-btn4"></a></div>
<div class="steps-menu sm-block">
<div><img src="images/bar1_h.gif"/></div><div><img src="images/bar2_h.gif"/></div><div><img src="images/bar3_h.gif"/></div><div><img src="images/bar4_h.gif"/></div></div>
<div style="clear:both"></div>
<div class="category-panel">
<div class="row sm-block"><div><img src="images/icon01.jpg"/><ul><li><input type="radio" name="category" value="7-0"/>保險</li><li><input type="radio" name="category" value="7-1"/>投資理財</li><li><input type="radio" name="category" value="7-2"/>貸款</li></ul></div><div><img src="images/icon02.jpg"/><ul><li><input type="radio" name="category" value="5-0"/>旅遊產品</li><li><input type="radio" name="category" value="5-1"/>旅遊目的地</li><li><input type="radio" name="category" value="5-2"/>運動及消閒</li></ul></div><div><img src="images/icon03.jpg"/><ul><li><input type="radio" name="category" value="4-0"/>專業及進修課程</li><li><input type="radio" name="category" value="4-1"/>本地及海外升學</li><li><input type="radio" name="category" value="4-2"/>語言課程</li></ul></div></div><div class="row sm-block"><div><img src="images/icon04.jpg"/><ul><li><input type="radio" name="category" value="8-0"/>飲食</li></ul></div><div><img src="images/icon05.jpg"/><ul><li><input type="radio" name="category" value="6-0"/>美容及個人護理</li><li><input type="radio" name="category" value="6-1"/>醫療健康</li></ul></div><div><img src="images/icon06.jpg"/><ul><li><input type="radio" name="category" value="0-0"/>室內裝修及設計</li><li><input type="radio" name="category" value="0-1"/>樓宇地產</li><li><input type="radio" name="category" value="0-2"/>清潔滅蟲</li></ul></div></div><div class="row sm-block"><div><img src="images/icon07.jpg"/><ul><li><input type="radio" name="category" value="3-0"/>傢俬及家居用品</li><li><input type="radio" name="category" value="3-1"/>廣告禮品</li><li><input type="radio" name="category" value="3-2"/>成衣、服裝配件及時裝</li><li><input type="radio" name="category" value="3-3"/>減價及優惠</li><li><input type="radio" name="category" value="3-4"/>珠寶首飾</li><li><input type="radio" name="category" value="3-5"/>網上商店及二手物品</li><li><input type="radio" name="category" value="3-6"/>花店</li><li><input type="radio" name="category" value="3-7"/>辦公室用品</li><li><input type="radio" name="category" value="3-8"/>電器、電子產品</li><li><input type="radio" name="category" value="3-9"/>電腦產品</li></ul></div><div><img src="images/icon08.jpg"/><ul><li><input type="radio" name="category" value="2-0"/>交友配對</li><li><input type="radio" name="category" value="2-1"/>印刷及紙品</li><li><input type="radio" name="category" value="2-2"/>商務中心、會計及律師</li><li><input type="radio" name="category" value="2-3"/>攝影服務</li><li><input type="radio" name="category" value="2-4"/>汽車服務</li><li><input type="radio" name="category" value="2-5"/>物流運輸</li><li><input type="radio" name="category" value="2-6"/>結婚服務</li><li><input type="radio" name="category" value="2-7"/>職業招聘</li><li><input type="radio" name="category" value="2-8"/>設計、廣告及市場推廣</li><li><input type="radio" name="category" value="2-9"/>資訊科技</li></ul></div><div><img src="images/icon09.jpg"/><ul><li><input type="radio" name="category" value="1-0"/>農曆新年</li><li><input type="radio" name="category" value="1-1"/>情人節</li><li><input type="radio" name="category" value="1-2"/>復活節 </li><li><input type="radio" name="category" value="1-3"/>母親節</li><li><input type="radio" name="category" value="1-4"/>父親節</li><li><input type="radio" name="category" value="1-5"/>放榜及升學</li><li><input type="radio" name="category" value="1-6"/>夏日、暑期</li><li><input type="radio" name="category" value="1-7"/>開學</li><li><input type="radio" name="category" value="1-8"/>國慶及中秋</li><li><input type="radio" name="category" value="1-9"/>萬聖節</li><li><input type="radio" name="category" value="1-10"/>聖誕及新年</li></ul></div></div>
<div style="clear:both"></div>
</div>
<div class="button-panel">
<a href="index.html"><img src="images/btn_home.jpg"/></a><a href="#" onclick="return onAction('view')"><img src="images/btn_viewList.jpg"/></a><a href="#" onclick="return onAction('next')"><img src="images/btn_nextStep.jpg"/></a></div>
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="ec_selection" value=""/><script>
var ecForm = new EcForm({
action:'keyword-step2.html',
error:{
nullselect:'請選擇合適的行業類別。'
},
keyword:'keyword-step3.html',
submit:'keyword-step4.html'

});
</script>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 6 2015, 06:32 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



I assume you meant this part:
CODE
<script>
var ecForm = new EcForm({
    action:'keyword-step2.html',
    error:{
        nullselect:'請選擇合適的行業類別。'
    },
    keyword:'keyword-step3.html',
    submit:'keyword-step4.html'
});    
</script>

In HTML5 the TYPE attribute of the SCRIPT element can be omitted, but only if the script language is javascript. So either the script above is javascript, or the HTML is invalid. The script syntax also looks like some kind of javascript (JSON?).

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Beginner2012
post Mar 7 2015, 06:19 PM
Post #3


Newbie
*

Group: Members
Posts: 11
Joined: 8-June 12
Member No.: 17,238



QUOTE(masonh928 @ Mar 7 2015, 05:53 PM) *

I do not think it's JSON, but it is Object-Oriented Javascript.

And looks like some markup errors.


so if it is Object-Oriented Javascript, I would like to know on where the input/selected value is kept under following coding.

<input type="hidden" name="ec_selection" value=""/>

Does anyone have any suggestions?
Thanks, to everyone very much for any suggestions :>

This post has been edited by Beginner2012: Mar 7 2015, 06:19 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 7 2015, 08:56 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



I don't understand the question. unsure.gif That's HTML (a hidden INPUT element), not javascript. It's value is stored in its VALUE attribute. However humans users can't read or edit the value of a hidden INPUT directly (since it's hidden), this can only be done by a scripting language.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Beginner2012
post Mar 7 2015, 11:04 PM
Post #5


Newbie
*

Group: Members
Posts: 11
Joined: 8-June 12
Member No.: 17,238



QUOTE(Christian J @ Mar 7 2015, 08:56 PM) *

I don't understand the question. unsure.gif That's HTML (a hidden INPUT element), not javascript. It's value is stored in its VALUE attribute. However humans users can't read or edit the value of a hidden INPUT directly (since it's hidden), this can only be done by a scripting language.


For programming, if I don't want to hidden those INPUT, does anyone have any suggestions on what input type should be used?

<input type="hidden" name="ec_selection" value=""/>

Does anyone have any suggestions?
Thanks, to everyone very much for any suggestions :>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 8 2015, 05:03 AM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Change type="hidden" to type="text".

See http://htmlhelp.com/reference/html40/forms/input.html .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 11:09 PM