jquery

Making safe ajax calls with jQuery

I noticed that certain characters entered in text box and sent through Jquery Ajax request as parms are being mis-interpretted. (at least from my point of view). The "&" creates a new unwanted parm. The "+" disappears entirely. I want to get value of text box and convert to html entities. Something like this I think: SafeParm = $("#m...

Why jQuery UI datepicker can't works in jQuery dialog modal ?

Hi, I want to use jQuery UI datepicker in one of my text inputs. This one is in a dialog modal. In fact, I can call datepicker in the normal document text inputs and i got my calender normally but I can't do that in dialog modal text inputs (after clinking inside modal text input I got nothing without any JavaScript error). This is my...

Why is Post code being triggered on jQuery load?

I have the following functions in my ProceduresControlller: Function Add(ByVal bpid As Integer) As ActionResult Return View(GetAvailableProcedures(bpid)) End Function <AcceptVerbs(HttpVerbs.Post)> _ Function Add(ByVal bpid As Integer, ByVal code As String, ByVal covered As Boolean) As ActionResult AddProcedure(bpid, codes, cove...

Jquery moving bar and stopping 0-100

I am trying to find the right way to go about this i am trying to get a bar that move from 0 - 100 and you got a stop button and when you press it the bar will stop and display a number. i am trying to do this in jquery. ...

jquery attr() function speed in Internet Explorer

I have some HTML drop-down menus, and then dependent upon the selection I then highlight the appropriate column heading in a table. I do this by changing the css class of that <td> tag like so: $("#searchcolour").attr("class", "filledselect"); $("#searchtask").attr("class", "filledselect"); $("#searchshape").attr("class", "filledselect"...

Find an item in a context with jQuery

I have this code in JS to jQuery: <!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <title>test</title> </head> <body> <ul id="ul1"> <li id="li11">11</li> <li id="li12">12</li> <li id="li1...

Keep a Select Box Selected after Submit

On my website, user's are allowed to filter games by Genre. When a user chooses a genre from the select box and hits submit, the page uses GET to see what the filter was. Now the filter works fine, the problem is that the select box's selection goes to the default one (Which says "All".) I want it so that after a user submits their filt...

How to use arrows to change page in jquery?

With jquery I need to do something like this... A user will follow a link to a users photo gallery on my social network site. A photo will load on the page and comments related to that photo with paging will be under the photo. Basicly this photo and comments will be a seperate page that is loaded in with AJAX, then when a user pres...

How to pass data using jQuery's ajax methods on click events / links?

Using 'old school' javascript you would put the ID as the parameter in an inline function call (onclick="my_function(28)" or similar), with the ID provided by your server-side code. Using 'new school' javascript, the function call is abstracted from the element, so how to pass the ID? My guess is: <a id="28" class="do-something" href=...

Are there any starter kits that uses all of : ASP.Net MVC 1.0 with Nhibernate. Sparkview, Jquery, Jquery UI?

I am looking for a starter kit that already is set up with the following? ASP.NET MVC 1.0 Jquery/Jquery UI/JqGrid/ Sparkview engine NHibernate Code quality is important as well. Thanks in advance. ...

Jquery Scrollable Customized - Errors

Hello, I am using the following plugin: flowplayer.org/tools/scrollable.html I've slightly customized it by removing the tabs, and using image buttons. you can view my work here: http://getitnow4free.com/FreeWebsite/Page2.html If you keep hitting next template and previous template buttons in order to cycle through all of the availa...

Jquery modal window help

All, I need to get the below code (radio buttons,input boxes,textarea) on a jquery modal window. The requirements are that the contents should be enlarged on opening a dialog window when clicked on (Open window) hyperlink.Else be small in size. Please help me out with it. PS:I had posted the same question in another post (i have for...

Cufon, jquery text repacement

Hi all, I'm using cufon text replacing from Jquery http://wiki.github.com/sorccu/cufon/styling but I have a problem: I have something like this <ul> <li>item1</li> <li> item2 <ul><li>itemSec1</li></ul> </li> I applied cufon for "ul li " but i don't want to use cufon for "ul li ul li", Cufon.replace('ul li'); Can I ...

jQuery: execute ajax call from ajaxComplete

I need to call execute ajax call from withing ajaxComplete function. How do I do this without getting stuck in endless loop of ajax calls? Can I unbind ajaxComplete, run ajax call, and then re-bind it? If so, how? ...

detect elements overflow using jquery

CSS: .blue { width:200px; height:200px; background-color:blue; color:#000000; overflow:auto; } JavaScript: function addChar() { $('.blue').append('some text '); } HTML: <div id='blue1' class="blue"></div><br /> <a href='javascript:void(0)' onclick='addChar()'>Add</a> div id='blue1' has over...

jquery sortable: get list behavior without an <ul>?

This plugin (jQuery UI's Sortable) gives me behavior I prefer if I use a list, but I need divs in order to get the formatting I want. Specifically, with a list it gives me good positioning, and it knows the right direction to shift things out of the way in. Everything works better with a list - except the formatting stuff I need from the...

Override jQuery .val() function ?

Is there a way to easily override jQuery's .val() function? The reason I want to override it is that I want to add some processing each time a value is set for an element. And I don't want to make another custom value setter, such as .myVal() ...

How to trigger click on page load?

I'm looking for a way to automatically "click" an item when the page loads. I've tried using $("document").ready(function() { $("ul.galleria li:first-child img").trigger('click'); }); but it doesn't seem to work? However, when I enter $("ul.galleria li:first-child img").trigger('click'); into Firebug's console and run the script...

Scroll bar problem when applying JQuery UI effects to text

I'm trying to use JQuery UI to make a block of text draggable (and later, droppable and resizable). The problem is that all of the JQuery UI documentation examples act on objects that have an explicitly specified CSS width and height. If you do something like this: <script type="text/javascript"> $(function() { $(".draggable").draggable...

JQuery Rotating Banner Question...

I am looking for a JQuery solution to something like the rotating banner located at http://www.bazaarvoice.com. One where it has a timed scroll but also allows the user to toggle by rolling over tabs. Anyone know of a good, easy to style one? ...