jquery

Can I use jQuery.extend to simulate method overloading?

I'm quite familiar with jQuery. I'm trying to write common methods for my own purpose. Here is a sample below: $.extend({ add : function(a, b) { return a + b; }, add : function(a, b, c) { return a + b + c; } }); Is the above scenario possible? Can I us...

Reversing a string in jquery

I'm trying to reverse an input string var oneway = $('#inputfield').val(); var backway = oneway.reverse(); but firebug is telling me that oneway.reverse() is not a function. Any ideas? Thank you ...

How to programmatically generate a window.event using Javascript?

Hi all: I am currently unit testing some javascript, where it handles an event raised by clicking on a certain item in the window. Below is a snipet of the code: function someFunction() { var evt = window.event ? window.event : event; if (evt == null) { return; } var nodeElement = evt.srcElement; if (nodeElement =...

best jQuery AJAX multiple uploader

Any suggestions? Possibly something very interactive that I can multiple-select files. Thanks! ...

How to post form data on an UTF-8 page to a western european (ISO) page

I need to post a form on a new website which is UTF-8 encoded. The problem is - i need to post it to a legacy site encoded with western european (iso). Certain characters gets messed up in the post (like danish special characters). It is not possible to change the character encoding on the legacy website as it would definately break stu...

jquery Accordion : drop down list is not getting hided eventhought the master containers visibilty is false

I have a page where i am using jquery accordion to show /toggle some content.I have placed all the accordion content inside a div called divAccordionHolder.When the page loads initially, i dont want to show this div,When user clicks a button in the page,the div which has accordion would be visible.I have set the visibility of the divAcco...

How do I invoke a SimpleModal OSX dialog on page load?

I was wondering if there is a way to invoke the SimpleModal OSX dialog box on page load? I tried http://stackoverflow.com/questions/522864/open-jquery-modal-dialog-on-page-load but wasn't able to make it happen. Currently, the dialog is invoked on clicking a button / link. I would like to invoke it on page load. Please help. :) Thanks...

What is strophe and how to use it with JQuery?

Can somebody explain what strophe is? I believe it has something to do with XMPP? How can I incorporate it into a site using Jquery? ...

Dynamic Jquery Splitter Plugin

Hi I am trying to use Jquery Splitter http://www.methvin.com/jquery/splitter/ it works fine if the splitter panes are static but i need to add panes dynamically in it. also i need to remove those panes dynamically as well. how can i remove the splitter binding and add dynamic split regions in it. please check it from here http://01webd...

Is it possible to populate a SELECT dropdown when clicking on it?

I'd like to have a bunch of SELECT dropdown lists on my page which can be empty initially. When the user clicks on one of them, I want an AJAX call to be made to the server to get the desired list for the chosen dropdown. The results of this AJAX call are then put inside the dropdown and the dropdown then works as normal. Is this possib...

Setting div background image using JQuery

Hello, Im using JQuery to set the background image of a div as follows: $(document).ready(function() { $('#pic').css("background","url(images/pic.jpg)"); }); But the image does not get displayed. How to fix this ? Thank You. ...

Javascript jquery to contact an API

I'm trying to connect to a webapi at a location that looks like this from inside my js jquery file. example.com/?var=input Is there a simpler way to do it than an ajax call? ...

What's wrong with this code?

For some reason, every piece of code that's below this snippet won't run... I don't see anything wrong with it ... window.navigationDropdownTimeout = 0; $(".navigation li.expanded > a").hover(function(){ clearTimeout(window.navigationDropdownTimeout); $(".navigation ul ul.menu").hide(); currentSubnav = $(this).next(); currentS...

Retrieve value from asp:textbox with JQuery

I have a few asp:textbox controls in a form on a webpage, below is a snippet. The first is a field where the recipient is entered, the other is a larger textarea where the recipients name should be loaded into, along with some other text. <asp:TextBox name="recipient" ID="recipient" class="inputBox" onChange="addNames()" runat="server" ...

I am looking for menu on JQuery

May be some body already used some open source component, writing on jquery. And I want to place this menu on right panel of my site. Thanks to advance ...

javascript setTimeOut - not running on nested setTimeout

Okay, I seem to be having a problem. I'm trying to create a twicker to display rows of data. I'm using jquery/javascript to hide and show rows after a certain time. Here's the code: <html> <head> <script type="text/javascript" src="jquery-1.3.2.js"></script> </head> <body> <script> var timer_is_on=0; function doTimer() { if (!tim...

Help Merge two jquery functions

Hey I have a datepicker, i want to only allow fridays to be selected, and i dont want any dates older than todays date to be selected. I have two functions. Both work when they are used seperately, but not when they are both present, i have tried, but cant merge them together, how do i do it? Thank you //Get todays date ...

Using thickbox with imagekit

I want to use jQuery Thickbox for displaying my images but so far when I click on a thumbnail all I get is the loading progress bar. I've set up my display as below (maybe this will help) <div class="thumbs"> {% for p in photos %} <a href="{{ p.original_image.url }}" title="{{ p.position.position }}" class="thickbox" rel="gallery...

Reminder Alert as in google for asp.net mvc

I need to show a message to the online users as alert popup like reminders in google calendar. Can we use any background process like web service/windows service to achieve it? Or is there any reliable way to do it? ...

JSON Delete Table Row

I'm trying to delete a row of data using JSON, however when I prompt a confirm dialog my javascript function doesn't work as follows: <script type="text/javascript"> $().ready(function() { $("a.delete").click(function() { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: this.href, d...