Posts by Leonardo Rodrigues • 709 points
23 posts
-
0
votes1
answer44
viewsQ: Reading values from a string
I just started studying c++ and I don’t quite understand it yet. I need to get a lot of information on each line of a string vector, so I thought I’d use the sscanf, however I am getting the…
-
1
votes3
answers649
viewsA: Binary tree removal
Well, you have to define which methodology to adopt. You can choose the node on the left, 30, as the new knot that will stand in place of the 40 and then in this case you will have to fetch the…
-
3
votes0
answers79
viewsQ: Complete expression
Well, I have something like this: /^perfil[\/]?([0-9]{3})?[\/]?([a-z]{4,5})?[\/]?/i And I need to create a function that by receiving the right information turns this into perfil/431/abcd/…
-
8
votes2
answers44856
viewsA: How to get ip from a user using php?
The simplest way to get the IP address would be using the variable $_SERVER, as $_SERVER['REMOTE_ADDR'] or $_SERVER['REMOTE_HOST']. However these 2 variables do not always return the correct IP of…
-
2
votes1
answer632
viewsA: 100% height on div does not work
For a child element, in your case margin-right, utilise height:100% the parent element in their case margin-site, must also possess height:100%; Because of height: calc(100% - 100px); the element…
-
3
votes2
answers1865
viewsA: How to create a shortcut within a page?
The object event brings information such as: Event.ctrlKey Event.altKey Event.metaKey Event.shiftKey Try: $(document).bind('keypress', function(event) { if( event.which === 78 &&…
-
0
votes1
answer36
viewsA: Help Form PHP Help
I see you don’t know the function well mail php mail(string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]]); $to = Recipient of the email…
phpanswered Leonardo Rodrigues 709 -
1
votes1
answer208
viewsA: Autocomplete UI bring images
There is a method called _renderItem It is a bit complex, and is used with images and not icon fonts, but I believe you would like to use it: (function($){ var $project = $('#project'); var projects…
jqueryanswered Leonardo Rodrigues 709 -
1
votes3
answers918
viewsA: How do I make the OPTIONS list of a SELECT transparent?
Would this be: body{ background:#000; } select{ background:transparent; color:#fff; } select option{ color:#000; background:red; } <p class="control is-expanded"> <select class="select"…
-
2
votes1
answer808
viewsA: htaccess does not load CSS with second parameter
Well, this is a fairly common problem when using urls amigáveis, there are several ways to solve it, the most basic would be to request your css with an absolute link: <link…
htaccessanswered Leonardo Rodrigues 709 -
4
votes2
answers181
viewsA: Modal Bootstrap - Navigate element within modal
Would that be: $(function(){ $(".modal").modal(); $("[data-toggle='modaltop']").click(function(){ $(".modal").animate({ scrollTop: 0 }, "slow"); }); }); <link rel="stylesheet"…
-
1
votes2
answers326
viewsA: Open updated PDF file
There are several ways to solve this problem, from html to javascript. However the easiest one would be to create a variable link, being by the name of the pdf file or by a parameter: echo '<a…
-
1
votes1
answer56
viewsA: jquerymobile alignment error
There are blanks between your Divs, so one is played down, usually problems like this also occur when coding, which is easily changed by Notepad++(Using UTF-8 Encoding (without GOOD)). Try this way:…
jquery-mobileanswered Leonardo Rodrigues 709 -
4
votes1
answer2079
viewsA: Scroll bottom in click event
You can do it this way $("input").click(function(){ $("html, body").animate({ scrollTop: $(document).height() }, 500); }); Source: stackoverflow Behold: $(function(){…
-
3
votes2
answers103
viewsA: How to insert a set time into a function
$("form").submit(function(){ setTimeout(function(){ window.location = 'minha URL'; }, 5000); }
-
0
votes1
answer44
viewsA: How to view 2 tables within a mysql database?
Starting from the premise that within the table magry_users fields use their names as id e nome, use this mysql call: $query = sprintf("SELECT `magry_awoaffiliate_referral`.`referral_user_id`,…
-
3
votes1
answer259
viewsA: Pick index of a div with equal classes using mouseover() Jquery
When you say position eq() would be the index of the element? If so, you can use .index() $(element).mouseover(function(){ alert($(this).index()); }); I created a little example, if that’s it:…
jqueryanswered Leonardo Rodrigues 709 -
2
votes2
answers1174
viewsA: Export sql server query result to txt file on apache server automatically
For this you will need 3 php functions: fopen, fwrite, fclose fopen: php.net/fopen $file = fopen(string $filename , string $mode); $filename: Path to the file to be used $mode: How you will work…
-
0
votes1
answer44
viewsA: Assign dynamic names
Yes exact. And I was wondering if there’s a way I can automatically assign " name=pertg1_rest1", "name=pertg1_rest2", "name=pertg1_rest3", "name=pertg2_rest1" and so on You are using input radio, if…
-
2
votes2
answers1032
viewsA: Remove tag (strip_tags()) html along with content - PHP
You can use preg_replace $yourString = 'Hello <div>Planet</div> Earth. This is some <span class="foo">sample</span> content! <p>Hello</p>'; $regex =…
phpanswered Leonardo Rodrigues 709 -
1
votes1
answer38
viewsA: Create radio buttons form
Good friend, your question is somewhat incomplete, as well as your database. I couldn’t quite understand if your problem is in relating and getting options to the questions or pulling them from your…
-
2
votes1
answer594
viewsA: HTML+CSS Wanted to put a radio button as a symbol
You can only use html+css to do this, very easily using the 'for' attribute, I created a basic example using a class inside the radio input, see: .personalizado{ display:none; }…
-
2
votes1
answer3267
viewsA: Stylized Bootstrap checkbox does not work
Utilize for="input_id" in label <input class="checkbox-nice" type="checkbox" name="recursos" id="recursos-1" value="Chat Interno" checked> <label for="recursos-1"> Chat Interno…