|
Please try using the RULES attribute for table
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
actually i have done some coding in vbscript where i have to display multiple rows.In one row 4 columns will be there.On entering all the details of that particular column the next row will be created dynamically.
what i am facing problem is that if i enter a detail which is already there in the earlier row i am not being able to validate that using javascript restricting the user to enter the same old detail. Please help and kindly show me the loop condition that i have to use.
skd
|
|
|
|
|
while i m using my javascript menu bar, its overlapping.....
the menu is going behind the textbox or dropdown list.how to overcome it?
help me plz.
Thanks in advance - john
|
|
|
|
|
Simply incrrease th z-index of the menu items in the style attribute, or decrease the z-index of the textbox or other form items that troubles u for overlapping.
Bijay Bhaskar Deo
Thanks & Regard
|
|
|
|
|
Hi,
How can i read values from INI files in Javascript.
I cant use XML as then i have to use Microsoft.XMLDOM object, whihc i cant use unfortunately.
Or is there any other simpler way to read XML files without using Microsoft.XMLDOM.
Regards
Deepak Surana
|
|
|
|
|
deepaks3 wrote: I cant use XML as then i have to use Microsoft.XMLDOM object, whihc i cant use unfortunately.
If you can upgrade to a better browser, you can use the XML DOM stuff without needing ActiveX.
Otherwise, it isn't terribly hard to write parsers in JS. If you have the time and the need, go for it.
But who is the king of all of these folks?
|
|
|
|
|
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: </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: </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: </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
|
|
|
|
|
What is the problem ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
help sample
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
|
|
|
|
|
help sample
İllere Göre Nakliyat Firmaları İstatistik
http://www.evturnakliyat.com
|
|
|
|
|
example:user select items like item1,item2,item5,item3, the last selected item is item3,how to get it with javascript?
One is never too old to learn
modified on Wednesday, February 20, 2008 8:56 PM
|
|
|
|
|
--Find the object in the form
var ddlObj = document.getElementById('ddlName');
--Find the selected Index
alert(ddlObj.selectedIndex);
|
|
|
|
|
To:mgr_2k7
Maybe you can't understrand what i mean. Here is a multiple dropdownlist as below:
<select id="sel_test" name="sel_test" size="5" multiple="multiple" onchange="javascript:checkSelectedCount(this);" width="100px"><br />
<option value="item1">item_A</option><br />
<option value="item2">item_B</option><br />
<option value="item3">item_C</option><br />
<option value="item4">item_D</option><br />
<option value="item5">item_E</option><br />
<option value="item6">item_F</option><br />
<option value="item7">item_G</option><br />
<option value="item8">item_H</option><br />
<option value="item9">item_I</option><br />
<option value="item10">item_J</option><br />
<option value="item11">item_K</option><br />
<option value="item12">item_L</option><br />
<option value="item13">item_M</option><br />
<option value="item14">item_N</option><br />
<option value="item15">item_O</option><br />
<option value="item16">item_P</option><br />
</select>
When user multiple selected as order: item1,item4,item2 -------------item2 is the last selected item
When user multiple selected as order: item2,item3,item1 -------------item1 is the last selected item
When user multiple selected as order: item4,item2,item3 -------------item3 is the last selected item
------------------Understrand????
So,how could i get the last selected item?
One is never too old to learn
modified on Wednesday, February 20, 2008 8:59 PM
|
|
|
|
|
I don't think you can find like this
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
The following code properly replaces the node's text property with the value from the form. However,
I need to replace the CDATA section of the node. What would be the proper syntax to accomplish this
in VBScript?
Set objXMLDoc = Server.CreateObject("MSXML2.DOMDocument")
objXMLDoc.async = false
objXMLDoc.loadXML(sdata)
Set NodeList = objXMLDoc.getElementsByTagName("*")
For Each Elem In NodeList
If Elem.tagName = "comment" Then
Elem.Text = Request.Form("txtcomment")
End If
Next
|
|
|
|
|
I just require a clarification from people who know coz I find it hard to believe that I cannot do:
MyClass::MyFunction()
{
MyOtherClass * pMyOtherClass = &myOtherClassInstance;
pMyOtherClass->MyOtherClassFunction(void (*AnonymousMethod)(IN const MyClass * pClass)
{
doSomething(pClass);
});
pMyOtherClass = NULL;
}
Where MyOtherClassFunction is declared (in MyOtherClass) as:
MyOtherClass::MyOtherClassFunction(void (*AnonymousMethod)(IN const MyClass))
{
for(INT i = 0; i < endOfMyLoop; i++)
{
AnonymousMethod(arrayOfMyClassObjects[i]));
}
}
Or something similar...
I have to declare a member function in MyClass with the same signature as the anonymous method expected by MyOtherClass::MyOtherClassFunction , so that I can pass it as a member function pointer.
Love is the illusion that one kiss is different from another. - e.m
|
|
|
|
|
You're writing a web site with C++/CLI ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Working on first web dev site in VWD 08. I can get the FormView control to sync w/ GridView control using the code below and ONLY for the first 10 records. When I click the pager link to page 2, I can't get the next batch of records to display in FormView, it stops at 10.
What Gives?
Question:
What code or property setting will make this function work?
Current Code:
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
FormView1.PageIndex = GridView1.SelectedIndex
End Sub
|
|
|
|
|
Gosh, you really did spam the site, didn't you ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
We have 2 asp.net sites (located on the same machine) :
• WebUI site:
o it's an ASP.NET application
o configured to run windows authentication
o II6 - configured application pool identity user as a valid AD user (part of the IWAM group)
• Webservice site:
o .net web service site,
o configured to run as anonymous in II6 , configured its own app. pool identity as a valid AD user (part of the IWAM group)
From WebUI we are making an internal call to the Webservice site.(we already are in production now).
Everything worked fine for about 1 week, then we started to get the following error (extras from our log file):
SOURCE: System.Web.Services
LOGGED AT: 2/17/2008 12:50:05 AM
MESSAGE: The request failed with an empty response.
FORM VALUES:
QUERYSTRING:
FUNCTION: System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean)
STACKTRACE: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WTIS.RCD.Ops.UserService.UserBSL.isValidIngresUserBSL(String userId) in e:\ccshare\GRIDLOCK_Genesis_RCD_view\base_dev\RCD\WTIS.RCD.Ops\Web References\UserService\Reference.cs:line 761
at WTIS.RCD.Ops.UserFCL.isValidIngresUser(String userId) in e:\ccshare\GRIDLOCK_Genesis_RCD_view\base_dev\RCD\WTIS.RCD.Ops\UserFCL.cs:line 323
at CaptchaImage._Default.checkAutoLogin()
REFERRER: INTERNAL
CREATED BY: login
USER TYPE: SYS
When we got this error we isolated the following:
• web service site was ok at the time (called with no issues from another production client located on external network)
• copy the whole WebUI site (caller of the webservice) on another site on :
o same machine - resulted in same error
o different machine - no error
We changed for the WebUI site the application pool identity to another user (part of the “admin” group on this time) , but after 1 day the error come back.
Now we are running the WebUI under “Network service” account, but we need to have a special account with special network permissions.
Any ideas pls.?
Thanks a lot
|
|
|
|
|
lu20_20 wrote: From WebUI we are making an internal call to the Webservice site.
By "WebUI" you mean the Server side code right? So you are making an out of process call to a web service when the software is installed on the same machine? Why don't you just use the component in process? Sounds like a complete abuse of Web Services to me.
led mike
|
|
|
|
|
I agree with you normally , but not this is the only scenario why we adopted this architecure.
The same web apps. is distributed on multiple deployments , this just happened to be one of them ..for the moment.
We are not changing the deployment configuration or application architecture...and actually not this is our issue here....
thanks anyway
|
|
|
|
|
So, technically I'm using JavaServer Faces and JSP, but if anyone has a solution in AJAX or anything else for that matter, I'm all ears...
-- Dropdown list.
-- Contents are pulled from database.
-- If the contents happen to be super long (which they do), the dropdown list size is automatically extended to the width of the largest select item. -- OK
-- Setting the size of the dropdown list using style="width:343px" correctly displays the size of the control inside the table it sits in.
**But I need the entirety of the select items displayed when you drop down the list items in the control.
In a perfect world this would just work. And in the brilliance that is Firefox -- IT DOES!!!!
However, it does NOT work in IE. The dropdown and the list contents (select items) are also truncated by the size of the control stated above.
Any ideas? Please and Thank you! in advance. This has been getting the better of me for a day and a half!
Aubrey
"Tarter Sauce" = a 7yr old's version of "WTF!"
|
|
|
|
|
aubndez wrote: However, it does NOT work in IE.
You have two choices then: 1) Recommend that your users avoid crappy browsers, or 2) write your own drop-down list entirely in HTML+JS, work around all the various display bugs in all supported browsers, and make it work exactly how you want it to. I've done #2, and i wouldn't recommend it for something like this.
But who is the king of all of these folks?
|
|
|
|
|
Hi All,
Stuck in a weird position. I have written a code which lists the various documents in a folder.
As soon as I click on the names of the documents they open up as they are. Word files in Microsoft Word, Excel in Excel etc...... The functionality works absolutely fine as long as I am debugging.
As soon as I fire the same Application from IIS 5.1, the listing is proper, but on the click of the names nothing happens. I have even checked the taskmgr and can c the respective processes like WINWORD.EXE, EXCEL.EXE running, but I cannot c the docs.
Can u guys help me plz?
|
|
|
|