Click here to Skip to main content
15,910,234 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: dropdown Pin
arkiboys27-Jan-10 10:01
arkiboys27-Jan-10 10:01 
AnswerRe: dropdown Pin
DJ Matthews27-Jan-10 10:20
DJ Matthews27-Jan-10 10:20 
GeneralRe: dropdown Pin
arkiboys27-Jan-10 21:46
arkiboys27-Jan-10 21:46 
Questiondocument.selection - not working in firefox Pin
sekannak27-Jan-10 0:21
sekannak27-Jan-10 0:21 
AnswerRe: document.selection - not working in firefox Pin
Prosanta Kundu online27-Jan-10 17:15
Prosanta Kundu online27-Jan-10 17:15 
GeneralRe: document.selection - not working in firefox Pin
sekannak27-Jan-10 17:56
sekannak27-Jan-10 17:56 
GeneralRe: document.selection - not working in firefox Pin
Prosanta Kundu online27-Jan-10 18:11
Prosanta Kundu online27-Jan-10 18:11 
GeneralRe: document.selection - not working in firefox Pin
sekannak27-Jan-10 18:52
sekannak27-Jan-10 18:52 
Hi,
I will clearly explain my requirement , Listbox and textbox in my page..listbox having 5 rows...when i select any data from the listbox , the selected data should copied and pasted to the Textbox...for i use Javascript method ...its working fine in IE but not working in Firefox..the javascript method as follows..can u please check it out why its not working in Firefox..

function insertTextFun() {

if (document.selection)
{
document.getElementById("<%= txtExprsn.ClientID %>").focus();
var sel = document.selection.createRange();
var varname = document.getElementById("<%= lsbFunction.ClientID %>");
sel.text = varname.options[varname.selectedIndex].text;
}
else if (txtExprsn.selectionStart || txtExprsn.selectionStart == '0') {
var startPos = txtExprsn.selectionStart;
var endPos = txtExprsn.selectionEnd;
txtExprsn.value = txtExprsn.value.substring(0, startPos) + lsbFunction[lsbFunction.selectedIndex] +
txtExprsn.value.substring(endPos, txtExprsn.value.length);
}
else
{
txtExprsn.value += lsbFunction[lsbFunction.selectedIndex];
}

Am calling this function onclick method of the listbox..

Thanks in Advance,
kannak.......

kannak

GeneralRe: document.selection - not working in firefox [modified] Pin
Prosanta Kundu online27-Jan-10 22:50
Prosanta Kundu online27-Jan-10 22:50 
GeneralRe: document.selection - not working in firefox Pin
sekannak28-Jan-10 17:41
sekannak28-Jan-10 17:41 
QuestionWebPartZone Layout Orientation Pin
NTheOne26-Jan-10 22:40
NTheOne26-Jan-10 22:40 
Questioncould not access hiddenfield Pin
bhavna432126-Jan-10 22:28
bhavna432126-Jan-10 22:28 
AnswerRe: could not access hiddenfield Pin
Dinesh Mani26-Jan-10 22:54
Dinesh Mani26-Jan-10 22:54 
GeneralRe: could not access hiddenfield Pin
bhavna432126-Jan-10 23:05
bhavna432126-Jan-10 23:05 
GeneralRe: could not access hiddenfield Pin
Dinesh Mani26-Jan-10 23:26
Dinesh Mani26-Jan-10 23:26 
GeneralRe: could not access hiddenfield Pin
sekannak27-Jan-10 0:38
sekannak27-Jan-10 0:38 
QuestionPlay sound on Event Pin
bonkers12326-Jan-10 21:16
bonkers12326-Jan-10 21:16 
AnswerRe: Play sound on Event Pin
Pranay Rana26-Jan-10 23:42
professionalPranay Rana26-Jan-10 23:42 
GeneralRe: Play sound on Event Pin
bonkers12328-Jan-10 20:52
bonkers12328-Jan-10 20:52 
GeneralASP.NET CRM Pin
hussain.attiya26-Jan-10 21:07
hussain.attiya26-Jan-10 21:07 
AnswerRe: ASP.NET CRM Pin
Ashfield27-Jan-10 2:49
Ashfield27-Jan-10 2:49 
AnswerRe: ASP.NET CRM Pin
hussain.attiya27-Jan-10 2:57
hussain.attiya27-Jan-10 2:57 
GeneralRe: ASP.NET CRM Pin
Ashfield27-Jan-10 3:08
Ashfield27-Jan-10 3:08 
QuestionCrystal Report Error in web Application Pin
Dipal Panchal26-Jan-10 21:03
Dipal Panchal26-Jan-10 21:03 
AnswerRe: Crystal Report Error in web Application Pin
i gr827-Jan-10 2:36
i gr827-Jan-10 2:36 

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.