javascript-library

How to change size of CKEditor from javascript

Hi, I'm using CKEditor 3.2, trying to change the width and height of the ckeditor from javascript, i have used several methods, all unsuccesful: // doesnt work 1: CKEDITOR.instances.myinstance.width = 500; // doesnt work 2: CKEDITOR.instances.myinstance.width = 500; CKEDITOR.instances.myinstance.updateElement(); // doesnt work 3: CKE...

function for setting some default value in a editable field made by closure library in Javascript .

Hello, i am new to this forum. I want to set some value in the editable field made by closure library. please suggest some function so that given value is set and cursor is also set to end of the text. MY code is: var myField = new goog.editor.Field('editMe'); myField.makeEditable(); // myField.setHtml(false,response['msg']); this ...

Image viewport with zoom in Javascript

I want to display a huge image inside a viewport in a html page. I would like to be able to drag and drop the image to move it inside the viewport, like in Google Maps. Any library where I can find such component? Thanks in advance ...

Split date in javascript

How to split the following date in javascript, var date='2002-01-01'; The result should be as 20020101 Thanks.. ...

extjs - 'Store is undefined'

Hi all, I'm pretty sure this a trivial problem and i'm just being a bit stupid. Your help would be hugely appreciated. In controls/dashboard.js I have: Ext.ill.WCSS.controls.dashboard = { xtype:'portal', region:'center', margins:'35 5 5 0', items:[{ columnWidth: 1, style:'pad...

How to save (preserve) the zoom state of flot graphs on Update with AJAX

I have a simple application which polls database for data every minute. When new data is fetched, I am updating the graph using ajax. However, whenever I update the graph (re-plot it with new values added to plot data) the current state of zoom is lost. Before updating the graph, I want to preserve the latest zoom position. After updatin...

JavaScript Library Design

I have a general question about the design of JavaScript Libraries. I am trying to consolidate common methods into one js file so they can be reused by different scripts. I have taken a look at how the JSON library is structured and believe it was a good approach. JSON for Javascript. So they start off creating an instance of the cl...

Looking for recommnedation on JavaScript libraries in the leage of ExtJS and Qooxdoo for serious web application.

Hello. I'm looking for a JavaScript library for my web application. The application is very data intensive and has rich form controls (almost windows like). AJAX will be used liberally. The development platform is ASP.Net (mostly ASP.Net MVC will be used). I cannot pursue with ExtJs due to the price/license factor. I checked Qooxdoo but...

What future JS libraries have against ASP.Net and JSF components libraries?

Could you people share your opinions about future of JavaScript libraries as compared to ASP.NEt and JSF component libraries? Do you feel that Pure JS components are going to live around us for quite a some time? Or ASP or JSF would be a safe investment? ...

jQuery::Ajax success never occurs

I have an ajax call in the head section of my index.html $(function() { alert("Hello, World!"); $.ajax({ method: 'get', url : 'php/getRecord.php?color=red', dataType: "json", success: function (data) { alert(data); } }); }); For some reason, that alert(data) never gets called but the "Hello, World...

whats this javascript function doing

pg.testSearch.searchString.onkeyup = function(){ pg.testSearch.btnSearch.setState(); } ...

Is jQuery modular? How to trim it down?

Uncompressed, jQuery is 160KB in size. I did not see a way to exclude seldomly used parts of it like with jQuery UI. How can I reduce the (compressed and minified) file size of jQuery? I am quite concerned because dial-up lines and slow machines/browsers are very common among users of my site. My main concern is parsing duration of the ...

MooTools Problem in IE with Request

I have this class method in a mootools class: getData : function(){ var r = new Request.JSON({ url : this.container.getAttribute('data-url'), method : 'post', onSuccess : function(j){ this.cards = j; this.prepareQuiz(); }.bind(this) }).send(); }, In any browser aside from IE this works fine, but in IE...

javascript library to display / animate 3d objects?

Hi, I have saw some time ago library where you can import your 3d objects and it will draw those out. You could also animate the objects. The webpage itself was back and there were rotating gear at the corner... Can anyone recall the name of the library? Also you can mention if you know some other neat js libraries. Thanks! ...

FireFox nsFormAutoComplete.js Where are the "settings" stored for getBoolPref()?

When I type text into various text boxes on pages using FireFox (3.6.3), I get the following error: Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getBoolPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/compon...

Disable subgrid expansion for selected rows of jqGrid

Problem: jqGrid with subgirds. I want to disable the expand/collapse functionality for some rows of the main grid. ...

Nivo Slide using DIVs instead of IMG

Hello jQuery heros! :-) I've found Nivo Slider to be the best solution for my site. However, I want it to make DIVs to slides, and not IMGs like it does by default. I've tried to change all IMG to DIV in the JS-file, but ofcourse without any luck... Can anyone help me?? /* * jQuery Nivo Slider v2.0 * http://nivo.dev7studios.com * ...

Javascript : where are high level data structures?

Hi! I'm writing a client program for a game in Javascript but I'm new in Javascript world. Core Javascript lack of high level data structures. I've found code snippets on internet but I'm looking for a reference library (like commons-collection or google-collection in java world). I found this post: http://stackoverflow.com/questions/...

Javascript Rich Display WYSIWYG Component/Methodology

quick back story-- I am working on ASP.Net based template editor that lets authors create text templates using Javascript inserted placeholder tags that will be filled in with dynamic text when the templates are used to display the final results. For example the author might create a template like The word [%12#add] was generated dyna...

I need a 2D bone engine for JavaScript

Hello. I'm looking for a way to define a Bone animation system, I need a basic one, since my objective is to apply it for inverse kinematics, much like Flash supports. The desirable feature is that: I can set bones (as position in 2D, defined by 2 dots) each having an ID. So I can make an animation based on frames, ie: ['l_leg', [10...