Click here to Skip to main content
15,887,585 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: Dynamic breadcrumbs Pin
leckey9-May-06 5:46
leckey9-May-06 5:46 
QuestionCustom player Pin
venkatarama9-May-06 5:31
venkatarama9-May-06 5:31 
Question.Net Services Pin
munklefish9-May-06 5:30
munklefish9-May-06 5:30 
AnswerRe: .Net Services Pin
munklefish9-May-06 6:07
munklefish9-May-06 6:07 
QuestionMoving Web Parts without reloading page Pin
dave90879-May-06 5:29
dave90879-May-06 5:29 
Questionread xml string Pin
fmardani9-May-06 4:29
fmardani9-May-06 4:29 
AnswerRe: read xml string Pin
minhpc_bk9-May-06 15:51
minhpc_bk9-May-06 15:51 
QuestionNeed Help - problem with browsers while parsing innerHTML at clientside Pin
akjoshi9-May-06 3:55
akjoshi9-May-06 3:55 
Hii,

I am trying to parse the innerHTML from a treeview like this...

//InnerHTML = "<INPUT id=TreeViewPR1_TreeView1n14CheckBox title=Hostage type=checkbox CHECKED name=TreeViewPR1_TreeView1n14CheckBox>
//<SPAN class=\"TreeViewPR1_TreeView1_0 TreeViewPR1_TreeView1_1\" id=TreeViewPR1_TreeView1t14 title='Extract This string'>Hostage</SPAN>"

function AddNodeid(InnerHTML)
{

var TitleIndex=InnerHTML.lastIndexOf("title=");

if (TitleIndex > 0)
{
var SubString= InnerHTML.substring(TitleIndex+6, InnerHTML.length+1);


var EndIndex=SubString.indexOf("id="); // For Firefox

if(EndIndex <=0)
EndIndex=SubString.indexOf(">"); // For IE

var Nodeid=SubString.substring(0, EndIndex);

alert(Nodeid);
}
else
alert("No NodeId");
}


the problems are becoz of browsers..

Firefox interchanges the positions of title and id in <SPAN> tag...

and another prob with this code is that IE returns id without quotes( i.e 01) but FF returnsin double quotes(i.e "01").

can you tell why this happens and is there a way by which I can directly get
title, value pair.Confused | :confused:




Cheerio
Abhishek

-- modified at 10:08 Tuesday 9th May, 2006
QuestionCheck box in data grid Pin
jaikrishna9-May-06 3:52
jaikrishna9-May-06 3:52 
AnswerRe: Check box in data grid Pin
Daniel Santillanes9-May-06 13:03
professionalDaniel Santillanes9-May-06 13:03 
QuestionASP Split Function Pin
Programm3r9-May-06 2:35
Programm3r9-May-06 2:35 
QuestionProblem in datalist Pin
sandeep_thakur9-May-06 2:29
sandeep_thakur9-May-06 2:29 
AnswerRe: Problem in datalist Pin
KrIstOfK9-May-06 4:03
KrIstOfK9-May-06 4:03 
Questionasp.net to mysql 4.1 with utf-8 encoding insert "?????" Pin
mohammad kazem sattari9-May-06 2:16
mohammad kazem sattari9-May-06 2:16 
QuestionDropDownList Server Control Pin
Eusebiu Marcu9-May-06 2:12
Eusebiu Marcu9-May-06 2:12 
AnswerRe: DropDownList Server Control Pin
KrIstOfK9-May-06 2:20
KrIstOfK9-May-06 2:20 
GeneralRe: DropDownList Server Control Pin
Eusebiu Marcu9-May-06 2:25
Eusebiu Marcu9-May-06 2:25 
QuestionImport/transfer data from excel to Access Pin
Mansurali9-May-06 2:05
Mansurali9-May-06 2:05 
QuestionResponse.Redirect in IFRAME Pin
percyvimal9-May-06 1:50
percyvimal9-May-06 1:50 
AnswerRe: Response.Redirect in IFRAME Pin
Guffa9-May-06 2:23
Guffa9-May-06 2:23 
GeneralRe: Response.Redirect in IFRAME Pin
percyvimal9-May-06 7:59
percyvimal9-May-06 7:59 
QuestionHow to display Live Time in asp.net web file? Pin
Dipan Patel From Gandhinagar9-May-06 1:41
Dipan Patel From Gandhinagar9-May-06 1:41 
AnswerRe: How to display Live Time in asp.net web file? Pin
KrIstOfK9-May-06 2:02
KrIstOfK9-May-06 2:02 
GeneralRe: How to display Live Time in asp.net web file? Pin
Dipan Patel From Gandhinagar9-May-06 2:09
Dipan Patel From Gandhinagar9-May-06 2:09 
GeneralRe: How to display Live Time in asp.net web file? Pin
KrIstOfK9-May-06 2:18
KrIstOfK9-May-06 2:18 

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.