I'm using LiveValidation for input elements. These come in a table retrieved with an AJAX call, and can be multiples of 4, anywhere between 4 and 36.
I'm using eval to call ... |
I'm using the jquery-tools tabs and carousel in a page I'm working on. The carousel is embedded within a tab, and the tab is loaded in a beforeClick callback.
Normally, the ... |
Here's my call:
CallMfttService("ServiceLayer/FieldingManager.asmx/GetUICs",null, SetUicValues);
Here's the WebMethod:
[WebMethod]
[ScriptMethod]
public List<string> GetUICs()
{
UserManager user = new ...
|
If we look at the latest jQuery source at http://code.jquery.com/jquery-latest.js we see the following:
var jQuery = function( selector, context ) {
// The jQuery object is ...
|
Let's imagine that we have object Animal
$.Animal = function(options) {
this.defaults = { name : null }
this.options = $.extend(this.defaults, options);
}
$.Animal.prototype.saySomething = function() {
alert("I'm ...
|
So I'm using this pretty standard jquery plugin pattern whereby you can grab an api after applying the jquery function to a specific instance.
This API is essentially a javascript object with ... |
Hi I've been playing around trying to recreate the way in which jQuery chains it's functions for it's "select" then "do" behaviour.
Note: I don't want to chain functions with jQuery, I ... |
|
I'm pretty new to javascript, and has built a script that is working in webkit but not in firefox. When i check for errors in firebug, I get this:
google.maps.Geocoder is not ...
|
I'm using a plugin for jQuery. It works great in webkit, but when I try it in firefox I get the following firefox error:
google.maps.Geocoder is not a constructor
$('.to, .from').geo_autocomplete(new google.maps.Geocoder, { ...
|
I am a newbie with javascript programming, but I found this javascript (MooTools) based query constructor very useful to implement in the website I am working on.
The live implementation can ... |
I have a JavaScript constructor like this:
function Box(obj) {
this.obj = obj;
}
which i want to pass an object as a parameter like this:
var box = new Box({prop1: "a", ...
|
Is there any way to hot-wire (or bootstrap, if you will) jQuery's constructor, in order to implement functionality in-front of it's default functionality. For instance; say I want to implement automatic ... |
I'm working with jQuery and creating some OOP Javascript functionality. The object and its constructor has the following structure:
var zoomin = new Object();
zoomin = function() { // This is my constructor
...
|
How is it that jQuery can do $("#foo").addClass("bar") and $.ajax()?
I'm creating a micro javascript framework and want to create a new instance of an object, such as $("#hello"). With this object ... |
If I issue
console.dir(jQuery.prototype)
I get a beautiful list of the methods and properties that are in the jQuery object. But constructor and init are in red with a little plus sign ... |
I'm seeing if I can make some object oriented javascript and I have the following code.
When I went to move my jquery event handler into the constructor I became confused because ... |
I have been trying to remove this Firebug Console Error from last few hours. The error which I am getting is:
c[l][k] is not a constructor
jquery-ui-1.7.1.custom.min.js (line 10)
Any siggestions would be really ... |
I have heard lot about Javascript: Module Pattern. But most of those articles explain how to make static classes i.e when we don't have to deal with instances and we want ... |
Line 576 of jQuery 1.7rc1 is:
return (new Function( "return " + data ))();
Now jshint complains with the warning
The Function constructor is eval.
What does this error mean? Why did the ... |
Hello,i am using var myDropdownOptions = new Option( "(Select)", "" , false, false );now i do not want the first option in the dropdown to be (select).i want the Options to start directly from the real values that gets fetched from a different List in sharepoint.How to disable the (Select) option?if i remove it, it comes as a blank values.Thanks in ... |
I'm not sure I follow you.Is "handleTabSelect_Pers" the name of a function, and you've stored thatfunction name in the tabSelectHandler variable, and so you want the selectcallback to call your handleTabSelect_Pers() function?If that's correct, and handleTabSelect_Pers() is a global function, youcould use: var tabSelectHandler = "handleTabSelect_Pers"; $('#tabs').tabs({ selected: '0', fx: { opacity: 'toggle' }, select: window[tabSelectHandler] });If it's not a global ... |
|
|
|
Both "constructor" and "typeof" are defective."typeof" is too "generalized" (e.g. null, object and array all rerurn"object", regexps and functions both return "function") and is thencrippled by browsers even more (e.g. "unknown" in IE, "function" fornodelists in webkit, etc.)"constructor" is quite good till you start bumping into a cross-frameissues (e.g. constructors of arrays are different objects in differentframes)Oh, and don't forget about ... |