Tuesday, March 22, 2011

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


I would like to edit table data row by row when click on edit button of each row.

Posted: 22 Mar 2011 12:49 AM PDT

I am using this code but it's not working please help me.....



Code:

<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%! String update,delete,edit,username,userid,designation,platform,salary;%>
<%
update=request.getParameter("update");   
delete=request.getParameter("delete");
edit=request.getParameter("edit");
userid=request.getParameter("userid");
username=request.getParameter("username");
designation=request.getParameter("designation");
platform=request.getParameter("platform");
salary=request.getParameter("salary");
  try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:varnarsample");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from userdetails");
%>
<html>
<head>
<script>

    function edit()
    {
       
    document.getElementById("userid").readOnly=true;
    document.getElementById("username").readOnly=false;
    document.getElementById("designation").readOnly=false;
    document.getElementById("platform").readOnly=false;
    document.getElementById("salary").readOnly=false;
   
    }
    </script>
    </head>
<body>
<center>
<h2><font color="orange" size="6" face="Edwardian Script ITC">USER Data Base Update Options</font></h2>
</center>
<table border=1 align=center>
<tr><th>UserID</th><th>Username</th><th>Designation</th><th>Platform</th><th>Salary</th><th>Options</th></tr>
<%
while(rs.next())
{%>

<tr><td><input type=text value=<%=rs.getString(1)%> name="userid" readonly="true" ></td>
<td><input type=text value=<%=rs.getString(2)%> name="username" readonly="true" ></td>
<td><input type=text value=<%=rs.getString(3)%> name="designation" readonly="true" ></td>
<td><input type=text value=<%=rs.getString(4)%> name="platform" readonly="true"></td>
<td><input type=text value=<%=rs.getString(5)%> name="salary" readonly="true" ></td>
<td colspan=2 align=center><input type="submit" name="edit" value="edit" onclick="edit()">&nbsp;&nbsp;&nbsp;<input type="submit" name="update" value="update">&nbsp;&nbsp;&nbsp;<input type="submit" name="delete" value="delete"></td></tr>
<%
}
%>
</table></body></html>
<%

}
catch(Exception e)
{
    e.printStackTrace();
}
%>

ubuntu live usb

Posted: 21 Mar 2011 06:38 PM PDT

can any one tell me how to make a ubuntu live usb please...thankyou

Problem related to PHP and Javascript

Posted: 21 Mar 2011 10:46 AM PDT

Hello ppl, i am coding for a website and i want to run this code. But i dont know why its not running.

Code:

<html>
<script type="text/javascript">
function check()
{
var name=document.form1.uname.value;
if(name=="peeyush")
{
        windows.location.href="http://localhost/welcome.php";
}
}
</script>
<body>

<form name="form1">
  <p>Username:
  <input type="text" name="uname" />
  </p>
  <p>Password:
  <input type="password" name="pwd" />
  </p>
  <p>
    <input type="submit" onClick="check()" />
  </p>
</form>

</body>
</html>

It should redirect on page welcome.php, but the result is the page itself. Can anyone plz help me with this, or if you know any other method to redirect to a PHP page after validation from Javascript.

HELP-No Audio Device

Posted: 21 Mar 2011 07:46 AM PDT

hey guyz.... i have a problem here- in control panel in sound & audio devices i get 'no audio device' & i cldnt here any sound. der ws sum problem with my SMPS later. i installed my frnd's SMPS temporarily. den i cld properly here the output. now i put a brand new SMPS. but still nw i hav d same prob. i cant here the audio. n get d same 'no output device'. wht shld i do???? i have drivers installed. i use windows XP SP3

ubuntu pw help

Posted: 21 Mar 2011 07:27 AM PDT

hi bought a pc wth ubuntu on it.and the previous user has a pw on his account.i have noway of contacting him as he is out of the country.
all methods i found on the internet to reset the pw needed grub2 which i don't have. and i don't know how to make a live usb or a cd.
please someone guide me through this.thankyou so much

Sneak Peek At Android 3.0

Posted: 21 Mar 2011 05:28 AM PDT

A sneak peek at Android 3.0, Honeycomb, the next version of the Android platform, designed from the ground up for devices with larger screen sizes, particularly tablets.

Browser Hardware Acceleration

Posted: 21 Mar 2011 04:54 AM PDT

Firefox is releasing tomorrow. I'm going to be one of the first ones to download the browser. I've always wondered how the browser hardware accelration works. From my little understanding of hardware, I'm guessing that if we play any graphic intensive game or app via our browser (possible via HTML5) then the browser will hand over the graphics calculations to the GPU, so that CPU will be free to do the tasks its meant to perform.

The question I wish to ask is does hardware acceleration work on compuer machines that don't have GPU?

Coding for websites

Posted: 21 Mar 2011 03:01 AM PDT

Hey CEans,
I want to learn coding for websites.
I often wonder how coding for orkut, facebook was done,which languages are used ?
All these things really surprise me.So please help me find answer to my curiosity.
I need to learn them too so if you have some good link to study please tell me.
What are the steps i should follow ?
Thanks in advance..

No comments:

Post a Comment