• Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in DaniWeb is now ad-free!!

    This is a topic near-and-dear to my heart. Although my day job is development, I supplement my income through writing. Like other people, ads drive my crazy. Yet, in the …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in declaration of connection string using ado

    SQL Server is touchy about the names. Depending on how it's configured you may or may not be able to just use an IP address like you're using in the …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Programming using arrays and pointers

    Since you're incrementing by two, you're basically skipping the final \0. Look at when you get to the 'Y'. You print that out, and then you go two more, which …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Regexp help

    Here are two references for learning regular expressions, one site and one book. I recommend you get the book and study it, and also study the site. The site is …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Tables in Text Editor

    I'll probably just insert the markdown myself. I do my professional writing in the word processor and copy it over. (I have a version control system and entire workflow set …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Hello there world

    I agree! Creating things is what it's all about!
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Tables in Text Editor

    Do you know if there's any macro or something that will take a Word doc and convert it to Markdown? When I uploaded my tutorial a couple days ago, it …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Creating Interactive Web Interfaces with the help of Knockout.js

    Also, here's another thought about why I like this library. I'm building a pretty big app right now that runs in the browser, with about ten thousand lines of JavaScript. …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Creating Interactive Web Interfaces with the help of Knockout.js

    Well I'm not necessarily saying it's better. But I've found it has greatly sped up my development time. I'm creating data-bound user interfaces much more quickly than I used to …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Difference between returning a pointer and a struct?

    This is actually a really good discussion, something I suspect a lot of beginning and even intermediate programmers might be wondering about. I think I'll write my next Tutorial about …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Difference between returning a pointer and a struct?

    So you don't actually have to copy it into the heap. It gets created there.
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Difference between returning a pointer and a struct?

    Oh! Sorry, I guess I didn't explain that. When you call malloc in C or new in C++, it gets created on the heap and you get a pointer to …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Difference between returning a pointer and a struct?

    No, when it's on the heap it stays right there and the main and other functions just access it through the pointer. The pointer gets passed around and anyone can …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Difference between returning a pointer and a struct?

    Correct, except for the part about the pointer. When you allocate something on the heap, the heap stays around and is there for all the functions to share. (In C, …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in moving data from one table to another

    Do you want to actually copy the data from one table to another or just display it on the screen that way? If you just want to display it, you …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Difference between returning a pointer and a struct?

    When you have a function in C (or C++), the function gets an area of memory on the stack to use for its local variables. If you create a variable …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Add Remove classes using jquery not working

    This might help, at least with some of it. This is an article I wrote about page transitions. The main topic is local storage, but I also get into the …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Created Creating Interactive Web Interfaces with the help of Knockout.js

    As I spend time in the Daniweb forums, I see some questions that ultimately come down to the issue of manipulating JavaScript data and a user interface on a website. …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in How to create a formfield that checks validation based on set of flat files

    Are you using jQuery? If so, they have an example that uses the jQueryUI autocomplete and does basically what you're describing: http://jqueryui.com/autocomplete/#multiple-remote
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Facebook javascript error

    That's the error I'm seeing. But it looks like when you call FB.init, you're not passing in your app id: FB.init({channelURL: 'http://www.daniweb.com/js/fb_channel.html', status: true, cookie: true, xfbml: true}); There's supposed …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Add Remove classes using jquery not working

    Your code almost worked for me, except I had to change line 9 to remove the moveFromTop animation. After that fix, it completely worked: $(".navigation li a").click(function() { var currentId …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in Facebook javascript error

    Dani, did you get this worked out? I'm not seeing this error. I'm using chrome, but I am seeing a couple other FB errors.
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in My Dropdown menu not working

    Hi! The problem is your overflow:hidden is hiding it. Get rid of both of those (lines 38 and 53 of the CSS file). But then your layout will be thrown …
  • Member Avatar for jeffcogswell
    jeffcogswell

    Replied To a Post in The caching of AJAX calls?

    Yeah, as Pritaes said, use $.ajax and add the option cache:false. What jQuery does in this case is adds a random, unused number on the end of the query string. …

The End.