www.webdeveloper.com

Search:

Type: Posts; User: Error404

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    171

    I avoid putting PHP variables into SQL strings I...

    I avoid putting PHP variables into SQL strings I find it makes it less readable and if you have a lot of variables, it creates a mess of quotes, concatentations, etc... . That said, there's nothing...
  2. Replies
    3
    Views
    313

    I experienced a similar problem in a graphing...

    I experienced a similar problem in a graphing application I am just about to finish, in which data was being read in very large tables across networks and servers. Some of the processing was complex...
  3. After I cleaned up your code, it produced the...

    After I cleaned up your code, it produced the correct results. The two places I corrected are:



    document.getElementById(outputId).value = ((input - 32) * (5 / 9));


    to
  4. If you have an idea of what you would want a...

    If you have an idea of what you would want a button to do, then we can help with bits of code but as far as saying you want something that looks good... well, that's far too vague. Assuming you want...
  5. Replies
    4
    Views
    308

    So you want to edit their javascript so you can...

    So you want to edit their javascript so you can paste when they're preventing it? You could use Greasemonkey for that or you could look at their client-side source code. Personally, I wouldn't bother...
  6. Is there any other code or HTML on the page since...

    Is there any other code or HTML on the page since the function you gave only returns 1 value?
  7. Replies
    10
    Views
    474

    The only thing I can think of would be putting in...

    The only thing I can think of would be putting in a mysqli_close(), even though it's only 1 connection (unless there's more outside of the snippet). PHP should free up the resources even without...
  8. Replies
    4
    Views
    308

    There's 2 main ways I thought of doing this:...

    There's 2 main ways I thought of doing this: having some script execute once the window loads or having an event fire when a user tries to paste. The example below illustrates both. The only thing to...
  9. Replies
    1
    Views
    290

    I'm guessing that with XMLReader, it would read...

    I'm guessing that with XMLReader, it would read the BillingAddress node with all of its children in 1 line, so you could use simplexml's xpath function. For example:



    $addressDetail =...
  10. Replies
    0
    Views
    309

    Workaround for IBM AS400 error

    My first question on these forums, so here goes.

    I'm nearly finished developing a web-based app that reads information from various databases, analyses it accordingly (unique for each graph) and...
  11. Replies
    21
    Views
    971

    The mysql_ functions are going to be depreciated...

    The mysql_ functions are going to be depreciated at some point, so you should change it to mysqli or PDO.

    Also, you shouldn't insert the values into your database without doing any input...
  12. Replies
    4
    Views
    467

    Since you asked for JavaScript and I don't know...

    Since you asked for JavaScript and I don't know ASP, here's a solution.

    If there are no other checkboxes on the page and they're contained in some other element (i.e. checkDiv), try this. If there...
  13. Replies
    7
    Views
    637

    After some googling, there are apparently some...

    After some googling, there are apparently some nice toolkits, although I'm not sure if it's possible purely with CSS, which was quite a surprise to me. For example, you could use the -moz-user,...
  14. Replies
    4
    Views
    327

    Your English is perfectly fine, no problem there...

    Your English is perfectly fine, no problem there :)

    As for your question, you could consider using a database, especially if there will be a lot of information to be presented for each result. For...
  15. Replies
    2
    Views
    266

    Before asking for us to edit the code which you...

    Before asking for us to edit the code which you obtained from wherever (if you wrote it then you wouldn't have the problem you're currently having), you should at least understand what each part is...
  16. Replies
    1
    Views
    371

    I didn't see any link on the documentation...

    I didn't see any link on the documentation website that mentioned anything about files/js/script.js.php, however, there was an example using PHP, so I assume that's what you meant. In that case,...
  17. Replies
    11
    Views
    621

    You can use a slice function on each String or...

    You can use a slice function on each String or variable, depending how it's initially being retrieved.



    var str = "12345a";
    str.slice(0, -1); // removes the last character
    ...
  18. A single cookie can only store up to 4 KB,...

    A single cookie can only store up to 4 KB, however, if the data size becomes an issue, then you shouldn't be using cookies for that data.

    PHP is server-side, meaning it will have access to data...
  19. Replies
    5
    Views
    394

    You should re-write your script using mysqli or...

    You should re-write your script using mysqli or PDO functions to connect to your MySQL instead of mysql functions.

    Assuming there's a column in your table that always has unique values that do...
  20. The history API does allow you to access a user's...

    The history API does allow you to access a user's browser history but it's a lot more limited than what you're after. There used to be a security loophole based on CSS whereby a previously visited...
  21. Replies
    11
    Views
    621

    The process of populating a drop-down menu is...

    The process of populating a drop-down menu is actually straight-forward. For example, with 1 drop-down menu and 1 array (which is what you have, just duplicate it as many times as needed):


    ...
  22. I still don't understand the benefit of doing it...

    I still don't understand the benefit of doing it the way you described but Firebug will not be able to do that for you. Instead, try out TamperData. I haven't used it but from the description, it...
  23. The JavaScript snippet you provided would work,...

    The JavaScript snippet you provided would work, so the issue is with the rest of the code you're not showing. If there is an error, other than a logical one, check the error console, such as through...
  24. Replies
    4
    Views
    446

    If you want to read Excel files and show them in...

    If you want to read Excel files and show them in the browser, you have a few options depending how you want to do it. If you want to use JavaScript, you can use the DHTMLX library. Since it uses...
  25. You're using a file connect.php and sending some...

    You're using a file connect.php and sending some form data to insert.php, however, you haven't shown the code for either file. Since your JavaScript is using fields from both forms, I'm not sure...
Results 1 to 25 of 121
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles