Hi All
I'm working on a toggle view script, which flips between 2 views (grid & list).
I have it all working fine so far, but I'm trying to use a cookie to remember the users selection on page refreshes (using a jQuery cookie plugin). However, if the view is in the altered state, it takes 2 clicks to get it to change the next time.
var...
Hi..
I need to do this in jquery with a little animation (the folowing sentece works):
window.parent.scroll(coord[0], coord[1]);
Does the folowing code to do what I want? because it doesn't, =D
$(window.parent).animate({
scroll: coord
}, 2000);
Any Ideas?
Thanks
...
Hi there! Some of you may have become very familiar with me in the past couple of days. (I've asked a TON of questions) Anyways, I was wondering what is the best way to debug jQuery? I don't really like having to bug you guys for the answers all the time so I was wondering if there is some tool, or method that you guys use to debug? Than...
I'm trying to use jQuery to toggle the appearance of a shoutbox and remember that state from page to page. My problem is getting the cookie that remembers the state set. Here's the code I've come up with so far, but it doesn't seem to be executing the if statement correctly. Any ideas why?
function show_shoutbox()
{
$('#SB').toggle("f...
I would like to be able to use jQuery's scrollTo plugin to animate the window scroll down to a div when Google directions are loaded. Could someone please help me convert the setTimeout line to jQuery and use scrollTo to animate the scroll? Here is the javascript that doesn't scroll:
GEvent.addListener(gdir, 'load', onGDirections...
Hi, I have built a slider that has two possible buttons: one to .toggle, this one is always visible, and then the .click one which is only visable when the slide is open so i wanted it to only close. the problem is when you open with the .toggle and close with the .click then try to re-open with the original .toggle button. it needs 2 cl...
I have no intention of just altering the link (I hear that's impossible, but if it's not I'd love to know how). I'm fine with adding it to the the browser history if that needs to be done.
I'd like to loop through all <a>'s on a page and change their state to visited. For example:
$("a").each(function(){
//mark as visited (somehow?)...
I am using "facebox" which uses jQuery 1.2.1 on my website here
http://www.pointclickshoot.com/beta2
The rest of my site is using jQuery-1.3.2.js. I need to update the following functions to work with jQuery 1.3.2:
/* Bindings */
$(document).bind('close.facebox', function() {
$(document).unbind('keydown.facebox')
$('#faceb...
I'm trying to do some data entry via a jQuery modal Dialog. I was hoping to use something like the following to gather up my data for posting.
data = $('#myDialog').serialize();
However this results in nothing. If I reference just the containing form instead myDialog then I get all the fields on the page except those within my dialog....
I'm trying to replace all periods with the degree symbol. Using the each method only replaces the first period inside the paragraph tag, not all of them. I'm also trying to make the periods inside the anchor tags to be ignored and not replaced, so the links won't be disrupted by my code. Can anyone help?
$('div.post').each(function(){
...
Here's my code:
$('.reply').click(function() {
$leftwrap = $(this).parent();
$comment = $(leftwrap).parent();
$id = $comment.attr('id');
if($(this).siblings('.reply-form').length == 0) { //check whether or not the form as been initiated yet
$(this).parent().append('<?php $replytimestamp = strtotime("now"); ?>
<form class="reply...
im trying to understand how to use the jquery address plugin for handling deep linking with ajax.
but the documentation is very poor and i cant find any good tutorials explaining what is going on.
i think a good documentation with good examples is important with every plugin.
could someone explain or give some useful links for explana...
I'm just starting to use Christian Bach's excellent TableSorter plugin, and I need to get a column's current sort direction. I have several columns:
ID
Name
Category
ID and Name are set to non-sortable using
headers: { 0: {sorter: false}, 1: {sorter: false} }
I'm adding a click handler on Name so that it fires the sort event ...
I have two jQuery autocomplete textboxes on a mvc web page. One that returns a list of questions and another that returns a list of tags.
The questions textbox works perfectly but the tags text box only sends a null string to its controller.
The jQuery javascript is an exact match apart from the Url.Action, the non working one is displ...
every time i encounter this word i wonder what it really means. eg an event handler, is that a function?
$('a').click(function(){
...
});
is the click an event. and the handler the anonymous function?
...
I'm playing around with jQTouch for an iPhone OS app that I've been toying with off and on for a while. I wanted to try my hand building it as a web app so I started playing with jQTouch. For reference, here is the page+source (all my code is currently in index.html so you can just "View Source" to see it all):
http://rpj.me/doughapp.co...
I have a form with several <input> text boxes. They work fine via a post request.
Each one is enclosed in its own div, which slides up (using slideUp();) what it has been filled in. However, any text box whose div that has undergone slideUp(); (and is therefore invisible) does not pass its variable on to the next page when the form has ...
I've already looked at this, which was helpful to a point.
Here's the problem. I have a list of users propagated into an element via user click; something like this:
<div id="box">
joe-user
page-joe-user
someone-else
page-someone-else
</div>
On click, I want to make sure that the user has not already been clicked into...
Hello,
I have one table which display data as from Dynamic Content in 1 column. I would like the content to move to a second column when the number of cell is >3. (ie. if there are 3 cells to display, it would be display in 1 col, and 4 cells or more it would be displayed in 2 columns. Note that the dynamic content will never go over 6 ...
I have Apache Velocity.
I have some jQuery code.
I think VM doesn't like when I do things like $img.css("float","left").
How can I completely disable VM parsing within a block of HTML/Javascript ?
Thanks
...