Posts by Sam • 79,597 points
3,121 posts
-
1
votes4
answers506
viewsA: Ajax, limit time even giving Reload on page
There are some ways to do this, with pros and cons: 1. Session Creating a Session, the client has no way to "cheat" because it is created on the server. The problem is that you will have to request…
-
1
votes2
answers367
viewsA: How to recover data from an html form and upload to an MS Excel file?
There is a form answered in a Stackoverflow post in English. You can adapt the code according to what you want. Follow the link:…
-
1
votes2
answers129
viewsA: Image loading inside for loop
Instead of using for, you can loop a function each time an image is loaded. // exemplo de uma array com caminhos de 4 imagens separadas por vírgula caminhos =…
-
2
votes1
answer1028
viewsA: Save array values to Mysql
I think there is a position error in the lines of the script. No need to place the connection string with the bank inside the loop for, just declare it once before the for. The connection line…
-
2
votes1
answer348
viewsQ: Make replace case insensitive in Classic ASP (Vbscript)
I have the string below: texto = "Meu texto" I would like to replace the word "My" and return it in bold. The result would look like this: Man text However, replace is case sensitive, that is, if I…
-
1
votes1
answer394
views -
1
votes2
answers1049
viewsA: mascara input html com javascript
see if it works (I took advantage of the friend’s code above): Javascript: function formatar(mascara, documento){ var i = documento.value.length; if(i < 14){ var saida = mascara.substring(0,1);…
-
0
votes3
answers805
viewsA: Delete records without updating page
You need to assign an ID to each release line. After the return of Ajax, this ID is removed. <script type="text/javascript"> function excluirLancamento(id) { if (confirm('Tem certeza que…
-
3
votes3
answers526
viewsQ: Onblur event cancels the onclick event in jQuery or pure Javascript
I have a field textarea and a "send" button just below, and added an event onfocus and onblur in that field. The onfocus increases the height of the field, and the onblur back to normal. I also…
-
0
votes1
answer51
viewsQ: Function to rearrange values in a group of 5 fields of a form, using jQuery
I have 5 fields of a form and I would like to, through a function, rearrange the values of the form so that the first fields are filled and the last empty ones, according to the values existing in…
-
0
votes2
answers150
viewsA: Javascript + Ajax not returning as expected
It seems to me that your problem lies in the variables: var strNome = $("#nome").attr("value"); var strEmail = $("#email").attr("value"); Exchange for: var strNome = $("#nome").val(); var strEmail =…
-
2
votes1
answer122
viewsA: How to serialize a checkbox form
I don’t know if I got it right, but take a look at this: First thing, give a DIFFERENT name for each checkbox: teste1, teste2, teste3 etc... <input type="checkbox" name="teste1" value="20.00"…
javascriptanswered Sam 79,597 -
3
votes1
answer823
viewsA: My site gets messy in Microsoft Edge, Firefox, and Safari. How to Resolve this Issue?
From my experience, a WELL-WRITTEN CODE has the same effect on any browser, it can only have some small variation in the font rendering or other details but that do not change the layout desired.…
-
1
votes2
answers166
viewsA: Open Window behind main window
Unfortunately what you intend is not possible. IE allows you to do this, but other browsers (Chrome and Firefox, for example) block this type of action without direct action by the user (such as…
-
4
votes1
answer99
viewsQ: Merge 2 different tables and display content sorting by number of views (larger to smaller) of the two joints in Mysql
Whereas I have 2 tables in the comic, "news" and "news", each with its own fields: It is possible to make a SELECT in both tables at the same time so that I return the 4 highest values of the…
-
11
votes5
answers11633
viewsA: How to do a LIKE ignoring accentuation?
Man, I’ve been there and solved the problem just by adding collate utf8_general_ci after the like '%string%', in this way: Select * from TABELA where CAMPO like '%texto_para_encontrar%' collate…
-
0
votes1
answer715
viewsA: Accent problem on IIS 10 (Windows 10) using classic ASP
Thanks for the help but I was able to fix it. The problem wasn’t in the server configuration. It was a include who was without the charset, and so "messing up" the rest of the page.…
-
1
votes3
answers1923
viewsA: Update values after dropdown change
Just create a function that updates the select Chosen, adding a new option at the select. I made an implementation in Sergio’s Fiddle that shows how it works, so just you adapt as you want:…
-
2
votes1
answer715
viewsQ: Accent problem on IIS 10 (Windows 10) using classic ASP
I did several searches 2 days ago and tried everything but I could not solve the problem, which is the following: I enabled IIS in Windows 10 64 bit home to use local pages in classic ASP. Until…
-
3
votes2
answers1489
viewsA: Asp Classic - Keep option select apos post on page
In paging toggle, you need to inform each page the value that was previously selected on <select>. Then you capture the value that was sent on submit and compares in each <option>:…
-
3
votes1
answer1146
viewsQ: How to catch the next month and the year in classic ASP?
For example: we are in March 2015. I can catch the next month of the current year using month()+1 concatenating with year(), that is, the month of April 2015. However, let’s say we were in December…