Tagged Questions
0
votes
2answers
74 views
How can I run a function as soon as an element has finished rendering?
I need to set the height of an element based on the height of another element. Let's say that when that element is finished rendering, it's 490px tall.
If I query that other element's height at the ...
2
votes
2answers
43 views
check if there is an internet connection
How to check if there is an internet connection in javascript?
I have seachred in google but I have not found a goog solution for my problem.
I have already two eventhandler:
...
0
votes
1answer
26 views
How to trigger a function in jquery when using Constructor pattern and prototypes for plugins?
The problem is as below (critics appreciated):
I am writing a jquery plugin as in the sample code below:
;(function($, document, window, undefined) {
$.fn.myPlugin = function(params) {
...
0
votes
2answers
45 views
i cant call 2 functions from onchange event
i have to call an ajax function as well as i want to call another function to get another value by giving the above text field as the input i want get the return ,form that function
here is code i ...
0
votes
1answer
60 views
How to focus the next focusable field in browsers whose keyCode is readonly?
When the user presses Enter button, the focus is being moved to next textbox.
This is achieved in IE. But I planned to support multiple browser. I have changed most of the places and which seems to ...
0
votes
1answer
31 views
capture event when the mouse pointer outside of the browser viewport
i am writing a simple infinite counter in javascript when the page loads it starts counting
i would like to stop the counter when the mouse pointer is outside of the viewport
please help?
...
0
votes
1answer
15 views
What is the advantage of using Kendo Mobile buttons instead of handling clicks?
I am developing a Kendo Mobile app and want to know what is the advantages of using a Kendo Mobile button instead of handling the same event using a regular jQuery click handler?
Some elements I ...
0
votes
0answers
19 views
Manually deleting the value in combo boxtext should clear values in all other text box using Ajax
I am new to AJAX, and looking for some help.
When, I select the username from the combotext box. the respective textbox(FirstName, LastName, EmailId..etc) get populated with data with repect to ...
-1
votes
0answers
24 views
deleting the value in drop combo box. should make null values in all other box using Ajax
I am new to AJAX, and looking for some help.
When, I select the username from the combotext box.
the respective textbox(FirstName, LastName, EmailId..etc) get populated with data with repect to ...
0
votes
0answers
9 views
iPad orientation info gathered from a child object (like Iframe)
I am working on a fullscreen Ad, served through a publisher site that I do not have direct access to. The Ad utilises the tilt information from the iPad to change colours on the Ad. Everything works ...
2
votes
2answers
43 views
Is it possible to add a click event to the anything slider controls
Hi I am using Anything slider in my website where I want to add a click event to the controls.
Is this possible? when I tried to do this my event is not triggering.Could anyone have idea about this.
...
0
votes
3answers
39 views
Is there any way to simulate mouse over to a particular x/y offset on particular element using javascript?
I need to click at an x,y offset of an image. How do I do it using javascript?
0
votes
2answers
16 views
Remaining char counter with popup
My task is to create a counter/limiter, which pops a window when the limit is reached. I made this code:
$(document).ready(function() {
$('#message-input').keyup(updateCounter);
});
function ...
-1
votes
4answers
43 views
Javascript function Call. Escape quotes in strings [duplicate]
Alright and my query is, How do I escape quotes in Javascript? I'm trying to alert the message with my code below. I know it won't work because it contains string in double quotes within the onClick ...
0
votes
1answer
32 views
Best way to bind events (with dynamiac data) to elements after ajax load in raw javascript
After html is entered into a container from a ajax response I would like to bind an event to various elements. I know this can be achieved by running addEventListener or on+event=function(){} right ...
0
votes
3answers
40 views
Javascript Text Input Calculator
I am somewhat new to javascript and I'm trying to make a basic calculator that has 3 text inputs, a 1st number text box, an operation textbox, and a second number textbox, but it doesn't print out the ...
0
votes
4answers
74 views
JavaScript - onClick copy text field value to drop down field
I have been researching how to copy a a text field value into a drop down menu and have only been seeing how to accomplish the opposite. Can somebody help me tweak this code so it will copy the ...
0
votes
5answers
57 views
How do i change Background color of textbox when onfocus?
i tried this code but its not working.. when i on-focus textbox it shows error
function ChangeBgColor(obj, evt)
{
if(evt.type=="focus")
style.background ...
2
votes
1answer
34 views
addEventListener not working in Chrome
I am following a tutorial on Lynda.com about the new DOM event model.
This is the code I am working with.
function addEventHandler(oNode, sEvt, fFunc, bCapture){
if (typeof (window.event) != ...
1
vote
2answers
28 views
Bind context when event binding on $(document)
The situation is like this:
I have a div which we can get using $('#container') and a child div of this div is ('#tracker').
On tracker I bind a event as:
$(document).on('mousemove', '#tarcker', ...
0
votes
1answer
28 views
How to change running site content with javascript?
Assume that, there are many checkboxs in any site and they are unchecked. Site works in any server. I have not site code. I want to make checked some of those checkboxs. To find checkboxes by value of ...
0
votes
0answers
13 views
textarea not shrinking when deleting character
I am trying to use javascript to shrink and grow automatically as the height of the scroll is increasing. The growing the height of textarea i acheived but when i am deleting the texts i can't figure ...
0
votes
0answers
59 views
Can we instantiate Java Objects in Javascript?
I know we can do this via DWR library to work with java objects in Javascript.
But I would like to know if we can actually instantiate Java Objects in Javascript, using plain Javascript objects?
I ...
0
votes
1answer
43 views
RE: How can I shorten this JS code? [closed]
I'm still having issues with a PictureReplacer[x]; It seems to me the only way I can call up the img is through img[x]
var img = new Array("images/flying-car-593.jpg", "images/flyingCar-article.jpg", ...
2
votes
3answers
64 views
how to solve NaN when i deleting number?
This is the code when i am adding in all textbox it works fine but after removing number it shows NaN
function sumVal()
{
var total = 0;
var coll = document.getElementsByTagName("input")
...
0
votes
1answer
51 views
Alternative to onblur/onchange in select
I am trying to find a way to run a JavaScript function when a user selects an option in an HTML select box, regardless of whether this option was already selected. So onchange is out of the question.
...
1
vote
1answer
24 views
using jquery to show previous td element
I know this kind of question has been asked 10 billion times.. I've considered them and used what I could.
Basically, I have a text field that I want rendered only when a button is clicked.
This ...
0
votes
1answer
41 views
JavaScript + invalid argument error with fireEvent('onchange')
Some simple event driven code. For whatever reason, I can't seem to pass 'onchange' as a parameter to fireEvent(). Throws me an invalide argument error in ie 7/8. This project needs to be native. ...
0
votes
0answers
17 views
Resetting conditions with event driven programming
In my html5 code, I have two buttons: one "Rectangle" allows the user to draw rectangles while the other "Circle" allows the user to draw circles. When the user clicks the "Rectangle"/"Circle" ...
0
votes
1answer
15 views
for loop to set open window on the onclick event
I have a calendar of the month and I need to open a new window that let's enter different info on the onclick event. So I have a for loop in which I set the onclick() event to many divs.The title ...