jquery

JavaScript on jQuery created code never gets called

This is my view in ASP.NET MVC. <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Administration.Master" Inherits="System.Web.Mvc.ViewPage" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server"> <script type...

function (blurClass) NOT WORKING IN IE

I can't get this plugin to function properly in IE.... Check out my homepage and look at the huge search field toward the top... www.naturalskin.com Whenever I refresh the screen the "blur" looses its function and I'm stuck with text..... Here is the script that I place in an external js page: http://www.naturalskin.com/src/js/javasc...

Greasemonkey - jQuery not loading

Hi, I tried to load a copy of jQuery 1.3.2 from jquery.com (because it seems 1.4.0+ aren't treated too well by GM) using @require. Even after I uninstall and reinstall the script, GM does not copy jquery-1.3.2.js to my gm_scripts folder like it should. Tried this almost 10 times today. Also, when I click on "Manage Scripts", it shows...

Multiple forms with shared fields

How to make multiple forms with shared fields? <input type=text name=username /> <form action="/users"> ... some fields ... </form> <form action="/admins"> ... some another fields ... </form> ...

How to pass db2 values to jQuery grid

Hello friend, I have a db2 table with certain columns. I have a stored procedure for select all table Can anybody tell me how to use this stored procedure to fill the json grid. Using asp.net mvc control.. thanks ...

Selector to select third list item?

Suppose a HTML markup like this: <ul> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li><!-- I want to select only this --> </ul> Would it be possible to select only the third list item in the unordered list element? I've been browsing the jQuery documentation but I can't find any selector that could do this. ...

jQuery: Sort div's according to content of different sub divs

I'm trying to create a somewhat complex sorting feature which neither uses divs nor lists. Unfortunately two hours of googling didn't help me. Here is the basic setup of my HTML: <div id="all_elements"> <!-- one element --> <div class="element"> <div cla...

MVC 2 Ajax.Beginform passes returned Html + Json to javascript function

Hi, I have a small partial Create Person form in a page above a table of results. I want to be able to post the form to the server, which I can do no problem with ajax.Beginform. <% using (Ajax.BeginForm("Create", new AjaxOptions { OnComplete = "ProcessResponse" })) {%> <fieldset> <legend>Fields</legend...

Jquery and Ajax to Dynamically load IFrame

I have a script that dynamically loads iframes inside a webpage. You can see the demo here: DEMO I want to use jquery to achieve a similar rseult, but with a nice sliding effect, and external links that load the iframe in another div. Basically, I have 10 links on a page. When the link is clicked, I want the iframe window to load in the...

Jquery and cometd problems with URL and 404 errors

I'm writing jquery client for cometd server (i'm using jquery.cometd.js plugin) and I'm running out of ideas why the simplest possible case doesn't work. The cometd server is behind apache (so it's running on this same domain) and all the requests are forwarded from uri http://wwwhost/cometd. The problem is that when I try to connect (...

randomise cycle content in jquery jcycle plugin

http://jquery.malsup.com/cycle/ Is is possible to randomise the cycled content with the jquery jcycle plugin? Cheers Andy ...

my getJSON code doesn't work in jquery 1.4.2

This is my first question on stackoverflow. I just wonder why my getJSON code doesn't work with jQuery 1.4.2, it worked smoothly with jQuery 1.3.2 though So here is my code $(document).ready(function(){ $('td.hps_ajax a').click(function() { id = this.id.replace(/.*hps_ajax/,''); if(confirm('Anda yakin mau menghapus ...

jquery.ajax multiple data problem

Hi, I've been trying to make this code work for the last 3 hours. I've tried about everytinh, but I'm still unable to get it to work. I only managed to send 1 data. When I use this code, I only manage to retrieve recaptcha_response_field. If I remove recaptcha_response_field, I retrieve recaptcha_challenge_field. However, I am unable t...

jQuery How do I move an element inside of another element

Hi I'm using grails navigation plugin and when it generates menus it put the sub navigation underneath the main menu, but i'm making my menu a vertical menu so i don't want the sub menu under the whole menu i want it under the active element. Example: this is how it generate the menu and sub menu <ul class="mainmenu"> <li>item1</li>...

ASP.Net MVC2 Client and Server Validation sharing the same code - is it possible?

With the excellent XVal by Steve Sanderson, it is possible to tell the client side validation to post the value being validated to the server using jquery. A method on the server then uses the same server side code you use for your server side validation, and returns simply a true or false to determine if the field is valid. The advanta...

How do I force a scrollbar in a <select> to go to the top of the list?

I have this HTML: <select multiple='multiple' size='3'> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> Using jQuery how do I force the scrollbar in the select to go to the top? ...

Changing values of (multiple) dropdown lists from one dropdown list in MVC

I have an MVC page, with some controls inside a form. The part I need help with: I have a bunch of dropdowns in a list. All dynamically named (drop{0}, where {0} is the id (really, its just a counter: 1,2,3,etc)). At the top of the list, I want to have another dropdown that will update ALL the dropdowns when it is changed. I've done sim...

How to imitate focus on a div element?

The scenario involves imitating a drop down list. Instead of the standard input select element, we're using a set of custom images in combination with a few CSS styles and jQuery behaviors. All in all, we have a drop down list that works just fine. The question revolves around a drop down list losing focus. A normal select element losin...

Showing div tags using jQuery

Hi, I am using VS.Net 2008. I have created a Ajax web application in C#. In the webform1 i have 6 div tags. In each of the div tags i am showing a .acsx file. Here i am able to move betwwen each of the tabs created using DIV and Jquery. Now when i am in UserControl1.acsx and click a button control in the webform1, I have to go to the la...

Can somebody tell me why this Jquery tooltip is not showing up?

<link rel="stylesheet" type="text/css" href="jquery-tooltip/jquery.tooltip.css"/> <script type="text/javascript" src="jquery-tooltip/jquery.tooltip.js"></script> <div id="baby" title="My tootip">The text</div> <script type="text/javascript"> $(function(){ $('#baby').tooltip({ track: true, delay: 0, showURL: false, s...