jquery

Accessing URL executes JavaScript

Hey, I've coded an HTML page using jQuery for loading content. Now if I want to link directly to a submenu, is this possible to do with JavaScript? So for example if someone goes to www.mydomain.com/submenu1/ then some JavaScript code will execute and load the needed contents? Thanks a lot :) Is it possible to realize that with htacc...

User Experience - How can you test a candidates knowledge and ability?!

Hello! I am interviewing candidates for a role that centres around user experience. The issue is that I am unsure of the best way in which I can test someones ability in this field (i'm used to grilling them with OOP questions for dev roles). I had thought of giving the candidate a PSD file and seeing if they can translate it into compl...

Jquery - Select first cell of a given row?

Hi, I have a table with images in one column. When I click the image, would like to get the text value of the first column in that row. I can get the whole row with this: var a = $(this).parents('tr').text(); However, I cannot isolate the first cell of the row. I've tried var a = $(this).parents('tr td:first').text(); But that...

jquery append + code-behind

I dynamically add rows to divStaff using jquery: $("span[id$='lblAddStaff']").click(function() { //$(".staff_tpl").find("input[id$='txtRate']").val("0,00"); var staff_row = $(".staff_tpl"); staff_row.find(".staff_row").attr("id", "Emp" + counter); $("div[id$='divStaff']").append(staff_row.html()); ...

Best way not to hardcode url's when using ASP.NET MVC with JQuery

Hallo guys, I'm using ASP.NET MVC with jquery and it's going great for now. Just, there is one question that is bothering me. How should I handle urls in jquery methods? I really wouldn't like to hard code it, like here: $(function() { $.getJSON("/Home/List", function(data) { var items = "---------------------"...

Is there any reason to prefer Prototype to JQuery?

I don't mean for this to be inflammatory, so please don't take it that way. As someone who has used Prototype a lot and JQuery a little, they both seem very similar, but JQuery (at least initially) looks cleaner and more well thought-out. At this point I am wondering, other than tight integration out of the box with frameworks like Rails...

jquery function not working in IE

Hi folks, i'm trying to get a JQuery function running in IE7. In Firefox and Safari its working fine. Now i tried to debug, and even the simplest function is not working in IE, so i guess its a problem of the whole call. <script src="js/jquery.js" type="application/javascript"></script> <script type="application/javascript"> $(do...

JavaScript does load before I suggested it should do

Hi i have a MasterPage (ASP.Net MVC) which contains a couple of loads for Jquery ui and under that a contentplaceholder for view specific scripts: <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../../Scripts/ui.core.js" type="text/javascript"></script> <script src="../../Scripts/ui.tabs.js" typ...

Invoke Remote ASP.NET WebService Using jQuery

I wrote a simple ASP.NET WebService Precompiled it and hosted it in a virtual directory. Webservice code: namespace Test.Services { /// <summary> /// Summary description for AgentService /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [...

How to change the selected option of a drop down box on clicking a particular div using jquery?

I have a drop down menu with options 'text,text area,drop down ,email' etc. I also have a list of links like text ,text area etc. When I click these link,the corresponding html element is created. i.e, if I click text, a text box is created. And if I click text area,a text area is created. Now I want the option selected in the drop do...

Disable all check boxes inside a table with jquery

I need to disable all the check boxes inside a table cell when clicking on a hyperlink inside the same table. I'm using the following jquery code to select all the check boxes nested inside the table. $el = $(this).parents('table:eq(0)')[0].children('input[type="checkbox"]'); $($el).attr('checked', true); For some reason this piece o...

jQuery select option image

Hi All, I want to display an image in the options of select box. How can i do it in javascript/jquery in CHROME. image text ...

textboxes with value

I have page with 3 textbox. I to find all textboxes which have value into it and print its text. How to do? ...

Keydown event codes

In a KeyDown event of a textbox, can i check for a range of keyCode For eg: if (e.keyCode == 90 to 97 || e.keyCode == 104 to 110) How do it write this the correct way? ...

Is it possible to print a GoogleMaps via jQuery?

Hi! I'm generating a GoogleMaps map in a dialog. So, is it possible to print this map? I've seen that it's possible if only I render this map to an image format, something like a printscreen of the map. But, I have no idea how to do this. Thanks! ...

jQuery Tabs and Gradient conflict

When I try using jquery gradient plugin with blueprint-css tabs plugin , I see that the tabs get disabled. http://wildindia.org/mwtest/grad.php ( demo link ) If you see the there, the Tab #2 is inactive. Does anybody here know the reason behind it ? - Anush ...

jQuery - Interrupt animation?

Hi, I'm using jQuery for some simple animation effects once user clicks something. However, if they click again before the first animation has completed, nothing happens. They must wait until the first animation has finished. Is there a way to interrupt the animation process and begin from scratch when a second click occurs? Thanks. ...

Problem with Opera and jquery keydown return false

Hi. I´m trying this on Opera 10 and doesn´t work: $('input').keydown(function(){ return false; }); This works fine in other browsers. Can anybody tell me something about this?? Thanks! ...

Using jQuery with HttpHandlers

Hello, I am trying to return HTML from a HttpHandler via jQuery. I am using the following jQuery javascript to call the handler: $.get('http://localhost:56964/LoadComments.axd?storyID=' + storyID ,function(data) { alert(data); }); The handler performs some processing and returns HTML. The problem I am having is that the above call re...

Jquery: How to find text in textarea

Hello, I have array of keywords. How can I find if any of these keywords present in textarea? Is there any plugin or function to do that? Thank you ...