jquery

SlickGrid C# Wrapper

I found this tease of a code snippet: http://codepaste.net/m6xsdi slickGrid.AddColumn( Column.ForId("riga") .Named("Riga") .ForField("id") .WithEditorFunction("TextCellEditor") .WithSetValueHandler("updateItem") .WithBehavior(Column.Behavior.selectAndMove) ).AddColumn( Column.ForId("c...

jQuery append DOM

All the examples of jQuery.append() seem to take an html string and append it to a container. I have a slightly different use case. My server returns me an XML that contains HTML text to be displayed, something like: <event source="foo"> <contents> <h1>This is an event</h1> This is the body of the event </content...

How do I limit the number of dropped items for a box?

I am just learning jquery, so this might be something easy. I am trying to make a really basic game that you can drop the name of the color onto the color box (to help learn about droppable and draggable). I got it working except a few problems. How do I limit the number of items to 1? (Is there a way to check if something is "droppe...

jQuery autocomplete append selection to div

I'm trying to insert a variable within a div (#cityInput) upon jQuery autocomplete selection. What am I doing wrong? var options = ["California", "Seattle", "Portland", "San Francisco"]; $(function() { $("#citySelect").autocomplete({ source: options, minLength: 2, select: function() { $('#chooseCity').dialog('clo...

jQuery.css() for IE Only styling.

I'm using jQuery to position elements in a submenu. The html looks like: <div class="menu"> <div> <a>Menu Option</a> <div class="submenu"> <div><a>Submenu Option</a></div> </div> </div> </div> menu has position: relative, submenu has position: absolute. IE8 and FF are rendering the submenu...

jQuery DOM append losing markup

This is related to an earlier question. I try to append HTML DOM returned in an AJAX response to an existing DIV. I see all the text, but it seems all markup such as bold, italic, etc is lost. My AJAX (XML) data is like so: <event source="foo"> <contents> <h1>This is an event</h1> This is the body of the event <...

Jquery function to amend first instance of id rather than all ids

My code is below. I have a javacript function which for every html div with id equal to 'plus+id' changes the attribute and html. I want it to only change one div with required id (the next instance of the div after the jquery function code) on the page rather than all the divs above and below the jquery code. Is this possible? $('#plus...

Draw dot on image using jQuery.

Hi there. I have the following code to track where a user clicks on an image: <img src="images/test.jpg" id="testimg" /> <script type="text/javascript"> $("#testimg").click(function (ev) { mouseX = ev.pageX; mouseY = ev.pageY alert(mouseX + ' ' + mouseY); }) </script> Wha...

Drag control over flash movie issue???

Hi All I'm using jquery to drag popup control around the page ,every things work fine but when the page has flash movie the popup doesn't appear over flash also when set z-index to 100 . is there any work around this issue??? $('.modalPopup').ready(function() { $('.modalPopup').draggable({ zIndex: 2700 }); }); ...

Very basic question about parent() and prev() in jQuery

Hi, I am handling a hyperlink's click event with a JavaScript function. I want to retrieve data from the hyperlink. The page looks like this: <div class="div1"> <div title="Title 1" class="div2"> <p class="p1"><a class="linkJs">The link in question</a></p> </div> </div> <div class="div1"> <div title="Title 2" class="di...

Load jQuery into Django

I have a really basic question. I'm trying to build some AJAX functionality into a Django project. I plan to use jQuery. Right now, I'm just running the code locally through Linux. I've been testing some code here so I'm reasonably certain that it works. But I'm having trouble figuring where to put the jQuery source code in combinati...

twitter like reply button using jquery and php get function?

i wanted to implemant the reply button so it takes a value through get function and put that in the update textbox just like twitter!! is thier a toturial or article, or you could guide me the right way i can do this!! ...

jQuery animate to transparent

$(".block li").hover( function(){ $(this).animate({backgroundColor: "#000"}); }, function(){ $(this).animate({backgroundColor: "#fff"}); } ); Need to change #fff to no color. Animation should occur from #000 to transparent. Any solution? ...

jquery name$= or name=

Lets say I have named some elements with the following structure: 1:0 11:0 21:0 When I was looking for the value of 1:0 I found that the following code returned everything with a 1:0 in it: alert($("[name$=" + arrayVal[i] + "]").val()); However when I took the "$" out it appears to only return the 1:0 in my above example. I did a...

Cannot call webmethod with jquery json

Hi, I use the protocol jsonp to call web methods, but i have this problem: Have this code on the webservice: public class Service1 : System.Web.Services.WebService { [WebMethod] [ScriptMethod] public string HelloWorld() { return "Hello World"; } } And this on Jquery with jason on client side: $.a...

jquery click event not firing in firefox

This function attaches the fancybox plugin to some images. When an image is clicked in the image slider, it opens the corresponding larger image within the '#hidden images' div. It works in Internet Explorer but does not work in Firefox (3.6.9). How do i get it to work in Firefox? <script type="text/javascript"> $(document)...

Parsing the url querystring using jquery and inserting the value in a textbox?

post.php?replyto=username&othervariable=value For example, if I click a link with this url, then I want to take the replyto=username value and insert the value in a textbox using jquery. function insertParamIntoField(url, param, field) { var anchor = document.createElement('a'), query; anchor.value = url; query =...

jquery datepicker not sending data on using .serialize() for populating the grid

I have a form with 2 input type="text" , 1 combo box and other contains ( combo box contains equal , after,before & between operators + start date(jquery datepicker)+end date(jquery date picker ) but when i am sending the data to server its not appending date parameters with the url using .serialize(). My approach: $("form#transactionF...

Question about iphone web app and jquery/xml/ajax solution

Here's some background of what i am trying to do: Ok, i am building an iPhone web app. Originally i was building it as one single page (index.php) with each "page" of the site being a <div> element and all of the contents of that page would sit inside the <div>. I originally wanted to create the app this way as one way to utilize JQTou...

jquery click event not firing in firefox part two

See here: http://stackoverflow.com/questions/3680011/jquery-click-event-not-firing-in-firefox Any idea why the code doesn't execute in firefox? ...