I am using jQuery to parse XML on my page using $.ajax(). My code block is below and I can get this working to display say each result on the XML file, but I am having trouble because each section can have MORE THAN ONE and im trying to print ALL grades that belong to ONE STUDENT. Here is an example of the XML.
<student num="505">
...
Is it possible to create a dynamic array using something like this and store X elements, then get the average? How would that be possible?
$(xml).find('student').each(function(){
var name = $(this).find("name").text();
var myArray = DYNAMIC ELEMENTS
student_list.append("<tr><td>"+name+"</td><td>"+cid+"</td><td>"+grade+"...
Is there a way using jgrowl(or any other growl like popup) to update a message if it hasn't been removed yet and if it has been removed just simply add it like normal?
...
I want make 2d fighting game. Without very fast moving and very cool effects.
I can do it with jquery, but i think this be a slow. Or not ?
Q: Is there an alternative for flash?
PS: sorry for my ugly english
...
Hello,
I have some fairly simple JQuery code that works fine in Firefox, but not in IE or Safari, and since it works in Firefox I'm having trouble debugging it.
$(document).ready(function() {
$("#ideal-clean").click(function() {
$(this).css({'color' : 'white', 'text-decoration' : 'underline' });
$("#ideal-attractive").css({'...
I have had this script written for me, for a sliding navigation (from right to left) with JQuery.
Works well in mac FF, safari, opera, PC ie 7 & 8, but is not working at all in ie6.
If anyone could shed any light as to why ie 6 isn't working it would be much appreciated.
It can be seen working here http://www.mitchellwood.co.uk/test/s...
Hi
I'm creating an interface with JQuery tools, using the overlay functions.
So, I have a list of a tags that shows images in overlay
<a id="11" href="data/images/011.jpg">
<a id="12" href="data/images/012.jpg">
<a id="13" href="data/images/013.jpg">
<a id="14" href="data/images/014.jpg">
then I have an input box (without form tag) ...
I have a form with a dynamic select box (pulled from a database). I want to give users the ability to add to that select box without leaving the form. I would prefer a thickbox (or modal window) to pop up when the user clicks a link next to the select box. The thickbox popup would have a form where the user can enter the new value to ...
If I have some html like this.
<ul class="menu">
<li>
<a href="pageGreen">
pageGreen
</a>
</li>
<li>
<a href="pageBlue">
pageBlue
</a>
</li>
<li>
<a href="pageRed">
pageRed
</a>
</li>
<li>
<a href="page1">
page1
</a>
</li>
<li>
<a href="page2">
page2
</a>
</li>
<li>
<a href="page3">
pag...
I am using a javascript editor called NicEdit which doesn't come with an option to change or reference the base url. I was wondering if this can be done in jquery or javascript?
The image src of all images in the DIV element are the same, <IMG border=0 src="/image.jpg"> except the actually images is stored under a different domain and d...
I have a master/detail setup using jqGrid and jQuery. Is it possible to have the detail grid use a different theme/skin than the master grid?
I see a setting to change the images folder, but it looks to me like grid.css would have to be the same for the entire page. Has anyone tried? Or do you have any suggestions for a workaround?
...
How do I get the value of the index position in the array, whose element the user had chosen using the autocomplete?
For e.g. if I enter the array having two elements as the input for the autocomplete plugin:
var arr = [];
arr[0] = "John";
arr[1] = "Paul";
Then, say user selects "Paul", how do I get the value of the selected index "1...
Demo: http://www.simpsoncrazy.com/characters/poster2
(Using Map Hilight plugin: http://plugins.jquery.com/project/maphilight)
When you click a quadrant of the image, it should zoom in on that image, however in IE8 (regular and compat mode) the "zoomed" images never load. Also on the top-left segment the right arrow appears on the left.
...
So I have my nifty function that detects changes for me in a form:
function EnableChangeDetection(eForm) {
// One of the nice benefits of this change detection is that we don't have
// to keep an additional array of previous values to compare. Also we
// don't have to worry about applying global unformatting for comparis...
i have code:
<table id="table_id">
<tr id="tr_id">
<td id="td_id">
<p id="tresc"> text </p>
<a href="#" id="link">more1</a>
<p id="tresc_more" style="display:none"> more text 1</p>
</td>
</tr>
<tr id="tr_id">
<td id="td_id">
<p id="tresc"> text </p>
<a href="#" id="link">...
Hello,
I'm trying to load an external document using jQuery, $.load call. It seems to work in IE6, IE8 and Firefox 3.5, but it doesn't work in Opera and Webkit browsers (Chrome and Epiphany)... all of them report (in their developer consoles) that they load external document successfully, but they don't show its content.
Test case is h...
I'm trying to apply an inline-block style to an element (a div to be specific). And in order to achieve this in IE you have to use a hack:
$('#element').css(
{
'display' : 'inline-block', //applies inline-block to matched elements in all browsers except IE due to hasLayout bug
'zoom' : 1, ...
Basically, if I'm at: http://example.com/content/connect/152, I want to find out if "connect" is present in the url and then set the selected value of a menu to something specific... (The url could also be something like http://example.com/content/connections, in which case, it should still match...)
This is what I've been trying, whic...
Hi folks,
While I have the problem itself seemingly resolved, I'm hoping someone can shed some light on the why of this...
Below are two snapshots of the same function whose job is to remove a div that contains a user feedback message. It's setup to use an optional timeout, if a timeout is specified it makes a call to itself using set...
I just want to dynamically put in the index, which is calculating correctly, so I know the value of my variable isn't a problem, but it's not working:
My variable 'parentIndex' stores the index of the span I want to be selecting below. I have tested this variable and it returns the correct value.
$(".DropDownMenu span:eq("+parentIndex...