Click here to Skip to main content
15,905,682 members
Home / Discussions / Web Development
   

Web Development

 
QuestionRow and column seperation lines not coming for a table in firefox Pin
kc_krishnan21-Feb-08 2:43
kc_krishnan21-Feb-08 2:43 
GeneralRe: Row and column seperation lines not coming for a table in firefox Pin
Nilesh Hapse21-Feb-08 4:57
Nilesh Hapse21-Feb-08 4:57 
Generalproblem in incremental rows Pin
neoghy20-Feb-08 20:36
neoghy20-Feb-08 20:36 
QuestionMENU BAR OVERLAPPING!!!! Pin
John Sundar20-Feb-08 17:45
John Sundar20-Feb-08 17:45 
GeneralRe: MENU BAR OVERLAPPING!!!! Pin
Bijay Bhaskar Deo21-Feb-08 20:14
Bijay Bhaskar Deo21-Feb-08 20:14 
AnswerJavascript reading INI/XML FIles Pin
deepaks320-Feb-08 0:22
deepaks320-Feb-08 0:22 
GeneralRe: Javascript reading INI/XML FIles Pin
Shog920-Feb-08 8:45
sitebuilderShog920-Feb-08 8:45 
Generalpls help asp xml list change Pin
love_man00119-Feb-08 21:25
love_man00119-Feb-08 21:25 
asp xml list change



xml

<?xml version="1.0"?>
<PIP>
<STATE Id="4" Name="California">
<PIPCODE1>
<PLAN PIPplantype="PLAN A">
<MAXMEDEXP Value="20000" Text="20,000" />
<MAXNONMEDEXP Value="20000" Text="20,000" />
<MAXWORKLOSS Value="250" Text="250" />
</PLAN>
<PLAN PIPplantype="PLAN B">
<MAXMEDEXP Value="30000" Text="30,000" />
<MAXNONMEDEXP Value="20000" Text="20,000" />
<MAXWORKLOSS Value="250" Text="250" />
</PLAN>
<PLAN PIPplantype="PLAN C" >
<MAXMEDEXP Value="40000" Text="40,000" />
<MAXNONMEDEXP Value="20000" Text="20,000" />
<MAXWORKLOSS Value="250" Text="250" />
</PLAN>
<PLAN PIPplantype="PLAN D">
<MAXMEDEXP Value="50000" Text="50,000" />
<MAXNONMEDEXP Value="20000" Text="20,000" />
<MAXWORKLOSS Value="250" Text="250" />
</PLAN>
<PLAN PIPplantype="PLAN E">
<MAXMEDEXP Value="50000" Text="50,000" />
<MAXNONMEDEXP Value="35000" Text="35,000" />
<MAXWORKLOSS Value="350" Text="350" />
</PLAN>
</PIPCODE1>

</STATE>
</PIP>

asp


<%@ language="VBScript" %>


<%
'Create DOMdocument. Instantiatate the XML Processor
Set objXML = Server.CreateObject("MSXML.DOMDocument")

if err then
Response.Write "<font color=red><b>2. LU_PIP.asp " & Err.description & "</b><font>"
Response.End
end if

'Load the XML Document. Temporary we load it in LU_Gender.xml
objXML.load(Server.MapPath("test.xml"))

'Assing XML string from DOM Document into XML root node.
Set objRootElement = objXML.documentElement

if err then
Response.write "<center><font=red><b>4. LU_PIP.asp " & Err.description & "</b></font></center>"
Response.End
end if

err.Clear

Set objStateNode = objRootElement.selectSingleNode("STATE")

Set objPIPCode1 = objStateNode.selectSingleNode("PIPCODE1")
Set objPlan = objPIPCode1.selectSingleNode("PLAN")
Set objMaxMedExp = objPlan.selectSingleNode("MAXMEDEXP")
Set objMaxNonMedExp = objPlan.selectSingleNode("MAXNONMEDEXP")
Set objMaxWorkLoss = objPlan.selectSingleNode("MAXWORKLOSS")

MaxMedExpNode = objMaxMedExp.attributes.getNamedItem("Value").nodeValue
MaxMedExpNodeText = objMaxMedExp.attributes.getNamedItem("Text").nodeValue

MaxNonMedExpNode = objMaxNonMedExp.attributes.getNamedItem("Value").nodeValue
MaxNonMedExpNodeText = objMaxNonMedExp.attributes.getNamedItem("Text").nodeValue

MaxWorkLossNode = objMaxWorkLoss.attributes.getNamedItem("Value").nodeValue
MaxWorkLossNodeText = objMaxWorkLoss.attributes.getNamedItem("Text").nodeValue


%> <html>
<Body>
<table>
<tr>
<td>
Plan Type
</td>
<td>
<select name="plantype">
<% for each objPlan in objPIPCode1.childNodes %>
<% PIPplantype = objPlan.attributes.getNamedItem("PIPplantype").nodeValue%>
<option value="<%=PIPplantype %>"> <%=PIPplantype%></option>
<%next %>
</select>
</td>

