451 Posted Topics
Re: Have you tried inner|outer joins? Perhaps that should do the trick... Exactly what information is your search engine after? | |
Re: Try AJAX. It will not refresh the webpage, though it will send a separate request to the server asking for the information you need. [code=JavaScript] function showRecords(str) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } … | |
Re: I personally rather use SQL Sqrver, since integration with .NET is almost seamless, and it's got pretty easy to use tools... Look for the msdn sheet on connecting to SQL Server in microsoft's site | |
Re: Or, you can create a constructor for your class, so that it initializes the class's members so that they don't store garbage. You then call the constructor when declaring your class array. Or, as you are doing it, instead of [code=c++] for(counter = 0; counter < MAX_ACCOUNTS; counter++) { accounts[counter].computeInterest(); … | |
Re: In the first place, you cannot assign a [icode]const[/icode] value in the class header. Second, you didn't declare the variable [icode]balance[/icode] in the [icode]void computeInterest()[/icode] function | |
Re: what the program does is, instead of overriding, replace the numbers to order them from largest to smallest... Let me explain: Suppose the original input is [icode]| 5 | 7 | 1 | 3 |[/icode] Enter the loop: is [icode]5 < 7[/icode]? Yes Since it is, it assigns [icode]5[/icode] to … | |
Re: I agree with Agni: In the first place, DaniWeb is a place where people search for tech advise or programming solutions. If someone has anything to say, they'll say it by posting a reply to the thread. There's no need to implement a Facebook Commenting API. Second, Anonymity is a … | |
Re: That's because you're not specifying the Connection Property for da.SelectCommand (da.SelectCommand.Connection) Try [CODE=VB.NET]da.SelectCommand.Connection = con da.SelectCommand = cmditem[/CODE] | |
Re: What do you mean by "grabbing"? Btw, you should consider formatting and indenting your code for easier comprehension. | |
Re: This post might go better in the JavaScript forum, but here is an idea: Try javascript to check on that elements value every time the page is loaded: [code=html] <!-- Header --> <script type="text/javascript"> function checkCounter() { if (document.getElementById("counter").value == 1000) { alert("you arrived to 1000"); } } </script> </head> … | |
Re: There is an html attribute called "width". You can specify an element's width with this attribute. Do a quick google search for css and you shall get along pretty good. | |
Re: Ok, where you put [icode]HOME[/icode] you should put [icode]Main[/icode], which I suppose is the name of the parent's class | |
Re: What about passing the variable as a parameter for the other panels constructor? | |
Re: first of all... you will have to [U]explain[/U] to me what do these operations you want to do mean, cause i'm a little rusted in terms of determinants and that stuff... (it's been a long time since i work with matrixes)... i guess with a double for loop will e … | |
Re: there are some posts about optimizing c++ that might come in handy too... just search for them... | |
Re: i'm not married... but i'm seriously thinking on marrying this one... though i think it is a good idea to live together, to see how things work out... what do you think? | |
Hello fellas I'm actually developing some web applications in Ajax, and have been trying them in my Wamp server for Windows 7. I've been using the php_sqlsrv module since its release, because of its new features. The thing is, my office has a fedora webserver, and I'm looking for a … | |
Hello guys... I'd like to make a login form that popups just like the one here at daniweb, but I don't know what is it called... Can someone give me a heads up, and maybe some code? | |
![]() | Re: [quote=Narue] >which runs a WindowsXP OS.... It might start without crashing, but a lot of old programs start on Windows XP and don't work correctly due to their age.[/quote] I, as well, use Turbo (cause that's the one used @ the university [thing i don't actually like...]), and i installed … |
Hello mates I've got a database with tables for Job Department and Job position. Every Positions has a respective Department assigned by the id. So, when the user selects a Department, the program deploys into the combobox the values of the Positions assigned to that department. The thing is, the … | |
Hello ladies and gentlemen I've been trying to find a workaround this issue, and maybe you can help me find a solution. I've got a signature footer bar in a html document. This footer bar must display in several websites, in several domains, so i've been looking for an include … | |
Re: why son't you create an array of strings, and store in each string each word of your sentece, so you just have to print your array of strings backwards... i'm sorry... but as narue, and our queen of daniweb, her majesty dani (in the anouncements posted in every forum) have … | |
Re: I usually prefer an IDE that will aid me on my coding (like with intellisense, documentation, indenting, for instance) since it's easier that way to track my classes, functions, variables, etc, so I use VS2010 | |
Re: Because, in checking the current char, if there's a non-numeric character, the subscript's position is not changing, so it keeps checking the same character oiver and over again. Maybe you could try a validated loop exit? [code=c++] bool valid = true; while ((subscript < numChars) && (valid)) {... if(...) {...} … | |
Re: [icode]Exit(0)[/icode], is commonly used as a successful exit message. Usually, you don't use it, use instead [icode]Return 0;[/icode] [icode]Exit(1)[/icode] Is used to reference some kind of abnormal program termination. | |
Re: why don't you store each line of the textbox into an array, so that, on TextChange, you can count how many words are in the actual index of the array, and when 7 words is reached, you pass on to the next line, and at the end of each index, … | |
Re: [QUOTE=Bench;1252442]Write her a poem using your favourite programming language! :D[/QUOTE] You know, I've done that... It's awesome!! :P (Specially when the girl knows her codes) | |
Re: I differ on the opinion of renaming the [noparse][icode][/icode][/noparse] tags, since the tags for placing a code snippet are [noparse][code][/code][/noparse], the 'I' in 'ICODE' menaing the 'Inline' | |
Re: somewhere out there i read that microsoft screwed up all sund cards with vista, since vista only plays certain kinds of sound files... though i solved my problem by downloading brand new vista-compatible drivers for my creative sound card from the site... maybe if you search for vista-compatible drivers for … | |
Re: [code=sql] SELECT TOP 1 Columns /*The columns you want to select*/ FROM Table /*The table you're looking in*/ WHERE args = TRUE /*The arguments you intend to evaluate*/ [/code] | |
Re: You could create a [icode]struct[/icode] containing a [icode]char[/icode] and a [ICODE]bool[/ICODE], which will be your 'board'. Then you could randomly assign a position for a word and the direction you want to place it in. Then, check through a loop if another word is positioned in the spaces that the … | |
Hello guys. I'm building an application that connects to a SQL Server 2008 database via connection string. The thing is, since the computer loading the app (or the user, in either case) is outside the Active Directory domain, I can't use Windows Authentication to connect to the DB. But when … | |
Re: IMO, the implementationof a database with an AJAX front-end should do the trick (a little hypocritical, since i've ujust done the same thing in my company, but with Joomla)... But since there's much more content (like news posting and bulletin boards), I kinda needed the implementation of a CMS to … | |
Hello Recently I've been started to get curious about mobile development, specially Geolocation applications, how do they work and stuff... Can anyone point me in the right direction? What should I study, any references and things like that... Specially the following: 1.- How to implement the imagery (like, can i … | |
Hello guys... First of all, I'd like to excuse myself for being away for so long (for those who know me from a while ago), but I've been up to soooo many many things lately, that it's been hard to keep up... but lemme say: "I'm baaaack" Second, as I've … | |
Re: could you... umm... post a little bit more of your code? | |
Re: You can set your js to refresh every once in a while to recover the latest data from the database. Create a dataset to read the results from the db, and another one to store the one that was used last, and compare the new one with the last one … | |
Re: uh huh... As far as you've posted, you've got nothing in your code... try a little bit harder, take some [URL="http://www.daniweb.com/code/forum8.html"]code snippets[/URL] as a reference, [URL="http://www.google.com"]google[/URL] some tutorials, and come back when you've got a real [b]CODE[/b] issue, ok? | |
I'm building an AJAX application for my company, and in the main screen there is a login form. The login form has a submit button which calls an ajax function that checks with a php page the validation for the login credentials, and sends back a confirmation message. This message … | |
Re: you can always look for your header files in your library folders. Look for the address in the "Options" or "Preferences" of your c++ compiler, or go to the folder you configured when setting it up. Once you reached the folder, look for the library you intend to study. That … | |
Re: in line 19, you have a semicolon. That should do it | |
Re: sometimes like it, sometimes hate it... sometimes never tried it (kidding :D)... skinny dipping | |
Hello guys... I'm trying to develop an application with a GUI that sends and receives data via http, by sending a url via POST and eading the content generated by the url. or instance, if i send a nick and order number, the server generates a SessionID via html. My … | |
Re: what anout a function that will break up both strings (the one from the input and the one from the access db) into string arrays and compare them in a [icode]double[/icode] function, constituted by nested [icode]for[/icode] that will go through both arrays, counting the amount of matching words, loops that … | |
Re: Well... it's pretty implicit with the whole [icode]while([B]getchar() != '\n'[/B])[/icode] part | |
Re: [QUOTE=cscgal]Reputation is just like it's real-world counterpart. It's all about what other members of the community at large think of you. Members with more reputation themselves can affect other people's reputation by more. The reputation system also comes armed with a way to comment on why you gave the reputation … | |
Re: it depends on what you're trying to do: when declaring variables in the [icode]main()[/icode] procedure, is because you intend to use them throughout the whole program, though you can't use them in a function (unless you pass them as parameters by reference, not by value); when you declare them in … |
The End.