Posts by LeandroLuk • 4,989 points
276 posts
-
5
votes2
answers717
viewsA: Normalization of tables and relationships
In relation to this, as the Gypsy said, unless the students do not have the relationship with parents but with guardians. If it is only parents, we know that a person can only have 1 father and 1…
-
1
votes1
answer403
viewsQ: Instantiate a standard global function to call functions
I wonder how I can create a global variable (or global element, I don’t know what you call it) as in several plugins I see. Example in Jquery where to call any function related to it only have to…
-
1
votes1
answer4201
viewsQ: How to identify in windows event log when a folder is deleted?
I have an application that uses a folder c:\temp in windows and need to identify somehow if this folder was deleted to recreate the directory. To recreate, I have in mind to use the windows task…
-
3
votes1
answer119
viewsQ: Sorted list with next element on the right when it does not fit
I am creating a menu where I will have several buttons. To align the buttons I use a simple ordered list. I want to know if there is any way that, when no more buttons fit within the maximum height…
-
6
votes1
answer754
viewsQ: $. getJSON does not record return on variables
I created a function that takes the values of a JSON and (should send these values to variables within the function) so I could use these variables in the function continuation. The problem is that…
-
2
votes2
answers1558
viewsQ: Return parent tag ID when clicking a button
I have a set of buttons where I want to return the parent tag ID when a button is clicked to implement a function. <div id="botoes"> <button data-for="cod"…
-
0
votes3
answers1073
viewsA: Is controller returning HTML to View wrong?
If this view is only viewed by the user (without printing) I do not advise loading much data, after all, it will have to check the information there. If it wants to do a much more complete search,…
-
3
votes2
answers17274
viewsQ: Click on a button via pure javascript
I need to create some simple script where it looks for a class inside the page and whenever it finds such a class (this is always a button) the button referring to it should be clicked. Could you…
javascriptasked LeandroLuk 4,989 -
4
votes2
answers336
viewsQ: How to check the number of users who have accepted an event on facebook using the Graph API
I’m developing a website where it should show how many people have confirmed their presence at an existing event on facebook. According to the Graph API documentation, in order for me to verify this…
-
3
votes2
answers217
viewsQ: How to return the name of an existing object in a JSON
I have the JSON file below: { "uid1":{ "start_time":"20140815", "name":"name 1" }, "uid2":{ "start_time":"20141229", "name":"name 2" }, "uid3":{ "start_time":"20140809", "name":"name 3" }, "uid4":{…
-
2
votes1
answer883
viewsQ: Return data from a JSON by sorting from a key
I have a JSON file where in the records I have a key that defines a date in the following format: "yyyymmdd". I need to return the existing records in this file but sort them through this key. How…
-
0
votes1
answer321
viewsQ: How to return data from an event via the Graph API
I’m starting to test integrations with Facebook on my site and while trying to return information from an event using the code that is on API documentation I get the following error: code: 104…
-
0
votes3
answers89
viewsA: Equations in module
Here’s the solution I found: http://jsfiddle.net/leandroluk/6X7Ve/1/
-
2
votes3
answers89
viewsQ: Equations in module
I need to take the height of 2 elements, where these elements can have varying heights and then find the difference between the height of them as in the example: To = 20 B = 15 |To - B| = 5 How do I…
-
1
votes3
answers490
viewsA: Scroll bar not hidden in Internet Explorer
I managed to solve the problem, the fact is that when I had tested the overflow in the elements, I ended up not testing the same for the tag html. When I inserted the declaration overflow:hidden on…
-
6
votes3
answers490
viewsQ: Scroll bar not hidden in Internet Explorer
I’m creating a site where I use various elements div page size, and links in the top menu that directs to these div, making a page scrolling effect every click. My problem is that in Internet…
-
7
votes4
answers12949
viewsQ: Return Array with name of all files in directory
I need my HTML5 page to return a Array with all existing file names and extensions in a directory within my site. I can do this in other server-side languages, but I would like to do it in JS. there…
-
6
votes3
answers946
viewsQ: Run function for each class you find
I’m creating a mural of images inside thumbnails adjusting them automatically, where I use the calculation below: if($('.thumb img').width()<$('.thumb img').height()){//portrait $('.thumb…
-
6
votes2
answers750
viewsQ: Stretched image in Internet Explorer
On a page I’m developing, a web page where I have an image that fits itself according to the field space. to do this, I used the property max-width:100% that is advised on the web to make this kind…
-
5
votes2
answers750
viewsA: Stretched image in Internet Explorer
I found the solution by inserting in the image itself a value for an old tag that defines the width of the same cause that she be informed so: <img id="logo" src="img/logo.svg"…
-
6
votes2
answers1505
viewsQ: How to insert an image into a CSS file?
I use a program here in the company that in its Web module it has its logo inserted directly in CSS something like: #logo img{ max-width:100%; background-image: 'data|base64=acSs....'; } How do I…
-
5
votes1
answer1706
viewsQ: Working with SVG files dynamically
I am developing a web page where I use numerous effects in CSS. among one of them I realized that I can not ultilizar the filters in Firefox. Searching the internet I found some solutions that tell…
-
22
votes6
answers34688
viewsQ: How to send emails only with HTML5 basics
I am building a website to be hosted on a server that does not support PHP or other server-side language. I need to send the values of a contact form by email and my resources are only HTML5 and…
-
8
votes4
answers2543
viewsQ: Insert paragraphs from a JSON file into a DIV
I have a file json that in its contents it contains paragraphs. These paragraphs are separated by \n but when I insert the content the paragraphs are not separated and instead of line break I have a…
-
6
votes4
answers10238
viewsQ: Problem using paragraphs in JSON file
I’m creating a web application that uses JSON files to save site content. In these files are saved small fragments of text containing paragraphs. When I try to separate the paragraph using a \n\ or…
-
3
votes6
answers20110
viewsA: How to center the content of an element vertically?
If it’s to center a DIV on a page, so far they haven’t created any way to do it, now there are 3 ways to do it: Using an Absolute DIV: you place all your page content in a single div and this is…