Trying to integrate CakePHP and jQuery, using next example
http://bakery.cakephp.org/articles/view/dynamic-select-boxes-with-ajax-jquery
What I want is to when user change first option element, to automaticly fill second select option box with proper values. But, nothing happens, if you can help me why.
So, there is a Invoice add for...
i am trying to test jquery post. I am posting a form and want to update in ajax and replace with a success form over a div (seems like a common use case).
The following code works fine in firefox but not in IE.
One issue is that from Firefox Request.IsAjaxRequest() is true but coming from IE, Request.IsAjaxRequest() is returning fal...
I have the following code that makes check-boxes a little fancier by adding an image sprite to the check-box.
Javascript:
$(document).ready(function() {
/* see if anything is previously checked and reflect that in the view*/
$(".checklist input:checked").parent().addClass("selected");
/* handle the user select...
Trying to truncate some code here and running into a problem:
<script type="text/javascript">
$(function() {
$('#a1').click(function() {
$(this).next('#desCopy').appendTo('#description');
$(this).next('#imgPlace').appendTo('#IMGbox');
return false;
});
});
</script>
<!--Content-->
<div id="content" style="ba...
There's an SDK that lets developers build "activities" and games for use in Windows Live Messenger. The basic approach is to build a web app, that gets approved and hosted by Microsoft.
questions
Anyone done this?
Can you use jQuery in that web app?
how do you debug the thing, running within Windows Live Messenger?
EDIT: I trie...
I'm using the script DD_belatedPNG so that my transparent PNG work in IE6.
It work fine until now.
I insert a tab slider with jquery UI and it's seem that the script DD_belatedPNG don't apply on the images in the slider. It work everywhere else on the page but not in the slider and I don't have a clue why.
Can someone help me please....
When I execute a jQuery function like .fadeIn, .fadeOut, .slideUp, .slideDown, .toggle, etc. in IE the mouse always flickers and the hourglass quickly flickers in and out of view next to the cursor. I've tried different methods of hiding the mouse entirely while the animation is going on to no avail, plus I don't want that in most cases...
Hi,
I currently use the following code to position a div directly below an input text field on focus. The problem is the width of the div varies between browsers. Is there a way to ensure the div that appears is the exact width as my input field?
// get the field position
var inputField = $('#inputfield');
var fieldDiv = $('div.d...
Hi
I've got a small problem I'm struggling to solve.
Let's say I've got an unordered list, like:
<ul>
<li> //first
<div id="div1> text </div>
</li>
<li> //second
<div id="div2> text </div>
</li>
<li> //third
<div id="div3> text </div>
</li>
</ul>
Is there an easy approach to change the ...
Hello everyone!
I have some problem with Jquery Autocomplete plugin (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/)
I got it working, but if I add new input field through AJAX (all fields are the same) - it doesn't autocomplete it.
I think the problem is because of "$().ready(function(){...." I think it doesn't acce...
Hi,
I have a list.
<ul id="navigation">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
And using jquery id like to apply a clas to the 2nd and 3rd list items.
Is there simple code for me to do this?
Thanks
...
Hi all,
Please forgive me if this is an obvious one.
I have an unknown amount of elements on a page, which I need to loop through one at a time and do stuff to. However, I need the loop to pause until the functions used on the elements have completed, and then continue on to the next iteration.
I tried doing this in a $.each loop, but...
Hi,
I recently had a look at the awesome Blue Ridge Javascript testing framework to test javascript on my rails app. But i was wondering if anyone knew how to test the javascript view files in rails?
The Blue Ridge framework(as far as i could understand) lets you test only the javascript files. But I wanted to test my "js.erb" files w...
hi all,
i'm got a little html-wysiwyg editor in my cms and was wondering - is there a good script for tidying up html client-side? i'm mainly struggling with html that's pasted from winword.
maybe some regex would help already.
thanks in advance
...
Attempting to use the data series from this example no longer passes the JSONLint test and as such attempting to use it with jQuery 1.4 fails. Specifically, returning it or data like it from an ajax request as type json will cause jQuery to throw an error. I know this worked perfectly well with jQuery 1.3.x. Does anyone have a solution?
...
Hi,
I am using the jQuery OEmbed plugin and jCarouselLite to display a scrollable list of videos.
I am using a callback function to apply the carousel:
<div class="carousel">
<ul>
<% foreach (var video in (string[])ViewData["videos"]) { %>
<li>
<a href='<%=video %>' class="oembed"><...
Hi everyone, I would like to build a UI component where i can write text and annotate users with @ like it is done in the status update of Facebook. I tried to modify an jQuery plugin but the JS skills needed to have a good result is above my knowledge. Do you any similar plugin or do you have any ideas on how to manipulate the DOM? (mul...
How do I create an array of values from a drop down list?
...
Hi.
I am dynamically adding dependants to a form with jQuery link like so:
$('a.add').live('click',function() {
// Show the next hidden table on clicking add child button
$(this).closest('form').find('table.child:hidden:first').show();
$(this).closest('form').find('hr:hidden:first').show();
// Get the number of hidde...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="stylesheet" h...