No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
21 Posted Topics
Re: can you specify what u want to do?...there are many solutions of it. You can have onlu button instead of a submit button. Or if you want to submit the data of the whole table, this can be done easily with javascript. Waiting for your reply... | |
Re: 1. Open your MDI form. 2. From Properties, select the Background Color and change the color to your desired one. 3. Generate MDI form_load event by double clicking the form. 4. Paste the following code into form_load event. private void StartForm_Load(object sender, EventArgs e) { MdiClient ctlMDI; foreach (Control ctl … | |
Re: [QUOTE=printman55;1473793]I need help in using a variable passed in a hyperlink query string to do PHP query of a MySQL database. I want use the variable to query the database and return the unique row field data to display in a table The hyperlink is: [CODE]http://www.site.com/bios.php?pc=ab [/CODE] After connecting to … | |
In DOS, C, VB6 we could check if Transmitter Shift Register or Transmitter Holding Register empty or not before writing any data onto the serial port. This facility would certainly avoid making the attempt of writing while the port is not ready to accept data. similarly, we could check if … | |
Hellow. I have 3 variables 1. string query; 2. public static OracleCommand oracmd; 3. public static OracleDataReader reader; I have used these variables in a function [CODE=C#] . . . public void PreviousValue() { query = " select * from....... "; oracmd = new OracleCommand(); .... .... reader = oracmd.ExecuteReader(); … | |
Hellow. I have installed IIS7 in windows 7. I have a ASP.NET project. Now i want to run it through IIS7. But whne i try it from by web browser by [B][url]http://localhost/Myweb/Default.aspx[/url][/B], it shows the following error on my browser.. [CODE] Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: … | |
Hi, I am having problem on getting value from dropDown list. [CODE] using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.OleDb; public partial class _Default : System.Web.UI.Page { OleDbCommand comm; OleDbConnection conn; //conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=G:\\Demo11(1).accdb;Persist Security Info=False"); protected void Page_Load(object sender, EventArgs e) { if … | |
Re: Use your code like this [CODE] <html> <?php if (isset($_POST['button'])) { if ($button) { // get data $username = $_POST['username']; $password = $_POST['password']; $retypepassword = $_POST['password']; $email = $_POST['email']; if($username && $password && $retypepassword && $email) { if ($password == $retypepassword) { if (strstr($email, "@") && strstr($email, "@")) { include … ![]() | |
Re: suppose you have four select boxes [CODE] <input type="radio" id="rad1" name="Shrt" value="One" /> <input type="radio" id="rad2" name="Shrt" value="Two" /> <input type="radio" id="rad3" name="Shrt" value="Three" /> <input type="radio" id="rad4" name="Shrt" value="Four" /> [/CODE] For handling any click event for these select use the following code [CODE] $("'input:radio[name=Shrt]").click( function() { if ($('input:radio[name=Shrt]:checked').val()) … | |
Re: Dont use the [B]var tb1[/B]. Just use [B]document.getElementById('textbox1').value[/B] anywhere in your javascript block | |
I have an html div [CODE] <div id="myDiv"> <table border="1" bgcolor="#FFFFFF" width="600"> <tr style="text-align:center"> <td>Subject Code</td> <td>Subject Title</td> <td>Credit Hour</td> </tr> </div> [/CODE] Now, I want to have a button by which i can convert this <div id="myDiv"> to image or .doc.... can any one help me | |
Re: here you go.. [CODE] <?php $verb_description=$_REQUEST['verb']; $item_description=$_REQUEST['item']; $post_description=$_REQUEST['post_description']; //to fetch verb_id $verb_sql="SELECT verb_id FROM tbl_verbs_master WHERE verb_description='".$verb_description."'"; $verb_id=mysql_query($verb_sql) or die(mysql_error()); $vrd_id = mysql_fetch_array($verb_id); //to fetch item_code $item_sql="SELECT item_code FROM tbl_item_master WHERE item_description='".$item_description."'"; $item_code=mysql_query($item_sql) or die(mysql_error()); $itm_id = mysql_fetch_array($item_code) $posted_on=date("Y/m/d"); $user_id="9"; $tbl_sql="INSERT INTO tbl_user_post_requirement(user_id,verb_id,item_code,post_description,posted_on)VALUES('".$user_id."','".$vrb_id['verb_id']."','".$itm_code['item_code']."','".$post_description."','".$posted_on."')"; $tbl_res=mysql_query($tbl_sql) or die(mysql_error()); ?> [/CODE] | |
I have an html div [CODE] <div id="myDiv"> <table border="1" bgcolor="#FFFFFF" width="600"> <tr style="text-align:center"> <td>Subject Code</td> <td>Subject Title</td> <td>Credit Hour</td> </tr> </div> [/CODE] Now, I want to have a button by which i can convert this [B]<div id="myDiv">[/B] to image or .doc.... can any one help me | |
Re: [QUOTE=blackxswil;1472605]How should I call jquery from my php page? This is my php page: [CODE] <form action="#" method="post"> <input type="file" name="fileInput" id="fileInput" /> <input type="submit" value="submit" disabled /> </form> <div id="result"></div> [/CODE] And this is the js file: [CODE] $(document).ready( function(){ $('input:file').change( function(){ if ($(this).val()) { $('input:submit').attr('disabled',false); } } ); … | |
Re: [QUOTE=phouse512;1473282]Hello all, I'm having a problem with having code execute when I'm adding javascript/ajax to my php. When I do the following piece of code, nothing happens. This is just a test line of code, my real code links to more javascript which uses ajax, but I have to figure … | |
Re: [QUOTE=puvi;1472637]Hi frens I have a row containing 3 text field and a dropdown. the user enters details into the textbox and chooses a option from the dropdown. User may choose to save the details or add more details by clicking on Save or Add Row button resp. If the user … | |
Re: [QUOTE=dudzkie;1467168]hello! i'm a super newbie at php i'm trying to learn some scripts, what im trying to do now is a simple shop system. i have a table that contains item_id , item_name, price, quantity what i want to do is that a customer will choose an item, how many … | |
Re: [QUOTE=samsons17;1466154]Hi all.. I got this code that dealing with ajax..Basically the ajax code is to get the data from the html element and insert it to the database. this is ajax and the html code : [CODE] <script type="text/javascript"> $(document).ready(function(){ $("form#post_reply").submit(function() { var discuss_text = $('#discuss_text').attr('value'); var test5 = $('#test5').attr('value'); … | |
My form is like the above [CODE] <form method="post" name="publishResult" onsubmit="return g(this);"> <select id="options1" name="se1" > <option value="0" >-- Grade --</option> <option value="A+">A+</option> <option value="A">A</option> <option value="A-">A-</option> <option value="B+">B+</option> <option value="B">B</option> <option value="B-">B-</option> <option value="D">D</option> <option value="F">F</option> </select> <select id="options2" name="se2" > <option value="0" >-- Grade --</option> <option value="A+">A+</option> <option … | |
I started a thread... [url]http://www.daniweb.com/forums/thread345301.html[/url] I got some replies which solved my problem...after that I have clicked the M[U]ark this Thread as Solved[/U] under [U]Has this thread been answered?[/U] But still its showing Discussion Thread Unsolved | |
Hi, I can pass an array through jquery ajax. [CODE] var regSubCodeArray = new Array(); var temp = 9; var i; for(i=0;i<temp;i++) { subname = 'sub'+i; subcode = 'sub_code'+i; subcredit = 'sub_credit'+i; regSubCodeArray[i] = document.getElementById(subcode).innerText; } $.ajax({ url: "testArray.php", type: "GET", data: "page="+regSubCodeArray, cache: false, success: function (html) { $('#ttl').html(html); … |
The End.