Member Avatar

Hi Everyone, I created a script where rows gets cloned, then I created a script to check if a specific code exists in the database. This all works fine. My problem is my status message when a code exist, it shows on the first row but not the rest. I made the id of #status unique but I can't understand why it's not showing in the dynamically created row. Can someone please tell me what I'm doing wrong, or just lead me in the right direction? I added my code to [Jsfiddle](http://jsfiddle.net/2zW7B/2/)

Member Avatar
0
35
Member Avatar

Swap 2 number without using third variable code do not use temp variable for swapping if the code was useful please let me know [code]#include <stdio.h> void main() { int a,b; printf("enter number1: ie a"); scanf("%d",a); printf("enter number2:ie b "); scanf("%d",b); printf(value of a and b before swapping is a=%d,b=%d"a,b); a=a+b; b=a-b; a=a-b; printf(value of a and b after swapping is a=%d,b=%d"a,b); }[/code]

Member Avatar
-1
246
Member Avatar

I dont know the code! PLS HELP!!! I want to create a program that scan QR Code and Display the value in a textbox in VB.NET

Member Avatar
0
18
Member Avatar

I am bit confused where this question should be placed. But I think It should be here. If we go to the youtube/google/torrent etc... and finding the crack we may find many crack, patch, keygen, crack dll files etc. but how they are created, the owner is not going to share his own compny product crack. So this is my question HOW THEY CRACKED any program. And if I want to learn about this online for free, from where should I? Did they Use any programs to Cracked? if Yes: Then Which Program. Once i read the topic I get …

Member Avatar
0
96
Member Avatar

Diafol, anybody pls help. i have this javascript code <script> FB.init({ appId : '00000000000000', frictionlessRequests: true, }); function sendRequestToRecipients() { var user_ids = document.getElementsByName("user_ids")[0].value; FB.ui({method: 'apprequests', message: 'Great App', to: user_ids, }, requestCallback); } function sendRequestViaMultiFriendSelector() { FB.ui({method: 'apprequests', message: 'My Great Request' }, requestCallback); } function requestCallback(response) { console.log(response); for (var i = 0; i < response.to.length; ++i) { alert(response.to[i]); } } </script> Now all i want to do is get the value that is in this alert(response.to[i]); and pass it to php and insert it into mysql for future use. Am very bad at javascript, pls help.

Member Avatar
0
70
Member Avatar

Hi all, I'm running on python version 2.6 for xbmc media application, but I'm having trouble with setLabel function. When I run the code, it will update the value in the setLabel, but it will not allow me to update the values in the setLabel more than once. Here it the code: #DOWNLOAD THE XML SOURCE HERE url = ADDON.getSetting('allchannels.url') req = urllib2.Request(url) response = urllib2.urlopen(req) data = response.read() response.close() profilePath = xbmc.translatePath(os.path.join('special://userdata/addon_data/script.tvguide', '')) self.getControl(4202).setLabel("1%") if os.path.exists(profilePath): profilePath = profilePath + 'source.db' con = database.connect(profilePath) cur = con.cursor() cur.execute('CREATE TABLE programs(channel TEXT, title TEXT, start_date TIMESTAMP, stop_date TIMESTAMP, description TEXT)') …

Member Avatar
0
33
Member Avatar

Hi guys I tried to to use inner join on 5 tables it worked but the problem is instead of getting the exact sum values it got doubled. Here's my code cmd = New OleDbCommand("SELECT om_list.invoice_no as invoice_no, om_list.internal_id as internal_id, om_list.customer_id as customer_id, om_list.account_name as account_name, om_list.seller_name as seller_name, om_list.terms as terms, om_list.date_invoice as date_invoice, cancel_discount.date_deliver as date_deliver, om_list.segment as segment, sum(cancel_discount.invoice_amnt) as invoice_amnt, sum(app_deduc_rgpi.amount) as rgpi_deduction, sum(app_deduc_mda.amount) as mda_deduction, rgpi_deduction + mda_deduction AS total_deduction, sum(payment_applied.payment_applied) as payment_applied FROM (om_list Inner Join (payment_applied Inner Join cancel_discount on payment_applied.invoice_no = cancel_discount.invoice_no) on om_list.invoice_no = payment_applied.invoice_no) Inner Join (app_deduc_rgpi Inner Join …

Member Avatar
0
23
Member Avatar

Hi i have 2 tables customer (cabinet_num which is integer) and cabinet (cabinet_num Autoincrement and cabinet_title) in my java i can display cabinet title to let the user choose a cabinet..but i want to collect the cainet_number in my customer table customet.cabinet package cabinet; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JTextField; import javax.swing.SwingConstants; import java.awt.Font; import java.awt.Color; import javax.swing.UIManager; import javax.swing.JLabel; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.ScrollPane; import javax.swing.JScrollPane; import javax.swing.JTextArea; import java.awt.ComponentOrientation; import javax.swing.ScrollPaneConstants; import java.awt.Dimension; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.JScrollBar; import javax.swing.JComboBox; …

Member Avatar
0
16
Member Avatar

how to retrieve particular node.. i.e., if b node had value like <b id="1"> means it will return b's child nodes.. output must be: <c>text</c> <c>stuff</c> Here is my code: <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <b id="1"> <c>code</c> </b> <d> <c>item</c> </d> </a> XML; $xml = new SimpleXMLElement($string); $xml->asXML()."<br>"; // echo "<c>".(string)$child."</c>"; foreach( $xml->children() AS $child ) { //run any query you want on the children.. they are also nodes. $name1 = $child; //echo "<pre><c></pre>".$name1."<pre><c></pre><br>"; foreach( $name1->children() AS $child1 ) { $name2 = $child1->getName(); $child2=$child1; // echo $name2."--".$child2; //if($child2=="code") //foreach($child1->query('//b[@name="title"]') as $child2) echo "<".$name2.">".$child2."<⁄".$name2.">"."<br>"; } } …

Member Avatar
0
29
Member Avatar

good evening everyone... could anyone help me on this? With a "time value", eg. 08:00:00... i want to find the range that this value falls in using case statement... i am not good in using the time format... anyone can help? This is just an example: (the code is not working...is just an example) datime = Now().ToString("hh:mm:ss") Select Case datime Case "08:00:00" To "09:00:00" lblRange.Text = i.ToString() Case "09:00:01" To "09:14:59" lblRange.Text = (i - 0.25).ToString() Case "09:15:00" To "09:29:59" lblRange.Text = (i - 0.5).ToString() Anyone can help?

Member Avatar
0
10
Member Avatar

Hi guys, I'm new to ASP.Net. I'm building a page which consists of a dropdownlist, a gridview and a save button below the gridview. I want to populate the gridview based on the values selected from the dropdownlist. My first problem is that the gridview does not display when the page loads, only when I select a value from the dropdownlist. Secondly the fields in the gridview are readonly, which defeats the object because I want to be able to edit values in the columns.I attach hereto screenshots of my dropdownlist, the gridview and my code. Thirdly I am not …

Member Avatar
0
11
Member Avatar

Hai friends i want to know how to dispaly same value and different page without enter any value because already some content is there display that content in different page using javascript

Member Avatar
0
23
Member Avatar

pass the value of three textbox from one form to another form for simple windows form application

Member Avatar
0
22
Member Avatar

Hi All's, I in a project to write some value into Mifare 1K using ACR122U with VB.Net. The value is Student ID like ' MA091221'....already read the API / SDK but not understand to do it. Can anyone giude me?..Tq

0
6
Member Avatar

I am using the following query (thank you diafol) to group the top N rows in my data set: SELECT mgap_ska_id,mgap_ska_id_name, account_manager_id, mgap_growth AS growth,mgap_recovery, (mgap_growth+mgap_recovery) total FROM (SELECT mgap_ska_id,mgap_ska_id_name, account_manager_id, mgap_growth, mgap_recovery,(mgap_growth+mgap_recovery) total, @acid_rank := IF(@current_acid = account_manager_id, @acid_rank + 1, 1) AS acid_rank, @current_acid := account_manager_id FROM mgap_orders ORDER BY account_manager_id, mgap_growth DESC ) ranked WHERE acid_rank <= 5 and the result is VERY close to what I need, but I am having an aggregate issue that I need help with. I have attcached a screenshot of my query results (I had to block out the customer names …

0
9
Member Avatar

Private Sub txtamount_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtamount.TextChanged If String.IsNullOrEmpty(txtquantity.Text) OrElse String.IsNullOrEmpty(txtamount.Text) Then Exit Sub If Not IsNumeric(txtquantity.Text) OrElse Not IsNumeric(txtamount.Text) Then Exit Sub txttotal.Text = CDbl(txtquantity.Text) * CDbl(txtamount.Text) End Sub Private Sub txtquantity_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtquantity.TextChanged If String.IsNullOrEmpty(txtquantity.Text) OrElse String.IsNullOrEmpty(txtamount.Text) Then Exit Sub If Not IsNumeric(txtquantity.Text) OrElse Not IsNumeric(txtamount.Text) Then Exit Sub txttotal.Text = CDbl(txtquantity.Text) * CDbl(txtamount.Text) End Sub Private Sub txttotal_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txttotal.TextChanged If Len(Trim(txtquantity.Text)) = 0 And Len(Trim(txtamount.Text)) = 0 Then txttotal.Text = "" End If End Sub Here's my …

Member Avatar
0
6
Member Avatar

I am trying to retrive value from database in dropdown and to display the datas related to the selected option. I am new to php, Please Help me to write php code for the above .

Member Avatar
0
33
Member Avatar

I'm working on a rolling dice program. The rules are below. I'm not sure how to **reassign** a value. For example, a value of 1 and 2, would equal 1; a value of 3 and 4, would equal 2; and a value of 5 and 6, would equal 3. The Rules Are: - 3 die - Roll 1 = value 1 and 2 - Roll 2 = value 3 and 4 - Roll 3 = value 5 and 6 This is the code I have so far: int R1 = 0; int R2 = 0; int R3 = 0; while …

Member Avatar
0
6
Member Avatar

Using POSIX thread library two threads are created by this program. Main program creates a file, let say, ‘alphanumeric data.txt’. The thread one writes some alpha numeric value along with system time in this file. Second thread reads this value from file and displays the following information on screen: Alpha Numeric Value Time when Value was written to the File by first thread Time when Value was Read by the second Thread

Member Avatar
0
12
Member Avatar

<td>FooterMenu</td> <td><input type="checkbox" name="FooterMenu" value="1" <?php if($FooterMenu == 1): ?> checked="checked" <?php elseif($FooterMenu != 1):?> checked="unchecked" <?php endif;?>/> </td>

Member Avatar
0
13
Member Avatar

dear list, what i have to do is, i have perform some mathmatical operation in one function and using its results as input into another function, here is my code of what i had done till now : import math def Math(x1,y1): a = x1+y1 b = x1-y1 c = x1*y1 d = x1/y1 print "additin is: ", a print "subtraction is:", b print "multiplication is:", c print "division is: ", d print "square is:", e print "square root is", f x1 = 0 x = raw_input("enter first number: ") while not (x.isdigit()): x = raw_input("enter a valid number: ") …

Member Avatar
0
47

The End.