Questions tagged as 'javascript'

1
answer

How do I call the same ActionResult more than 1 time to refresh the page?

I need to call ActionResult each time I select a new record in the DropDownList by calling only once when the page loads. No Controller private string PegarCaminhoImagem(Int16 controle) { sistema_mobileEntities dao = new...
asked by 18.04.2015 / 01:01
1
answer

Problem with code

Okay, here's what I have: <form style="" name="form"> <input placeholder="Search..." name="name" id="fn" type="text"> <input style="display: none ! important;" value="Search" id="search-btn" type="submit">...
asked by 02.05.2015 / 03:06
1
answer

Including string from a position

I'm breaking my head with an item that maybe even simple to do but after twelve hours of work the mind does not help ... rsrsrsrs Friends, I have a query stirng, for example: &requiredfields=(Vencedor:vencedor).(Categoria:competitividad...
asked by 28.04.2015 / 23:14
1
answer

What to do for the javascript function n give reload on page

I have a javascript function that runs on the onclick of the new button and creates two HTML objects. The problem is that at the end of the function, the page is doing reload and deleting what was created. What can be done to prevent this and th...
asked by 05.07.2015 / 06:08
1
answer

Json line break

I'm trying to develop a system with Node.js and I'm trying to list the database's data in my table, but the data gets all together like this: IstilldonotunderstandmuchaboutJson,isitbecausehe'sthatway? This is my role listing: Usuario.find(...
asked by 03.07.2015 / 18:36
1
answer

Flag characters that exceed limit in textarea as in Twitter

I have this javascript function that counts characters typed in textarea and shows the user: function countPublishCharactersAbout(val) { var len = val.value.length; var count = 240 - len; if (count < 0) { $('#abo...
asked by 10.05.2015 / 23:41
1
answer

mysql_result equivalent in PDO

I am trying to pass from mysql to pdo but I do not understand how to pass that mysql_result to pdo, I appreciate any help available $limite = 10; $SQL_COUNT = mysql_query("SElECT COUNT('id') FROM anuncios WHERE categoria='$categoria' AND estad...
asked by 01.04.2015 / 18:54
1
answer

Shoot event (F11)?

Do I need to trigger the keyboard event (F11) through javascript? In order to trigger the fullscreen (full screen) once a certain web app is preloaded.     
asked by 01.04.2015 / 01:22
1
answer

Open iframe links

How do I prevent iframe links that have the target="_blank" property and open those links in another iframe only on the same page? Example: Content of iframe1: <a href="http://t.co/YJdEOEu8Dz" target="_blank">MEU VIDEO</...
asked by 31.03.2015 / 22:28
1
answer

Working with arrays, choosing only one die

I can have a composition of N elements in an array that can be arranged as follows: array with A, B, C and D ... 12 possibilities. arr1 = ["A|B","A|C","A|D","B|A","B|C","B|D","C|A","C|B","C|D","D|A","D|B","D|C"]; array with A, B, and C ....
asked by 01.04.2015 / 19:25