I have a problem with this code...
The preloader shows up when this function is fired, but it never hides. The page also shows up before the image inside it is finished loading.
Is there something wrong with my load function?
$('select.select').change(function() {
var x = $(this).val();
//Hide the current page and show the p...
I have a list structured like below:
<ul class='binder'>
<li value='7'>Welcome
<ul class='section'>
<li value='7'>Introduction
<ul class='subsection'>
<li value='4'>About Us
<ul class='node'>
<li value='11'>2</span>
<ul class='element'>
<li value = '8' class='paragraph'>Test Paragraph</li></ul>
<li value='10' id='node_10'>1
<ul ...
Hello
I can drag items without any problem unfortunately items can be dragged everywhere which I do not want. I only want items to be dragged on some specific areas such as buttonmenu. I used many methods but I have not got any result. Could you please tell me how to disable a buttonmenu which has id of 34 not to drop buttons there? You ...
I have a ListView that retrieves data from an SQL DB and I am editing its data with jQuery's ajax requests. It's working so far but I am unable to change the the lv.InsertItemPosition to None after the ajax request has been dealt with.
Is there anyway of doing this? Or even a workaround like having a button calling the jQuery function an...
I have two ajax functions and use the first one to pass some data to the second however when I look at the POST, I see that for the variable I am being sent I am getting object Object returned as the value of the variable and not what I was expecting either a string or an int. The javascript looks like this,
$('.career_select .sele...
Hi,
I have a form with tho fields. The first one is required.
step 1. When I submit the form, I get the error as expected.
step 2. Then if I enter a text on the field, the error text is clear, which is perfect.
My only concern is that if I remove the text entered, leaving the field empty, the validation don't fire up!
Is there a wa...
Hi there,
I'm building a small site at the moment and now I'm facing a problem: The customer wants his form element to look "fancy" so we have to hold on the design. I googled jqTransform which fully fits my/his needs. Now: I'm using seam and richfaces to build pages. I have to apply the jqTransform on my forms but I've got several sele...
I wrote a python script that rotates an image 90 degrees. I am including the python code in case you want to see it;
#! /usr/bin/python
# This Python file uses the following encoding: utf-8
#argv[1] needs to be send formatted meaning spaces and paranthesis ARE problems
__author__="john"
__date__ ="$Aug 17, 2010 1:48:36 PM$"
server_d...
Hi,
I have the following custom validation, it is requesting a function from the server and returns 0,1,2,3 & 4. Based on the result, I'd like to display error messages. This code below works if return is "1,2,3 & 4" but if it is "0", it seems that return true is not working. It doesn't submit my form and seems to loop or bubbling if I ...
It seems, at the first glass, that we can use either of those. I'm wondering, however, when should we use one or the other, assuming a scenario where we can do the same thing with any of those two.
Thanks in advance,
MEM
...
I have three depending selects.
First one, have some values.
<select id="first">
<option value="1">v1</option>
<option value="2">v2</option>
</select>
Second and third are blank:
<select id="second"></select>
<select id="third"></select>
I want to populate blank selects via ajax requests.
So I do:
jQuery('body').delegate('#first'...
Hi,
My problem, the drop-function starts when i sort the list.
js
$(document).ready(function rt()
{
$("#div1").draggable();
$("#k1").sortable({ revert: '100' });
$('#droparea').droppable({ accept: 'li', drop: function() { alert('ssss'); } });
});
html
<div id="div1" style="z-index:5;">
<ul id="k1" style="width:350...
For some weird reason, the event "load" and even the option "success" from ajaxOptions got sort of a problem (or feature).
When I click on a tab, while the tab load the content thru AJAX I wanted to pop up an dialog, and when it's DEFFINITLY done, to close the dialog.
I dont know why but, the dialog is closing as soon as the ajax find ...
I am trying to load html asynchronously using jQuery ajax function. But I for some reason, it only works if async is false. I am using code sample from jQuery website, I don't see why it wouldn't work?
I am using Firefox browser, I tried it in IE 8, async: true works there.
Alert shows that data is empty:
$.ajax({
url: ...
I'm attempting to determine the tile that the mouse is currently hovering over in an OpenLayers map. The code that currently is written - that uses a standard Hover handler and simply sends back the event - works in Chrome but fails in Firefox, because an SVG element comes in between the tile and the mouse. I'm sure that something simila...
Hello,
I would like to load a page inside a div with fadeTo effects.
I have created this function for that
function show(div) {
$("#showdata").fadeTo(300,0.0,function() {
$("#showdata")
.html('<img src="images/loading.gif" />')
.load('includes/show/'+div+'.inc.php')
.fadeT...
We have list in html:
<ul class="list">
<li>some text<li>
<li>some text<li>
<li>some text<li>
<li>some text<li>
<li>some text<li>
...
<li>some text<li>
</ul>
There can be more than 100 <li>
How to do:
1) Add for each <li> id with number, like:
<li id="item1">some text<li>
<li id="item2">some text<li>
...
<li id="item200">some text<...
i have a table and a hidden field inside a td in it which stores the primary key .while deleting the table row i like to retrieve this value and add it to another hidden field
i want to retrieve the data in hidden field for this deleted row ??
...
So I have acquired the element I want, but I want to check the elements parent class value to verify it is a certain value before doing my logic and I can't quite figure it out.
$(document).ready(function() {
$('#childElement input').click(function() {
var option = $(this).parent('span').class;
alert(option.class);...
Hello, i have a problem with jConfirm, it should work just like the normal javascript confim box but it doesn't, here's an example
<input type="submit" value="click" onClick="return jConfirm('are you sure?')">
If i use the normal confirm it stops the script until a response is given, with jConfirm however, the form is still being subm...