Re: [jQuery] is there a way to add a class to the body when window is resized below a certain width

2009-12-08 Thread Rafał Pocztarski
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

Re: [jQuery] is there a way to add a class to the body when window is resized below a certain width

2009-12-04 Thread ripple
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

[jQuery] is there a way to add a class to the body when window is resized below a certain width

2009-12-04 Thread pab
is there a way to add a class to the body when window is resized below a certain width

[jQuery] Is there a way to define custom event default handler?

2009-08-11 Thread Taras Bogach
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

[jQuery] Is there a way to determine the scrollTop position of the top of the viewport?

2009-08-10 Thread Rick Faircloth
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

[jQuery] Is there a way to disable jQuery's automatic timestamping of GET requests?

2009-07-14 Thread Dan Dascalescu
If you do something like $("

[jQuery] Is there a way to get distinct elements based on criteria

2009-05-14 Thread Bazztrap
For instance $(div).filter("some condition") will return me all unique divs result set ( ) much appreciated

[jQuery] Is there a way to use this function without clicking the link twice?

2009-04-05 Thread Rick Faircloth
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

[jQuery] Is there a way to get a link to submit like a button?

2009-04-03 Thread Rick Faircloth
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 ---

[jQuery] Is there a way to use ScrollTo after a series of other events?

2009-02-23 Thread Rick Faircloth
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

[jQuery] Is there a way to use object detection to "sniff out" jQuery?

2009-02-13 Thread lerxst
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

[jQuery] Is there a way to make a textarea that auto expands as needed?

2009-02-11 Thread Rick Faircloth
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

[jQuery] Is there a way to create Javascript virtual or logical path mappings?

2009-01-09 Thread Rick Faircloth
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

[jQuery] Is there a way to functionally IGNOR 'Object Expected' FATAL errors with IE6 IE7 ??

2008-12-17 Thread yvonney
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

[jQuery] Is there a way to call scroll from outside jQuery.?

2008-12-16 Thread Jigga
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

[jQuery] Is there a way to update an element while you're dragging it?

2008-10-30 Thread tecmo
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

[jQuery] Is there a way to use regex to remove text from a filename

2008-10-15 Thread jrutter
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

[jQuery] Is there a way to add namespace to every css class?

2008-07-01 Thread Albert8752
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

[jQuery] Is there a way to use the css function with $(document) directly?

2008-06-13 Thread Brian J. Fink
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

[jQuery] Is there a way of counting the number of id's with the same name, and then renaming them _1, _2, _3 etc.

2008-05-12 Thread quirksmode
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

[jQuery] is there a way to retrieve objects with a given :hover color?

2008-04-15 Thread Seth Tager
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)

[jQuery] is there a way to set the index of an element?

2008-04-06 Thread hedgomatic
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

[jQuery] Is there a way to hide the script

2008-01-21 Thread DeaR
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:

[jQuery] is there a way use jquery.validate filter special characters?

2007-12-13 Thread phpprogrammer.cn
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

[jQuery] Is there a way to wrap a table around content with jQuery?

2007-10-15 Thread Chris - Implied By Design
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

[jQuery] Is there a way for scroll to anchor(without interface.js plug-in)?

2007-08-01 Thread fatihturan
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.

[jQuery] Is there a way to READ the $.ajax settings?

2007-07-09 Thread Stephan Beal
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

[jQuery] Is there a way...

2007-06-29 Thread rayfidelity
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