jquery

Can anyone shed some light on this IE7 issue?

Been pulling my hair out for nearly a day on this now guys, if anyone could shed any light on this issue I'd be very very grateful. This page works in all browsers but IE7 (don't care about < IE6) - http://dev.chriscurddesign.co.uk/toureen/company.php If you look in chrome the pages scroll nicely sideways and jquery.address makes the u...

Error in response in Jquery Ajax request

I have a script which is posting some form data to a Quickbase and I'm getting what the browser interprets as JavaScript error in Quickbase's XML response. Right now, the data is properly being recorded in Quickbase but I can't seem to suppress the parsing error. Additionally, I have no access to server-side languages - just client-side ...

django-markitup editor passes empty POST

Hi everyone, I am a total newbie and this is my first post at stackoverflowew although I have found a lot of good info while learning python. I am trying to get this to work since days and I get more and more fustrated. I will try to include as much info as i think is needed. Your hints for debugging this will be appreciated. The edito...

Add The same button-ui icons to the different buttons with unique IDS

Hi, I have a series of buttons and some share the same icons. Presently I'm doing: $("#addNewStory").button({icons: {primary: 'ui-icon-plus'}}); $("#addNewCampaign").button({icons: {primary: 'ui-icon-plus'}}); $("#addNewAdItem").button({icons: {primary: 'ui-icon-plus'}}); Is there a neater way? Thx ...

jquery validate: custom validation rule

I want this form to make the field 'Nombre' required only if the user picks "Sí" as the answer to the select's question. Additionally, if the user selects "Sí", either an email or a phone (in teléfono) should be provided. I'm using the validate plugin and haven't found a doc in which a similar rule has been coded. How can I code this? ...

jQuery click on span and travel

<span class="link">move your body</span> How to make this span a link, without adding any inline javascript and extra attributes? Also without transformation to <a>. Like this: $(".link").click(function(){ // go to the http://site.com }) Thanks. ...

attaching handlers to virtual controls in jQuery

Here is what i'm trying to accomplish.... I need to be able to register elements that aren't part of the DOM when they are created. here is the syntax i'm trying to synthesize $(document).ready(function(){ $('#virtualControl').registerControl(function(){ alert('do something'); }); // simulate adding the control to the dom $...

How should I implement an Ajax Menu?

My ASP.NET MVC has the need for a vertical navigation menu where submenus would be generated dynamically via ajax when the user clicks on the parent menu item. I would like to use jQuery and Css to drive the menu but that's just a preference. I really don't want to reinvent the wheel here. I know this type of menu has been done before. ...

Toggle class on link click

Hi, I'm trying to toggle a class for a link when it is clicked so it either shows plus to expand or minus to reduce but I can't get it working. My jQuery is as follows: $(".viewdetails").click(function() { $(this).toggleClass('viewdetailsoff'); $(this).parents("tr").next().toggle(); return false; }) My initial link <a ...

jQuery - Change class on click and remember via cookie

Hey folks. I am trying to set up a page where if you click on a link the class will change. One step further this would have to be stored in a cookie. Each A tag has a unique id. For example, below is my example link: <a href="#" id="unique1" class="up">Link text</a> When a user clicks the link then the class would need to be changed...

jquery sliders, widen click area?

I have some jquery ui sliders you can see here When you click the slider bar, the tic jumps to that part of the bar. This is great however the bar is very thin and easy to miss when you try to click it. I don't want to change the appearance but I am wondering if there is a way to make the click radius a little padded so if you click a f...

jquery validate (at least one field has text)

Hello everyone. So i have this page wich has several TextAreas (asp.net mvc). I need to validate that at least one of those fields has text in it. How can i do that with jquery? <%= Html.TextArea("taMetodologia",Model.Enmienda.Detalles.EnmiendaMetodologia, 8, 70,new {@class = "Especificaciones"}) %> That's an example of the textAreas...

Combining jQuery tools Overlay and Scrollable/Tabs with direct navigation

Im using jQuery tools overlay to load a page via ajax. I need to be able to pass some parameters to this page when the overlay is opened. The aim is that when the external page is opened it can look at these parameters and then use jquery to display the appropriate information depending on which link was clicked to open the overlay. Th...

Quicksand with prettyPhoto callback

Hello, I'm using the jQuery plugin quicksand (http://razorjack.net/quicksand/docs-and-demos.html) and I want to integrate prettyPhoto (http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/) to be able use with it. At first everything works fine. However when I click on a link to filter the portfolio, prettyphoto...

very strange! Calling window.location or location.replace redirects to the page, then back again!

I am in debug mode, so I can see which page is being hit. When I call either window.location or window.location.replace(..) it goes to the page, but then back to the originating page! How could this be?? The solution was to add: window.location.replace(...); return false; Why does return false make this work properly now?...

Cookies with a jquery class switcher?

Hey guys, I really can't figure out how to use cookies with this class switcher I got here Jquery: <script type="text/javascript"> $(document).ready(function(){ $("a.switch_thumb").toggle(function(){ $(this).addClass("swap"); $(".main").fadeOut("fast", function() { $(this).fadeIn(300).addClass("mai...

jQuery: function not working when clicking button inside <form runat="server">

With jQuery, in (document).ready I assigned a click function to all buttons of my asp.net (aspx) page. When I click a button outside , the function works properly. When clicking a button INSIDE the form, it doesn't work. Why? Here my default.aspx page: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits=...

Refresh button for an iframe jquery or javascript

Hello i have a problem. I have a page in which i have inside an iframe. In the parent page (not in the iframe), i want to build the browser buttons back, fw, refresh and home page. The back, fw, home page buttons are almost ok. The refresh button doesnt work. The code is below: <a href="javascript:;" onClick="parent.document.getElement...

jQuery qtip - loading an image into the qtip via ajax

I'm using the jQuery qtip plugin. I want the content of the qtip to be an image, loaded dynamically. The url I'm using works. If I go to the url, I see an image. However, the qtip shows something... weird. Here is the result: Any ideas why this would happen? Edit This is the entire Response Header (via Chrome inspector): Acce...

Looking for a good photo gallery slide show tool for my site

Hello all. I am looking for a easy to use and easily changeable photo slider. I really just want to have 4-6 photos that change every ten seconds or so in a stationary box display. Kind of like a photo gallery, but all changing on the back end and without any thumbnails. I also would like to be able to put text links on the images as wel...