jquery

Json.net / ASP.NET web service - How to return and parse dates?

After much head scratching as to why my returned Json string is breaking JSON.parse, I have realized that it is the returned dates that it doesn't like. .net property:- [JsonProperty("start")] [JsonConverter(typeof(JavaScriptDateTimeConverter))] public DateTime Start { get { return _start; } set { _start...

Jqueryui: how to make a shadow around a dialog box?

I'm trying to put a drop shadow around a jqueryui dialog box. Something like: <div id="dialog-form" class="ui-widget-shadow ui-corner-all"> Some stuff in the box with a shadow around it </div> and then doing: $(function () { $("#dialog-form").dialog({ resizable: false, height: 300, width: 350, modal: true }); ...

store return json value in input hidden field

Hi all, I was wondering if it's possible to store the return json in a hidden input field. For example this is what my json return: [{"id":"15aea3fa","firstname":"John","lastname":"Doe"}] I would like to just store the id in a hidden field so I can reference it later to do something with it. ex: I have something like this... ... and...

Jquery getScript($.getScript()) not working on chrome?

Hello Guys, I have a problem using $.getScript() on chrome. It doesn't work on chrome browser. I've tested it on firefox, ie and safari and it worked. All I have on my external script is an "alert()" and it doesn't work. Here's the code: page $(document).ready(function(){ $("#btnGet").click(function(){ $.getScript("script.js"); ...

How to disable select tag options through jQuery? Need help

I have a query regarding Select tags option. plz any one solve through jQuery. Suppose i have two select tags, in the first select tags i have options of Languages and script and in the second tag of select i have option regarding languages & scripting. The problem is that if i select languages from 1st select tag than only languages opt...

jquery with radio button

hi, whats wrong with this code? Why don't show value? Thanks <script> $(document).ready(function() { $('#radio_div').change(function(event){ var value = $("input[@name='rdio']:checked").val(); $('#update_text').html('Radio value:' + value); }); }); </script> </head> ...

Ajax Post Doubt

Hi, I still am confused regarding Ajax technology. And I still cannot answer this question of mine as I am still trying to grasp the technology. Its regarding posting data with the server. In normal non-ajax web app, I usually do PRG (Post-Redirect-Get) pattern when I am doing a POST command. I have learned that this will prevent dou...

Learning jQuery: if & else statements, is this valid?

At the moment I'm learning jQuery and I hit the topic about if/else statements. As I have no background in programming this topic is something that I need to practice a bit more to get a thorough understanding of it. The book I'm studying gave me the advice of just writing different blocks of if/else statements. I just had an idea and ...

div tag to show on expand and hide on collapse usi ng xslt

hi I have list of hyperlinks on a webpart and i would like to show a plus sign next to each link and when i click on it should expand and would like to show the description and when i click on the -ve sign it should collapse and description should be hidden. How can i acheive this using xslt. Plz privide me some suggestions. Let me know...

jQuery selector: Not this div and not that div

Hey, I am trying to create a jQuery click function that will close a div when you click on anything besides that div. My problem is that there is a search field and another button inside that div that need to stay open if you click on them. My current function is: $("*:not(#header)").click(function() { $('#header').slideUp({ ...

IE Hover effect not firing when Dragging and Dropping

Hi, I'm using a Telerik JQuery activated drag and drop. The form is set up with two basic containers, one is a Radlistview with the elements that get dragged, and the other is a target repeater container with words. The whole thing is a type of matching exercise. The problem that I'm having is that the hover effect doesn't activate w...

updating selected href value throught the page using jquery

update all the href value in a page using jquery. I have the href="http://www.google.com" coming through out the page and i wanted to update the href mentioning above to be changed to "http://www.test.com" how i can get this done. ...

jQuery: How to remove the tipsy tooltip?

I add the tipsy tooltip to divs with the .placeTaken class. The user can then drag boxes around, so I remove the class and add it to a new div instead. When this happens, I add a new tipsy tooltip to that div and that works fine, but I want to remove the old one. They say if you wish to remove the tooltip by setting the title attribute...

pushing a 'select file' button in a form in an iframe (with jquery)

I use the jquery iframe plugin to squirt HTML into my iframe. Amongst other things, it contains: <form id="update" action="dummy" method="POST" enctype="multipart/form-data"> <div><input type="file" name="data" id="update_data"></div> </form> Then I run the following function. Watching the fun in the Chrome debugger, I can see t...

Inserting markup into hidden jqGrid column

Hi there, Got jqGrid up and running nicely where I've got a hidden field that contains some markup, just a table of data, and when I hover over a grid row the markup for the hidden column in that row appears in a tooltip. I want to be able to duplicate grid items and in doing so I want to clear the grid and repopulate with only the dupl...

Automatically load content into a created div in jquery

I'm looking for a way to have jquery automatically change the content of a <div> upon its creation in a page. What I'm doing, specifically, is to use jquery to load django templates into the page. Some of those templates contain s that I want to immediately alter as soon as they come into the browser. As a simple example, what I'd like...

[jQuery] IE7 problems

Hi, I'm working on a website with simple jquery effects, like show, hide... http://emilione.altervista.org/works.html This page works well with IE8, FF3.6 and Chrome 5, but there are some problems with IE7. How to reproduce the problem: -click on "x" thumb -> the content relative to the thumb is shown -click on the same thumb -> con...

Want to check a name & value of a cookie using jquery

I have a cookie which has many name value pairs and I want to test for a name value pair. If it exists I need to display the name and the value. If the name value pair matches the variable I define, then the href value has to be updated throughout the page from say "http://www.google.com" to "http://test.com". How I can get this done? ...

How to equalize hights of divs quickly on IE7?

I am trying to equalize "row" hights of a project I am working on and am running into speed issues. I have 60 to 90 rows and 4 to 10 columns. This whole setup cannot be generated in a real table due to other requirements so I have been using the jQuery.equalhights plugin, which works great, but when you get to 240 "cells" it takes about ...

jQuery: Finding a particular HREF Link

Basically the idea is to find out what the current location is of the document and change the class of the link (navigation accordion) to be changed. So far I have this below it works if the pageURL (variable) is the actual link but I do not want to create a whole list of possible links hence the $(location).att('href'); $(document).re...