jquery

How do I combine the 'before' method with the 'fadeIn' method in jQuery?

I have a line of jquery that is inserting a div before another div that is already on the page using jQuery's before method: $("#sendEmail").before('<div id="response"><h1>Success</h1><p>Your email was sent.</p></div>'); I want the new div to fade in, so I tried to combine the methods in two different ways, but both did not work corre...

Cannot get jQuery resizable to work: What am I doing wrong?

Here is my simple code to try and test if jQuery resizable is working. I use other jQuery components just fine using the google.load, and I've tried swapping out the google.load for a local version with no difference. I've tested in 3 browsers, I've copied code from several demo/tutorial sites (where it works find on their site). <!DO...

How do i add Javascript to an ASP.NET MVC View?

Hi folks, simple question i'm sure (blush). I have a simple View and I wish to add a JQuery DatePicker javascript to this view (and not every view, via a masterpage). I'm not sure what is the best way to do this. Second, I'm conscience of where/when my Javascript loads. I'm a fan of YSlow and it recommends that i add any scripts to th...

ASMX web service works on localhost but not on production server. Help please!

Hello all, I've been working on an intranet project where i'm using asmx web service as the DAL, and consuming them on aspx and htm pages via jQuery. On my development machine everything runs perfectly. When i deploy the app on production server i can't access the web service. I tried to access the web service directly via http like so ...

Add a new item to html-select list without leaving the page. How?

Hello all, I've always wondered what is the best way to add a new item to html-select in a website. Yes, this may sound silly but it is a great problem from the usability perspective. I don't want the user to be taken to a new page every time they need to add new item to a html-select. I like the way Google Reader and Gmail handle this...

Dynamically Query a Database to check for value.

I need to check if a certain value "SheetNumber" is in my mysql database dynamically. I have seen it done on popular web sites and I am trying to find a good tutorial to outline it for me. I am fairly new to Javascript but i know a lot of PHP. I am anxious to learn how to do this. Chris ...

How do I add a property to a Javascript Object using a variable as the name?

I'm pulling items out of the DOM with JQuery and want to set a property on an object using the id of the DOM element. For example: obj = {}; jQuery(itemsFromDom).each(function() { element = jQuery(this); name = element.attr("id"); value = element.attr("value"); //Here's the problem obj.name = value; }); If "itemsFromDom" in...

ui Dialog works once in IE

Hi, I hope someone can help with this problem. I am using ui Dialog that pops up on clicking a link with the same class. The problem is that the link work great once but if i click it again or another link with the same class then only the overlay loads but not the content box in IE only. It works great in firefox. My script includes an ...

Is there a way to use jQuery.getScript inside the AIR application sandbox?

I 'm trying to build an AIR application using the HTML/JS engine (not flex nor flash), but I'm facing an issue while trying to load dynamically a JS file form the application directory. Once the application has launched, if I try to load a script using jQuery.getScript method, the script is never interpreted and no error is thrown. I've...

craigslist rss feed

I'm trying to parse the data from a craigslist rss feed. This is the feed url - http://www.craigslist.org/about/best/all/index.rss I'm using jfeed and my code is given below jQuery(function() { jQuery.getFeed({ url: 'proxy.php?url=http://www.craigslist.org/about/best/all/index.rss', success: function(feed) { ...

onblur ajax not calling the callback function

I Have the following code which is called inline as below also. The problem is the alert never fires. In firebug i can see that data is filled with my object, but still the alert doesn't fire. Any ideas? function update(s_arrive) { $.post("../base/getDestInfo.asp", { "dest": s_arrive }, function(data) { alert('aa'); }, "json"); } <...

jquery change event trigger

Hello everyone, I have a problem in need of help of JQuery. JQuery give my input to increase the use of case change. the code: #(".inp").bind("change",function (){ if(isNaN(this.value)){ this.value = 0; } } When I first time to enter characters, change case happened, input values changed to 0 But when I enter the same charact...

Tabular Data With Paging and Sorting

My project details are as follows, Project Type : WCF client project Technology : ASP.NET MVC I am getting data from WCF service in the form of List<SomeInterface>, and the method for example "GetAllMessages(int ServiceChannel)" or the Interface "SomeInterface", doesn't expose PageSize,PageNumber. I am not using Model,as the data i...

How do I use JQuery to select a whole <li> tag and make it a link?

Hi I'm trying to create a news list summary section using <ul> and would like to make the whole <li> clickable. I'd like to use to first link it finds in the <li> as the URL so it remains accessible when JavaScript is not enabled...My HTML is:- <h3>Regional news</h3> <ul> <li class="alt clickable...

jQuery portlet and dialog box problem

Dear All, I create sortable element and attach an on-click event on every portlet to open dialog box, but when i open (drag more portlet to the main dashboard), and click the setup link (on the header of the portlet) the alert() (i setup for testing purpose) always fire for every portlet on the main dashboard, why is this happen ? B...

Given the link below how to slide with jQuery.

i have little knowledge about js or jquery, i need your help : Slide Example like that. Given the link below how to slide with jQuery. ...

jquery validation plugin selected control

hello I can't control radio buttons with jquery validation plugin. when i delete the default values, it works. But I can't post my default values. best regards ...

see if parent is checkbox

How can I check if "this" is a checkbox? This is the way to see if it is an selectbox if($(this).parent().is('select')) { Now can I see wether it is a checkbox? So I tried this: }else if($(this).is(:Checkbox)){\n But it gives me a syntax error. Any help is welcome. ...

jquery v1.3.2 find element by attribute

I need to find and iterate through all child elements that have specific attribute. The following code worked fine in jquery 1.2.6, but throws exception in 1.3.2 $(parentElement).find('*[@someAttributeName]').each(function(index){ doSomething(this); }); What is the correct way to achieve that? Thanks. ...

ASP.Net Master Page and File path issues

I'm trying to add a script reference to jQuery in my master page so that it will work for any page. It currently looks like this <script type="text/javascript" src="jquery.js"></script> The problem is that the path is always relative to the executing aspx page so this will only work if the "jquery.js" file is located in the same folde...