|
Step through the code and see where the exception is being thrown. You can then view the full details such as the stacktrace and innerexception which should give you sufficient information to resolve your error.
|
|
|
|
|
Hi all, if I want to dynamically grab the markup of my page after making changes to the DOM using javascript how would I go about it. I know that there are tools out there for viewing the DOM of a page after it has been modified using javascript but I would like to actually grab the new DOM and save it dynamically using code. Thanks in advance for your help.
|
|
|
|
|
You can use outerHTML[^] and innerHTML[^] to get the HTML code for a DOM element and its descendants.
I'm not sure what you mean by "save it dynamically" though - post it back to the server?
|
|
|
|
|
On Windows Server 2008 R2 when the MSSOAPINIT method of the SOAP object is used then the error shown below is thrown
-----------------------------------------
Error Number = -2147352567
Error Short Description = WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: Not enough storage is available to process this command.
HRESULT=0x1: Incorrect function.
- WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: The parameter is incorrect.
- Client:One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect.
-----------------------------------------
On further analysis it was found that the web service hosted on the same application can be accessed without any error but if the Web service is on one Web Site in IIS and this Web Service is accessed from another Web Site then the error shown above is thrown. Can anyone please suggest what could be the cause of such issue
modified 16-Oct-14 6:29am.
|
|
|
|
|
Hi everybody,
From past many days I am facing a problem regarding servlet.I am new for SMTP server kind of programs.
My problem is
I developed a page which is called as 'contactus.html' for a website which is dynamic website using java. From contactus page where user enter his details and his comments, those details and comments have to send to a mailid as a mail. I tried with the servlet, but i am facing a problem that if i block my antivirus in my system then only my mail is sending from my website to that particular mailid. If my antivirus is 'on' then mail is not sending instead it is showing SMTP error.
Please give me suggesions to getrid of this problem.
|
|
|
|
|
Hi,
I'm trying to make a list of items responsive.
I havve a container div, wich contains divs with class "itemContainer".
after ever .itemContainer there is a div for clear which I set it to display none;
html :
<div id="itemListPrimary">
<div class="itemContainer">
</div>
<div class="clr"></div>
CSS :
#itemListPrimary {display:block;}
div.itemListPrimary {float:left;}
#itemContainer> .clr {display:none;}
@media (min-width: 960px) {
div.itemListPrimary {width: 33.3% !important;}
}
@media only screen and (min-width: 768px) and (max-width: 960px){ div.itemContainer {width:50% !important;}
}
you can see it here :
www.mykonosexclusivevillas.com/our-villas
there should be 3 items in every row but in the 3rd row it breaks
any suggestions ?
thank you
|
|
|
|
|
Ok, Solved
It had to do with the digerrent height of the itemContainer divs.
I set the height to equal and now it's fine.
thanx
|
|
|
|
|
Hi everyone.
I am well and truly stuck .
I have created a huge list of radio buttons on my razor view. Each row is a different set of radio buttons and I have given them each dynamic names.
I am new to MVC and i did not know how i can pass this radio button list to controller
this is my editor template
@model StudentManagement1.TeacherCourseStudent
@{
ViewBag.Title = "Attendance";
}
<tr>
<td>
@Model.Student_Id
</td>
<td>
@Model.Student.Name
</td>
<td>
@Model.Student.Sur_Name
</td>
<td>
@Model.Student.Semester.Semester_Name
</td>
<td>
@Html.RadioButton(@Model.Student_Id.ToString(), "present", true)
</td>
<td>
@Html.RadioButton(@Model.Student_Id.ToString(), "absent")
</td>
<td>
@Html.RadioButton(@Model.Student_Id.ToString(), "leave")
</td>
and this is my Razor view
@model IEnumerable<StudentManagement1.TeacherCourseStudent>
@{
ViewBag.Title = "MarkAttendance";
Layout = "~/Views/Shared/_TeacherLayout.cshtml";
}
@using (Html.BeginForm("MarkAttendance", "Attendance", FormMethod.Post))
{
<table>
<tr>
<th>
Student Id
</th>
<th>
Name
</th>
<th>
Sur Name
</th>
<th>
Semester
</th>
<th>
Present
</th>
<th>
Absent
</th>
<th>
Leave
</th>
</tbody>
@Html.EditorForModel()
</table>
<br /> <br />
<input type="submit" value="Save attendance" />
}
here my controller to which i want to pass values
[HttpPost]
public ActionResult MarkAttendance(IEnumerable<string> Student_Id)
{
return view();
}
modified 4-Oct-14 6:34am.
|
|
|
|
|
help understanding js code
My project is to insert into a database table, records of calculator entries (entry1, operator,
entry2 and the result). I can't sort it out. As I don't understand the js. Is'Accumulate' the
end result (total), I think 'Op' is the (operator) used (am I showing my
ignorance yet/still)? I think curReadOut & ReadOut are the 2 arguments?
<FORM name="Keypad" action="">
<TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5>
<input name="ReadOut" type="Text" size=24 value="0" width=100%>
<input name="btnClear" type="Button" value=" C " onclick="Clear()">
<input name="btnClearEntry" type="Button" value=" CE " onclick="ClearEntry()">
<input name="btnSeven" type="Button" value=" 7 " onclick="NumPressed(7)">
<input name="btnEight" type="Button" value=" 8 " onclick="NumPressed(8)">
<input name="btnNine" type="Button" value=" 9 " onclick="NumPressed(9)">
<input name="btnNeg" type="Button" value=" +/- " onclick="Neg()">
<input name="btnPercent" type="Button" value=" % " onclick="Percent()">
<input name="btnFour" type="Button" value=" 4 " onclick="NumPressed(4)">
<input name="btnFive" type="Button" value=" 5 " onclick="NumPressed(5)">
<input name="btnSix" type="Button" value=" 6 " onclick="NumPressed(6)">
<input name="btnPlus" type="Button" value=" + " onclick="Operation('+')">
<input name="btnMinus" type="Button" value=" - " onclick="Operation('-')">
<input name="btnOne" type="Button" value=" 1 " onclick="NumPressed(1)">
<input name="btnTwo" type="Button" value=" 2 " onclick="NumPressed(2)">
<input name="btnThree" type="Button" value=" 3 " onclick="NumPressed(3)">
<input name="btnMultiply" type="Button" value=" * " onclick="Operation('*')">
<input name="btnDivide" type="Button" value=" / " onclick="Operation('/')">
<input name="btnZero" type="Button" value=" 0 " onclick="NumPressed(0)">
<input name="btnDecimal" type="Button" value=" . " onclick="Decimal()">
<input name="btnEquals" type="Button" value=" = " onclick="Operation('=')">
</FORM>
<SCRIPT LANGUAGE="JavaScript">
var FKeyPad = document.Keypad;
var Accumulate = 0;
var FlagNewNum = false;
var PendingOp = "";
function NumPressed (Num) {
if (FlagNewNum) {FKeyPad.ReadOut.value = Num;FlagNewNum = false;}
else {
if (FKeyPad.ReadOut.value == "0")
FKeyPad.ReadOut.value = Num;
else
FKeyPad.ReadOut.value += Num;
}
}
function Operation (Op)
{
var Readout = FKeyPad.ReadOut.value;
if (FlagNewNum && PendingOp != "=");
else
{
FlagNewNum = true;
if ( '+' == PendingOp )
Accumulate += parseFloat(Readout);
else if ( '-' == PendingOp )
Accumulate -= parseFloat(Readout);
else if ( '/' == PendingOp )
Accumulate /= parseFloat(Readout);
else if ( '*' == PendingOp )
Accumulate *= parseFloat(Readout);
else
Accumulate = parseFloat(Readout);
FKeyPad.ReadOut.value = Accumulate;
PendingOp = Op;
}
}
function Decimal () {
var curReadOut = FKeyPad.ReadOut.value;
if (FlagNewNum) {curReadOut = "0.";FlagNewNum = false;}
else
{if (curReadOut.indexOf(".") == -1)curReadOut += ".";}
FKeyPad.ReadOut.value = curReadOut;
}
function ClearEntry () {FKeyPad.ReadOut.value = "0";FlagNewNum = true;}
function Clear () {Accumulate = 0;PendingOp = "";ClearEntry();}
function Neg () {FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;}
function Percent () {
FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accumulate);
}
|
|
|
|
|
Please shorten your code... It is hard to read this way...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I've scalped as much as it's readable.
|
|
|
|
|
Hi, I'm trying to clear a database table of data and reset autoindex to 1
<!DOCTYPE html><html>
<head>
<meta charset=utf-8>
<title>database table remove data</title>
</head><body>
=mysqli_connect(=============="; }
if(isset($_POST['total']))
mysqli_query($con,"TRUNCATE TABLE testtbl set id=1");
mysqli_close($con);
?>
|
|
|
|
|
Your syntax is wrong...
TRUNCATE TABLE testtbl set id=1
It should be like this
TRUNCATE TABLE testtbl
In MySQL TRUNCATE TABLE will reset AUTO_INCREMENT counters (before 5.0.3 it's true only if there is not FKs on the table, but since 5.0.3 it happens always regardless of FKs)...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I am programming in c# and html. On the bottom part of the page I would like to show a series of pictures, that need to scroll around. There are about 20 pictures.
I have tried to create a panel in html but am unable to scroll each picture. Any assistance will be appreciated.
<pre lang="SQL">
|
|
|
|
|
Do you mean like this:
This is a picture This is a picture This is a picture This is a picture
if so just add overflow-x, overflow-y, and overflow to css
Help people,so poeple can help you.
|
|
|
|
|
I need them to be next each other, and then be able to scroll across the page.
I will try your advice and let you know the result.
Thanks
Mike
|
|
|
|
|
This is a picture This is a picture This is a picture This is a picture
then add a div with width that contains all the pictures in one row inside your viewport and give your viewport overflow style
Help people,so poeple can help you.
|
|
|
|
|
|
guys;
I need to place a picture on a panel that has opacity less than 1, but i don't want this picture to inherit the opacity.
Can you help me with that please.
Help people,so poeple can help you.
|
|
|
|
|
In a vb.net 2010 web form application, the folllowing gridview control is loaded with data and 3
textboxes are displayed when the aspx page first loads. Now I want to allow the user to be able
to enter last name, first name, and/or middle name so they can search for 'selected' people by
name. This way less rows would be displayed in the gridview control
I would like to do one of the following options:
1. Have the user enter the appropriate name in up to 3 texboxes and click on a submit button. The
data would be reloaded into the gridview control displaying only the records the user selected to
view.
2. The other option would be if the user enters values in the applicable textboxes and the
gridview control would display the selected rows in the gridview control when the focus is lost
from each textbox.
Thus would you show me the code on how to accomplish this goal? The following is the applicable
aspx page:
<pre>
<asp:Content ID="Content1" ContentPlaceHolderID="MPHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MPContent" Runat="Server">
<asp:TextBox ID="lname" runat="server"></asp:TextBox>
<asp:TextBox ID="fname" runat="server"></asp:TextBox>
<asp:TextBox ID="mname" runat="server"></asp:TextBox>
<asp:GridView ID="GridViewSupport" runat="server" AutoGenerateColumns="False"
DataSourceID="sqlCampusOPS" Width="987px">
<Columns>
<asp:BoundField DataField="lastName" HeaderText="Last Name"
SortExpression="lastName" />
<asp:BoundField DataField="firstName" HeaderText="First Name"
SortExpression="firstName" />
<asp:BoundField DataField="middleName" HeaderText="Middle Name"
SortExpression="middleName" />
<asp:BoundField DataField="suffix" HeaderText="Suffix"
SortExpression="suffix" />
<asp:BoundField DataField="userid" HeaderText="User Id"
SortExpression="userid" />
<asp:BoundField DataField="schoolnum" HeaderText="School Number"
SortExpression="schoolnum" />
<asp:BoundField DataField="spa" HeaderText="SPA" SortExpression="spa" />
<asp:BoundField DataField="mrref" HeaderText="M Ref" SortExpression="mrref" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="sqlCampusOPS" runat="server"
ConnectionString="<%$ ConnectionStrings:sqlCampusOPS %>" SelectCommand="SELECT i.[lastName]
,i.[firstName]
,i.[middleName]
,i.[suffix]
,a.[userid]
,a.schoolnum
,a.spa
,a.mrref
from [OPS].[dbo].[Identity] i
inner join [OPS].[dbo].[Person] p on i.identityID = p.currentIdentityID
inner join [OPS].[dbo].[UserAccount] u on u.personID = p.personID
inner join [CampusOps].[dbo].[AtnLtrUsers] a on a.userid =u.username
where (i.[lastName] like '%' + @lname + '%' or
i.[firstName] like'%' + @fname + '%'
or i.[middleName] like'%' + @mname + '%')
or (@fname is null and @lname is null and @mname is null)
order by i.[lastName], i.[firstName], i.[middleName]"
CancelSelectOnNullParameter="False">
<SelectParameters>
<asp:ControlParameter ControlID="lname" Name="lname" PropertyName="Text" />
<asp:ControlParameter ControlID="fname" Name="fname" PropertyName="Text" />
<asp:ControlParameter ControlID="mname" Name="mname" PropertyName="Text" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
|
|
|
|
|
I want to make website can add / update / delete content file text (.txt).
For example I created a textbox and fill information. Then press the button to save this information in a txt file. I also want to display the content of txt file in my web page. Please help me. Because I embedded web in microcontrollers, and it can't run apache, mysql, php so I must use html, javacript and I do not have much experience in javascript.
Thanks
|
|
|
|
|
|
Not really understand how microcontroller rules out web server...
If you wan to use html/javascript in a browser environment, you have a lot of problems. In that environment JavaScript can not access local resources like IO...
You may use node.js as a solution, but in any case your description of problem is unclear...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
every dear friend!! need you warm heart and warm head. First I write a firefox extension which realize a function by javascript, then I want to call this js function by a c++ client, for example, there is button in the c++ client, when I click the button, the function in the js is called. From website I know xpcome has to be used, the call sequence is "c++ client" calling "xpcom" calling "javascript", right? I am a little puzzled, would you like explain? or better if there is souce code example. Thank you very ver much!
|
|
|
|
|
We developed one of the application using MVC3 framework and it is successful project. Now we are going to develop a new project with the latest Microsoft web technologies. This new project need to be scalable and efficient ,so that we can extend it as SaaS application. We are thinking of using MVC3 but we also need to look at other framework that fits our new project. Before starting a new project I need to evaluate Microsoft latest web framework.
So, do you have any suggestions for any web UI framework available?
Narendra
modified 18-Sep-14 13:21pm.
|
|
|
|