Skip to content
Advertisement

Tag: jquery

Event handler returning undefined?

Let’s say I was attaching an event handler of jQuery click event to one of the function of my objects. But why does it return undefined on my properties? Answer You’re passing the function referenced by buttonView.onClick, but it’s association with buttonView is not retained. To retain the reference via this, you can use the jQuery.proxy()[docs] method. Now this in

URL Encode a string in jQuery for an AJAX request

I’m implementing Google’s Instant Search in my application. I’d like to fire off HTTP requests as the user types in the text input. The only problem I’m having is that when the user gets to a space in between first and last names, the space is not encoded as a +, thus breaking the search. How can I either replace

Convert UTC date time to local date time

From the server I get a datetime variable in this format: 6/29/2011 4:52:48 PM and it is in UTC time. I want to convert it to the current user’s browser time zone using JavaScript. How this can be done using JavaScript or jQuery? Answer Append ‘UTC’ to the string before converting it to a date in javascript:

Data graphing with html [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 6 years ago. Improve this question A line chart that updates every couple of seconds and doesn’t

How to detect DIV’s dimension changed?

I’ve the following sample html, there is a DIV which has 100% width. It contains some elements. While performing windows re-sizing, the inner elements may be re-positioned, and the dimension of the div may change. I’m asking if it is possible to hook the div’s dimension change event? and How to do that? I currently bind the callback function to

document.getElementByID is not a function

I’m learning jQuery and was following a tutorial, a very strange error has perplexed me. Here’s my html : and The jQuery : When I add elements By hitting the return key, there’s no problem. But When I click the Submit Button then firebug shows this error I tried to use jQuery instead replacing it with This time the error

Validating css color names

I’ve written a jQuery plugin that accepts css colors for some of its parameters. I want to validate them. If it was just a hex or rgb value I could do that with a regular expression, but how do I validate all 147 valid color names without bloating the plugin? I was wondering if there is some way of attempting

Image Enlarger Script

I am looking for one of those scripts that when you click a Thumbnail, it makes the picture englarge. I tried searching Google using a lot of terms, but cant find any. Where do I get these? Answer I believe one of these are what you are looking for. http://leandrovieira.com/projects/jquery/lightbox/ http://jquery.com/demo/thickbox/

Advertisement