Click here to Skip to main content
11,576,354 members (62,011 online)

JavaScript

 
AnswerRe: Find the selected radio button immediately using the 'this' variable in he javascript Pin
john-ph5-Oct-12 4:02
memberjohn-ph5-Oct-12 4:02 
QuestionPreventing Duplicate Form Submissions in JavaScript Pin
hiredotnet3-Oct-12 19:10
memberhiredotnet3-Oct-12 19:10 
QuestionUnit testing in JavaScript Pin
hiredotnet2-Oct-12 21:01
memberhiredotnet2-Oct-12 21:01 
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 
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 
I found that IE has a different way or syntax for creating html in the dom. Firefox, Safari was pretty straight forward, but IE used table.insertRow(-1), and InnerText instead of InnerHTML. So I spent a week looking at the difference between the two, and found that you can set stuff, but it won't work or produce an error unless it's way off base. So IE just ignores InnerHTML, but picks up InnerText. Go Figure?. I didn't want to mess with more asp.net elements, so I just made them in Javascript. The main point was that if it's even used, then it's created on the fly by the client, if not, there's no extra asp.net code needed.

Drove me nuts!

So the big picture here, is that it's a very small piece of code in a large Server DLL Control (6 megs). The script is embedded, and everything is code behind.

The hard coded id is on the asp.net side, the jquery uses a wildcard for the id, in which the prefix can be anything, as long as the suffix matches. So masterpages are not a problem.

I didn't think of using CSS at the time, just wrote it all in mostly javascript. I suppose there are a dozen ways to do it.

I use to type out the HTML like your example and append it, just thought I would try something different this time. The createElement seems a little faster than just appending text.

I'm amazed at really fast it runs, so I'm going to stick with it for now.
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 
AnswerRe: Fastest way to select all elements in a *ListBox* Pin
BobJanova12-Sep-12 23:04
memberBobJanova12-Sep-12 23:04 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 12:27
memberA*****13-Sep-12 12:27 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 18:55
memberA*****13-Sep-12 18:55 
Questionjavascript _> activex passing by reference Pin
Johan000112-Sep-12 1:40
memberJohan000112-Sep-12 1:40 
AnswerRe: javascript _> activex passing by reference Pin
twseitex16-Sep-12 1:09
membertwseitex16-Sep-12 1:09 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 0:46
memberJohan000117-Sep-12 0:46 
GeneralRe: javascript _> activex passing by reference Pin
twseitex17-Sep-12 8:30
membertwseitex17-Sep-12 8:30 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 21:38
memberJohan000117-Sep-12 21:38 
GeneralRe: javascript _> activex passing by reference Pin
twseitex18-Sep-12 8:58
membertwseitex18-Sep-12 8:58 
GeneralRe: javascript _> activex passing by reference Pin
Johan000118-Sep-12 23:28
memberJohan000118-Sep-12 23:28 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 1:03
memberJohan000117-Sep-12 1:03 
AnswerRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 1:02
mvpManfred R. Bihy19-Sep-12 1:02 
GeneralRe: javascript _> activex passing by reference Pin
Johan000119-Sep-12 2:02
memberJohan000119-Sep-12 2:02 
GeneralRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 2:06
mvpManfred R. Bihy19-Sep-12 2:06 
GeneralRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 2:12
mvpManfred R. Bihy19-Sep-12 2:12 
QuestionCreate AD block functionality for my website Pin
swayam.test1.gmail10-Sep-12 19:58
memberswayam.test1.gmail10-Sep-12 19:58 
AnswerRe: Create AD block functionality for my website Pin
enhzflep11-Sep-12 22:06
memberenhzflep11-Sep-12 22:06 
QuestionHow does Google show_ads.js work? Pin
swayam.test1.gmail10-Sep-12 19:57
memberswayam.test1.gmail10-Sep-12 19:57 
QuestionHow to send request data from one tab to other tab which are on same jsp Pin
mayureshdh9-Sep-12 18:52
membermayureshdh9-Sep-12 18:52 
Questionjavascript/jquery Pin
chaim_zvi8-Sep-12 8:50
memberchaim_zvi8-Sep-12 8:50 
Questionshow alert in javascript and not continue Pin
ptvce6-Sep-12 21:26
memberptvce6-Sep-12 21:26 
AnswerRe: show alert in javascript and not continue Pin
J4amieC6-Sep-12 22:11
memberJ4amieC6-Sep-12 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.150603.1 | Last Updated 2 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid