www.webdeveloper.com

Search:

Type: Posts; User: triassic

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    770

    Javascript is client side. To do it server side,...

    Javascript is client side. To do it server side, use PHP or something.
    You could have a page with nothing on it that runs a script on load that sets window.location based on the date. Or maybe...
  2. Replies
    1
    Views
    688

    Use javascript. You can set the form action by...

    Use javascript. You can set the form action by doing
    form.action = "http://www.google.com/search";
    Do it either on submit, or each time the option is changed.
  3. Replies
    3
    Views
    11,531

    Try something like this

    Try something like this


    <tr onclick="document.getElementById('q1_1').checked=true;">
  4. Replies
    1
    Views
    1,103

    Something like this may work SELECT...

    Something like this may work


    SELECT Items.id,Items.item,cat1.name,cat1.description,cat2.name,cat2.description,cat3.name,cat3.description
    FROM Items
    LEFT JOIN Categories cat1 ON...
  5. Replies
    2
    Views
    799

    Try leaving off the WHERE and use an IF,...

    Try leaving off the WHERE and use an IF, something like this:


    SELECT company.id,name,if(propNo=64,propNo,''),if(propNo=64,propVal,'')
    FROM company LEFT JOIN property ON (company.id=property.id)
  6. Replies
    2
    Views
    964

    For inserts, you can do an INSERT...SELECT...

    For inserts, you can do an INSERT...SELECT.

    For updates, just do something like this:

    UPDATE user, user_backup SET user.name = user_backup.name WHERE user.id = user_backup.id
  7. Replies
    2
    Views
    651

    Your NOT IN query should be correct. I just...

    Your NOT IN query should be correct. I just tried something similar and it worked. I don't know why it wouldn't be working for you.

    This is another way to do it using a join, but watch out for...
  8. Replies
    1
    Views
    609

    I'm not sure what you mean by that format. ...

    I'm not sure what you mean by that format. Sounds like you just want it sorted by the category, so just do an ORDER BY category.
  9. This might not be the best way to do it, but it's...

    This might not be the best way to do it, but it's simple and will give you the gist of things.


    <script type="text/javascript">
    function checkKeywords(x)
    {
    if(x==1) {
    ...
  10. Firstly, why is the class called Objects_arrays? ...

    Firstly, why is the class called Objects_arrays? I'd call it Gym. Also, you need a constructor method to initialize your data. You can either pass values into it, or just make it set everything to...
  11. cursor: pointer should work

    cursor: pointer
    should work
  12. I use IE for day to day use. It just feels...

    I use IE for day to day use. It just feels faster and smoother to me, and has been fine security wise since after IE6.

    However, like many I do use Firefox for its plugins, and also surprisingly...
  13. Add this to the onclick. You might have just had...

    Add this to the onclick. You might have just had quote issues if you didn't escape them.


    setTimeout('document.getElementById(\'kofe_01\').style.visibility=\'hidden\';',3000);
  14. Replies
    6
    Views
    1,146

    View Post

    <img src="pic.gif" id="test" style="visibility:hidden;" />
    <a href="#" onclick="document.getElementById('test').style.visibility='visible';">Do It</a>
  15. Replies
    6
    Views
    1,146

    Just put the images there to begin with, but set...

    Just put the images there to begin with, but set their css visibility to hidden, and all with unique IDs. Then when a checkbox is clicked set document.getElementById('<id>').style.visibility=visible.
  16. Replies
    5
    Views
    1,200

    I think you can get the window object back by...

    I think you can get the window object back by doing
    mywindow=window.open("","music_player");
    so maybe you can tell by that somehow, like if it's null or something. I haven't tried it, so I don't...
  17. Replies
    5
    Views
    1,200

    Try this on your parent window. I don't know if...

    Try this on your parent window. I don't know if there's a more correct way, but it worked when I tried it.


    <a href="javascript: togglepause();" target="music_player">pause</a>
  18. Replies
    5
    Views
    3,509

    It looks like there is a size attribute for this....

    It looks like there is a size attribute for this. Does this work?

    <select size="20">
  19. Replies
    1
    Views
    1,609

    Propagate exception to outer try/catch

    In this example, is there any way to get the exception to propagate to the outer try/catch? I can not modify functionB.



    public void functionA() {
    try {
    functionB();
    } catch...
  20. Replies
    2
    Views
    1,070

    I think the JOIN has to come before the WHERE.

    I think the JOIN has to come before the WHERE.
  21. Thread: Old Computers

    by triassic
    Replies
    25
    Views
    7,961

    My first was a Commodore 64 hand me down from my...

    My first was a Commodore 64 hand me down from my dad. I was maybe 6, and knew how to load programs such as Grover's Barnyard Adventures and Print Shop. After that I had a monochrome 8088...
  22. Replies
    3
    Views
    877

    function showHide(id) { var el =...

    function showHide(id)
    {
    var el = document.getElementById(id);
    if(el.style.display=='')
    el.style.display='none';
    else
    el.style.display='';
    }
  23. Replies
    3
    Views
    877

    Put the information in a div, or any container...

    Put the information in a div, or any container with an id, then toggle the display style with the link to show and hide it.
  24. Replies
    5
    Views
    823

    I think you'll need to set the href on the link,...

    I think you'll need to set the href on the link, not src.
  25. Replies
    1
    Views
    896

    window.location without full url

    I have noticed that this works:
    window.location = 'http://www.google.com';

    But this doesn't:
    window.location = 'www.google.com';
    It sees it relative to the current url, so it'll end up being...
Results 1 to 25 of 42
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles