I'm creating a dialog to show the status of a long running process. Basically, I want to create the dialog, and update the contents as the long running process executes. I'm still pretty new to jQuery/jQuery UI, so I'm probably doing something dumb, but I don't understand why the following does not work:
function updateStatus() {
...
I have a spurious problem which seems to indicate the index value got from the jquery each method does not always start at 0.
My javascript looks a bit like this:
$("#mylist").each(function(index) {
var obj = new myclass();
obj.property = "whatever";
obj.sequence = index + 1;
parentobj.list.push(obj);
});
This all ge...
Basically I'm converting some template I made into html 5.
Done a little research and tried to create a new element called 'wrapper'.
All works fine cross browser etc, but when it came to validating i got this message:
Line 16, Column 13: Element wrapper not allowed as child of element body in this context. (Suppressing further err...
$(document).ready(function () {
$('.raj').click(function () {
if (!$(this).hasClass('already')) {
$('.infos').html('');
$('.infos').hide("fast");
$.ajax({
type: "POST",
dataType: "json",
url: "ggg/hhh/rrr.php",
success: func...
Hi,
I want to have a popup window such that when the user hovers mouse over the image, it displays that popup window on the right of the image. The window would contain text as well as graphics. The window should close the moment my mouse is out of the image. I tried various scripts that are on the internet, but they show the text as i...
I need to apply different filters on XML based on different links that are clicked. I'm having trouble filtering results that need to have more than one filter.
One is to check if an attribute exists then I also need another filter that will get the nodes that have that attribute as well as another that contains a specific category.
He...
I have an array of serialized form information (collected using the serialize functionality in jQuery), and would like to add additional information to it. From what I've read it looks like I need to use the push function in Javascript. Unfortunately when I try this I get an error message saying that 'formData.push is not a function'
M...
hi all, i have an unusual javascript problem, i have a javascript problem that alternately refuses to work. Basically, on the first click, the jquery function works as it should, deleting the table row, and redrawing the table rows:
$(".deleteRow").click(function(e){
if(confirm("This will delete the selected week. Are yo...
Hi,
I have a that contains a link with class 'remove-project' that I want to default to hidden and set to visible when the div is hovered. So far I have this (which doesn't work)
$('.project-container').hover(function() {
$(.remove-project).show();
},
function() {
$(.remove-project).hide();
});
<?php
foreach($user['Proje...
I have the following JSON call, the data I'm passing seems to be getting stringify'ed properly from what i'm looking at, however, I don't seem to have the right syntax to process the parameter in the public web method.
Here is the JSON call:
<script type="text/javascript" language="javascript">
var qs = new Querystring();
var v1...
hello guys! i have a question for you
this is the xhtml
<div id="main">
<div id="category1">
<div id="product1"></div>
<div id="product2"></div>
<div id="product3"></div>
</div>
<div id="category2">
<div id="product4"></div>
<div id="product5"></div>
<div id="product6"></div>...
Hi,
I am trying to get paginating to work with jQeury. I am using the will_paginate gem. It works normally (with no javascript). I tried following a railscast (http://railscasts.com/episodes/174-pagination-with-ajax) but I am still having a problem.
show.js.erb
$('#comments').html("<%= escape_javascript(render "comments/comment.html.e...
Hi,
As far as I know that embedding font face is only possible with CSS3 (CSS2 but not CSS2.1), and not all browsers are ready for it yet, particularly IE (unless IE9?)...
I wonder if it is possible to use jquery to embed font face? any idea how can I start the code? or any plugin which can do this job?
Thanks
...
Hi I have a huge problem that's been bugging me for quite a while, most of the times I have been able to avoid it but now there is no other way. Below is a function that when executed sends a post request for every checked boxes. I need it to wait until the $.each has finished to refresh the page. I have performed tests with location.rel...
I just launched http://elliewauters.com & have a little problem that I'd like to fix, the site uses a lot of animated horizontal scrolling to go from one 'page' to the next, but on refresh most browsers remember the scroll position & go back to where I was before, I do not want this. Try going to the 'About' page & then refreshing. You'l...
Hello. I'm trying to duplicate two inputs and add the Eyecon Color picker to duplicated inputs.
After duplication, when i'm trying to click on the input add select a color, the color is assigned to the previous input, not to the current one.
Thank you.
<link rel="stylesheet" href="ui.css" type="text/css" media="screen" />
<script type="...
I'm creating a WYSIWYG editor that saves the page via AJAX.
How it works is you add your elements (text, images, etc) to a DIV via the editor, and when you click "save", it sends that DIV's HTML through AJAX to a script that takes this HTML and writes it into "index.html", so it'll update the front page.
My problem: if the DIV has a ba...
So say you have some navigation, and you don't/can't use server side code to choose which link is "current". How can you use the first part of the url (as in after the first slash but before any next slash) i.e. (example.com/dashboard/view/16) would return dashboard. Of course there's not always a second slash, it could be (example.com/d...
I have the following markup
<div id="FirstDiv">
<div class="MyClass">
<span>
<a href="#">link 1</a>
<a href="#">link 2</a>
</span>
</div>
</div>
<div id="SecondDiv">
<div class="MyClass">
<span>
<a href="#">link 1</a>
<a href="#">link 2</a>
</span>
</div>
</div>...
The title says everything exept one thing: I dont want to add a <div id="something"></div> in the body of my webpage.
I found this on the internet:
var $mklib = $('<div></div>')
.html('test')
.dialog({
title: "Create a library",
autoOpen: false,
show: "fade",
hide: "fade",...