jquery

How to dynamically create a fully functional gridview in javascript with the results returned from a script service.

Hi i need to create a fully funnctional gridview with the results returned from a script serice ( AJAX enabled WCF Service ). The grid should allow user to sort and page the data. could any body drive me to the proper technology or a useful link. thanking you, Ramana kumar. ...

Jquery Ajax loading form on asp.net webform

I'm loading using $.load() a .aspx page on a div of a parent .aspx, let's say. When the content is loaded a new form is placed in the code, inside the aspnetForm. I've done this before in a very similiar way, but this time the submit button is submitting the new form to the ajax loaded page, not the aspnetForm parent page. Edit: More ...

jQuery BlockUi Message after another

Hello, I'm using jQuery BlockUI plugin, and i have been able to sucessfully show a single message in the page, however... let's say that I want to show 3 messages , one after another. Something like: message: 'hello world!' message: 'hello galaxy!' message: 'hello universe!' how do I do this with jQuery BlockUI? ...

Why do registered events disappear when an element is removed from DOM?

This jQuery 1.3.2 code adds an element to the page, registers a "click" event, then removes and reattaches the element: var button = $('<button>Click me!</button>') .click(function(){ alert("Hello") }) .appendTo('body'); $('body').html(''); button.appendTo('body'); The button appears on the page as expected, but clicking on it ...

jQuery + get.JSON + Last.FM problems

I am trying to customize this script so that instead of a user's recent tracks it will display a user's favourite artists. This is what I have come up with, however it doesn't work whatsoever. I thought it would be easy changing the attributes of the feed, but obviously not... (function($){ $.fn.lastFM = function(options) { var defaul...

The list must filter results as user types in the Input Box.

I have an Input Box on my Form. When user types in, say, a name of any person, all names that match the entered keywords must appear in a list just below the Input Box. The user must be able to select from the DropDown list and on pressing enter, the DropDown list must disappear. Is there any JQuery tool for this? ...

Trail effect with jQuery ?

Can this be done ? Basically I want to animate an absolute-positioned image with right:xxxPX, let's say. Well, when the animation is in progress, can I add a "trail" effect to it? Thanks, Adrian ...

How to refresh page with jQuery Ajax?

I want to refresh a full page with ajax, after clicking on some initial site link. Example: We have opened site www.love.com, it has a link to www.love.com/somepage.html After we click on this link, full page must be refreshed with ajax (replaced active page by somepage.html) And there is must be some fadeIn/Out effect, when the page...

jQuery: Ajax call to asp.net webservice fails, server return 500 error

Ok, so I created a test project just to verify that jQuery AJAX works with asp.net service, and it does no problems. I used a default HelloWorld service created in VS studio. I am calling the service via jQuery like this: in Default.aspx: <script language="javascript" type="text/javascript"> $(document).ready(function() { ...

How to be able to preload jquery contents into hidden tabs for ie browser

The problems im facing is when I use something like jcarousellite inside tabs. It works fine in browsers other than ie. In ie, the carousel loads fine in the active tab, but in the inactive ones it doesnt preload. Basically when you click on a previously inactive tab, it displays nothing until you click outside the tab. I have narrowe...

qUnit Teardown method

Is it possible to have teardown methods that run after every test in qUnit? If not, are there any plugins around that will do this? ...

How do I select an element based on its content?

I need to be able to select an element that has certain content (innerHTML). e.g. I have some anchors each with a number as their text. How can I select the anchor with '1' as its text? I have tried this $('a[innerHTML="1"]') this seems to work in IE but not ff or chrome! ...

jQuery selector question

I have encountered code that leverages jQuery, similar to the following. NAMESPACE = { propertyA : $("#selector-a"), propertyB : $("#selector-b") } $(NAMESPACE.propertyA).click(function(){ // ... }); This seems to work, even though the syntax for attaching the click handler should be. NAMESPACE.propertyA.click(function()...

jQuery validate, can't get it to work.

OK, beating my head against the Javascript/jQuery wall over here, here is the code, which I simply can't get to work properly, any help is highly appreciated! Especially this bugs me, changing row 60 from c.gbForm.validator = c.dom.gbForm.validate(c.gbForm.validator); to c.gbForm.validator = $("#gbForm").validate(c.gbForm.validator); a...

Warning: already initialized constant JAVASCRIPT_DEFAULT_SOURCES

I switched from prototype library to jquery with jrails plugin. After that I've got the warning: jrails.rb:17: warning: already initialized constant JAVASCRIPT_DEFAULT_SOURCES jrails.rb looks like: ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery' ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery.mi...

JQuery not behaving itself

Of course it's jQuery, and not my lack of understanding causing this issue, but just in case it is my incompetence, can someone please tell me how to return the text "Acme" within this tag? <div class="grid-56" id="1005" style="border:solid 1px lightgray;"> <div class="grid-20 bold"> <a href="#" class="id_select_company" id=...

jqmodal scrolling possible

Hi All, Is there a way to make my jqModal scrollable? I'm loading the content via ajax if that helps any? I tried adding the overflow: scroll and the scroll bars show up but it's disabled and shows the entire content. Any ideas? Thanks, rodchar ...

jQuery and codeigniter help

Hello, I am trying to get some data from a database on the fly and place it into a div, currently my javascript file looks like this, <script type="text/javascript"> $(document).ready(function() { //accordians for when the AJAX loads the content // hides the main_menu as soon as the DOM is ready // (a little sooner than pag...

jqGrid with multiselect how to check all checkboxes and top one at load?

How can I instruct jqGrid to directly select all checkboxes when I instantiate it? Can this be done as a parameter in the colModel somehow? ...

jQuery clone : should it clone DOM Level 0 Events ?

While reading the book jQuery in Action and playing with the first events handling example, I discovered that jQuery doesn't consistently clone DOM Level 0 events. It clones the inline events, but not those defined as a property. It could be a good thing to discourage the use of inline event handlers, but is is by design? What is one wan...