jquery

looping through JSON array

Hi all. I have recently posted another question which straight away users pointed me in the right direction. $.ajax({ type: 'POST', url: './', data: 'token=' + token + '&re=8', cache: false, timeout: 5000, success: function(html){ auth(html); var JSON_array = eval(html); alert(JSON_a...

Chrome + jQuery hide/show inline

Hello I have these things <ul class="ul_std" style="float:right"> <li class="action_buttons" ><a id="button_deleteNormal" class="button_small button_small_red" >Διαγραφή</a></li> <li class="action_buttons"><a id="button_editCancel" class="button_small" >Ακύρωση Τροποποίησης</a></li> <li cl...

Better way to write this ?

any better way to write this ? $(this).parent().parent().find(" dd ul").toggle(); update.. I am trying to create a dropdown using the script here http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx however the script works only for one instance of list and my code works good for multiple inst...

In Eric Martin's Simplemodal jQuery plugin, is possible to adjust CSS on the fly?

I would like to adjust the height of the simple-container to match changing depth requirements passed on data returned from the server using $.ajax. It seems that once the modal is fired, all CSS changes on the fly, e.g. $('#someid').css('height','500px') Anyway to override the set CSS? Thanks ...

JQuery or javascript to find memory usage of page

Is there a way to find out how much memory is being used by a web page, or by my jquery application? Here's my situation: I'm building a data heavy webapp using a jquery frontend and a restful backend that serves data in JSON. The page is loaded once, and then everything happens via ajax. The UI provides users with a way to create m...

How to target specific letter/word with jquery?

As a mere example, I want to apply the class "fancy" to all occurrences of the sign "&amp;" in the document. The CSS: .fancy { font-style: italic; } So a text that looks like this: Ben &amp; Jerry's would be manipulated by jquery to this: Ben <span class="fancy">&amp;</span> Jerry's Is there a function to target specific words/...

jQuery delete text onfocus

hey, ive been trying to have a default value in a text input, then with jQuery, when you "onfocus" the textbox, it makes the text black (default a light gray), and deletes the default value. I think you know what im talking about, so do you guys know how to accomplish this? ...

jQuery: How can I work with dates in this format? mm/yyyy

I'm doing a web application for articles Articles must be shown by month, with its published date stored as mm/yyyy Now: 1- Should I use a DATE type field for storing? 2- Will jQuery UI datePicker be useful for showing mm/yyyy? 3- How could I sort by mm/yyyy? I guess it will be more complicated if I store date normally and extract the...

Using will_paginate with AJAX live search with jQuery in Rails

I am using will_paginate to successfully page through records. I am also using AJAX live search via jQuery to update my results div. No problem so far. The issue I have is when trying to paginate through those live search results. I simply get "Page is loading..." with no div update. Am I missing something fundamental? I believe I may ne...

Problem Routing domains subfolder

Hi there, I'm pretty new to ASP.NET MVC and I hope it is not a too silly question. So here it comes. I have ... a ASP.NET MVC application with a domain similar to http://mydomain/mysubfoler1/myappfolder My problem... the routing of my application (it worked fine without using a subfolder after the domain-name). The applications ...

jQuery - add additional parameters on submit (NOT ajax)

Using jQuery's 'submit' - is there a way to pass additional parameters to a form? I am NOT looking to do this with Ajax - this is normal, refresh-typical form submission. $('#submit').click(function () { $('#event').submit(function () { data: { form['attendees'] = $('#attendance').sor...

I would like to know how to put a "change image" layer like in facebook on a mouseover event

Hello: I have a photo gallery I would like that every time a user does mouseover the image, there is a button on the top of this image that appears. The user can click on it. But every time that the user mouse out of the photo it must disappear. It works like the "change photo" in Facebook, with the photo of your profile. The problem...

Jquery Carousel Issues

I am using Jquery's Just Another Carousel plugin and I'm having issues with something which I am not sure and because of this it's not working. I'm using this plugin because I need fixed height rather than fixed width. This Doesn't Works (When used Refresh CTRL+F5) any help? ...

auto scroll to bottom when overflow auto

Hi, does anyone know how to automatically jump to the bottom of a scrollable area by event in jquery ( or even javascript if no easy jquery solution)? regards ...

Javascript/jQuery: Varying parameters on a custom function

I'm writing a plugin that will allow parameters to 'set it up.' But I predict the user won't always want to set up every aspect of the function. function This_Function(a,b,c,d); For instance, maybe they'll only want to set up a and c, but not b and d (they'll just prefer to leave those as defaults). How do I write the function (or the...

jQuery: Targeting elements added via *non-jQuery* AJAX before any Javascript events fire? Beyond the scope of live()?

Working on a Wicket application that adds markup to the DOM after onLoad via Wicket's built-in AJAX for an auto-complete widget. We have an IE6 glitch that means I need to reposition the markup coming in, and I am trying to avoid tampering with the Wicket javascript... blah blah blah... here's what I'm trying to do: New markup arrives...

How can I get the href of a <link> tag using jQuery?

Hi, I've seen lots on how to do this with an tag, and I have no problem doing it with that one, but I can't seem to retrieve the href attribute of a <link> tag. Even trying to grab the link tag at all: alert($("link").length); Gives 0. Any ideas? Thanks, Matt ...

Jquery calendar and tab sliding div clash

Hey all, I am trying my best to figure out another way around this problem I seem to have encountered. On my website I have a jquery calendar and also a jquery div tab slider (this: http://www.queness.com/resources/html/tabmenu/jquery-tabbed-menu-queness.html). The problem comes into play with the DIV tag. The calendar loads up inside a...

Jquery/YUI - Find image and set CSS to display:none

I have the following image in a CMS that I want to hide, I dont really want to change source code but would like to hide a specific image which does not have a class applied. Here is the HTML: <td class="right side"> <a title="Show only topic 1" href="view.php?id=3&topic=1"> <img alt="Show only topic 1" src="http://vl3.co.uk/i...

jquery event handler- trigger function upon specific key and action

Background story: when a user selects a portion of text in a text field with her mouse (mark it up manually), and subsequently hits "alt" key, a certain function would trigger. My questions are: How can I trigger a function when a user hits a key (in her keyboard)? How can I preserve a portion of text selected, and use it as a paramet...