dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: sQu1rr

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    11,670

    Are you using ?

    Are you using <!doctype html> ?
  2. Replies
    4
    Views
    14,118

    AJAX Hm, you are right, stackoverflow has some...

    Hm, you are right, stackoverflow has some information about it, hope it helps http://stackoverflow.com/questions/298745/how-do-i-send-a-cross-domain-post-request-via-javascript
  3. Replies
    4
    Views
    14,118

    AJAX Yep, it is possible, just install the plugin from...

    Yep, it is possible, just install the plugin from here, and your ajax queries will become crossdomain
    XDomainAjax: https://github.com/padolsey/jQuery-Plugins/...oss-domain-ajax
  4. Replies
    8
    Views
    3,053

    No reason :) lol. You don't really need to use...

    No reason :) lol. You don't really need to use .trim here. sorry i misled you :) Sometimes i write those things automatically, just to make sure that string has no whitespaces, but .text() should...
  5. Replies
    8
    Views
    3,053

    To make it close, you should probably change...

    To make it close, you should probably change ".find('p.less')" to ".find('p.less, p.more')" :) There are also more convenient ways to do so :)
  6. Replies
    8
    Views
    3,053

    " if(expr) { do1 } else { do2 } " = " expr ? do1...

    " if(expr) { do1 } else { do2 } " = " expr ? do1 : do2 "
    $(this).text(($(this).text().trim() == 'close') ? ('read more') : ('close'));
    is the same as
    if($(this).text().trim() == 'close')...
  7. Replies
    8
    Views
    3,053

    The problem is here: var txt =...

    The problem is here: var txt = $("button.open_one").text(); Now you've got 2 buttons and button.open_one.text() will be "read more read more" or something like that, thus the second condition is...
  8. Do you really want to make it so strict. 280px...

    Do you really want to make it so strict. 280px and that's it? why? anyway, i'll take a look into this tomorrow :)
  9. Maybe because you force it to be 280px height?...

    Maybe because you force it to be 280px height? delete 280px and 215px from css (.homepagebox-tall and .homepagebox resp) and remove bottom margin from UL inside.
  10. Replies
    12
    Views
    1,781

    Common mate, google at least something ok,...

    Common mate, google at least something

    ok, custom attribute (I didn't test that code, maybe there is a typo somewhere)


    $('.link').each(function(){
    $(this).attr('original_src',...
  11. Replies
    12
    Views
    1,781

    yep :) one of the ways to make it work the way...

    yep :) one of the ways to make it work the way you want is to save the original url and assign it to src attribute before modification every time. jQuery.fn.data is one way, custom attribute another.
  12. Replies
    12
    Views
    1,781

    Anyway, that's a bad practice to mix jQuery with...

    Anyway, that's a bad practice to mix jQuery with plain javascript unless you are making some huge optimisations and this case is not it :)
    Here is the cross-browser solution to your problem, of...
  13. Replies
    12
    Views
    1,781

    If your problem is only in...

    If your problem is only in document.getElementsByClassName() which is not supported in IE7/8/9, then this page should help you...
  14. Replies
    12
    Views
    1,781

    1. Your topic says that now it works :) 2. which...

    1. Your topic says that now it works :)
    2. which IE
    3. what do you want to accomplish? maybe some examples with html? (simple ones)
    4. why do you mix jQuery and plain javascript?
    5. this...
  15. I don't think there is a legitimate way to edit...

    I don't think there is a legitimate way to edit the private method, that is why it's private. However there is a way :) Some optimisations and stuff needed though, but it works


    function...
Results 1 to 15 of 15
HTML5 Development Center



Recent Articles