0
votes
0answers
12 views

Call page.focusin and page.focusout constantly

I have an html page in which I have two pages. one page is without header tag other is with header tag Now when I start my app on the device page without header never calls focusin and focusout ...
0
votes
2answers
38 views

javascript event handling not working

I am following this link to learn about basic javascript but for some strange reason this little piece of code does not seem to be playing nice with me. Any suggestions on why I am not getting the ...
0
votes
2answers
38 views

Can hover event work with on() method?

jQuery noobie here. My code works fine when I run: $('.badge').hover( function() { $('.js-main-header').hide() $(this).find('.js-badge').show() }, function() { ...
0
votes
4answers
60 views

attempting to make enter button 'clickable'

I want to make a 'search' button clickable upon clicking enter. this is my html <input type="text" runat="server" id="txtSearch" onkeypress="searchKeyPress(event);" <input type="button" ...
0
votes
1answer
29 views

Adding an event listener to a div to perform an event if the div becomes empty (has no children)

My goal is the following: create a listener that will be binded to a div and it will fire up if there are no children left in that div. I keep seeing how to bind a listener to say onClick etc.. but ...
0
votes
2answers
37 views

multiple event listener in javascript

How to add multiple event listeners in the same initialization? For example: <input type="text" id="text"> <button id="button_click">Search</button> JavaScript: var myElement = ...
0
votes
1answer
36 views

how to close the table on click in javascript?

I have a table which takes the user details. The code is as follows <table id="record" border=1> <tr> <td>Emp Name</td> <td><input type="text" ...
0
votes
1answer
27 views

Can't add an event to a button

I am working on this Windows 8 test application and I'm using the grid app template. In the itemDetail.html I have the following HTML code (I removed all the other code in that div and added this ...
0
votes
1answer
48 views

Javascript event handler to execute after default behavior

In Javascript, how can I attach an event handler so that it gets run after the default action? <form target="_blank" action="submit.php" onsubmit="doThisAfterSubmit()"> <input ...
0
votes
0answers
21 views

Detect if an external font has loaded using JavaScript

I'm loading 30 external fonts and I need to detect if the font has loaded to let the user know that the application is ready for use. How can I do that? I know how to detect CSS, images and JS but ...
-1
votes
2answers
43 views

push method containing > in js code [closed]

I am looking into a large chunk of code but he problem is i dont know what one particular line is doing... they have include this symbol > into this push method.. i tried giving alert but could not ...
-2
votes
0answers
61 views

alert for push method shows syntax error [closed]

I am using push method in js.. i am trying to use an alert and display the value in push method... but when i give the alert it shows some syntax error... its working fine when i display alert for a ...
0
votes
1answer
47 views

Where should I add the JS event to make my links work?

Not sure of where to add my event, my links work when right-clicking and doing "open in new tab" so they are live, but when I try to just click/touch, they don't work. // Create mobile main ...
0
votes
1answer
62 views

can you retrieve a property using document.getElementById? [closed]

e.g i have a button with background-color:#FF0000, and i want to store that property(color) into a variable. I have tried this: var x=document.getElementById("button1").style.background; but it ...
0
votes
1answer
15 views

Custom function fails to trigger on backgrid:exitEditMode

I am using backgridjs for one of my upcoming projects , i want to call a custom callback function on backgrid:exitEditMode , i tried something like this below //Sample code snippet var Columns = new ...

1 2 3 4 5 447
15 30 50 per page