Skip to content
Advertisement

Tag: javascript

Plotly – How to remove the rangeslider

By default, candlestick and ohlc charts display a rangeslider. It seems like there’s no parameter to change the setting. So I’ve looked at javascript code in html file but was not able to find a clue to remove it. Can someone explain how to remove the rangeslider from candlestick chart? Answer I found the solution.. Following code hides the rangeslider

Use zlib.js to decompress python zlib compress

On the server side I use python zlib to compress a string as follows: The result of the previous code is the following On the client side I use zlib.js to decompress I get the following error what am I doing wrong? Answer The problem was coding. in python I used base64 to encode. On the client side: Thank you

Odoo. Hide some options in field selection

I have some selection field in my model. Here example: In some cases I need hide specific options in selection(or radio buttons). How I can do this properly? Below screen from base calendar module which can more explain about my problem. Thanks in advance. Answer I found the solution. First of all we need to create custom widget for FieldSelection.

Convenient way to wrap long SQL statements in javascript

In python, one can use “”” to wrap long MySQL statements. For example, However, if I try the same thing in javascript, there will be syntax error. Is there some kind of javascript equivalent for python’s “””string encapsulation? If no, what are some best practices for encapsulating a long MySQL string statement in javascript? I am using node.js restify client.

Can a website detect when you are using Selenium with chromedriver?

I’ve been testing out Selenium with Chromedriver and I noticed that some pages can detect that you’re using Selenium even though there’s no automation at all. Even when I’m just browsing manually just using Chrome through Selenium and Xephyr I often get a page saying that suspicious activity was detected. I’ve checked my user agent, and my browser fingerprint, and

Advertisement