jquery

Cryptography. Write application to decrypt basic ciphers

Evening all, I have just began my final year at university and am studying cryptography. We have just been set the first assignment just 3 weeks in so I'm assuming it won't be a case of breaking the enigma code. As part of the assignment there are 7 exercises with 2 further challenges consisting of various ciphers (Caesar, Vigenere, T...

jQuery validation plugin question

Good Day, I have a web form that is using this awesome plugin and I'm trying to set up a rule. In my form, I have a Quantity field. If the Quantity field is set to 1 AND a checkbox is checked, then I want to validate a field. My form is setup like: Quantity TEXTBOX id = txtQuantity Gift? CHECKBOX id = #other R...

emptying the textarea in IE

I'm trying to empty wherever value/text in the textarea, when a file is uploaded from input. It works fine with FF and Chrome, but IE doesn't do the thing. Is there anyway to fix this? Many thanks in advance. $('input[type=file]').change(function(){ $("textarea#txt_id").val(''); }); <textarea name="txt" id="txt_id" rows="8" cols="64...

jQuery random fading images (from siblings) in random divs (with specific class)

I wanted a script to fade in and out of images within a div using jQuery. I'm using the following code (from http://jonraasch.com/blog/a-simple-jquery-slideshow): function slideSwitch() { var $active = $('div.box1 img.active'); if ( $active.length == 0 ) $active = $('div.box1 img:last'); var $sibs = $active.siblings('img'); ...

drupal json server, objects with ## symbol in javascript?!

I am using the services module in drupal a long with the JSON Server, and I am accessing it using jQuery this works great, but I have one small problem. Drupal/JSON Server always seem to return objects with the # symbol, which I don't really know how to handle, this prevents me from doing object.property Because in reality it's object...

jQuery tablesorter sort only certain rows/columns

I have a table where some rows have a class of "parent" and some have a class of "child". The "child" rows always appear under the "parent" and you can toggle their visibility. What I want to do is use tablesorter to sort only the parent rows based on their "Last Edit Date" column, right now the childrens' "Last Edit Date" column is gett...

Hovering rows in a table in Internet Explorer is slow with any doctype

Ok, this one is driving me crazy. I have a html table with about 100 rows. I want the rows to change color when you move the mouse above it. I tried : :hover in CSS, onmouseover/onmouseout events in javascript jquery .hover jquery .mouseover/.mouseout mouseover on the table with e.target etc All work perfectly fast in Firefox, an...

Telerik MVC controls, OnDocumentReady is firing twice

Hello there! I'm new to Telerik MVC controls, so excuse me if this is something simple. I started out with making a new TelerikMvcApplication solution. Site.Master: </div> <%: Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true).Add("Index.js")) %> </body> </html> Index.aspx: ...

Jquery custom select/combobox

Hi, I am using jQuery; I have a select box the options of which are populated from a json object. But because the database is potentially incomplete, I would like to offer the user the ablity to enter a custom value. Most combobox solutions, I have been looking at are malfunctioning one way or the other. What are alternative solutions in...

How to stop Facebook like button reloading page

I am using a jquery feed scroll similar to Foursquare's home page. The script works perfectly until I added facebook like buttons. Within each feed, I have a Facebook like button. Each time a new feed is scrolled, the page reloads itself. Is there away to make the page stop loading itself with the facebook like button in the feed? ...

jqModal is trying to run my whole page!

Hello, I just started experimenting with jqModal and am having a strange issue. The modal window is displayed correctly however I get a javascript error when I click anywhere inside it. When I look at the offending line of code, it turns out that jqModal is trying to run my entire page as if it were one big piece of javascript. Since...

How can I output a large HTML table in a Perl CGI program without freezing the browser?

I have this Perl CGI program and I allow the user to select the number of data to view on this HTML table. I go through a foreach ... foreach ... and print each row. There is an issue with the Perl CGI script when it prints over 3,000 rows of data and my Firefox window becomes unresponsive. I am also linking dataTable jquery. What app...

How to use jQuery to show a different page in ASP.NET

I am trying to set up functionality similar to Netflix. Where if you mouseover a movie - you are presented with a window of movie details (all client-side). At high level, can someone in this forum help by telling me how this should be implemented? I.E., one or more .aspx pages, what would go in code-behind, and .js file, css, etc. ...

Format javascript date to match rails format

I get a date back from rails that looks like: "2010-10-29T00:00:00+00:00" And I'd like to convert a javascript date created by 'new Date()' to that format. Is there an easy way? ...

JQuery Scroll to Offset from top of browser?

I have the following scroll script, which scrolls round the page fine, works exactly how i want it too. $(function(){ $('a[href*=#]').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var $target = $(this.hash); $...

jquery validation error problem

I use this script daily and never had an issue before now. Ive been staring at it so long i can't find the issue. I have a form with an input, the input is required and has a minlength of 2. If you submit the form, it displays the "required" error message. If you enter one character and hit submit again, its adding another error message ...

Adding a class to an element in an iframe using jQuery

<iframe src="/demo.php" id="source"></iframe> $('#source').delegate('*', 'hover', function() { $(this).addClass('hover'); }); $('#source').delegate('*', 'mouseout', function() { $(this).removeClass('hover'); }); $('#source').delegate('*', 'click', function() { alert($(this).html()); return false; }); Nothing hap...

Show a Div if only two or more check box checked, using JQuery

Help me to find out to show a div if two or more check box are checked using JQuery only. Please let me know the very simple one. ...

Rails wizard like form using jQuery

Hi, I want to build a wizard like multi-step input form for my model. I want to stick to rest practices as long as possible. The individual steps in the wizard don't have much inter-dependency so to avoid the round trip to the server, I want to store the whole data on client side using JQueryUI tabs or similar. I have following ques...

Using jQuery post() or load() within a Wordpress plugin

Hi, I am developing a plugin and have a quick question...I first developed my plugin as an individual 'webpage' and am now integrating (wrapping) it into a WP plugin. It all functioned correctly before WP and almost functions correctly now but I have run into an interesting issue. Anyways, to my question...is there some sort of issue in ...