Hi all, I'm trying to use jquery to find an item based on it's class name. Basically I have this structure:
<ul class="vm_cat">
<li><a class="mainlevel" href="/">MAIN LEVEL 1</a></li>
<li><a class="sublevel" href="/">sub 1 a</a></li>
<li><a class="sublevel" href="/">sub 1 b</a></li>
<li><a class="sublevel" href="/">sub 1...
dear all..i have a problem.
at firebug show:
$("#menu ul.menu").lavaLamp is not a function at menu.js
the hover at menu not show.
this problem show after i put this:
<style type="text/css">
* { margin:0 auto;
padding:0;
}
body{
w...
How do I retrieve the n-th value in a JSON file (and maybe it's children, too)?
For example, I have a collection of courses and associated events formatted in JSON, which I'm using to populate a couple of select lists, e.g:
// extract from courselist.php
[{
"optionValue": "Getting Research into Practice",
"events": [
{"...
if i have a script but it needs to run multiple times on a page, like in a cms for example, how do you approach this? in one experiment i had the code run multiple times but i put the article id on the end of the selectors that would fire off commands and what needed to be manipulated. it's not a good workaround though cause there's too ...
My stylesheet has two definitions:
bodytext a { border-bottom-color: #9aa1ae; border-bottom-width: 1px;
border-bottom-style: solid; color: #00589f; }
bodytext a:hover { border-bottom-color: #0d1117; border-bottom-width: 1px;
border-bottom-style: solid; color: #0d1117; }
and my page has an FAQ section, like so
<dl class='faq'>
<dt...
i have some data at DB like:
qty item id date
0001-0500 abcd 1 2010-06-22
0001-0500 abcd 2 2010-06-22
0001-0500 abcd 3 2010-06-22
i want some script can make them order by date and show result :
qty : 500 (it means 500-1=500,number 1 read 1-1 = 0)
item : abcd
id : 3 (counting from 1 until 3)
date :2010-06-22
qty ...
this is my code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google AJAX Feed API - Simple Example</title>
<!--<script type=...
According to the jQuery docs, I need to escape metacharacters that occur in my selector strings, when they occur as a literal. However, I couldn't find very many specific examples of when and when not to escape selectors. So when and when don't I need to escape metacharacters, when they are to be interpreted as a literal, in:
Attribute ...
I am trying to use tabs on my page and each tab is loaded through the .load() javascript function. When I click on the first tab, I have the qTip tooltip provide a tooltip over each cell in a column of the table that is created. The tooltip works perfectly here. When I click on the second tab, the same thing happens to the table that is ...
I'm writing a jQuery plugin, and I'm writing it in a non-jquery-community-standard way, mainly
to maintain portability and extendability.
I'm having some trouble accessing variables that were declared in the function when accessing from the prototype.
Perhaps I have this model very wrong but I hope someone can point out the correct...
HTML code:
div id="updatePanel">
jQuery code:
var data=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
$.each(data, function(index, value) {
setTimeout(function(){
$('#updatePanel').text(index);
}, 5000 );
});
I want the updatePanel div content to be updated every 5 seconds. It should be 1 then wait 5 seconds, display 2, wait for...
Hi all,
I am using the following code(no my own code) to load image to a css element (called cell) and to display an activity indicator.
var cell = document.createElement('li');
cell.textContent = this.labelForIndex(index);
var indicator = new NKActivityIndicator();
indicator.init(10,100,20,"white");
indicator.show();
indicator.spin(...
I have an Ajax form in my Rails app that contains the Recaptcha markup as provided by the helper in the Ambethia Recaptcha gem:
recaptcha_tags :ajax => true
On submit, the form hits a create action, which responds with the create.js.erb that contains the following:
$('#message-form').replaceWith("<%= escape_javascript(render('message...
<li id="someID">
<div id="div1">Text</div>
<div id="div2">Text x 2</div>
<div id="div3">Text x 3</div>
<span>
<div>
<ul>
<li class="menuItem">Menu Item</li>
</ul>
</div>
</span>
</li>
In short, I'm trying to find the ID "someID" when...
How can I create an online file editor?
My web application will allow a user to create a new text file, edit it and save it. He can do so with multiple files open in multiple tabs.
...
I am trying to make an onchange call on a select box.For my application i am using jquery.js and rails.js as mentioned to make use of UJS. But still the code that is generated is for Prototype and not for jquery ajax calls. My code looks like the following:
<%=select_tag :category,options_for_select(Category.find(:all,:select=>"name,id"...
Hi,
I am using jQuery to make a custom carousel. After delivering a jCarousel implementation as part of a project, the test team have raised a lot of bugs and so I decided to write my own as I always find it difficult to find a plug-in that does exactly what I want (need) it to do.
My current problem is that I can get it to scroll onc...
Hello everyone,
I have a jQuery auto-complete field that selects clients email adddress's. Next to that is a button that allows the user to create a new client. To avoid the clients being taken away from their already half filled form I am opening the form within a lightbox.
Enter jQuery Fancybox.
The new client add form is located wi...
I have a strange problem in json date parsing. I am using the following to parse the json date:
dateFormat(new Date(parseInt(user.RegDate.substr(6))), "mm/dd/yyyy")
When my local machine (Client) is in different timezone from the server timezone, then it returns different dates when i try to retrieve the registered date of the users. ...
I have a select option box with the value from database. If i select an option the other three text field will be loaded with data from database based on select option id or primary key value. how do i do that in django , jquery. Thank you so much
...