Questions tagged as 'javascript'

2
answers

I need help with Javascript, css and HTML, Hide and Show DIV's

I have a drop-down list, it's a menu, and I have a javascript that hides them and shows them the div, but when selecting an option that is inside another one in the drop-down list does not show the others, I leave the code here so that understan...
asked by 28.05.2018 / 18:12
2
answers

It can be detected if the device they access to my website is a cell phone or computer

I was wondering if with css or javascript I could detect if my user used a cell phone or PC is to alter the css since as there are events that do not work on cell I wanted the design to start differently than with the media queries can be detect...
asked by 28.05.2018 / 20:04
0
answers

Get the document from an iframe

I'm trying to get the document from an iframe that is being loaded from the same server but what I get is a about:blank // node es el iframe var iframeDocument = node.contentDocument || node.contentWindow.document; console.log("IFRAME...
asked by 07.06.2018 / 22:50
1
answer

Doubt about the closure in Javascript

very good and thanks in advance for reading this. Given a code like this: function uno(){ function dos(){ alert('no debería de aparecer') } return dos; } var res = uno(); res() should I not return the function two o...
asked by 08.06.2018 / 00:31
0
answers

How to get all the canvases of an html view to save the base64 image

I have the following html with different canvas <div style="float:right;"> <button type="button" id="btn-save-image" class="btn btn-default" aria-label="Left Align"> <span class="glyphicon glyphicon-floppy-saved" aria-hidden="tr...
asked by 28.05.2018 / 14:19
0
answers

Problems with class marks in object

I have two associated buttons (button1 and button2) to an object that I have defined and I would like to apply the "hover" effect through CSS (since it seems easier to me through class marks) so that the buttons do not appear until you pass the...
asked by 28.05.2018 / 14:08
0
answers

Uncaught TypeError - When trying to send a PDF by email with jsPDF

I want to send a PDF file by email with the javascript library jsPDF. When I run I have this error. Uncaught TypeError: Cannot read property 'email' of undefined This is the code: var pdf = new jsPDF(); pdf.text(0, 0, 'Hell...
asked by 28.05.2018 / 14:53
1
answer

Regular expressions in AJax requests

I have a REST request that returns a json with values {"Meta Data":{"1. Information":"Intraday (1min) prices and volumes","2. Symbol":"MSFT","3. Last Refreshed":"2018-05-30 16:00:00","4. Interval":"1min","5. Output Size":"Compact","6. Time Zon...
asked by 31.05.2018 / 19:07
0
answers

How to implement npm jsonymize in a project?

Hello, I have tried to include this module in a project with the require statement, however I am new to this and I do not know how to make it work correctly.     
asked by 31.05.2018 / 18:31
1
answer

Ajax add several users to letter Api trello

I explain my case: I am generating three letters by tagging several users, each user has his "code" for example (5891c93eb1cyl471ee1fe47c) I have a function that adds 5 users (this function is called from another) the case is that I'm doing a PO...
asked by 29.05.2018 / 07:54