I have been trying to make something work with JQuery. I have the following function:
<script type="text/javascript">
$(function(){
// start a counter for new row IDs
// by setting it to the number
// of existing rows
var newRowNum = 2;
// bind a click event to the "Add" link
$('#addnew').click(function(){
...
Hi, I'm trying to do something like boxy or facebox or lightbox...and so on. The only problem is that I don't know how to preload the page that is loaded into the box via load() method.
It should work like this:
It pops the box
Loading animation is added
When the page is loaded the animation disappears
So i need to know when the pa...
I have a question is there a way I could create the collapsible effect with the Jquery show(), hide(), slide(). Functions and has anyone found any examples to do this?
...
I have this working script (i know its incomplete):
function rsvpNew(selector,function_url) {
$(selector).livequery('click',function(){
var select = $(selector).attr('rel');
var event_id = $(this).parents('ul.event-options').attr('rel');
element = this;
switch(select) {
case "attending":
$.ajax({
type: "P...
Hola
Site at http://www.bringmyshuttle.com has jQuery filtering of thumbnails on the frontpage by category, changing the opacity using category value passed via 3 simple unordered lists.
All lovely in FF/Safari, but selecting an category in IE just fades out everything and then squat happens :) This is testing on IE7 on a virtual mach...
My ajax request is returning an object with my HTML inside it, I want to count the divs in this object, just can't figure out how.
Some code:
$.ajax({
type: "GET",
url: "/activity_results.html?"+options,
cache: false,
success: function(html, status){
if(html != ""){
$(html).appendTo("#comments");
alert(($(html)).length);
}
}
});...
I have a view_mine_and_others.php file that outputs this html
<div class="rec" id="1">
<div class="val">343</div>
<a class="change">Change</a>
</div>
<div class="rec" id="2">
<div class="val">12001</div>
<a class="change">Change</a>
</div>
<div class="rec" id="3">
<div class="val">4233</div>
<a class="change">Change</a>
</div>
I...
Hi
Im trying to calculate with of different list items
my HTML:
<ul>
<li style="disply:block; float:left">Some Text</li>
<li style="disply:block; float:left">Some More Text</li>
<li style="disply:block; float:left">Some Other Text</li>
</ul>
Im usind standard with function
var width = $('li').outerWidth()
But t...
I have a result set returning from a service that gives me the following json
{
"ThreadCount":61,
"GroupList":[
{"userName":"KLT","count":2687},
{"userName":"KCameron","count":718},
{"userName":"IRG","count":156},{"userName":"JLB","count":123},{"userName":"HML","count":121},{"userName":"SMN","count":99},{...
Hey all,
I am using a jQuery's toggleClass() method to handle table row highlighting and what I would like to do is create a function that will hide all table rows that do not have the "highlight" class applied.
The table itself has an ID (tblTest) and each row has an ID as well. However in this case I don't really care about ID's so ...
HI,
im building a menu where hover on li a .li_bcg is appearing. Unfortunately no matter what ill do, when hover over menu all li_bcg appearing at this same time.
This is my URL to maybe make it a bic clearer
<ul>
<li>
<a href="#">Text</a>
<div class="li_bcg"/>
</li>
<li>
<a href="#">Text</a>
<div class...
Say I had to links with up/down arrows for moving a table row up or down in order. What would be the most straightforward way to move that row up or down one position (using jQuery)?
There doesn't seem to be any direct way to do this using jQuery's built in methods, and after selecting the row with jQuery, I haven't found a way to then ...
$('button').toggle({
function(e){
//turn on effects for all elements clicked
$('*').toggle(
function(e){
//some nice effects when you click on elements
},
function(e){
//nice effects turned off when you click again.
}
);
},
...
Our team is about to start a SAAS web application geared toward small businesses. This is a completely new experience for us; we are a system/linux/php development organization and no experience whatsoever developing client side software except for simple html/php based CRUD support applications.
We are evaluating both Adobe Flex and JQ...
How do I render the partial view using jquery?
We can render the partial View like this:
<% Html.RenderPartial("UserDetails"); %>
How can we do the same using jquery?
...
I have this ajax call to a doop.php.
function doop(){
var old = $(this).siblings('.old').html();
var new = $(this).siblings('.new').val();
$.ajax({
url: 'doop.php',
type: 'POST',
data: 'before=' + old + '&after=' + new,
success: function(resp) {
if(resp == 1) {
$(this).siblings('.old').html(new);
}
}...
I wonder if its possible to have a watermark on hotlinked images on an external site, but not on the original site? I'm using jQuery, can I do something about this?
Thanks heaps!
...
I have an ASP.NET repeater that shows a list of items with a delete LinkButton.
I want to setup the Delete LinkButtons to show a JQuery Dialog for a confirmation. If the "OK" button is clicked, I want to do the postback.
The obvious problem is that each LinkButton in the repeater will have it's own ID and I don't want to have to dupli...
Hello,
Try running the code below:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script> b = jQuery.noConflict(true); </script>
<script src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools-yui-compressed.js"></script>
<script>
(function($){
$.a = funct...
for example
<a href="http://stackoverflow.com" class="selected">stackoverflow</a>
my jquery is here
alert($('.selected').attr('href'));
but this don't work
How to get attribute from selected object?
...