Im uploading a file using the following jquery..
function ajaxFileUpload(jobid)
{
$("#loading")
.ajaxStart(function(){
$(this).show();
})
.ajaxComplete(function(){
$(this).hide();
});
$.ajaxFileUpload
(
{
url:'addjobrpc.php',
secureuri:false,
jobID:jobid,
fileElementId:'fileToUpload',
dataType: '...
I have a couple of ButtonFields in my gridview, corresponding to "Edit" and "Delete".
I'd like to use JQuery in my code for a delete confirmation popup.
ButtonField renders as "a href"'s in HTML, but I'm at a loss in forming a JQuery selector that targets only the "Delete" link, since ButtonField doesn't accept ID nor Name. I'm conside...
$('table.diyform').children('tbody').children('tr').each(function() {
var $tds = $(this).children('td');
var label = $tds[0].find('a').html();
var required = $tds[0].find('input').html();
});
The problem lies in $tds[0] but I don't know the correct way to do it yet.
...
I am trying to use this jQuery script to make an image caption from the alt tag:
$("#content img").each(function () {
var $this = $(this);
var title = $this.attr("alt");
$this.after('<div class="caption">'+ title +'</div>');
});
I am using another jQuery script before it and it is working fine. I can't seem to get the caption ...
<select>
<option>test</option>
<option>test1</option>
</select>
In fact I'm going to retrieve the innertext of <option>,but these two jobs are similar.
...
I'm using jQuery.
serialize seems not fit for this job.
...
I want to be able to get information about the selected item in the ordered list whose ID is #selectable. The below code returns the ID #selectable, I'm looking for the id of the item I just selected.
$('#selectable').selectable({
selected: function (event, ui) {
alert($(this).attr('id').toString());
}
});
Any ideas?
...
I have been doing some customization to this jQuery paging script I found here
http://stackoverflow.com/questions/516754/paging-through-records-using-jquery
I've got the paging working nicely, and it is handling different javascript responses appropriately.
I have one problem though. The response is expecting the JSON to have an index...
I have two jQuery menu's that properly show when clicking on "show".
For example let's say you have two links:
"Show 1", "Show 2"
You click on "Show 1" and then a div appears with "show 1 content"
You click on "Show 2" and then a div appears with "show 2 content"
I have it working to that point.
Obviously there is a couple usabilit...
Hello,
I have this
<table>
<tr>
<td>...</td>
<td>...</td>
<td class="Data">...</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td class="noData">...</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td class="noData">...</td>
</tr>
</table>
with jQuery, when a row (tr) has a column (td) with class "noData", I'...
I can't seem to get the jQuery Media plugin to work with nonverblaster:hover ...
This is what I'm using.... am I doing something wrong?
I've tried loading SWFobject aswell...
<script type="text/javascript">
$(function() {
$.fn.media.defaults.flvPlayer = 'js/NonverBlaster.swf';
$.fn.media.defaults.mp3Player = 'js/NonverBlaste...
here's my code with jquery:
function check_hotel_exists(value, col)
{
var url = base_url + 'ajax/checkuniquehotel';
var response = false;
$.get(url, {hotelname:value}, function(data){
if (data === 'true') response = true;
});
alert((response) ? 'Hotel is Not Existing' : 'Hotel Exist...
I would like a jQuery function to know which link was clicked to call it, i.e. I would like the link's id value to be passed to the jQuery function.
Is this possible? If so what is the neatest way to do it.
...
<form method="GET">
...
</form>
Like the default action of submiting a form?
...
Hi,
i am having an add to basket problem.Some products have options like color/size. I draw the select box for color/size and an input for qty.
<select name="productOption[1234][color]">
<select name="productOption[1234][size]">
<input type="text" name="productOption[1234][qty]">
So option is an array that holds the values for each p...
Hi,
I've got this code:
<html>
<head>
<link type="text/css" href="css/blitzer/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript">
$(function() {
$...
What is the proper syntax for toggling the this.id object
$(this).attr("id").toggle("");
Thanks. Google is surprisingly not helping :(
...
With Jquery, I need to select just the first "n" items from the page, for example the first 20 links instead of selecting all of them with the usual
$("a")
Sounds simple but the jQuery manual has no evidence of something like this.
...
I would like to learn how to achive the following with the other two functions, or at least the ajax function.
$('#myDiv').load('index.php #content');
How would I load #content in the index.php file, into #myDiv on the current page with the $.ajax and $.get methods?
The url param doesn't seem to take a selector with any other ajax me...
I am fading out, and in a div:
$('.formErrors').fadeTo('fast', 0);
$('.formErrors').fadeTo('slow', 1);
But when I do this in IE 8, it seems this bit of CSS:
.formErrors li { font-weight: bold; }
Is causing the text to come back quite distorted: (image below)
http://www.newmania.com/images/error.jpg
The HTML I am applying this to...