[jQuery] Interface: Slider, fractions, onSlide reporting incorrect fractions?
I have a Slider with fractions and an onSlide handler. Sometimes when the handler is invoked, the reported value for xProc seems to be "lagging" -- it seems to be the value from just before the slider jumped to its current position. Has anyone else seen this problem? I'd like to post an example but am not sure how Google Groups will handle the formatting. So for now, here's a fragment to demonstrate the problem. <div id="slider_frame"> <div id="bar"> <div id="indicator" class="Indicator"></div> </div>
[jQuery] trigger function when something has changed
Hi I've a big legacy app on which there is jquery now. There is a 2 columns design, and when the page loads their height is being equalized. My issue is that their is lot of javascript, old and jquery style, often with inline calls, which will add or expand content and hence change the height of the containing column. Is their a way to detect that "something has happened" and trigger my equalizing function at that moment ? I know its a crazy question, but I'm desperate... -Olivier
[jQuery] Ajax: (Didn't have time to go over posted messages)
Are custom headers (x-*) supported in the current version of Jquery ? If not any quick workarounds ? Didn't have time to go over the posts in the group and i would appreciate answers/tips cause i need to deploy an app. based heavily on async calls and custom headers will be required in many occasions. thank you.
[jQuery] Noob Question - .add() not working in IE?
Hello group, I try to dynamically add some tags and content to an existing element (basically a toggle-link, that's only to be seen if JS is active and that slideToggles a div). Somehow my code doesn't work in IE, although it works fine in other browsers like Firefox or Safari: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++ JQuery: $(document).ready(function(){ // hide div on pageready: if( $("div.reduction-wrap") ){ $("div.reduction-wrap").hide(); // add
[jQuery] SITE SUBMISSION: Please add www.paddockcleaner.com.au to the list of sites
Me again :) Here is another (fairly basic) site I just recently designed and developed. www.paddockcleaner.com.au The site needed to be done to a budget so liberal use of plugins made it possible to add bells and whistles unobtrusively without spending too much time. - Mike Alsup's amazing Media Plugin used to embed video upon click of the video image on the gallery page. - My own unreleased "Showoff" plugin. Think "Innerfade" but even lighter in weight and with more functionality (custom animations,
[jQuery] Enable / disable submit button not working
I can't figure out why this simple isn't working. I've tried a number of variations. I've tried examining the vars with debugging output. I have a bunch of forms on the page, each one having just one text input and a submit button. When the user types in any of the forms I want to make sure the text field is not empty (i.e., they haven't just cleared the field) and enable the submit button accordingly. However, the state of the submit button does not change. I've verified that the script is getting
[jQuery] switch between two class - Basic Issue
Hi Folks I am trying switch between two class Is it possible? $(document).ready(function(){ $(".collapsible .collapsed").click(function(){ $(this).removeClass().addClass("collapsibleopen"); }); $("collapsibleopen").click(function(){ $(this).removeClass().addClass("collapsible collapsed"); }); });<br clear="all"> My first switch works but when I click in collapsibleopen (change from the previous click) didnt change. I have many .collapsible .collapsed classes so I cant
[jQuery] Populating Select Boxes
Hi, I am new to jquery and have a problem that I cannot explain. I am trying to populate a select box with values from a database. The select box works fine in FF, but nothing appears to happen in IE. Below is my code. Any help on what this is caused by would be greatly appreciated: HTML file: <html> <head> <title>Testing AJAX and PHP</title> <script type="text/javascript" src="../js_files/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#sector").load("ajax-test2.php?cmd=init");
[jQuery] Plug-ins: Tabs and Cookies
Hi, having some small troubles with the tabs plug-in from Klaus Hartl (http://www.stilbuero.de/jquery/tabs/). I'm trying to implement his cookies plug-in (see code below) and can't seem to get the tabs to change to the defined tab using the method "Start With Custom Tab" [code example: $('#container-1).tabs(2);]. As you can see in the code below, I'm trying to start with a custom tab defined by "$.cookie(TABS_COOKIE)||1". This should look up the cookie and set the value if any, if not, the default
[jQuery] Callback after append?
I'm adding html into a div using append. I want to update my custom scrollbar plugin which is in a parent div after the append has completed loading to accommodate the new height of the content in the child div. What's the proper way of doing a callback after append for a different div? I cannot simply chain this because it's a different div. This is what I have but the callback paramater does not seem to work for append - perhaps it's not a parameter at all? <div id="parentDiv" class="scrollBar"
[jQuery] safari failing to remove()
Can't figure out for the live of me why remove() is working on this function in every browser but Safari: http://www.lifford.org/exp/tmr.html to summarize what's going on, this is my only function: $(document).ready(function() { $('a').not($("#nav a[@href]")) .click(function() { $('<span class="disabledLinkMsg">All links in this demo are disabled except those under "Nav". <u>close</u></ span>').appendTo(this).click(function() { $(this).remove(); });
[jQuery] jQuery AJAX w/ ASP.NET
For the life of me, I cannot get jQuery working w/ ASP.NET. My front- end seems to call the .NET script, but once the script is processed, it's forwarding the browser to the ASPX result page rather than just returning the values. I've tried using $.ajax, $.post, the form plugin, just about every way a noob could think of with no results, posted is all of the code involved, maybe someone can make sense of this? HTML/JS code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[jQuery] Possible to retrieve image data via AJAX for display?
Hi all, I have a feeling the answer is a flat 'no', but want to check: is it possible for an AJAX request to retrieve binary image data (e.g. raw GIF) and display that on the page? Thanks, --rob
[jQuery] Firebug shows Too Much Recursion errors after clicking OK in alert box
Not sure if this is my code's problem or Firefox's... I don't seem to be throwing any JS errors in MSIE. Here's what I'm doing: $("a").not($("#nav a")).click(function() { alert('Sorry, links are disabled in this demo except those under Profile Navigation.'); return false; }); The selectors seem to be doing just what I want; the alert gets thrown as expected, but when you OK the alert Firebug suddenly throws in anwhere from 15-40 "Too Much Recursion" errors with no other details. Sorry, I think I
[jQuery] convert an event object to a jQuery event object?
Hi, Is there a way to take a normal event object and convert it to a jQuery event object so everything gets normalized? Or can you only use the jquery event stuff when you use the jQuery events themselves? Hope this makes sense. Thanks, Jeff
[jQuery] Formatting External Links
Hello, I was hoping someone could help me out with a little issue im having. I want jquery to convert the target of any link that isn't within my internal site. i tried it one way, in which i added a class to each link that was to go outside. that worked and turned the links from... <a class='redir' href="http://google.com">Google</a> --to-- <a class='redir' href="http://mysite.com/redirect.php?url=http:// google.com">Google</a> --using the jquery-- $("a.redir").attr("href","<?=$root;?>frame.cfmx?url="
[jQuery] Allowing Interface Draggables to scroll the document
Hi, I've noticed that the default behavior for Interface draggables is to not allow scrolling the document while you're dragging. However, for a certain project I need to be able to scroll the document while dragging for users with small browser viewports. What is the easiest way around this? I tried using an array for the 'containment' property, setting h to document.body.clientHeight, but this didn't seem to work. Any ideas?
[jQuery] triggering a custom event is not working
Hi everyone, I'm trying to bind a custom event and then use trigger() to trigger it, but it's not working for me. Here's my code, does anyone see any issues? Currently it's logging 'mouseout' but not 'my Event' as I mouse over my table cells. $(o).mouseout( function(event) { console.log('mouseout'); $(event.target).trigger('myEvent'); }).bind("myEvent",function(event) { console.log('my Event'); }); Any help
[jQuery] Follow me to best pratice in create plugin to jQuery
Hi Guys, I know that already exist a plugin to manage a defaultValue of input elements. But I create another. I´m new with jQuery, principally in create plugins. So, I would like someone look the plugin code and tell me if it´s in a best practice. Thanks. The plugin code: /** * jQuery defaultValue plugin * @version 0.1 * @author Leandro Vieira Pinho <leandro.w3invent@gmail.com> * How to use * $(function() { * $('input').defaultValue(); // for all input elements * $('textarea').defaultValue();
[jQuery] $(document).ready behavior when using $("#div").load
I am using some javascript in the $(document).ready function to decide which content gets shown. My problem is that this never gets executed when i load this page into a div on another page. The below has been stripped of some other things i am doing, FYI. This is in the page with the content: $(document).ready(function(){ if(notvalidated){ var thisContent = 'You are not authorized'; $("body").empty(); $("body").append(thisContent); }
[jQuery] jQuery capture images from webcam
jQuery haves plugins available for web images capture? I'm developing a ColdFusion application to store visitors personal data including your photo. What I'm looking for: - webcam captures visitor photo via iframe(or another solution) in our form application; - users(application) can cut that photo via jQuery; - after all that image is saved in our server; Is it a dream? ;-) Cheers
[jQuery] ANNOUNCE: Grid Column Sizing v.0.5 plugin released !
This plugin, applied to a number of HTML tables, provides the behaviour of resizing their columns by dragging the mouse or double- clicking over a "handler hint". My first (serious) jQuery plugin (be benevolent!) check it out in: http://jquery.com/plugins/project/gridColumnSizing
[jQuery] selecting next/prev element in a table
Hi list, I have a number of checkboxes, each inside a table cell. I want to let user navigate through these checkboxes using arrow keys. To do so I start with a code like this: $("input:checkbox").bind("keydown", function(e) { // Here I want to find previous or next checkbox element if (e.keyCode == 38) { // select next } else if () { // select prev } }); How can I select (focus on) next or previous checkbox in a cell? there might be different level of nesting for checkboxes, for example: <table>
[jQuery] Grid question
Hey all, I'm looking at creating a version of this: http://makoomba.altervista.org/grid/ but with a mix of images and text, much like this: http://search.msn.com/images/results.aspx?q=potatoes&FORM=QBIR Is there anything like this out there already, plugin wise, or any other examples of live data? I'm also having a problem with getting the Makoomba example to work. I am using the latest jQuery, 1.1.3.1, I downloaded grid.js from the example page and created my own XML file. When I attempt to run
[jQuery] Tougher than it seemed at first-jQuery accordion
I love the jQuery accordion. The only problem I'm having is in customizing it to suit the type of user experience I want. Basically I want a dead-simple, speaks for itself UI that accepts clicks in any order on any item to open or close the accordion. I have the whole accordion on a bunch of dt elements with hidden dd elements that slideDown() when the dt is clicked. I know what I want I just haven't been able to figure out how to do it: Here's the idea: $("dt p").on the first click(function() {
[jQuery] How to call many ajax functions?
Hi! I have 3 buttons (id's "bt1", "bt2" and "bt3"), and each one has a onclick funcion that is a ajax function. I want to execute this code: 1 $("#bt1").click() 2 $("#bt2").click() 3 $("#bt3").click() but to execute the line 2, the line 1 must have finished the execution, and the line 3 shoud be executed when the line 2 finished (all funcions are ajax functions). How can I do this??? Thanks. []'s
[jQuery] PHP Serialize for Checkbox
hey. i got this : <code> <form id="SenddataForm" name="SenddataForm" method="POST"><input type="checkbox" name="blah" value="1"><input type="checkbox" name="blah" value="43"> </code> the problem is that once i serialize that form i get blah=1&blah=43 ... i want to get it as array and able to pass it to php in that way?: blah[0]=1&blah[1]=43 (so ill be able to be do foreach ($_POST[blah] as...) anyone can help? -- View this message in context: http://www.nabble.com/PHP-Serialize-for--Checkbox-tf4142575s15494.html#a11783903
[jQuery] Sortables (interface plugin)
Hello, I have a nested list and i'd like to lock the sortable option to the each level (so that it wouldn't be possible to drag the selected element to the another level). I was looking at the documentation on the interface plugin site (http://interface.eyecon.ro/docs/sort) but i didn't find such an option... Does anywan know if this is possible? I'm also wondering how to submit the resorted list?
[jQuery] retrieving the width of an element??
.width() is not enough ;-) I have a div with overflow: hidden and it's width is, suppose, 100px; Inside i have a very long P <div style="width: 100px; overflow:hidden"> <p style="white-space:nowrap;">my v-e-r-y long text, repeated...my v-e- r-y long text, repeated...100 times </div> the NOWRAP keep my text in ONE line. Riht? If i ask: $("div p").width() jQuery returns 100! 100 is the value of the visible area, i guess. What for the part i don't see? maybe the dimensions plugin may help? Tried but
[jQuery] innerFade or jQuery Cycle Plugin feature addition will pay $$$
The innerFade plug-in and the Cycle plug-in both take a group of divs or images in a class and cross fade them to a set speed and time. Both of these play a sequence and the repeat. Anybody interested in re-programming either Plugin above so the fading can stop once the all the slides have been shown. In other words, the animation stops on the last slide. This would need to be a parameter, so people could have it both ways. This would need to work with multiple instances running at a time. So instance
[jQuery] Toggle state
Hello all, first post to this group. I have an element that I'm toggling, is there a way to determine what state it is in? Thanks. Adrian
[jQuery] noob question - load function - dynamic content to slide in place
I'm new to jQuery and can't figure this one out. Instead of using an ajax get and innerHTML to load in external html, I can just use jQuery's load function: $(emptyDiv).load(externalHTMLFile); which I like! I would like to do is make better use of the graceful animations that jQuery has. I would prefer that the external HTML not show up so suddenly, but instead to slide or fade in place. It's not clear to me how to make that happen. I tried "chaining", but by the time the content is loaded, the chained
[jQuery] problem with $.ajax()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2900.3132" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2> <DIV><FONT face=Arial size=2>Hi all,</FONT></DIV> <DIV><FONT face=Arial size=2>i'm developing an intranet order application using many ajax calls; this app is fine on my pc intel pIV-2800 Mhz based, and on the internet, but
[jQuery] Thickbox 3 + esc to close window
hey.. anyone know how to do that once the thickbox window is shown , when user press ESC key it will close the modal window? im looking for hack like that... anyone did somthing / know how to mess with this long code? -- View this message in context: http://www.nabble.com/Thickbox-3-%2B-esc-to-close-window-tf4141427s15494.html#a11780340 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Put attribute value in class
Hi, I'm trying to put an attribute value as a class in my element: HTML: <ul> <li lang="en">text</li> <li lang="nl">text</li> <li lang="it">text</li> </ul> jQuery: $("li").each(function(){ var lang = $('#language a[@lang]'); $(this).addClass(lang); }); Which gives an error about c.split not being a function. Quoting lang sets all classes to lang. Anybody got a cluebat for me? Thanks!
[jQuery] AJAX .load() Can I set web place to my script?
Hi Folks Now I am tasting Jquery AJAX My BIG problem is $("#myID").load("/mysite/myCustomDir/MyOtherPlace/myscript.php"); Yes I can run my php file. Excelent! but How can I set to this file to run in <a href="http://localhost/mysite/mydir/myplace">http://localhost/mysite/mydir/myplace</a>? In other word I would like to say to my server hey! I am in <a href="http://localhost/mysite/mydir/myplace">http://localhost/mysite/mydir/myplace </a> load me Every time run in <a href="http://localhost/mysite">http://localhost/mysite</a>
[jQuery] jQuery and getJson
It is my code: function fillEmployeesTable() { $.getJSON("get/EmployeesList.php", function(employees){ var content = ''; for (var i = 0; i < employees.length; i++) { content += '<tr>'; content += '<td>' + (i+1) + '.</td>'; content += '<td>' + employees[i].lname + '</td>'; content += '<td>' + employees[i].fname + '</td>'; content += '<td>' + employees[i].login + '</td>'; content += '<td>'
[jQuery] ANNOUNCE: Truncate v.2.1 plugin released
I have updated this plugin, and I have also created a landing page in order to manage bug fixes and any future releases. It is a simple, yet effective plugin, that I know many have already used in production environments. Enjoy! http://www.reindel.com/truncate
[jQuery] insert an html string
im trying to insert an html string (a form) into a div (at spot XXX) when .changeQty is clicked. I can only use classes, not id's cause the div repeats many times on the page <div class='inline'><span class='currentQty'>Quantity: blah<span class='changeQty'> (Change)</span></span>XXX</div> the string is: "<form class="newQty">stuff here</form>" the code i came up with so far is below. it doesnt work but firebug doesnt give errors either ... i dont think i can use .insertAfter(".changeQty") because
[jQuery] Is it possible - left or right
Hi guys I'm new in jquery community, so i need some help. Tell me please, is it possible to build site like http://www.left-or-right.com/ with using jquery and ajax. If someone can give me some direction, i'll be very grateful. Thx
Next Page