2009/12/5 ripple
>
> $(window).resize(function(){
> reSize();
> });
>
> function reSize() {
>
> if ($('#page').width() < 1000) {
> //do something
> }
Nice idea with the less important columns disappearing when the window
gets smaller. I just want to point out that when you only have one
function
Of course you can!
I'm actually working on something similar to that now.
$(window).resize(function(){
reSize();
});
function reSize() {
if ($('#page').width() < 1000) {
//do something
}
http://2whoa.com
--- On Fri, 12/4/09, pab wrote:
From: pab
Subject: [jQue
is there a way to add a class to the body when window is resized below
a certain width
Is there a way to define custom event default handler?
jQuery.fn.bindDefault - this function does not exist, but it would be
nice to have such one to have ability to make equivalent of DOM
default event for custom events.
It have to work just like jQuery.fn.bind, but handlers passed to it
have to
I'm trying to position a div that's used as a modal window 50px from the top
of the
current viewport, no matter where the page currently is scrolled to.
I found "getScrollTop();", but couldn't make that work.
I checked out jQuery's "scrollTop", but that get the y position or offset of
a ma
If you do something like
$("
For instance
$(div).filter("some condition") will return me all unique divs
result set (
)
much appreciated
Strange question, I know.and perhaps stranger coding, but.
I'm trying to trigger a function with a text link and it works, but with the
function coded as is, the link has to be clicked twice.
I'd like to keep the function coded starting with "function
ajaxCreateStoryTitle() {"
rather than
I'd prefer to use a link, rather than a button, but I can't get the
link to submit a form in the same way a button does.
I think it's that the link is using "get" instead of "post", but I don't
know how to force it.
Suggestions?
Thanks,
Rick
---
I've been looking over the ScrollTo options, and looked at SerialScroll,
too,
but didn't see any examples of either being used after other actions, such
as:
$('#test').find().fadeIn(1000).scrollTo('#test'); .or something similar.
Or is there another functions I missed in the docs that will
My question is pretty straightforward. Using only object detection,
is there a way to determine whether or not jQuery will function in
that browser.
Say something like:
// if your browser supports these js objects used in jQuery
if (objectA && objectB && objectC...)
then dynamically output
I'd like to figure out a way to make a textarea
that expands with text input when necessary and shrinks,
also, if possible...and without scrollbars.
I've looked around, but haven't found a solution that
does everything.
Anyone know if that's possible with jQuery? Or how to do it?
Rick
I've got login templates that use jQuery and the
path required depends on the ColdFusion template
including the jQuery in the page.
For example:
tb_show("Login", "login/login_form.cfm?height=320&width=290&modal=true", false);
This code's path, "login/login_form.cfm", works when included
from a
Hi!!! Well after 1000's of newbie hours I've got my page looking
nice in IE and FF.
Thing is I get absolutely NO JQuery or Javascript funtioning in IE6 or
IE7...
I though it was the need to install the JRE java stuff as I'm running
XPsp2 in virtualbox.
Anyways... I get the Obect Expected mes
Thank for this great plugin.
I have one problem. I have created two carousels fetching images with
Ajax, on the same page.
First carousel displays and scrolls only one image each scroll.
The second carousel displays and scrolls 4 images each scroll. This
carousel is supposed to be a thumbnail li
i'm using the sortables and dragging around div containers with text
boxes. I change the value of the text boxes while dragging, but the
changed values don't appear on the item you're dragging. Only when
you drop the item do the changes appear on the dragged item. Is there
a way to refresh the
So if I have the following text that prints out on the page
file.gif
Is there a way in jquery to search for the ".gif" and remove it from
showing up and/or replace it with an icon?
please let me know
Hi,
Is there a way to add namespace to every css class?
a. Dynamically on the page?
b. If it is not possible dynamically, how to do it not dynamically.
For example
- Original css--
.nav {.some css atribute }
.main {.some css atribute }
.box {.some css
I was tinkering with jQuery when I got an idea: why not have a way to
do something like:
$(document).css(selector,rule);
Then it could be chained for as many rules as you would wish:
$
(document).css(selector1,rule1).css(selector2,rule2)...css(selectorN,ruleN);
If this is already part of the j
Hi,
I am dynamically generating html which looks like this:
Some Content
Some Content
Some Content
I need to write some jquery which will turn that into this:
Some Content
Some Content
Some Content
Any ideas?
Dave
I'm trying to access all objects with a given color, but I can't
figure out how to get objects by :hover color. I'm using this code:
$(document).ready(function() {
$('*').each(function() {
var fg = $(this).css('color');
// do something with $(this)
Let's say I have a page containing the following:
1
1
1
1
1
1
and I want to randomize the order these divs appear on the screen,
mapped to the button's click event.
I can capture the click event, get a count for the number of elements,
make an array with the same length and then randomiz
If I make a long jQuery script, and when the webpage is loaded, when we look
at the source code, then everyone will be able to see the jQuery script. Are
there any ways to get this hidden. I wanna hide these scripts for SEO reason
as well...
Thank you very much
--
View this message in context:
is there a way use jquery.validate filter special characters?
like some one want to input "*&^%" as username,
is there a way to solve it?
thanks
Hello,
I'm running into some trouble trying to wrap a table around some
content. The table looks like this:
Content
[image to be wrapped around]
More Content
I've been experiementing with the most of the API DOM manipulation
functions, but none of them seem to do the trick. I'd like to use
so
Is there a way for scrolling to anchor(without interface.js plug-in)?
I don't want to use interface.js plug-in. Because it's huge size for
one function. xD
Thanks.
Hi, all!
i would like to force $.ajax() to use synchronous mode temporarily and
then switch it back to whatever mode it was in before i started. The
problem is, i can't find away to read that setting (without dipping
into the undocument/private structure of the jQuery code). Of course,
i can do t
i don't know how to explain. It's like this
...
When i click on the link, i call jquery ajax and do something.
Can jquery change the img (so that it would give response from ajax)
even though the images are the same and they are all in the same
class? Or do i have to assign a unique class to
28 matches
Mail list logo