Posts by abcd • 1,284 points
81 posts
-
0
votes0
answers650
viewsQ: Iptv load list - Delphi
I’d like to know, I have to upload an iptv list: Some of these lists are in . xml, but this is not. How do I import But I can’t figure out what follows every list of this: #EXTINF: -1, Martanela TV…
-
0
votes2
answers112
viewsA: Copy select and maintain selectedIndex
This is how I did it: Instead of just using prependTo, I cloned: clone().prependTo()... $(html).find("select").prop('selectedIndex', $(this).find(":selected").index()); $(this).remove();…
-
0
votes2
answers112
viewsQ: Copy select and maintain selectedIndex
I’m messing with a Select, where I select your index. The problem that after setting the index I have to put it inside a div. Only it does not receive the index set, it goes with the default. What…
-
2
votes1
answer472
viewsQ: How to replace an attribute of an HTML snippet that is string?
I have a variable where it contains several HTML codes. This variable is already mounted, what I have to do is replace an attribute that is in a child div (tabindex). Is there a function where I can…
-
5
votes1
answer130
viewsQ: jQuery plugin change attributes with $.extend
I created an object in a plugin above .fn. Because usually they are created inside the objects from there we do the following: (function( $ ){ $.fn.tooltip = function(options) { var defaults = {…
-
4
votes1
answer551
viewsQ: What to apply() - jquery for
I wonder what the function is for apply() in jquery. I am creating a plugin where I am using. By observation I see that it catches the this and passes as argument in function init. Then I can use…
-
3
votes1
answer3369
viewsQ: When to use this and when to use Event.target
Today a question arose, although with the tests I did managed to solve several of them. But this way, when should I wear e.target and when to use This . Because yesterday when I discovered e.target,…
-
1
votes0
answers44
viewsQ: How to use the Google Maps rightclick for mobile
Today I added an event to my map, in case if right-clicking, performs a certain event. I’m without cell phone to test. But cell phone has no right button. The google maps api converts this event…
-
0
votes1
answer43
viewsQ: Dynamic Data() Jquery Add
I would like to know the following. I am using the jquery’s data function. As HTML code is dynamically created, I cannot assign the date. //Aqui tem um each $('#div').append('<span class="vor"…
-
4
votes1
answer1005
viewsQ: Ajax Synchronous Xmlhttprequest
What should I do in this situation. I have a script where I have to disable in AJAX function the option: async : false . I do this because it returns a variable wrong, previous to the last one that…
-
3
votes1
answer652
viewsQ: Return in each getJSON - Jquery
I would like to know the following how do I give Return in a function created by me, in a situation below. Because it always returns Undefined the object, but when I give an alert it returns the…
-
0
votes1
answer126
viewsQ: Hash in url with JS plugin
I wonder if anyone knows any plug-in or script that picks up the url hash. But that is usual in all browsers. Take more than one hash per url. I know there are several examples on the Internet, but…
-
0
votes1
answer112
viewsQ: Convert JS timestamp to PHP
I wonder how do I convert this JS code to PHP: A = new Date(2020,1,1,0,0,0).getTime(); Although the result will always "be": 1580522400000 I’m doing like this: $d =…
-
7
votes1
answer480
viewsQ: What does this expression mean *=
I wonder what the meaning of *= both in PHP and Javascript: I have a JS function and I’m converting to PHP, then appeared this *= but I have no idea what it does. On the question of function is…
-
-1
votes1
answer189
viewsA: Remove all Infowindow in google maps
To work I have to do the following: map.data.addListener('click', function(event) { if(infoWindow){ infoWindow.close(); } var iwContent = 'FOI'; infoWindow.setContent(iwContent); var lat =…
-
0
votes1
answer189
viewsQ: Remove all Infowindow in google maps
How do I remove all info.window in google maps. Most examples give the following way: var infowindow = null; incia se clicar if(infowindow){ infowindow.close(); } My code is like this:…
-
1
votes1
answer127
viewsQ: Merge image and map Google Maps
I have the following situation. The google map and above the map I added an image. The problem is that when I add an event on the map, this event does not work from the image.. and vice versa.…
-
1
votes2
answers148
viewsQ: Google Maps Information
I would like to know the following... I have some map images, which indicate a certain coverage, I would like to add these images over google maps... I believe this is not difficult... The big…
-
1
votes1
answer26624
viewsQ: Take class name and jquery ID
Guys I have the following situation, I do a search on an object behind some classes, as we know the FIND() returns what is inside the selected class, using join with find o each, traversing the…
-
1
votes2
answers3248
viewsQ: Get HTML from multiple Divs with the same ID
I would like to know how to get content from a WEB page where I have several Divs with the same Ids. One looks like the other, the div 1, is like a Titulo, already a Div 2 as if it were the…
-
3
votes1
answer345
viewsQ: Tag Catch Size Other TAG
I wonder if there is in CSS, or JS something that makes a TAG that takes up space, make the TAG 'father' adapt to the size of the TAG 'daughter'. Ex: <iframe> <body>o Body possuí um…
-
0
votes1
answer356
viewsQ: Cookie not deleted - PHP
I don’t know what mistake I’m making when creating a class, but I’m not able to delete the cookie with my class. public function cookie($name, $value = 'nome', $expire = NULL, $path = '/', $domain =…
-
10
votes2
answers390
viewsQ: What types of attacks can I suffer with global variables and how to prevent
Thinking about creating a secure login and registration system, I want to take some measures, as I’ve been reading, I check several errors I committed, mainly regarding Global variables:…
-
1
votes2
answers226
viewsQ: Is using Prepared statements and bound values enough to avoid SQL Injection with PDO?
I wonder if it’s safe to search the database that way: $c = $conn->prepare("SELECT * FROM tb WHERE coisa = :post"); $c->bindValue(':post', $_POST['login']); $c->execute();…
-
1
votes2
answers156
viewsQ: Perform 3 simultaneous searches in the same table
I wonder if it is possible to perform 3 simultaneous searches in the same table. The situation is as follows: I have a table that contains let’s say the columns: Car, Material, IP, date Then I have…
-
1
votes1
answer90
viewsQ: GD does not work on file created in UTF-8
I would like to know how to proceed in a situation. Where by default I create all the files of the site with standard coding in UTF-8. But when I tried to create an image with GD, the image appears…
-
0
votes0
answers809
viewsQ: Secure login system php
I would like to know how you make a secure login system. Because it is difficult to get information from the user who will try to log in: Ex: echo getenv("username").'<br>'; echo…
-
0
votes1
answer55
viewsQ: How to use PDO on Eval()
I would like to know how to use PDO with the function Eval(), since the way I use is generating error. $id = "return $bd->fetchAll();"; eval("$id"); eval("return $bd->fetchAll();"); MISTAKES:…
-
2
votes2
answers1528
viewsQ: How to create validation with special characters
I would like to know how to create a validation with preg_macth() where you have to accept these characters from the keyboard: /^([a-zA-Z0-9]{6,40})$/ `~!@#$%^&*()_-+={}[]\|:;"'<>,.?/…
-
4
votes4
answers869
viewsQ: How to install Wordpress Multisite?
I am using the option of multi-sites Wordpress, but is not working as expected. I have enabled and created the subdomains, but returns: Not Found The requested URL /index.php was not found on this…
-
2
votes1
answer1092
viewsQ: Enable and disable Ttimer
How to enable and disable TTimer? I have a procedure: procedure TForm3.Timer1Timer(Sender: TObject); When I click on a download button, enable the Timer: Timer1.enabled := true; And when I click…