JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
May 26, 2018 10:26
globally
May 26, 2018 10:25
is there a way in javascript to threat a request and fire certain action in ajax before sending it to onreadystatechange
May 26, 2018 10:25
hello, can someone help me
Feb 27, 2018 13:54
@KarelG css-tricks.com/difference-between-types-of-css-variables someone already pointled it out
Feb 27, 2018 13:52
yeah, english is not my native
Feb 27, 2018 13:51
thanks
Feb 27, 2018 13:50
like: --yt-button-margin: 0;
Feb 27, 2018 13:50
sorry, wrong chat, but, can someone tell me, what does double slash in css means?
Aug 15, 2017 14:34
ok, thank you
Aug 15, 2017 14:34
its not fully rendered
Aug 15, 2017 14:33
as background and as image.src
Aug 15, 2017 14:33
will image be loaded twice?
Aug 15, 2017 14:32
image = document.createElement('img');
      image.src = $('myimage').css('background-image');
      image.onload = function () {
          requestAnimationFrame(startRender);
      };
Aug 15, 2017 14:31
hello, can someone tell me, if i use this code
Jul 26, 2017 08:56
found few, but didnt really liked them
Jul 26, 2017 08:56
can anyone recomend good responsive slider with transition effects?
Jul 19, 2017 12:55
hm, maybe its better with download indeed
Jul 19, 2017 12:52
and there is no proper documentation on how to add close button to acrobat pdf object
Jul 19, 2017 12:51
for now i just put an object into bootstrap modal and remove all headers and footers, looks fine, but im not expert with objects
Jul 19, 2017 12:48
anyone used to work with pdf files?
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
Feb 27, 2018 13:47
--skinny240-mode-player-width: 426px;
Feb 27, 2018 13:47
like
Feb 27, 2018 13:47
can someone tell me, what double slash in css means?
Aug 18, 2017 08:04
CSS flex is the best thing invented in CSS so far
 

Trash can

Like the recycle bin, but trashier.
Aug 15, 2017 14:31
` image = document.createElement('img');
image.src = $('myimage').css('background-image');
image.onload = function () {
requestAnimationFrame(startRender);
};`
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Aug 12, 2017 07:48
sorry to post here, but regex room is empty
Aug 12, 2017 07:48
anyone here know advanced regex?
Jul 27, 2017 18:36
try {
        $object = new Foo();
    } catch (Exception $e) {
        echo $e->getMessage();
    }
Jul 27, 2017 18:36
5
Q: Breaking the constructor

Emanuil RusevIs there a way to prevent object creation within its constructor, so that: $object = new Foo(); echo $object; // outputs: NULL

Jul 27, 2017 18:36
i ment this, im just confusing everyone
Jul 27, 2017 18:36
sorry, wrong window
Jul 27, 2017 18:33
) doesnt work, well thanks, ill wait for teresko
Jul 27, 2017 18:32
yes, to show as code
Jul 27, 2017 18:31
how do i edit code?
Jul 27, 2017 18:31
    try{
    throw new SQLException("SQL error message");
}catch(SQLException $e){
    print "SQL Error: ".$e->getMessage();
}catch(Exception $e){
    print "Error: ".$e->getMessage();
}
Jul 27, 2017 18:31
but without this part
Jul 27, 2017 18:31
5
Q: Breaking the constructor

Emanuil RusevIs there a way to prevent object creation within its constructor, so that: $object = new Foo(); echo $object; // outputs: NULL

Jul 27, 2017 18:31
in short, this
Jul 27, 2017 18:30
but i dont know how to handle this error from constructor
Jul 27, 2017 18:29
id rather have this in constructor
Jul 27, 2017 18:29
try{ if (!$this->auth()) Throw new exception('login failed'); ... } catch ...
Jul 27, 2017 18:28
right now it look ugly, every function have this
Jul 27, 2017 18:27
need to check if user logged
Jul 27, 2017 18:27
or there are different methods
Jul 27, 2017 18:27
but, how do i handle this error? create my own error handler?
Jul 27, 2017 18:26
i can do it in constructor and throw error
Jul 27, 2017 18:26
and every of those function need to check for autentification
Jul 27, 2017 18:26
i have controllers with lots of functions
Jul 27, 2017 18:26
can someone reccomend me a method
 

SQL

Got a SQL question? Any SQL flavor here, just ask. Indicate yo...
Jul 24, 2017 16:11
what will be faster