[jQuery] Slightly OT: Datejs - jQuery-like date chaining
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Arial">Just spotted this via Ajaxian: <a class="moz-txt-link-freetext" href="http://www.datejs.com/">http://www.datejs.com/</a> It's got jQuery-like syntax for working with dates: </font><span class="co1">// What date is next thrusday?</span> Date.<span class="me1">today</span><span class="br0">(</span><span class="br0">)</span>.<span class="me1">next</span><span
[jQuery] Getting background-position
How do I get the background-position? $('.XXX').css("background_position"); $('.XXX').css("background-position"); $('.XXX').css("backgroundPosition"); ...do not work. Other variants like "background-color" work fine. ~ ~ David
[jQuery] [IE] .slideToggle() problems
So, I keep posting this same problem but no one seems to be able to help me and I can't see what it is either. The code is simple, it's a Click X and show Y type of thing which happens to work in Firefox but once I go into IE I feel like putting my head through my monitor, which thankfully isn't CRT, last time I did that I had a concussion. Now, the problem is that when in IE it doesn't slide, it doesn't go up or down, it doesn't toggle. It shows it as just shown. not working or anything. If anyone
[jQuery] jcarousel thickbox ajax
Hi, I am loading a text file dynamically with ajax into jcarousel and then using thickbox. It work great except that in thickbox it only loads the number of files that I can scroll to next i.e. there are 55 images in my text file but in thickbox I get: Image 3 of 6 < Prev Next > Is there a way to get: Image 3 of 55 < Prev Next > in thickbox without having to scroll throught the carousel first? thanks james
[jQuery] Imagebox Outer Container issue in IE.
I love the Imagebox plugin and have used it extensively, but have run into a situation I don't know how to handle. I have created a "mini gallery" of images within a page with lots of other information (the important part here is that the imagebox images are not at the top of the page), so when one of the thumbnails is clicked, the full size image appears towards the top of the page (just over 50px from top), out of view. I discovered an easy fix, which was to change the positioning of the outer
[jQuery] [ARTICLE] jQuery Demo: Working With XML Documents
Ben Nadel continues his love affair with jQuery: jQuery Demo: Working With XML Documents http://www.bennadel.com/index.cfm?dax=blog:1054.view Rey
[jQuery] Getting the index of a cell in a row.
Hi, I hope somebody can help me. I'm trying to write a function which will tick every checkbox in a column when you tick the checkbox in the header. The plan is to attach an evetn to every checkbox in the header which when you check it will find the column bumber of the cell it is in and plug that number into the following code where the x is... $(".Grid tbody tr td:nth-child(x) input[@type='checkbox']").each(function() { this.checked = true; }); I can figure out how to get the parent element
[jQuery] children question
I'm working on a simple editor where I can see the changes as I type them. I got the idea figured out, but I'm selecting everything individually. Here's JS of the one that I have working right now: $(document).ready( function () { $('#newsEdit').focus( function() { editing = "news"; }); $('#newsEdit').blur( function() { editing = "none"; }); $('#newsEdit').keyup( function() { if(editing == 'news') { $('#news').html( $('#newsEdit').val() ); }
[jQuery] autocomplete new dependency
I downloaded the latest from the repository today and found I was get an error of list.scrollTop not a function. I saw something about a dependency on the dimensions plugin. So I added that to the scripts loaded before the autocomplete. I was then getting a strange issue on the display of the results - a horizontal scrollbar suddenly appeared. This is strange to me because I never had this issue before. I downgraded to the autocomplete.min Rev 2384, removed dimensions, and no horizontal scrollbar
[jQuery] Problem with unbind and submit
I have a form where the contents of the form are validated with the jQuery Validation Plugin. I am also using a custom submit handler to ajax post the data to a third party, but I also wish to post the data to the form normally. Inside of the validation plugin, there is a section that returns false to the submit call if there is a custom submit function (which makes sense). But I wish to, if the return from the third party is success, submit the form normally. I am trying a work around, that works
[jQuery] persisted sortable divs...
Hello All, So I've played with other libraries including mootools, and prototype/ scriptaculous quite a bit, but I've decided to move on to other adventures and try out jQuery. I've heard awesome things about it, in the CFMX community! Since I'm so new to the library, I thought I'd post a problem I'm running into, to mainly see if I can get pointed somewhere and or some advice to get me started... So what I have is a three column layout that I need to be able to sort (column-1 & column-2) and persist
[jQuery] problem setting up idTabs on ajax success callback in IE6 sp2
Hi, when i try to initialize idTabs on successful ajax request it fails in IE6, but works in FF2, Opera 9 and Safari for Windows. Anyone else had such problem? Is there a solution? Thanks in advance.
[jQuery] Is the onreset event supported
Hi I was just wondering if the onreset event is supported? I can't find any reference to it at http://docs.jquery.com/Events. I did however find a reference and some examples to reset here http://dev.jquery.com/~john/jquery/docs/index.xml But the example did not work for me. I using jQuery 1.2.1. Has anyone go the onreset/rest events working? Thanks Tom
[jQuery] Packing a javascript modified
I have modified a file for jquery... a WYMeditor editor js file and i want to packing it. How tool i use? Thank you
[jQuery] resizable aspectRatio, does it work?
Hi there, I am trying to create a resizable object that gets resized only using the se handle and maintains its aspect ratio. I tried: var options={aspectRatio: 'preserve' } resizeobj.resizable(options); but nothing happens. Am I doing something wrong? Val
[jQuery] how to access this?
Hi, I have this: <td ><label for="height">Height<br/> <div> <select name="height" id="height"> <option>78</option> </select>inches</div> </label></td> How to access the word "Inches" and change it to something else? Thanks. A.C.
using ajax, adding some code in an specified div.
is it possible to use jquery to add some code via ajax on an specified div? first i want to know is how to set the target div. the second thing is how to say jquery not to overwrite the div with code submitted from server but add the submitted code at the end of the xisting/previous submitted code. thx in advance
[jQuery] selector to string
I'm sure it's a simple question, but i'm looking in the api but don't find it. How do i convert my selected element to a string? something like : "#myId a.myClass"
[jQuery] NaNpx problem in jQuery 1.2.1
Hi all. I've built an "auto search" plugin (or live search to give it another name) using jQuery 1.2.1 which does an ajax call as letters are typed into an input box. It works flawlessly in firefox, opera and safari, but in IE7 and IE6 jQuery fails at line 906: if ( value != undefined ) elem[name] = value; the value of um, value is "NaNpx" I've done some digging around the web and a have found mention of this problem ( here: http://dev.jquery.com/ticket/1861 ), but without any fixes.
[jQuery] clueTip: opening one tip closes another tip
Hello I'm pretty sure I am missing atrick here - but just in case... I have the following collection of images/buttons that display a sticky clueTip when clicked: $('a.warn').cluetip({ activation: 'click', width: 180, 'sticky': true, cluetipClass: 'warning', dropShadow: true, 'closePosition': 'title', closeText: 'close', arrows: true }); Currently, with a "tip A" open, I have to close "tip A" before I open another tip ("tip B") -
[jQuery] html() and text() creates block elements - need inline to output messages
Hello, I have a small menu bar <div> with several buttons. Only the height of the buttons. I.ex. one button creates a new list item under the bar. A <span> element (.msg) shows the message where I output "New item created" after every click and fade it out. If I use $(".msg").replaceWith(text).fadeOut("slow") - I only get the text on the first click. And the text does not fade out. I believe "replaceWith" replaces the element with a new one and removes the event? When I use: $(".msg").html(txt) or
[jQuery] Which child am I?
I have the following html: <table> <thead> <tr> <th>col a</th> <th>col b</th> <th>col c</th> </tr> </thead> <tbody> <tr> <td>aaa</td> <td>bbb</td> <td>ccc</td> </tr> </tbody> </table> When the user hovers the th-element I have a function. I want that function to return which of the columns that has been hovered. Let me explain... when hovering "col a" I want to get the value 1 and when hovering "col b" I want to get the value 2. Any suggestions on how can that be achieved? Thanks! /Niklas
[jQuery] How to access dynamic raw images generated by PHP?
I have a script in PHP which will output an image directly to the browser ( imagepng($image) ). It isn't stored anywhere permanently. I'd like for jQuery to display this image on the page, but I can't think of a feasible way for jQuery to access the image stream and output it to the browser. I call the PHP script with an ajax post request, but like I said, the data returned is the raw png file. I don't plan on having PHP output the image to a file, but if there's no other way of doing it i'll settle
[jQuery] load() render issues
I'm getting inconsistent rendering of the html pulled form another page using load(). Here is the code: var root_url = window.location.href; var load_url = $('.tabs-navigation ul li:eq(0) a').attr('href'); $(".tabs-content .overview").load(root_url+load_url+' .entry *'); Safari 3 is adding an extra in the output. FF2 is self closing <div>s and extracting <a>s from elements and placing them on there own line. When I check the response in FireBug's console the html is being retrieved intact. I'm using
[jQuery] is it a bug?
Hi, I make the Reversion #3944 of jQuery from svn,and there is an error, error: selector has no properties source:/jquery.js line:343 is it a bug?
how to specify "target" in ajax
form plugin and ajax, i want to use form.serialize in cunjunction with ajax and don't know haow to specify where to put the servers "answer". using ajaxSubmit i can specify this as "target". but how to specify it by using ajax. (i need to manipulate the serialized string. inside the form are some buttons, if pressed some special variable shloud be send along with the other form data.)
[jQuery] jQuery.Rule 0.9
I added a new release of this plugin. I passed some functions to jQuery's prototype, so they can be reused. Added to jQuery.fn: ownerNode,sheet,cssRules and cssText. I also added some more useful functions to jQuery.Rule's prototype like text and outerText. I felt most people didn't quite get what was the plugin actually doing when they tried the example. So I improved it a bit, to clear this out (hopefully). The plugin is meant to work well in IE6 and FF2, Windows, that's what I tested on. CSS rules
[jQuery] Off-line documentation
I seem to remember reading once that I could download the jQuery documentation for use off-line. I've looked a little, but couldn't find it. Does anyone remember if this is so? And if so, where do I get it? Cheers, Chris<br clear="all"> -- <a href="http://cjordan.us">http://cjordan.us</a>
[jQuery] jQuery 1.2 features (wha'ts new)
I looked through the whole site and cannot find a table of content or even a comparison table highlighting the new features of v1.2. We are currently using 1.1.3.1 and I need to know what has been added to 1.2. I read somewhere that dimensions is now part of the core, that awesome, but what else was added? Is there a table? Perhaps this would be a very useful page to have where people can see what each version contains. Please let me know if this idea will be granted. Many thanks! jQuery Rules!
[jQuery] jquery.autocomplete.js -- IE unresponsive bug?
All of a sudden getting users on IE complaining of an "unresponsive script" message. It's a simple autocomplete using jquery.autocomplete.js. Are there any known issues here?
[jQuery] limits using dblclick when too many elements ?
Hello, My script has a strange behaviour and I can not found why. My html code looks like : <div class="bioNumUnit"> <span class="siteSelector" id="s1">1</span> <span class="siteSelector" id="s2">2</span> <span class="siteSelector" id="s3">3</span> <span class="siteSelector" id="s4">4</span> ... ... <span class="siteSelector" id="sn-1">n-1</span> <span class="siteSelector" id="sn">n</span> </div> I use jQuery 1.2.1. and have a script like this : $(document).ready(function() { $("#test").load('cgi-bin/alignTmp/num')
[jQuery] jqModal Overlay not positioned correctly
I'm using Jquery 1.2.1 and the latest version of jqModal. For some reason the jqmOverlay is not positioned absolute-ly and pushes down content when viewed in IE7. Works fine in FF (of course). Here is the relevant goodness: --JS-- $(document).ready(function(){ $('#quicktip').jqm({overlay: 40, ajax:'tips.php', target: '.quicktip_content'}); $('#quicktip').jqmShow(); }) --CSS-- .jqmWindow { display: none; position: fixed; top: 17%; left: 50%; margin-left: -150px; width: 300px; background-color:
[jQuery] jqModal Overlay not positioned correctly
I'm using Jquery 1.2.1 and the latest version of jqModal. For some reason the jqmOverlay is not positioned absolute-ly and pushes down content when viewed in IE7. Works fine in FF (of course). Here is the relevant goodness: --JS-- $(document).ready(function(){ $('#quicktip').jqm({overlay: 40, ajax:'tips.php', target: '.quicktip_content'}); $('#quicktip').jqmShow(); }) --CSS-- .jqmWindow { display: none; position: fixed; top: 17%; left: 50%; margin-left: -150px; width: 300px; background-color:
[jQuery] expand iframe height to match the height of dynamic content
Is there a good jQuery solution to this?
[jQuery] Best way to attach settings to a bunch of HTML
Just a quick question hopefully. What's the best way of storing settings as part of a chunk of html ? Let me give an example of a photo gallery with lots of photos on the page with the following HTML for each one... <div class="Photo"> <div class="Title">Walking in the park</div> <img src="photos/walkinginthepark.jpg" /> <div class="Rating">Average Rating:<b>6/10</b></div> </div> Somewhere I would like to store a setting for each Photo which says whether the user has voted on the photo yet or not.
[jQuery] For Brazilians jQuery Developers
I'm here to ask to a brazilian jQuery developer about a form validation example published here days ago. Outro dia um desenvolvedor brasileiro nos mostrou um exemplo aqui de uma validação onde ele apresenta uma tela de "AGUARDE..." no momento da chamada da validação do formulário(usando Jorn Form Validation). Alguém se lembra desse post? Eu queria ver novamente aquele exemplo que achei bastante interessante. Se não me falha a memória era um form de uma universidade do estado do Paraná. Obrigado.
[jQuery] jeditable - issue dynamically resetting submitdata
I am using jeditable plug and it's working well but i am stuck with something i need to do. basically, i need to dynamically update the submitdata attribute of various editable text inputs according to events happening on the client. specifically, the user clicks on different thumbnails, and then can edit in place different properties of the image (such as description, url etc). when the thumbs are clicked i used .html() to load the new content in the various editable inputs. then i try to reset
[jQuery] HELP: Pause & Play
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Arial">I put together the following script, inspired by Innerfade (<a class="moz-txt-link-freetext" href="http://medienfreunde.com/lab/innerfade/">http://medienfreunde.com/lab/innerfade/</a>), which sequentially rotates the background image of a specified div. Does anyone know how create a button that pause/play it? Thanks <style> #Image { background-image:
[jQuery] jQuery and WEB 2.0 architecture (SOFEA/SOUI) [crosspost from dev list]
Hello everybody, I'm a jQuery (very satisfied) user :-) I want to know what do you think of this "new" (I know that the acronym it's the only "new" thing) Web 2.0 architecture, of which I read first here: http://raibledesigns.com/rd/entry/re_life_above_the_service (another post http://raibledesigns.com/rd/entry/sofea_also_known_as_soui) I think that there's a need of js frameworks to support this architecture, specifically, a js framework to implement a MVC pattern client side http://www.infoq.com/news/2007/11/soui-death-of-mvc2
[jQuery] id with ":" colon
Hello, i have question why this code dosn't work. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="jquery.js"></script> </head> <script> function make(arg){ $("#"+arg).text("New text"); } </script> <body> <div id="one:iden">something</div> <br/> <a href="#" onclick="make('one:iden')">link</a> </body> </html> And when i remove ":" from id, it work.
Next Page