Click here to Skip to main content
15,920,217 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow to create Components for web applications? Pin
venkatinaidu12-Sep-07 23:31
venkatinaidu12-Sep-07 23:31 
QuestionDataAccess Layers & Speed Improvements Pin
L Viljoen12-Sep-07 21:01
professionalL Viljoen12-Sep-07 21:01 
AnswerRe: DataAccess Layers & Speed Improvements [modified] Pin
Manuel F. Hernandez13-Sep-07 7:57
Manuel F. Hernandez13-Sep-07 7:57 
QuestionMass mail sender app Pin
firestoper12-Sep-07 19:22
firestoper12-Sep-07 19:22 
AnswerRe: Mass mail sender app Pin
led mike13-Sep-07 4:46
led mike13-Sep-07 4:46 
GeneralRe: Mass mail sender app Pin
Manuel F. Hernandez13-Sep-07 7:33
Manuel F. Hernandez13-Sep-07 7:33 
QuestionFireFox select scrolling issue Pin
Brent Lamborn12-Sep-07 5:53
Brent Lamborn12-Sep-07 5:53 
AnswerRe: FireFox select scrolling issue Pin
Shog912-Sep-07 9:03
sitebuilderShog912-Sep-07 9:03 
I'm interested to see your code... I tried doing a quick implementation to see what happens, and while i can manage to lock the scrolling in FF, it doesn't seem to be possible in IE6...

// moves selected option in theList up by one index (if possible) (single-sel lists only)
function moveUp()
{
   var list = document.getElementById("theList");
   var sel = list.selectedIndex;
   if ( sel > 0 )
   {
      repositionOption(list, sel, sel-1);
   }
}

// moves selected option in theList down by one index (if possible) (single-sel lists only)
function moveDown()
{
   var list = document.getElementById("theList");
   var sel = list.selectedIndex;
   if ( sel < list.length-1 )
   {
      repositionOption(list, sel, sel+1);
   }
}

function repositionOption(list, sel, index)
{
   var scroll = list.scrollTop;  // save scroll pos
   var opt = list.item(sel);
   
   list.remove(sel);
   opt.selected = false;   // mustn't be initially selected, or marking it won't scroll into view
   
   // deal with IE breakage
   try
   {
      list.add(opt, list.item(index));
   }
   catch(e)
   {
      // for some reason, IE uses index vs. element to insert before
      list.add(opt, index);
   }
   
   list.scrollTop = scroll; // restore scroll pos
   opt.selected = true; // restore selection (will scroll into view if necessary)
}



every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?

GeneralRe: FireFox select scrolling issue Pin
Brent Lamborn12-Sep-07 9:57
Brent Lamborn12-Sep-07 9:57 
GeneralRe: FireFox select scrolling issue Pin
Shog912-Sep-07 10:11
sitebuilderShog912-Sep-07 10:11 
Questionneed info about creating popup menu in javascript Pin
Dudhat11-Sep-07 23:20
Dudhat11-Sep-07 23:20 
AnswerRe: need info about creating popup menu in javascript Pin
Shog912-Sep-07 9:13
sitebuilderShog912-Sep-07 9:13 
AnswerRe: need info about creating popup menu in javascript Pin
VIRAGHJAIN12-Sep-07 23:37
VIRAGHJAIN12-Sep-07 23:37 
QuestionProblem with display page in Opera Pin
Dudhat11-Sep-07 23:16
Dudhat11-Sep-07 23:16 
AnswerRe: Problem with display page in Opera Pin
Johnny ²12-Sep-07 0:09
Johnny ²12-Sep-07 0:09 
QuestionIE-FIREFOX Pin
dheema11-Sep-07 21:36
dheema11-Sep-07 21:36 
AnswerRe: IE-FIREFOX Pin
Brent Lamborn12-Sep-07 8:07
Brent Lamborn12-Sep-07 8:07 
GeneralRe: IE-FIREFOX Pin
dheema12-Sep-07 18:43
dheema12-Sep-07 18:43 
AnswerRe: IE-FIREFOX Pin
Guffa12-Sep-07 19:36
Guffa12-Sep-07 19:36 
QuestionNewsletter Pin
| Muhammad Waqas Butt |11-Sep-07 21:31
professional| Muhammad Waqas Butt |11-Sep-07 21:31 
AnswerRe: Newsletter Pin
\laddie13-Sep-07 20:38
\laddie13-Sep-07 20:38 
Questionsession_start() errors Pin
hxhl9511-Sep-07 19:09
hxhl9511-Sep-07 19:09 
AnswerRe: session_start() errors Pin
Johnny ²11-Sep-07 20:46
Johnny ²11-Sep-07 20:46 
QuestionTransform web parts with incompatible interfaces on SharePoint Pin
Tesic Goran11-Sep-07 10:19
professionalTesic Goran11-Sep-07 10:19 
QuestionNavigation Control Question Pin
RJLuppino11-Sep-07 8:56
RJLuppino11-Sep-07 8:56 

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.