another cycle question - works differently live then in test
I set up jquery cycle on my local server first. Everything works great. When I was finally pleased with the very last detail, I put it up on the live server. Now it is not acting right. I am using the fade effect. Now it fades to white for a bit (longer then the pause on the test server) and then goes to the next image. I am bringing the images/text in through an xml feed, but my test environment was an exact close of the live one. I'm leaning towards a server setting, but I don't have access to
[jQuery] inherited private variables
I posted this in comp.lang.javascript also, but would like to hear from the jQuery group. I (think) that I've come up with a pattern that I haven't seen in any publications so far and I would like some feedback. Basically, I was looking for a way to inherit private functions and I came up with this: //base private object constructor function priv(){ this.a = 1; this.b = 2; } //private object constructor that inherits from base private object function priv2(){ this.c = 3; this.d = 4; } priv2.prototype
[jQuery] Odd append/jCarousel issue in IE7
Hi, I've got a slight issue with IE7 http://staging.agsalons.com/ works fine in FF but in IE7 it only scrolls between the two middle items. This is because there are only five items in the scroller so it gets confused so I've used jQuery to pad <li> to it but they're not picked up in IE7. Any ideas/suggestions why? TIA Tim
[jQuery] strange bug with IE and .html()
When trying to get some html back from part of a document I get jquery attributes included in the html (IE only) has anyone else seen this and how did they fix it short of regex eg elements that have events bound to then have <button jquery1234567="1" etc..
[jQuery] Cross site Ajax requests
I have two pages (JSP, PHP). One page is at port 8080, one is at 80. When I am sending Ajax request from PHP to JSP or JSP to PHP, I am getting Permission denied error. I know we cannot send Ajax requests to other sites. But I want to know, how can I achieve this as I need it.
[jQuery] [validate] Multiselect Select validation
Hi, I need to make sure that the user selects between 1 and 100 items from a multi-select listbox. How can I get the validate plugin to enforce this? Thanks, John.
[jQuery] Triggers JSONP an IE memory leak?
Hello together, I have observed a problem using jQuery's JSONP functionality and the Internet Explorer 7. The following example can be used to let the (virtual) memory size of the IE grow constantly until Windows refuse to allocate any more memory. Running the example using Firefox 3 does not show any conspicuities. <html><head> <script src="jquery-1.2.6.js"></script> <script> $(document).ready(function() { setInterval(loadData, 1000); }); function loadData() { $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?
[jQuery] WMV stops when making an $.get()
I got a strange problem. I only get this problem on one computer here. (out of like 5, at work) I have a function that updates a DIV from an ajax call with data (pictures) and everytime it updates, the WMV is just showing white, but it's continuing, "in the background". And when you scroll the page, the video appears again. I use a setInterval to call the function every 10th second. Has anyone heard of the problem before? $(function() { if($("#speaker_rotation").length > 0) { showRandomSpeaker();
flickering in IE7 - jQuery Accordion
Hi All, I am getting a strange problem. I have embedded a jQuery accordion code in JSP. My jQuery Accordion menu is flickering on IE7 when I click on different panel of the accordion, however this is working perfectly fine on Firefox giving smooth sliding effect. I have not even embedded any pics on the panel content area. Other thing, when I am opening the same accordion example as an HTML instead of JSP its working fine on both IE7 and Firefox. Please help me. Thanks Abhishek
[jQuery] superfish help
I am trying to do something that is a combinations of examples... I want it to work like this example, but have normal vertical submenus on the 3rd level that hide on mouseout. http://users.tpg.com.au/j_birch/plugins/superfish/all-horizontal-example/ Also - if the 1st level menu item does not have a submenu, to show no menu (currently it leaves the previous moused-over menu) my dev url: http://lhc.lucidcrew.com/ministries
[jQuery] passings variables to callback functions
I was wondering if there are ways to pass variables of non-global scope to callback function like in the situation below. I've run into this situation before and imagine it comes up often. So passing the photo[i]['id'] variable to imgselect is the issue here since at the time the event is triggered, it does not have the same value as it would at the time of binding. for (i=0;i<photo.length;i++) { var newimg = document.createElement('img'); $(newimg).attr('src',photo[i]['url']); $(newimg).bind("click",
[jQuery] Ugly fade in IE?
Hi guys, I'm trying to make a log in form fade in using jQuery. It looks great in Firefox, but produces weird results in IE. You can view it live at http://city-demos.com/ Here's a screenshot of half way through the fade in IE7: http://city-demos.com/wtf.jpg A quarter of it fades in before the rest, and the black background fades in 100% when I only want it to fade to 66% (specified in the css: http://city-demos.com/css/style.css). I also tried using jQuery's fadeTo('slow',0.66) but then it doesn't
[jQuery] jQuery merge function and NestedSortablesWidget fix?
I know little about the inner workings of jQuery, but I was encountering a "too much recursion" bug in 1.2.6, when used in conjunction with the NestedSortablesWidget (1.0). SYMPTOMS AND CONDITIONS: Whenever my first drag on a sortable was upward, I would hit the bug; all other drags thereafter would fail. If my first drag was downard, no other problems were encountered. HACK/FIX: I have changed line 1160 in my copy to: if ( true || jQuery.browser.msie) so that it always chooses that way to execute
[jQuery] Thickbox on 1.2.6 or best alternative?
What are people using today to create effects like thickbox or lightbox on jQuery 1.2.6? Thickbox is broken on the 1.2.x release and I'm stuck with an old version of jQuery until I find a suitable replacement. What are others using? -- Shane ∞ http://liquid.homelinux.org --------- I'm so cool I can be used to prove Bose-Einstein Condensation!
[jQuery] text box keeps focus when another element type is clicked ?
Hi, When a text box has the focus, I would like it to keep the focus even when another element type (not another text box) is clicked. eg after clicking this other element type, the user can press a key(s) and the text box will accept this key input without the user having to click back into the text box. Hope this makes sense. Karl gave me some info. the other day and I was pretty sure I would be able to fine-tune it for my app. but the best I could come up with is : $(document).ready(function()
[jQuery] Using Accordion with UI-Slider
First off, the jQuery library is great! I am having one minor visual issue, however. I've not been able to locate an answer online, so I thought I would post here. I'm using ui-accordion as a form question "holder". Within this accordion I have checkboxes, text boxes, etc. as well as several ui- slider bars. There is a difference in display between FireFox and IE. Specifically, the ui-slider bar disappears _after_ the accordion box is closed and appears _before_ the accordion box is opened. This
[jQuery] custom animated drop-down menu and IE6
surprise, surprise, IE 6 isn't doing what it should be. I have a custom animated drop down menu that works great in FF and IE7, but IE6 doesn't even start to animate anything. Live example can be found at: <a href="http://client.grcmc.org/wip/rerc/ index.php">http://client.grcmc.org/wip/rerc/index.php</a> JS: [code] $("#nav li:has(ul)").hover( function(){ var ul = $(this).children("ul"); if(ul.is(":animated")){ ul.stop()
[jQuery] recursive function that includes event binding
trying to do something pretty simple: 1. build a list from an ajax request 2. build a sub-list for the list item on click. this is also made via ajax request Clearly, we're talking recursion here, since I'd lik to get away with just one single function that is kind of a template. All I pass to the function is a set of name-value pairs, and those create the list label and a variable for the respective hyperlink. The tricky bit: There actually aren't hyperlinks, but rather div elements that need a
[jQuery] what should an hata script return?
I'm using jquery.cluetip.js with a 'rel=' attribute. The cluetip comes up with the 'title' attribute and then 'sorry, the contents could not be loaded'. What exactly does the script need to return? -- "Ability can take you to the top, but it takes character to keep you there." -- Zig Zigler Rick Pasotto rick@niof.net http://www.niof.net
[jQuery] Problem with jQuery performance
Hi all, I'm desperate for a solution to a major performace problem I've got. Basically, I'm trying to do something along the lines of what was done here with Flash: http://karankapoor.com/ I've got the image centering and scaling worked out. The problem is when I try to do a dissolve between images it hampers the performance and smoothness of the dissolve. It's the worst in Firefox. It's horrendous actually, you don't even see the transition and it takes forever. Here's the page in question. http://sandbox.exit42design.com/photography/
[jQuery] [validate] Specifying custom highlight/unhighlight methods
I'm trying to specify a couple of custom methods for highlighting/ unhighlighting valid/invalid fields on my form, but I'm getting some strange behaviour, which I'm not sure is due to me misunderstanding how these methods are supposed to be implemented, or if it's just buggy. My custom methods look like this: validateHighlightError = function(element) { $(element).parent().addClass('fail'); }; validateUnhighlightError = function(element) { $(element).parent().removeClass('fail');
[jQuery] 1.2.6 problem
I just upgraded jQuery from 1.2.3 to 1.2.6. I have the following select that works perfectly in 1.2.3 for IE7 but does not in 1.2.6. $('#' + frm + ' select,input[type! ="hidden"],textarea,button').each(function() { ... } It selects extra buttons that are located outside of the the form. However 1.2.6 works correctly in FF and Safari. Any thoughts...? Bug...? Thanks in advance... Randy
[jQuery] Cycle Plugin Documentation
I love this plugin megafold! I want to say though, you should document ScrollHorz on the demos, it should be the most basic of demos. I actually had to read all the source code to find it. I tried so many other plugins because that directional shifting is what I really needed. I can write the docs if you show me where to put them
[jQuery] jQuery UI v1.5 Officially Released
After 6 long months of hard work, the jQuery UI team is proud to announce the immediately availability of the jQuery UI effects and UI library. Full details of this awesome release can be found here: http://jquery.com/blog/2008/06/09/jquery-ui-v15-released-focus-on-consistent-api-and-effects/ The official site for the jQuery UI library can be found here: http://ui.jquery.com/ Apart from the awesome UI controls and effects now included, this new release also introduces a new killer application called
[jQuery] Ajax cache setting with type='post'
It looks to me like when you do this: $.ajax('someURL', {cache: false}) ...jQuery adds a random string to the submitted params, to avoid browser caching. This is the behavior I want. But if you do this: $.ajax('someURL', {cache: false, type: 'post'}) ..the random string isn't there. Is this intentional? Is something different required to set that up for post requests? (I'm unable to reach the docs wiki at the moment, connection resets.) Thanks
[jQuery] [validation] $ vs. jQuery problem
I just installed the latest version of Jörn Zaefferer's fine validation plugin. I have a certain page that mixes several different javascript libraries, requiring me to use the "jQuery.noConflict();" method. Unfortunately, the validation plugin uses "$" in many places throughout the plugin. Because of this, I was getting errors like "$ (element).rules() is not a function". I could not figure it out for quite a while, then realized this page was different than most on my site because of the noConflict().
[jQuery] Get the first li clicked
Hi, maybe this is a stupid question, but I can't find a solution. I have different nested lists <ul> <li id="id_1"> <ul> <li id="id_10"></li> </ul> </li> </ul> And this piece of code: $('ul li').bind('click', function() { alert(this.id); }); When I run this code and I click inside the nested li I got 2 alerts "id_10" and "id_1". What I can do to block the click event to the first li clicked? Thank you
[jQuery] Odd JQuery behavior in FF
I'm experiencing a very minor, but increasingly irritating problem with JQuery used in a custom block in a drupal implementation. I'm using an ajax call to a php script to change the content of the block every 10 seconds or so (called from w/in a setInterval). I use fadeIn/ fadeOut to make it all look a little more professional and less abrupt. Problem is, in firefox, fadein and fadeout seem to apply their style/opacity changes to all the text on the page, resulting in an subtle but annoying fading
[jQuery] Tutorial: Change div content with jQuery (click event)
detailed tutorial for changing the html content of a div element with jQuery. http://frinity.blogspot.com/2008/06/change-div-content-with-jquery.html -- Fahad http://frinity.blogspot.com - a blog from a web addict
[jQuery] fade in image
can someone please help. I just need to have it so that when the page loads, the mainimage fades in. I can change the code to be whatever e.g. can wrap the main image in a div e.g. <div id="mainimage"><img src="imagehere.jpg"></div> What would the jquery code be at the top of the page? I've tried lots of things and just can't get anything to work. i am using jquery-1.2.6.pack.js only - do I need anything else?
[jQuery] How to select all in same row but not current one
Hi, I have table with checkbox in every td, if anyone checkbox checked, I should disable all other checkbox in the same row. Now how I can select all checkbox in the same row but not current one. Thank you? Is jQuery doc down today? Thanks, Wes
[jQuery] Parsing XML documents (recursive) to array.
Hello. First, I want to present my self. My name is Mario Soto, web developer (php) in Guatemala. Newbie using jQuery. I'm experiencing some trouble parsing an xml piece of data. The thing is that I need a tree that the user can move on the browser. This is done [http://interface.eyecon.ro/demos/drag_drop_tree.html], like the demo but code reduced. The problem itself is to resolve the data to be sended to the server. The tree itself is formed with lists (ul) and each has list items (li) of course,
Cycle plugin displays code/string
Hi, I am new to JQuery, so I am sure I am simply doing something wrong. I managed to set up a slide show with JQuery Cycle. But additional to the picture this code snippet is diplayed on screen: $('#show1').cycle('fade'); Thats the HTML I used: <div id="show1" class="pics"> <img src="pics/beach1.jpg" width="200" height="200" /> <img src="pics/beach2.jpg" width="200" height="200" /> <img src="pics/beach3.jpg" width="200" height="200" /> </div> <pre><code
[jQuery] [treeview] buffered ajax response
I have the need to render over 100 nodes, each could possibly have over 1000 child nodes. I'm currently using the treeview.async.js script, but it's not enough. Has anyone added any kind of buffering options? If not, I'd like to start a dialog on pros/cons, and possible implementations.. Eric
[jQuery] Creating Filters
I am trying to create a questionnaire that will not be posted online but will use internet explorer to be viewed. Most of the questionnaires consist of radio buttons that we are forcing the participants to answer in some form using jquery with this code: $(document).ready(function(){ $('#DEMO').submit(function(){ var names = []; var invalid = null; $('input.required').each(function(){ names[$(this).attr('name')] = true; }); for ( name in names ) { var ofname = $('input.required[name="'+name+'"]');
[jQuery] jQuery Sortables
Visit http://tech-test.tutorialsforu.com/jQueryDnD.html, There is some problem in using jQuery sortables. You can find screen shot is at:http://tech-test.tutorialsforu.com/jQueryDnD.PNG Got this problem while dragging the div item.
[jQuery] ASP.NET UserControl and jQuery
Hi, I have a UserControl to which I would like to add some jQuery functionality. There are 2 issues with this: 1. Where should I include the jQuery library reference and where to call the functions? 2. How can I check if the jQuery lib is already loaded by the main page (the page to which the UserControl will be added) I'm nub, so please be gentle :) Thank you very much!
[jQuery] Remove a plugin from elements
Hi, I'm using the Table Hover and Table Drag and Drop plugin, I want to enable the Table Hover when an element is clicked. Easy enough: $ ("#table").tableDnD(); placed inside the onlcik event of the element I want to activate the plugin. I also want to unbind the table hover plugin while the drag and drop plugin is active. But how do I remove this plugin once the order has been saved? I read on here that plugins should provide methods to remove them but I don't believe this one does. There must be
[jQuery] how to implement minimize button
hi... plzz any one could help me to implement a minimize button in to the widget along with the close button....so that the particular widgets height would be decreased ...
[jQuery] AJAX and Cycle Plugin
So here's my situation: I have a site which has a listing of categories, and each main category has a subcategory. Whenever a category is clicked on, "#main" is hidden and the div id "#subcategory" is unhidden, which grabs a list of links using ajax. Is it possible to create a dynamic cyclefader which adds/removes images to the image div after load AND, one that reads the generated markup after the ajax is done writing to DOM, turning it into navigation for the cycle plugin? The second requirement
Next Page