Posts by Carlos Martins • 341 points
12 posts
-
3
votes2
answers44
viewsA: Insert minute by minute into function
Format the time this way: https://stackoverflow.com/a/1699980 sprintf('%02d:%02d', $h, $min);
phpanswered Carlos Martins 341 -
0
votes2
answers675
viewsA: Add PHP to ASP.NET
Why don’t you leave the authentication and client area in PHP, develop everything else in ASP.net, and just make sure that the user is authenticated when accessing the ASP.net pages. Correct? You…
-
1
votes2
answers992
viewsA: Change the color of a div with a setInterval
Taking the example given, this must be what you want. <a href="#target1" class="panel">Target 1</a><br/> <div id="right"> <div class="panel" id="target1"…
-
4
votes2
answers70
viewsA: Problem with a Javascript function
Removes the . jQuery selector in functions hasClass, addClass and removeClass. Try: $(document).ready(function () { $(window).resize(function () { var $element = $("nav"); /*Abaixo de 768px, add a…
-
0
votes3
answers1028
viewsA: File download does not work
You’re having some problems with the code. Although I haven’t tried it, have you tried it? I adapted the idea from here. Response.Clear(); Response.ClearHeaders(); Response.ClearContent();…
-
2
votes2
answers1062
viewsA: Develop for windows ce/mobile in visual studio 2013
We can’t do this migration. I’ve been through the same problem and the only solution I had was to keep both versions of Visual Studio and switch between both. I found this answer a similar issue in…
-
1
votes3
answers1148
viewsA: Take a variable value from Sql Server
The query being saved in the @Querystring variable exceeds the size. You need to declare the variable to varchar(5000). Declare @QueryString as varchar(5000)
-
1
votes1
answer112
viewsA: Make a javascript work within a URL
If I understand what you want to do, you have to do something like: <a id="link" href="http://www.example.net/?q="></a> <script type="text/javascript">…
-
0
votes1
answer615
viewsA: Drag and Drop - Javascript or Jquery
Take a look around in this example. You’ll have to: change the way the reset is triggered - instead of pressing the reset button, it is when you drop an item into the void; instead of resetting all…
-
0
votes3
answers719
viewsA: Adapt JS Code to IE8 and IE9
The solution to your problem I think is here. I tested on IE7+ and it works. <style> #preview_ie { FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale) }…
-
0
votes2
answers92
viewsA: Javascript Xmlhttprequest Scope Function
function getMensages(callback){ var xhr = new XMLHttpRequest(); xhr.open('GET', '../mensagens.php'); xhr.send(); xhr.onload=function(){ if (xhr.readyState==4 && xhr.status==200){ jsonText =…
-
4
votes1
answer3617
viewsA: How to remove bookmarks from a map with the v3 API?
Following the Stackoverflow-en question (this), what is in the markers[] array is only objects with the information to create the markers, not instances of google.maps.Marker. You have to store the…