<tr>
<td class="SmallHeadingBurg" width="180"> Medical Expense:&nbsp;</td>
<td class="regularParagraph" align="left">$
<SELECT size=1 id="MaxMedExp" name="MaxMedExp" multiple>
<OPTION value="<%=MaxMedExpNode%>"><%=MaxMedExpNodeText%></OPTION>
</SELECT>
</td>
</tr>
<tr>
<td class="SmallHeadingBurg" width="180">Non-Med Expense:&nbsp;</td>
<td class="regularParagraph" align="left">$
<SELECT size=1 id="MaxNonMedExp" name="MaxNonMedExp" multiple>
<OPTION value="<%=MaxNonMedExpNode%>" ><%=MaxNonMedExpNodeText%></OPTION>
</SELECT>
</td>
</tr>
<tr>
<td class="SmallHeadingBurg" width="180">Work Loss:&nbsp;</td>
<td class="regularParagraph" align="left">$
<SELECT size=1 id="MaxWorkLoss" name="MaxWorkLoss" multiple>
<OPTION value="<%=MaxWorkLossNode%>" ><%=MaxWorkLossNodeText%></OPTION>
</SELECT>
</td>
</tr>


</table>

<%
'Free server resources associated with the instance.
'Set DomDoc = Nothing
Set objXML = Nothing
Set objStateNode = Nothing
Set DataNodes = Nothing
Set objPIPCode1 = Nothing
Set objPlan = Nothing
Set objMaxMedExp = Nothing
Set objMaxNonMedExp = Nothing
Set objMaxWorkLoss = Nothing

Set WorkLossNodes = Nothing
%>
</Body>
</Html>

Boya - Badana - Tadilat ve Tamirat Isleri Bir Yudum Kahve Molasi (Coffee) Dügün Nisan ve Gelinlik (wedding)
Google Reklamlarinizi Sadece Siz Yönetin Elektrik Proje Tesisat Projesi Çizimi Illere Göre Nakliyat Firmalari Istatistik
http://www.evdenevenakliyatbul.com

GeneralRe: pls help asp xml list change Pin
Christian Graus20-Feb-08 13:32
protectorChristian Graus20-Feb-08 13:32 
GeneralRe: pls help asp xml list change Pin
love_man00122-Feb-08 0:45
love_man00122-Feb-08 0:45 
GeneralRe: pls help asp xml list change Pin
AlemTurk28-Jun-09 20:35
AlemTurk28-Jun-09 20:35 
QuestionHow to get the last selected item from a multiple dropdownlist with javascript? [modified] Pin
andylaw19-Feb-08 17:09
andylaw19-Feb-08 17:09 
AnswerRe: How to get the latest selected item from a multiple dropdownlist with javascript? Pin
mgr_2k719-Feb-08 19:53
mgr_2k719-Feb-08 19:53 
GeneralRe: How to get the last selected item from a multiple dropdownlist with javascript? [modified] Pin
andylaw20-Feb-08 14:51
andylaw20-Feb-08 14:51 
GeneralRe: How to get the last selected item from a multiple dropdownlist with javascript? Pin
Nilesh Hapse21-Feb-08 5:10
Nilesh Hapse21-Feb-08 5:10 
QuestionReplacing the CDATA section of a node with a new value using VBScript Pin
Member 450206719-Feb-08 15:28
Member 450206719-Feb-08 15:28 
QuestionC++ and anonymous methods. Pin
edu.net19-Feb-08 14:36
edu.net19-Feb-08 14:36 
GeneralRe: C++ and anonymous methods. Pin
Christian Graus19-Feb-08 15:17
protectorChristian Graus19-Feb-08 15:17 
QuestionHaving trouble with gridview to formview control -- NEWBIE ALERT Pin
SoulfoodOracle19-Feb-08 13:44
SoulfoodOracle19-Feb-08 13:44 
GeneralRe: Having trouble with gridview to formview control -- NEWBIE ALERT Pin
Christian Graus19-Feb-08 15:18
protectorChristian Graus19-Feb-08 15:18 
GeneralProblem with an ASP.NET accessing .net webservices Pin
lu20_2019-Feb-08 10:50
lu20_2019-Feb-08 10:50 
GeneralRe: Problem with an ASP.NET accessing .net webservices Pin
led mike19-Feb-08 11:00
led mike19-Feb-08 11:00 
GeneralRe: Problem with an ASP.NET accessing .net webservices Pin
lu20_2019-Feb-08 16:30
lu20_2019-Feb-08 16:30 
GeneralProblem with Dropdown list display in IE Pin
aubndez19-Feb-08 4:28
aubndez19-Feb-08 4:28 
GeneralRe: Problem with Dropdown list display in IE Pin
Shog920-Feb-08 8:49
sitebuilderShog920-Feb-08 8:49 

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.