Questions tagged as 'javascript'

1
answer

Submit data from an input box using the enter key?

I want the value to be inserted into the HTML page using jQuery by pressing Enter . The code below is input simple HTML: <!doctype html> <html> <head> <title>Somar Arrays</title> </head>...
asked by 02.10.2015 / 23:30
1
answer

Store and retrieve variable containing HTML list using localStorage

I have a project and I'm using localStorage as the database. I use this to save a list that the user can edit and add like this: localStorage.setItem(local, $("#lista").html()); No html looks like this: <ul data-role="li...
asked by 04.10.2015 / 01:25
1
answer

Screen 'blinks' when clicking the menu before sliding to the destination

Take a look at this link Fun Wake Park click on the menu and you will notice that before the slide effect happens, the page go to the destination and come back quick with a wink, what can this be? I'm using jquery.easing , they told me t...
asked by 03.10.2015 / 18:44
2
answers

Javascript function to generate valid CNPJ

I need to generate valid CNPJ for the tests I'm performing, but I do not know how to create a function in Javascript and adapt it in Selenium IDE . I even found the script on the internet, but I played it in Selenium user-extension file...
asked by 02.10.2015 / 20:44
1
answer

Required checkbox with javascript to click on link

Good evening everyone! I'm making a website for a college job, and what I want to do is this: I have a simple HTML menu whose options are "Profile View", "Edit Profile" and "Remove Profile". In the latter, there is a checkbox saying that the...
asked by 31.10.2015 / 03:45
2
answers

Load Javascript function when opening page

I do not understand much of the subject, though, I'll try to explain. Currently when I pass the mouse over a div with the class tooltips , the following script is executed: $('.tooltips').tooltip(); However, I would like this...
asked by 30.10.2015 / 19:34
1
answer

Call a tab (javascript) through another page

I have a page called Products. This page has a group of tabs. Ex: tab 1, tab 2 and tab 3). I have in Home a link that needs to call the products page and with tab2 already open. How do I? The call to tab2 on the Products page is Tab 2 Java...
asked by 25.09.2015 / 17:18
2
answers

Resource Enhancement in Javascript

I have an Asp.Net MVC project where I use resource, but I'm having problems with accenting other special characters. Home Example: I have the following Resource: Name | Value MSG_SESSAO_EXPIRADA | *Sessão expirada!...
asked by 24.08.2015 / 19:54
1
answer

Google Maps appearing all gray

I developed an html but problem encounter to make it work, in my logic everything is fine but it does not run correctly. What am I missing? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//PT" "http://www.w3.org/TR/xhtml1...
asked by 25.08.2015 / 21:18
1
answer

Handle exception when doing replace of string via JavaScript

I created a simple JavaScript function to replace any string with a link within an area in my html. Until then I pass some parameters and this function does a replace in my html and inserted the links as desired. But now I need to handle some...
asked by 28.08.2015 / 18:37