dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: dingbat

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    698

    Perhaps make them regular button elements, where...

    Perhaps make them regular button elements, where onclick calls a js function that sets form.action accordingly then calls form.submit().


    function submitForm(x)
    {
    if(x==0)
    ...
  2. Replies
    1
    Views
    590

    You could use CSS.

    You could use CSS.
    <img .... style="position:absolute; left:100px; top:100px;" />
    Of course this only works if the image always stays in one place relative to the 0,0 point. Otherwise you'll...
  3. Replies
    5
    Views
    1,024

    Sorry, I guess find_in_set is just a mysql thing....

    Sorry, I guess find_in_set is just a mysql thing. I don't know Access, but I'd assume there's some sort of string search function.
    Maybe using IN would work:

    WHERE #form.searchsize# IN...
  4. Replies
    5
    Views
    1,024

    Try the find_in_set()...

    Try the find_in_set() function. If it returns >0, then it's in the list.
  5. Use the REPLACE function.

    Use the REPLACE function.
  6. Replies
    2
    Views
    818

    It could be because Firefox doesn't use keyCode...

    It could be because Firefox doesn't use keyCode for onKeyPress. Try something like this to get the code:
    var key = event.keyCode ? event.keyCode : event.which;

    There's a lot of discussion on...
  7. Replies
    1
    Views
    2,083

    Try onmousedown instead of onclick.

    Try onmousedown instead of onclick.
  8. Replies
    4
    Views
    691

    It worked for me using IE8.

    It worked for me using IE8.
  9. I use the Prototype API for AJAX calls, makes it...

    I use the Prototype API for AJAX calls, makes it a little easier.
    http://www.prototypejs.org/learn/introduction-to-ajax
  10. Replies
    4
    Views
    1,892

    Hmm, didn't think of that. Maybe something like...

    Hmm, didn't think of that.
    Maybe something like this:


    while(scanner.hasNext())
    {
    if(scanner.hasNextBoolean())
    {
    System.out.print(scanner.nextBoolean()+"");
    }
  11. Replies
    4
    Views
    1,892

    The error is because it's trying to turn "one"...

    The error is because it's trying to turn "one" into a boolean. Use hasNextBoolean() in the while, then you don't need the if inside, just use nextBoolean() in the print.
  12. Replies
    1
    Views
    504

    You mean like a Quantity box, where it'll...

    You mean like a Quantity box, where it'll multiply the number you enter there by the other number? Just add the fields, then do the multiply while adding it all up. If that's not what you're...
  13. Replies
    7
    Views
    8,290

    How accurate does it need to be over a period a...

    How accurate does it need to be over a period a time? The easy way would be to just get the current time when the page loads by setting it from php to a js variable, like so:
    var serverDate = <?php...
  14. Thread: sql insert

    by dingbat
    Replies
    2
    Views
    609

    condition is a reserved word and can't be used as...

    condition is a reserved word and can't be used as a column name. You might be able to quote it, but I tried and it didn't work.
  15. Replies
    3
    Views
    1,572

    I'm not following exactly what you're talking...

    I'm not following exactly what you're talking about. I doubt anything exists that will look through an html page and replace stuff with loops. You'll have to do it manually. You can just change...
  16. If each table shares an ID, then join them...

    If each table shares an ID, then join them together in one query and the order by will sort it all.
  17. Replies
    3
    Views
    1,572

    Just naming the file .jsp is all you should need...

    Just naming the file .jsp is all you should need to do.
  18. Missing a parenthesis. if...

    Missing a parenthesis.

    if (validateEmail.test(document.frmCreateAcc.email.value) == false)

    If you aren't using it already, the Firebug plugin for Firefox is a great tool for debugging...
  19. Writing a regular expression is complicated, but...

    Writing a regular expression is complicated, but using them isn't.

    emailRe.test(document.frmCreateAcc.email.value)

    That's all there is to it. Returns a boolean true if it matches.
  20. If you are allowed to use regular expressions,...

    If you are allowed to use regular expressions, that's what I'd do.

    Otherwise, you probably want brackets around your email alert and valid=false. I would check maybe if apos==-1 || dotpos<=apos,...
  21. Replies
    7
    Views
    4,046

    Use the visibility css property.

    Use the visibility css property.
  22. Replies
    3
    Views
    1,046

    Use a variable SET @cnt=0; SELECT...

    Use a variable

    SET @cnt=0;
    SELECT @cnt:=@cnt+1, .....
  23. Replies
    1
    Views
    590

    Use a regular expression to get everything after...

    Use a regular expression to get everything after the last slash. (I don't know if there's any special cases this regex wouldn't cover, but I was never that great at writing them...)

    var regexp =...
  24. You could just create a new element, or clone it,...

    You could just create a new element, or clone it, when the row is created.

    Something like:
    var img = document.getElementById('handimage');
    var newimg= img.cloneNode(false);...
  25. Replies
    3
    Views
    717

    You can do something like this:...

    You can do something like this:
    http://www.pageresource.com/jscript/jframe2.htm
    Maybe have some javascript run when the navigation page loads that changes the page in the second frame set.

    Or...
Results 1 to 25 of 37
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles