Hi. I,ve got some very helpfull advice from various experts on here and have nearly finished my program but am having a problem with a do while loop. When i try to put a do while ( the input isn't numbers one to ten) loop on a certain part of my program it works fine when a number that isn't one to ten is put in but if you put in a letter (which should make that part repeat again) it just dies and the screen starts flickering. I have tried a few things but with no joy. My only …

Member Avatar
Member Avatar
+0 forum 4

How can i get latest fresh data from server if in server happened new event (for exemple there are 2 users x,y and x send message to y and y get message without refresh page like fb chatsystem ) ? I dont want to use setInterval because it repeat all message again and again.

Member Avatar
Member Avatar
+0 forum 1

When my event driven functions are called many repeat themselves. Looking at debug I can see the functions being run more than once. For instance the code below will produce: First time: one original and one duplicate record added. Second time: one original and two duplicate records added. Third time: one original and three duplicate records added. Fourth time: one original and four duplicate records added. Now if I update a record it will go through the update six times. And on and on. $(function() { $("#btn_add_this_card").click(function (e) { e.preventDefault(); $('#btn_add_this_card').fadeOut(300); $.post("cards_insert.php", $("#input_form").serialize()); reset(); return; }); }); function reset() { …

Member Avatar
Member Avatar
+0 forum 4

I want to reload my form in Vb6 without closing it. I am sending a data through serial comm and receiving it. Now i want the repeat the procedure again without closing the Form. The problem is , I don't want to unload the form.It should get reloaded automatically

Member Avatar
Member Avatar
+0 forum 7

Yesterday i completed my exercises on loop , that's why today i've decided to create a tutorial on loop in c++. # Loop # loop allows us to repeat a statement or a group of statements. When we want to repeat a single statement then it is not necessary to put curly braces But if we want to repeat a group of statements then it must be enclosed with curly braces. And it is a good practise to enclosed your loop body with curly braces. c++ has three loop control structures while loop do-while loop for loop # while loop …

Member Avatar
Member Avatar
+7 forum 15

Hi guys , i have found command to extract the output of a command and save it in a file. But I want whenever I extract the data from a command , it should start from a particular line ? I am using this command below to extract data of top command, whenever it repeats it should start from the 6th Line i.e from the PID column but that doesn't happens where am I wrong top | awk 'BEGIN{print PID"\t"USER"\t"PR"\t"VIRT"\t"RES"\t"SHR"\t"S } {NR==6}{print $2,"\t"$3,"\t"$4,"\t"$5,"\t"$6"\t"$7}' > filename.txt Plz mind guys, I have not used shell scripts before just need it for one …

Member Avatar
Member Avatar
+0 forum 1

How to repeat the column header on each page on Microsoft report? I have a report on which I have to group results by the project and I want to repeat the column header on each page I searched the internet and all the people are saying there by setting the KeepWithGroup to after, RepeatOnNewPage to ture, and FixedData to true does not work with me and a compliation error occured informing me to return all these properties to their default again!!! I tried all the people say but nothing working with me can any one how to repeat the …

Member Avatar
+0 forum 0

Hi Guys, Does anyone know if we can have template within another template using mustache js ? If yes, can you please provide details how to do it? Or any other alternative if it cannot be done? I have a block of html code which I want to make it as template to repeat the sequence. Inside this block there is another sequence. Can I make that also as template? Thanks! VenusCrystal

Member Avatar
Member Avatar
+0 forum 1

Hey guys ..!! so today I was solving another problem involving a loop in it and i'm not sure exactly how to apply that condition to repeat it unless the terminating condition becomes true. I tried to do it on my own but its not working. can anyone of you please tell me how to do it correctly. MY CODE.. #include<iostream> #include<conio.h> using namespace std; int main() { int num; float centigrade, fahrenheit, result; cout<<"Please select from the following options. Press (1 or 2). \n1.Centigrade to Fahrenheit. \n2.Fahrenheit to Centigrade."<<endl; cin>>num; while( num == 1 || num == 2 || …

Member Avatar
Member Avatar
+0 forum 1

I HAVE A QUERY THIS IS PRODUCING THIS RESULT. EVERYTHING WORKS FINE BUT WHAT I WANT TO ACHIEVE IS SLIGHTLY DIFFERENT. INSTEAD OF HAVING REPEATING IMPORTERS, I WANT TO GROUP THE IMPORTERS/DISTRIBUTOR SO THAT NOTHING CAN REPEAT AND HAVE ALL THE BALANCES IN THREE SEPARATE COLUMNS. BELOW IS MY TABLE STRUCTURE: TABLE 1 (ImporterDistributor) --> ID NAME TABLE 2 (PD_Temp_Balance) DISTRIBUTOR IMPORTER BALANCE BELOW IS MY QUERY. Select concat(ImporterDistributor.name, '/', ID.name) as [Distributor_Importer], PD_Temp_Balance.Balance from ImporterDistributor join PD_Temp_Balance on (PD_Temp_Balance.Distributor=ImporterDistributor.ID ) join ImporterDistributor as ID on (PD_Temp_Balance.Importer=ID.ID ) where PD_Temp_Balance.Transaction_Date = '2014-11-01' group by concat(ImporterDistributor.name, '/', ID.name), PD_Temp_Balance.Balance, PD_Temp_Balance.Product AS …

Member Avatar
Member Avatar
+0 forum 2

i am repeating a form using ng-repeat. the repetition is to create a new form. i want to submit all forms data on single click. i am not able to find how i can assign multiple values in array. Here is my form. <div id="check" ng-repeat="screen in screens"> <input type="hidden" name="scrnid" ng-model="screen.scrnid" value="{{ screen.scrnid }}" /> <label>Name:</label> <input type="text" ng-model="screen.bdayname" placeholder="Name" ng-required/> <label>Date:</label> <input type="date" ng-model="screen.bdaydate" placeholder="Date" ng-required/> <br/> </div> <button class="btn" type="submit" ng-click="newBirthday()">Save</button> </div> <div class="container"> <input type="button" class="btn" ng-click="createScreen()" /><i class="icon-plus"></i>Add </div> // and it is my controller app.controller('main', function($scope){ $scope.screens = [{scrnid: "1"}]; $scope.scrnid = 1; $scope.createScreen …

Member Avatar
+0 forum 0

Hey guys, like I said before, im new to html and css and im having some trouble with the layout of my website. I basically have 2 problems/question. 1- I am trying to align the content of my page... but i am having a hard time. I've attached a picture of how my content should look like and how it looks like for the moment. 2- why is it that, for example, I place my logo where i wanted... and then if i add some other items to the table, my logo moves! why!? [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar
Member Avatar
+0 forum 7

Hi, I am multiplying two matricies in assembly. It is a 2 x 2, and as you can see they are defined down below in the code. I am also defining storate for 4 words so tht I can save the resulting matrix. 1. I declare offset fo each matrix 2. I also declare columns and rows so I can keep control of when to end everyhting. 3. The program goes through first row in matrix by using diplacement. 4. For the second matrix, the one I am multiplying it by, I am incrementing offset by column number because I …

Member Avatar
Member Avatar
+0 forum 1

Hello people of daniweb. I'm new here :) Anyways, I have issue with my css. I have top picture which is exaclty of 570px height, and it has some gradient in it so it is not repeatable. I have middle (or center) picture which is 1 px height and same width as top and bottom (912px) and I need to repeat it over y line. I have bottom picture which is 7px height and of 912px width. This is my html code: <div id="newswrapper-repeater"> <div id="newswrapper"> // here goes text that should be long regarding the divs inside, // (news …

Member Avatar
Member Avatar
+0 forum 1

The End.