Click here to Skip to main content
13,000,469 members (59,051 online)

JavaScript

 
AnswerRe: Unit testing in JavaScript Pin
Spiff Dog9-Oct-12 9:43
memberSpiff Dog9-Oct-12 9:43 
QuestionCreating a vertical auto-hide toolbar Pin
Chen Renjun26-Sep-12 17:02
memberChen Renjun26-Sep-12 17:02 
AnswerRe: Creating a vertical auto-hide toolbar Pin
Mohibur Rashid27-Sep-12 15:09
memberMohibur Rashid27-Sep-12 15:09 
GeneralRe: Creating a vertical auto-hide toolbar Pin
Chen Renjun27-Sep-12 15:26
memberChen Renjun27-Sep-12 15:26 
AnswerRe: Creating a vertical auto-hide toolbar Pin
jkirkerx27-Sep-12 18:06
memberjkirkerx27-Sep-12 18:06 
GeneralRe: Creating a vertical auto-hide toolbar Pin
n.podbielski28-Sep-12 6:06
membern.podbielski28-Sep-12 6:06 
GeneralRe: Creating a vertical auto-hide toolbar Pin
jkirkerx28-Sep-12 6:12
memberjkirkerx28-Sep-12 6:12 
GeneralRe: Creating a vertical auto-hide toolbar Pin
n.podbielski28-Sep-12 8:43
membern.podbielski28-Sep-12 8:43 
Ok. I understand that but why not replace those hardcoded styles with css classes and jQuery().addClass("xxx")?
Why you using selector: panel_ProductEditor_ToolBox_Next? Its obviously part of asp.net generated id. Why not set CssClass property just for selecting?
Than you have clear selector that will not change when you edit parent container(s)?
Why you setting both innerText and innerHtml? For simple string like "Close Panel" one from them is enough and they mean the same?
For simple case like in question this is achievable with single css rule:

.parent-container:hover .autohider{
 display:block;
}
.parent-container .autohider{
 display:none;
}


and html
<div class="parent-container">
<div class="autohider">
some hider content
</div>
</div>


I don't say that it's wrong. Just overcomplicated.
No more Mister Nice Guy... >: |

GeneralRe: Creating a vertical auto-hide toolbar Pin
jkirkerx28-Sep-12 9:05
memberjkirkerx28-Sep-12 9:05 
GeneralRe: Creating a vertical auto-hide toolbar Pin
n.podbielski28-Sep-12 10:44
membern.podbielski28-Sep-12 10:44 
GeneralRe: Creating a vertical auto-hide toolbar Pin
jkirkerx28-Sep-12 12:16
memberjkirkerx28-Sep-12 12:16 
GeneralRe: Creating a vertical auto-hide toolbar Pin
n.podbielski28-Sep-12 12:51
membern.podbielski28-Sep-12 12:51 
GeneralRe: Creating a vertical auto-hide toolbar Pin
jkirkerx29-Sep-12 19:24
memberjkirkerx29-Sep-12 19:24 
GeneralRe: Creating a vertical auto-hide toolbar Pin
n.podbielski29-Sep-12 22:04
membern.podbielski29-Sep-12 22:04 
QuestionFantastic site demonstrating and teaching "responsive" UI concepts using JavaScript, HTML 5, etc. Pin
BillWoodruff25-Sep-12 13:46
memberBillWoodruff25-Sep-12 13:46 
AnswerRe: Fantastic site demonstrating and teaching "responsive" UI concepts using JavaScript, HTML 5, etc. Pin
Steve Bondy7-Dec-12 12:38
memberSteve Bondy7-Dec-12 12:38 
QuestionUsing Jquery in DataList Pin
mrkeivan19-Sep-12 6:17
membermrkeivan19-Sep-12 6:17 
AnswerRe: Using Jquery in DataList Pin
jkirkerx25-Sep-12 18:01
memberjkirkerx25-Sep-12 18:01 
AnswerRe: Using Jquery in DataList Pin
gjllyl9-Oct-12 19:36
membergjllyl9-Oct-12 19:36 
QuestionHow to calculate difference between two dates Pin
Robymon17-Sep-12 23:46
memberRobymon17-Sep-12 23:46 
AnswerRe: How to calculate difference between two dates Pin
Joan Murt18-Sep-12 4:59
memberJoan Murt18-Sep-12 4:59 
Questionfyi: accidental find: using JavaScript DOM in browser to parse a URL Pin
BillWoodruff14-Sep-12 22:54
memberBillWoodruff14-Sep-12 22:54 
AnswerRe: fyi: accidental find: using JavaScript DOM in browser to parse a URL Pin
ziggyfish10-Oct-12 6:26
memberziggyfish10-Oct-12 6:26 
Questiongoogle map splite write problem Pin
chogrf13-Sep-12 2:48
memberchogrf13-Sep-12 2:48 
QuestionFastest way to select all elements in a *ListBox* Pin
A*****12-Sep-12 19:32
memberA*****12-Sep-12 19:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 22 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid