jquery

Dynamically create text in dialog box

How can I dynamically set the text of the dialog box that I'm opening? I've tried a few different things but they all respond with an empty dialog box. Here is my current try: $('#dialog').text('Click on the link to download the file:'.data); $('#dialog').dialog("open"); ...

Problem with jQuery Autocomplete

I try to integrate the jQuery Autocomplete plugin [1], but doestn't work for me. Here my code: $('#input').autocomplete(function(term) { var searchUrl = urlBase + 'tagging/autocomplete/?term=' + term; $.getJSON(searchUrl, function(jsonData) { test = jsonData; console.log(test); }); }); Th...

concatenate with jquery

Hi, I tried to concatenate a string to a div with its value but I can't please help. Here is my little codes var server = 'server name: ' $('#div').load('myservername.aspx'); I like to display at div id is server name: myserver Thanks. ...

JQuery determine if one or more select has 3 options

Hi, I have a page that contains 20 select's with a class name of '.ct'. I need a selector that determines if a select exists that contains 3 or more options. Thanks, Chris ...

jQuery IE7 - Click only registers to first element in path

$('div#Categories > div.categories a#showhide').click(function(){ // Get the subManufacturers list var subCatList = $(this).parent().find('ul#hiddenSubCategories'); // If collapsed do expand if (subCatList.css('display') == 'none') { subCatList.slideDown('slow'); $(this).f...

How to enable jQuery Intellisense in Aptana?

I have Aptana and i installed Aptana Support for jQuery plugin. Now i oped a javascript file, but can't see any jQuery Intellisense, How to enable that? ...

Mouseover/hover effect slow on IE8

I have noticed a weird performance thing in IE8 when using mouseover events on a table with many rows (100 in this example). I have tried a lot of different approaches but I can't seem to find any way to get it as fast as I like/need. If I switch classes on each event the performance goes down in all IE versions, and If I use direct man...

Object Expected using JQuery with BlogEngine.net

I have the following code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(document).ready(function() { }); The page fails on load with "Object expected". If I hover over $(document) in Visual Studio, it expands to show ...

Manipulating and Converting Table Items using jQuery

Ok, I've hit a brick wall. I have a project where I need to convert items (Photos) listed in a table into a UL for further jQuery Manipulation (ideally using jQuery Cycle - http://www.malsup.com/jquery/cycle/ ). I had located this Stack Overflow post (http://stackoverflow.com/questions/577669/how-to-transform-html-table-to-list-with-jqu...

Rich Grid (grouping, sorting, paging, etc) that work on ie6

Hi there: I m looking for a feature rich grid ( sorting, grouping, paging , ideally filtering, etc) grid that will work well under ie6. I would prefer it to be an open source solution with a big community. However the client experience is the priority. The most obvious contender so far is ExtJs or GXT. I have a .net serverside , quit...

JQuery enable button based on select

Hi, I have a page that contains a collection of select's that are used to identify the columns in a text file. Each time a user identifies a column the selected option is removed from the other selects on the page. When the user has identified all columns the "submit" input needs to be activated so the user can move to the next step. I ...

jquery if div id has children

if (div id=myfav has children){ do something } else { do something else } The if condition is what's giving me trouble. I tried all the following: if ( $('#myfav:hasChildren') ) { do something } if ( $('#myfav').children() ) { do something } if ( $('#myfav:empty') ) { do something } if ( $('#myfav:not(:has(*))') ...

Table does not keep selection

I am using a Wizard approach. In the first screen, I have used logic to highlight rows of table. User moves to second screen/page and now user is asked to fill textbox and submit the form. After submitting form, when user returns to the first screen/page, the rows are not highlited anymore. Please share some code of how to retain table...

jQuery ASP.NET MVC - $.post() to a different URL path in different environments

Consider the need to $.post() to a slightly different URL structure in the Visual Studio Dev environment vs. deployed IIS Production or Test environment. When deployed to the Test server, the app is running under a Virtual Directory in IIS. The URL will be something like: Deployed URL: http://myServer/myApplication/Area/Controller/Ac...

Update table data based on dropdown box selection

I have an html table of data with a drop down box in each row. If a user changes the value of the drop down box, I want the data in that row to change (based on a database call to lookup the associated data for the new value of the dropdown box). As a basic example, suppose a table showed players on a basketball team along with their h...

Problem with asp.net mvc and google maps

I'm just getting into asp.net mvc and jquery so this might be a "stupid" question. I'm developing an mvc application which contains a Google Map. I've used this blog post as an inspiration http://mikehadlow.blogspot.com/2008/10/using-google-maps-with-mvc-framework.html and it's working as expected. The problem occurs when I want to...

Jquery $this or each() to specify one link at a time

Im finding jQuery to difficult to learn as there seems to be many ways to write the same thing. As an exercise I would like to take the text within anchor tags and stuff it into the links href attribute. eg <a href="">http://www.something.com&lt;/a&gt; to become <a href="http://www.something.com"&gt;http://www.something.com&lt;/a&g...

jQuery - get select with exactly 2 options

I need to find all select's with exactly 2 options. The code I'm using is: $('select.ct option:nth-child(2)') but it seems to get everything with more than 2 options. ...

Dynamic jQuery asp.net mvc messy code, how to refactor more cleanly

I'm building a very interactive site with lots of ajax type functions. I'm starting to end up with a fair amount of message Jquery code, all nestled in together with my bee sting tags. For example <% foreach (var group in Model.GroupBy(item => item.goalId)) { %> //$('#AddNew2<%= Html.Encode(group.Key) %>').html('<input type="text" nam...

Send JSON to webmethod ?

How can i send a JSON object to a webmethod using jQuery? ...