Hi,
I' m trying to enable adding/deleting rows to/from table using folowing code:
Script:
$(document).ready(function() {
$('#btnAdd').live('click', function() {
var name = $('#txtName').val();
var name2 = $('#txtName2').val();
$("#tbNames tr:last").append("<tr><td>" + name + "</td><td>" + name2 + "</td><td><simg ssrc='del...
I'm looking for a jQuery plugin that can get url parameters, and support this search string without outputting Javascript error: malformed URI sequence. If there isn't a jQuery plugin that supports this, I need to know how to modify it to support this.
?search=%E6%F8%E5
The value of the url parameter, when decoded, should be:
æøå
(th...
Hey guys,
I've got an accordion which has the first panel opened on default by throwing in:
$("h4#open").trigger('click');
(which triggers the first panel to act as if the h4 link were clicked, and thus opened...)
But this seems to screw up the only way I can think of expanding / collapsing all the panels.
I have this code to expand...
I have a controller with the following action code:
public JsonResult CheckPasswordStrength(string password, string username, string firstname, string lastname)
{
...
return this.Json(jsonResponse);
}
Then in my javascript on page I call
$.getJSON('http://localhost/site/controller/CheckPasswordStrength', { password: 'test', use...
Hey everyone,
I have a couple of div elements contained in one container div, and I would like to slide through them, showing only one at a time, and after a certain timeout slide the currently visible div to the left using an animation, and slide in the next div from the right.
My HTML looks something like this:
<div id="topMaps" sty...
ExtJS provides some great helper functions like:
Ext.extend()
Ext.apply()
Ext.namespace()
Are there any equivalents in jQuery? I know I could port all three to jQuery since I like them so much, but maybe I'm missing something that's already there. I would like to avoid mingling with prototypes myself if possible.
Endresult
Ext.app...
I have an array of input controls garnered like so:
var hiddenInputs = $("input[id^='Unanswered']")
Each hidden input resides in a container which has another control which I am interested in getting the value of.
I iterate over the array of hiddenInputs
$.each(hiddenInputs, function(i, val) {
Now, the element I would like...
I have an ASP.NET site that shows a number of products from a database. At the moment the background image for each product is set in CSS in the productBox class. What I would like is for each product to have a random background image from a selection of 4 images. I'm thinking that using jquery would be the way forward ?
<div class="pro...
I am using jQuery in my web application. There are two fields where I want to pass an array value from code behind using jQuery.
I am using this code for a graph:
var chart2={
label:names['c2'],
type:$('select[@name=c2type]').val(),
color:$('select[@name=c2color]').val(),
values:getTableCol('c2'),
stackedOn:names[$('select[@n...
Consider the following code.
It's an anchor tag with an id called leader-module-total that - when pressed - calls a PHP script and displays the echos done in the PHP code inside an id called leader-module.
Basic enough.
However, each time I do this, I need to "shrink" it using the last piece of code in this snippet.
My question is, ...
I have a series of Delete icons displays as such:
echo '<img id="'.$items['id'].'" src="images/delete.png" />';
Where $items['id'] is a reference to the id of the DB item I would like that icon to delete.
How can I access this id in jquery when the item is clicked so I can then call a:
$.get('ajax/delete.php', { id: $('#id').val() }...
I have the following event binded to many hyperlinks with the class "riskInformationButton". It works fine in firefox but not in IE.
$(".riskInformationButton").bind("click", function(e){
if (e.stopPropagation) e.stopPropagation( );
else e.cancelBubble = true;
var toggler = $(this).parent().parent().next();
...
We use MOSS 2007 (SharePoint) for our intranet. Recently we were tasked with supporting the branding for multiple companies on our farm. We quickly realized that the application pages (produced by a modified application.master) can't serve up multiple branded templates (other than themes).
I think the right fix is to keep the default ...
jQuery makes it easy to remove nodes from the DOM. But how do you remove something from the jQuery object?
...
I am calling a Web Method in the code behind with a Method Signature that has 4+ strings accepted. I am creating a params variable and using it to add all input fields I want to pass to the method.
var params = {
showStartDate: showStartDate,
showEndDate: showEndDate,
...
Hello,
I am trying to achieve the following. I have a dozen divs with something like:
<div id=1><div>test 1</div><div>4</div></div>
<div id=2><div>test2</div><div>1</div></div>
<div id=3><div>test3</div><div>6</div></div>
<div id=4><div>test4</div><div>3</div></div>
<div id=5><div>test5</div><div>2</div></div>
<div id=6><div>test6<...
I've been looking through a lot of tutorials on jQuery draggable/droppable, and trying to apply it to ASP.NET MVC, but I am really confused.
Most of the samples I keep finding seem pretty difficult to understand at least where it pertains to where things are wired. I'm basically trying to have a targetable box (a 'roster') and a list o...
I'm trying to figure out the best way to make an AJAX call to perform some action, and then do some jquery effect magic to make it look like something is happening.
This is the basic idea: I have a link that when the user clicks it I need to update my model to say that the user is interested in an item (on the server side). However, I...
If I am sending data from my ajax request as type:delete
How do I then access it on my php page instead of $_GET or $_POST
?
...
Hi Guys,
I am looking to use a Jquery modal/dialog plugin for my site to view content.
I am currently using Thickbox which works well but it does not have a fullscreen option, when I say fullscreen I mean fill the whole browser window.
Does anyone know of any good modal/dialog plugins which can expand fullscreen?
Cheers
Eef
...