[jQuery] Getting prev siblings
Is there a way to get the previous sibling of a specific class in the DOM (a) at the same level as the start point, and (b) at lower levels? .prev appears to obtain the sibling *only* if it's the immediate sibling in the DOM. It doesn't return the first previous matching sibling as one might expect. ~ ~ Dave
[jQuery] Click counter
Hi, I would like to know if someone try to make Click (link) conter in jQuery. * If user click to link, the jQuery would count the click in database. There is any solution?
[jQuery] Resize images with jQuery
Hi, i can now read the values of the input file filed and set the img src to that value for a preview of the image prior to u pload. But what i need to do now is resize this large image when showing the preview prior to upload AND maintain aspect ratio. Possible? Ashok
[jQuery] help on $.get
how to pass multiple value from php to $.get in jQuery. i need to pass varibles from php to ajax file ...buti cann't find no way to do it.
[jQuery] Design group
Hi John, have you considered creating two separate groups: one for design topics, and other related to support issues. Some other open source projects work this way and I think improves readability, it's easier to participate in them and find what we're looking for, and especially keeping up to date. I know sometimes it's hard to have a clear separation, but I think in general it could be applied, and taking into account the success of the library and the amount of posts this group has every day,
[jQuery] Complete jQuery documentation
Is there complete jQuery documentation? I think about all functions using in jQuery even low-level, eg. function jQuery.inArray , jQuery.swap or jQuery.isXMLDoc. I know it's not useful for an ordinary user, but I'm trying write my own plugins and I think it will be useful. Sorry for my English ;)
[jQuery] get _GET paramers from parent window in thickbox
hey im using thickbox and the problem is that once i open a modal window i cannot access to the GET parameters that i typed cause its diffrent url lets say the main page has www.bla.com/?blah=1&b=2 then i open a thickbox -> <// a href="#" onclick="tb_show('bbb','/modals/?height=425&width=610&modal=true&window_id=2&backtodiv=allevent');"> if i use $_GET i can get only &backtodiv=allevent and stuff i want to able inside the modal to get blah=1&b=2 is that possible? -- View this message in context:
[jQuery] Droppables into iframe
Hello, Wondering if anyone has ever considered this situation: I have a list of items on a page, and an iframe within that page. In the iframe I've implemented Sortables, and I want to drag items from my page's list into the iframe, and work with that Sortables implementation. Any ideas? Thanks.
[jQuery] IE6 blockUI issue in combination with jQuery 1.1.3.1
Hi all, I have a problem with blockUI (latest), which I couldn't resolve on my own. I have a very simple test page with the following content <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>blockui test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
[jQuery] problem or unable to understand html(val) & empty() function
hi, I have something like this .. <p id="similar_employees"> Theare are 2 similar employee(s). <ul> <li>Bondoc Sheryl</li> <li>Bondoc Sheryl</li> </ul> jquery when I execute $('p[@id=similar_employess]').html(data); where the data is equal to *** There are 2 similar employee(s). <ul> <li>Bondoc Sheryl ***</li> <li>Bondoc Sheryl ***</li> </ul>
[jQuery] Help
How to send jquery $.get php varibles. i need to call ajax file with multivaribles how can i do it
[jQuery] doubt about jQuery
Hi...i am new to JavaScript but i have been reading a little...and i entered jQuery web page, and i have a some Doubts... 1) Is jQuery programming faster than traditional javaScript programming?? 2)Is jQuery available for the Client without downloading anything?... Thanks in advance
[jQuery] new sites
http://www.maplesoft.com famous math software vendor ------------------------------------- http://www.tudou.com chinese site,video share website ------------------------------------- http://www.job858.com chinese site,find job,give u more opportunity
[jQuery] Fisheye within Horizontal Scrolling Div - Breaks Cursor Location
Trying to use Fisheye JS within a horizontal scrolling widget. If the fisheye overflows (which I want) the cursor location calculated is incorrect. If I used a div element scollLeft() it would work. My question is, how do i incorporate the scollLeft() div element value into the code? Thanks Darin
[jQuery] Could use some help trying to get autocomplete / editable to work in Rails
Hi, I'm very novice at javascript, and the team I work with likes to use jQuery. Now, I'm trying to learn and play around with things, but there really isn't any content on the web related to jquery and rails. I know there are guys that use it, but there isn't material I can really learn off of. So, I was wondering if anyone can show me examples of using an "edit in place" type of functionality with Rails, and or a "autocompletion" functionality. I'd really appreciate some help, guidance, or what
[jQuery] Can jQuery get attributes of the actual style sheet?
IE does not support the CSS class :active but FireFox does. I use this to change the background color on a div to give feedback similar to a button click. For IE users I attach the mousedown and mouseup events to a function that simply does the same thing. However, if I ever change the color in my CSS class I have to remember to change the jQuery function to match. Can I have jQuery find this background color attribute in the css class in the style sheet? If so, I could just change it once in
[jQuery] Access css style sheet properties directly
For instance, I have the following css code on my style sheet: div#cpblock-links a:link, div#cpblock-links a:visited, div#cpblock-links a:active { color: #ffffff; text-decoration: none; } div#cpblock-links a:hover { color: #535f68; text-decoration: none; } If I access one of the links inside the #cpblock div and use the $ ().css method, I can get the link color, but how do I get the link color from when the mouse is over the links without really moving the mouse over the link? I need
[jQuery] Fading links from one color to another (like Mootools)
Hi, I'm a newbie at jQuery and basic/average JavaScript coder. Recently, I was talking to a friend, asking which JavaScript framework does he use or will use in his CMS project and he mentioned Mootools and Prototype (I'm not here to discuss them). Well, I knew Prototype, but not Mootools, so I decided to check their webpage to see if I would choose it over jQuery. Well. I don't want to use Mootools, jQuery seems easier to learn and use, however, I noticed Mootools has some neat effect that I would
[jQuery] Fisheye Scrolling Div - Breaks Cursor Location
Si have made a scrolling div for the jquery fisheye. It works great, except it loses the cursor location as you scroll horizontally to the right. I read that the cursor location is calculated from the left most image in the list. More reading shows me that JQuery has a great set of tools... dimension.js. I lloked into it further and tried to implement the scolling offset to be added back into the cursor location when using a scrolling element such as I did with a DIV. Code is shown below: Here is
[jQuery] problems with .css()
I am having a bit of a problem with this function. The code I have is: $('.aDiv').css({ float: 'left', border: '1px dashed #ccc', margin: '1px', padding: '10px' }); If I try to add any css property with a hyphen in it, such as text- align or font-family, $('.aDiv').width(40).height(40).css({ text-align: 'center', float: 'left', border: '1px dashed #ccc', margin: '1px', padding: '10px' }); it generates a error: missing : before property id Any ideas on how I can work around this? Thanks! -Jay
[jQuery] Could use some help trying to get autocomplete / editable to work in Rails
Hi, I'm very novice at javascript, and the team I work with likes to use jQuery. Now, I'm trying to learn and play around with things, but there really isn't any content on the web related to jquery and rails. I know there are guys that use it, but there isn't material I can really learn off of. So, I was wondering if anyone can show me examples of using an "edit in place" type of functionality with Rails, and or a "autocompletion" functionality. I'd really appreciate some help, guidance, or what
[jQuery] jCarouselLite problem
Hi folks/Ganeshji I'm having trouble getting jCaroselLite to work "first time" round. When I either link to a page containing a carousel or to a thickbox containing a carousel, in neither case do the images appear when that page/thickbox is visited via the link. However, if I refresh the page, the images/the carousel appears immediately. I'm trigger the plugin as... $(document).ready(function() { $(".mixedContent .jCarouselLite").jCarouselLite({ btnNext: ".mixedContent .next", btnPrev: ".mixedContent
[jQuery] $.clone
During assingment, if the object is not primative, Javascript will return a pointer to the object rather than a copy. E.g. a = [1,2] b = a b[0]=3 a ==> [3,2] This clone function makes it possible to copy an object. $.clone = function (obj) { if(typeof(obj) != 'object') return obj; if(obj == null) return obj; var newobj = new Object(); for(var i in obj) newobj[i] = $.clone(obj[i]); return newobj; } a = [1,2] b = $.clone(a) b[0]=3 a ==> [1,2] I have found this function invaluable
[jQuery] regex operators for the jQuery XPath filter
I'm usually using Perl's Class::XPath and Tree::XPathEngine modules and there the Perl-style regex matching operators "=~" and "!~" are available as operators in the XPath filters. What I'm speaking about? Well, for example selections like: a[@href =~ "^.+(gif|jpe?g|png)$"] I know that this is neither strict CSS nor XPath syntax, but for being able to leverage from the full power of regular expressions directly in the jQuery selectors I found the following small change to the jQuery core very useful.
[jQuery] jquery.flickr + reflection
Hi, Im trying to use the http://cow.neondragon.net/stuff/reflection/ reflection plugin with the http://www.projectatomic.com/flickr/#a_code flickr plugin but no reflection is added. How I have it setup at the moment is once the html is loaded, load a set of flickr images then add a class called reflect to all img tags on the document like so. $(document).ready(function() { $('#gallery').flickr({ api_key: 'api key', type: 'search', user_id: 'users id', tags: 'siskin',
[jQuery] Tune up your Windows XP
Optimize your operating system, minimize background activities, repair registry base, uninstall unnecessary components, get rid of boring errors and make your operating system safer. <a href="http://windowsxpsp2pro.blogspot.com"> http://windowsxpsp2pro.blogspot.com</a>
[jQuery] [SITE SUBMISSION] logitech.com & socwall.com
i recently came across these sites that use jquery: http://www.logitech.com http://www.socwall.com - Social Wallpapering dennis.
[jQuery] Best way to select a cell in a table?
I have a table that represents a matrix with various columns and rows. I use AJAX/JSON to populate the various cells with data. Not every cell will contain an item of data and some may have more than one item. What's the best way to select a specific cell of the table? If I wanted the 2nd row 3rd cell the following works: $("tr:eq(1), td:eq(2)") This is a rather simplistic example but is this better than, say, giving every cell its own id or is there a completely different method that others prefer?
[jQuery] Using JQuery in firefox extension
hi I want to know how to use JQuery in firefox extension and have some trouble. for example: $('img').click(function() { alert('hello')});); // no error, but not work. window.content.$('img').click(function() { alert('hello')});); // it will raise a error about content.$ is not a function or window.content.eval('$("img").click(function() { alert("hello")});); // could not use eval what should i do to make JQuery work in firefox extension? thanks lucemia
[jQuery] New to jquery, adding/modify option box in a <select> block
Hi all, Given the enthusiasm of the community that surrounds jquery, in addition to the excellent documentation, I've decided to give it a go over prototype and the like. I have a rather simple inquiry that's more conceptual than technicalicaties of syntax. I'm currently writing an application for a car inventory. Users have the option to select make/model, etc, which ultimately adds the options to a database. My issue is right now I lack an existing database with car make/ models, and I'm looking
[jQuery] Question (maybe a suggestion) about BlockUI plugin IE6
Before I ever new javascript frameworks or jQuery, I implemented something like this (but very basic) on some script of mine. However, I had a problem in IE6 that couldn't use a background-color and opacity cause wouldn't work. My stupid solution was to use a gif with 4 pixels, 2 white and 2 transparent, like a checkers board. That would work in every browser and in every platform. My question is: does the opacity implemented in BlockUI works correctly in IE6? If not, maybe you could implement this
[jQuery] Announce: dice roller plugin
Hi, all! As if the world really needs this... well, i needed it. BogoDice is a simple "dice roller" plugin: http://jquery.com/plugins/project/BogoDice There's a link to the demo page there. The full docs are in the uncompressed sources. The most significant TODO for the plugin is the ability to call server- side code to fetch dice results, instead of "rolling" them client- side, as that would be useful for online games where absolute trust in the dice results is an issue. Packed, the code is less
[jQuery] Chat in separate frame
Does anyone could explain me how I could prepare simple chat but executed in separate frame. Just like chat using by gmail. I have my own page where I could freely navigate but chat window will be all the time visible. Chat indeed is simple my mail problem is to activate it in frame. thanks in advance
[jQuery] Ext 1.1
Hi all! Is there an update to the jquery-plugins.js? The one that comes with Ext 1.1 looks pretty old. I just want to make sure I'm not missing something. Thanks! Redards, Jon.
[jQuery] About Browser Width Detection
I am trying to allow a right side content area on my website to disappear when browser width shrinks down to 800 pixels. Do you know how to detect browser width with jquery in real time?
[jQuery] Referencing the target field in an Event Handler
I have attached an event handler to a form field like this: $('#'+fieldID).bind("change", {fieldref: fieldID}, this.changeHandler) In my handler, I can get a reference to the field by using 'event.target' and I can use jQuery functions by doing $ (event.target).... In this example, my field is a select field. If I want to get the value of that select field, am I correct to assume that the best way to do this is: event.target.options[event.target.selectedIndex].value or is there a better way to do
[jQuery] jCarousel question
Hi, quick question about jCarousel: I have 3 items in the carousel, showing only one at a time. What I'm trying to accomplish is have the middle item showing on start, so you can scroll one item left or right. When I set the 'start: 2' option, it does start on the middle item, but when scrolling left nothing appears, and when scrolling right the middle item repeats, even though the content for each item is different. This is repeated in all browsers. Am I doing something wrong or going about this
[jQuery] New to jquery, adding/modify option box in a <select> block
Hi all, Given the enthusiasm of the community that surrounds jquery, in addition to the excellent documentation, I've decided to give it a go over prototype and the like. I have a rather simple inquiry that's more conceptual than technicalicaties of syntax. I'm currently writing an application for a car inventory. Users have the option to select make/model, etc, which ultimately adds the options to a database. My issue is right now I lack an existing database with car make/models, and I'm looking
[jQuery] Slide on a fieldset and Firefox
I have a page with a fieldset that contains a div with an overflow-y set as auto. If I do a slideup or slidetoggle on that fieldset, the div with the scroll bar does not slide up correctly. Instead it just stays completely visible until the slide has finished, at which point it disappears. Any other elements in the fieldset slide correctly. It reminds me of the IE6 problem where you need an iframe shim to stop windowed controls showing through. If you surround the fieldset with a div and do the slide
[jQuery] Safari 1.3.2 click event not returning false
Hi, I have the below problem happening for one of my clients, any ideas on what's the cause? I've tried a number of different things and essentially updating to the latest nightlie and removing all other javascript except for the return false on the link and the problem still persists. Bug Details: Safari 1.3.2 on OSX 10.3.9 using older version of jquery (but have tested with 1.1.3.1 with same result) does not return false on the click event defined. Offending URL: http://secure.heritageonline.com.au/
Next Page