[jQuery] YUI Compressor and JCarouselleLite
I was trying the yuicompressor on jcarousellite 1.0.1* and got this error: “invalid property id” at line 239: this is line 239: li.css({overflow: “hidden”, float: o.vertical ? “none” : “left”}); What could be wrong? * http://www.gmarwaha.com/jquery/jcarousellite/js/jcarousellite_1.0.1.js
[jQuery] how to use ajaxComplete on specific javascript function
Hi .. I have a form let call it "myform", inside the form I use many kind of ajax calls. I have some ajax function for validating data, some for retrieving/ code completion and I have one ajax for post the data/save data. I want $('#myform').ajaxComplete(function(data){ ..... }); to be called just once when I call post/save data function only, but it seems everytime I interacted with fields using ajax, this ajaxComplete was called. can you give me some help about this .. thx
[jQuery] problem with events
for (var i=0 ; i < 4 ; i++){ var img = document.createElement('img'); $(img).attr( { 'id' : 'imageId'+this.id+'_'+i, 'width' : '28px', 'height' : '28px' }); $(img).click ( function(){ alert( i ); }); container.appendChild(img) } elem.appendChild(img); after that, EACH 'img' element created in loop, after click event returns last assigned ' i ' eg. when loop loops 5 times, after each click on created image I get alert( 5 ); how to dynamically assign click event with variables in this case?
[jQuery] cycle plugin: sIFR'ing cycle
Has anybody gotten a sIFR'd text element to work properly with the cycle plugin? I can sIFR a element, and I can create a slideshow with that same element, but not at the same time. The first sIFR'd element in the slideshow shows fine, but subsequent slides disappear. When I thought about doing it, I didn't really expect it to work - there is so much going on there that something was bound to break. But I thought I would try it. I tried using the latest sIFR configuration (3r397) and the jQuery sIFR
[jQuery] blockUI: message vertical centering, is there a way to switch it off?
Hi, the message is always centered horizontally+vertically within the blocked area. I need the possibility to switch it off, the reason: when I block a long screen section, the vertically centered message might often displayed invisible for a user (below the bottom of the screen!). It seems there is no way to switch it off or in any way to bypass/control it (height=100% doesn't work in IE). I would like to see the possibility to override the autocentering of the message (via CSS or .defaults). thanx!
[jQuery] ui.datepicker complaints
(warning - long post) I need to vent. But I don't mean to belittle any of the efforts that have gone into the library... I have two major complaints about the ui.datepicker. These are enough of a pain in the rear to me that I am more likely to use alternative options (and lets face it, there's a bunch of em out there)... 1) The function interface has changed 3 times over 3 versions of the library. For new projects this is not an issue. But for existing projects, it means that replacing the library
[jQuery] Tablesorter - Sorting a column with multiple tds
How do you sort a column that contains multiple tds? Take a look at this example: <table cellspacing="1" class="tablesorter"> <thead> <tr> <th colspan="2">first name</th> <th>last name</th> </tr> </thead> <tbody> <tr> <td><input type="checkbox" name="cb_1" /></td> <td>peter</td> <td>parker</td> </tr> <tr> <td><input type="checkbox" name="cb_2" /></td> <td>john</td> <td>hood</td> </tr> </tbody> </table> Clicking on the "first name" header should sort on the second cell of each row.
[jQuery] jqModal AJAX Javascript Issues (IE)
Hi, I am using the latest release of jqModal and jQuery to display a custom AJAX modal pop up. This popup has to include javascript that performs various functions. It also needs to include some more .js files. I can get this to work fine in Opera and FF but this fails in IE6 and I cannot call the javascript functions in the AJAX popup. Does anyone have any experience of this? Quick note: The code works when the page is executed independently without using jqModal to call it as a popup! Here is a
[jQuery] parent window
How could i call an element in "parent.window" ? Sample: window1 <div id='sample'></div> window2 <script> function sampletext() { parent.window.#sample.text("<b>Some</b> new text."); } </script> <a href='#' onClick='function:sampletext()'>click here to change the content of div SAMPLE</a> I dont know how to select an element in parent window.
[jQuery] Meet BindO and OO your jQuery apps today!
Hello everyone, If you're not tuned in to the developer's mailing list then you might want to check this out: BindO - A simple plugin that allows you to bind javascript objects to jQuery events. Check it out here: http://xwisdomhtml.com/bindo.html
[jQuery] jquery ajax post issue
Hello, My target page that which I would be loading via ajax has some java script to be executed on page loading. When I send the request directly thru the browser, it works fine. I mean the script gets executed. But if I load the page thru jquery ajax post method, the script doesnt get invoked. Is this the default behaviour? Should I execute the javascript as part of my ajax post call? Thanks Ram
[jQuery] Selector help
I'm either making this more difficult than it is, or I'm missing something simple... I have a div that contains a table. Inside that table I have rows with an arbitrary number of cells. The cells may or may not contain a div with a "tasksummary" class. I need to find all the rows that DO NOT have a task summary div, and toggle them. I can easily find the tasksummaries: $("#containerDiv > table > tbody> tr .tasksummary"); But how do I change this to give me the TR's that don't have a task summary
[jQuery] [NEW] jQuery.SerialScroll
Hi everyone I added the first release of jQuery.SerialScroll. This is a generic and very customizable plugin to navigate series of elements. This plugin is similar to jQuery.LocalScroll: (http:// flesler.blogspot.com/2007/10/jquerylocalscroll-10.html) But it serves a different purpose. Instead scrolling to elements at random, this one takes a "prev" and "next" button, and a group of items and it will take care of the navigation. It also uses jQuery.ScrollTo (http://flesler.blogspot.com/2007/10/ jqueryscrollto.html)
[jQuery] Calling text() on a textarea doesn't work after I've typed in it
I am getting unexpected behavior. It seems that changing the text of a text box doesn't work once I've typed into it. I've given a pared down version of my code below. The way it works is: - before typing anything into the text area, you can click on the links on the page and they will set the text in the text area. Try clicking each of them to see that it does indeed work. - once a user has typed into the text area, those links stop working. Any idea what I might be doing wrong to be breaking this?
[jQuery] Ajax strip javascript?
I am loading in some content using .load, and have also used the normal ajax function. It seems that all my javascript that is within this content is being stripped out when I view the generated source, is this the case?! If so, can I get around this?
[jQuery] checked attribute of radio buttons not handled nicely in 1.2.3
Hi, I can stop in a callback with Visual Studio and run these three commands to get the value of the "checked" attribute of a radio button which is not selected. Why does the wrapped object not return "false" like the DOM object? document.all.ProtectLocal.checked false $('#ProtectLocal')[0].checked false $('#ProtectLocal').attr("checked") undefined If I run these commands for the radio button that is the selected one in its group, I get "true" for all 3 versions: document.all.ProtectRemote.checked
[jQuery] jquery.form.js is not working under IE6/7.
I am using Ajax form posting. var options = { dataType: 'xml', beforeSubmit: post_request, success: response_xml }; $("#form").submit(function() { $(this).ajaxSubmit(options); // !!! Important !!! // always return false to prevent standard browser submit and page navigation return false; }); function post_request(formData, jqForm, options) { $("#busy").show(); return true; } function response_xml(responseXML) { $("#busy").hide(); //... } In Firefox this works fine. But in IE6 and IE7, the code never
[jQuery] TableSorter Version 2.0.3 Sorting 0 value in first TD
Great Tool!! We are looking into using the TableSorter routine for a simple HTML Page for sorting columns. An issue that we found was when the first row of data contains 0 (zero) for a column, the column no longer sorts in numeric order. Instead, the column is sorting in alpha-numeric order. I have attached an example using data from the URL http://tablesorter.com/docs/example-option-digits.html sample but changed to have the first <TD> value for the age column to be 0 (zero). I also changed the
[jQuery] Jquery Ajax and Struts Issue
Hi Experts - Jquery is able to call the regular servlets defined in the web.xml but was not able to call the struts action servlet? Any insight into the issue would be of great help!! Thanks,
[jQuery] cluetip flashing popups middile of window
Greetings.. I'm using cluetip to do mouseovers on table cells. If the item is in the dead middle of the window the tooltip continually refreshes itself automagically. Very annoying. Does not do it on any other elements, only the very middle. If i resize the browser window it moves to what is the middle. Any ideas how to avoid this? - Josh
[jQuery] parent child select
Hi, I tried to select all td in the same row from a td, so I tried, $(id).parent(" > td") it does not work. How I can do it?
Chained autocompleter [parent-child]
Hi guys and girls. i have a problem chaining two inputs that acting as parent-child. i have this code that works fine: function lookup(inputString) { $.post("cities.php", {cities: ""+inputString+""}, function(data){ if(data.length >0) { $('#suggestions').show(); $('#autoSuggestionsList').html(data); } }); } now in cities.php i want to make onclick function that sends value to another script, streets.php. i made something
[jQuery] Cameron Moll webinterface Tutorial (lots of jQuery)
Hi jQuerians, Cameron Moll has produced a splendid 4 part tutorial <a href="http://www.cameronmoll.com/articles/extensible-css/">http://www.cameronmoll.com/articles/extensible-css/</a> it uses liveQuery and Spy and looks great; a real world approach although I would do many thing different :) I have not seen, this posted before (did search) and felt that many would benefit from reading it - S
[jQuery] [ANN] Simple focusFirst and ajaxLinkBind Plugins
I just posted a couple of plugins in a git repo at: git://github.com/sxross/jquery_plugins.git To grab them, just: git-clone git://github.com/sxross/jquery_plugins.git They are focusFirstInput and ajaxLinkBind. You can read about the at: http://calicowebdev/blog/show/20 In a nutshell, they do this: == focusFirstInput == Just sets the focus to the first input field on a form, if there is a form or an input. How many times have you written that code? No, it's not YAGNI, but it may be useful :) == ajaxLinkBind
[jQuery] jQuery Lightbox problem
Hi, I've been using this great jQuery lightbox plugin for a variety of things and its always worked really well. Recently I've tried adding into my own blog site I'm building using Wordpress and now I get an error. I put this into header.php: <script type="text/javascript" src="http:// www.postcardsfromtheborder.co.uk/wordpress/wp-content/themes/postcards/js/jquery.js"></script> <script type="text/javascript" src="http:// www.postcardsfromtheborder.co.uk/wordpress/wp-content/themes/postcards/js/jquery.lightbox-0.5.js"></script>
[jQuery] jQuery hidden & checkbox fields
I'm having issues with hidden & checkbox input fields. I have a set of checkboxes that the user can click. When a user selects a checkbox, I want jQuery to return the value of that particular checkbox, plus the value of the hidden form field that is next to it. Yet, it's not as easy as I thought it would be to come up with a solution. Take the following code. CHECKBOX FIELDS <div class="review"> <input type="hidden" name="data[Request][id]" value="745" id="RequestId" /> <input type="checkbox" name="data[Request][review_id]"
jQuery & XML
I have some XML that looks like this: - <BusinessEntity xmlns:q1="http://schemas.microsoft.com/crm/2007/WebServices" xsi:type="q1:phonecall"> <q1:scheduledstart date="4/25/2008" time="12:00 AM">2008-04-25T00:00:00-04:00</q1:scheduledstart> <q1:createdon date="4/24/2008" time="12:12 PM">2008-04-24T12:12:09-04:00</q1:createdon> <q1:modifiedon date="4/24/2008" time="12:39 PM">2008-04-24T12:39:57-04:00</q1:modifiedon> <q1:phonenumber>416-222-2343</q1:phonenumber> <q1:subject>Follow Up phone
[jQuery] Nested Corners?
I just upgraded my jquery.corner.js from v1.7 to v1.92 and it's working great. I found 1.92 here: http://jqueryjs.googlecode.com/svn/trunk/plugins/corner/jquery.corner.js (via http://www.malsup.com/jquery/corner) My question is this: I want to get nested corner elements in place on a drupal 5.7 site to create a border around my rounded sidebars. Screenshot: http://i31.tinypic.com/2diiumx.png I made a rather pitiful attempt today and Drupal freaked out ("Parse error: syntax error, unexpected T_STRING
[jQuery] popup window like google map infowindow
Hi, I'm looking for a solution to create a popup window like google map infowindow. when I google it, all about how to create infowindow in google map which is not what I am looking for. I start use jQuery about 3 month agos, I really like it. Does anybody experise it? or what's term of it so I can google it properly? Thank you, Wes
[jQuery] Select Odd/Even rows out of visible rows
Hi All, I've got a little problem. I have a table in which some rows are shown and hidden based on some selections. What I am trying to do is add the row-styping to this table, but what happens is something doesn't work right with the :even selector, and I get some rows next to each other of the same color. Does anyone know how to write a selector that would return all even visible rows? I tried doing this but it doesn't work: function rowColors(){ $('table.basic tbody tr').removeClass('even');
[jQuery] Validate plugin problem
I'm using jQuery Validate (v. 1.2.1) on a page with several forms. I iterate through the forms using each(). The validation is working but when I try to append a loader (using ajaxStart()), it's appended to the wrong div (always on the second form). The code: $(document).ready(function() { var loader = jQuery('<div id="loader"><img src="_js/loading.gif" alt="loader" width="20" height="20"></div>'); $.validator.setDefaults({ debug: true, focusInvalidElement: true, submitHandler:
[jQuery] get a <a> inside a <div>
I think it's simple but it doesn't work... to me. ;-) I want to fire an event when I click on that <a> link inside a <div>... Inside of the <div id="id_div"> there are: <b> </b> <i> </i> <a> </a> So <a> would be the third element but it's the first and unique <a>.... I tried something like that: $(document).ready(function(){ $("#id_div a").click(function(){ etc... but it doesn't work. I tried also: $(document).ready(function(){ $("#id_div").find("a").click(function(){ etc... and it doesn't work as
[jQuery] UI Tabs - disable AJAX functionality?
Hi all, I've got a row of five tabs and I'm using Klaus' Tabs plugin to handle them. I want four of them to use the standard tab functionality. The fifth and final tab is actually a link to a different page, but if I try to click this link the page is loaded into the CURRENT page via the tab extension's AJAX functionality. Is there a way the AJAX loading can be disabled so that the browser can follow this link normally instead? Regards, Michael Price
[jQuery] jQuery SlideDown and SlideUp Problem
int my Firefox Browser which is versian 2.1.14 the latest versian of the 2 ... if the content Scrolls down in the page to the Bottom of the page then if we do some slideDown or slideUp Effect the page starts to Flash for a second ... but I don't have this Problem IN the IE 7 ... so what is the solution this is my code ... I did some Paging stuff with jQuery /****************************Down Paging starts ***************************/ $("table#downProPaging span a").click(function(){ var PagingData={
[jQuery] jQuery SlideDown and SlideUp Problem
int my Firefox Browser which is versian 2.1.14 the latest versian of the 2 ... if the content Scrolls down in the page to the Bottom of the page then if we do some slideDown or slideUp Effect the page starts to Flash for a second ... but I don't have this Problem IN the IE 7 ... so what is the solution this is my code ... I did some Paging stuff with jQuery /****************************Down Paging starts ***************************/ $("table#downProPaging span a").click(function(){ var PagingData={
[jQuery] Internet Explorer DOM elements visible on hide()
I'm seeing some inconsistent results when using hide() in " (document).ready(function()" when using IE. My goal is to try to hide the other list items in my unordered list and only display one of them when the page loads. I've posted my code below. Works great in firefox! Any ideas on how to get the list to hide before the page loads would be great. var newsitems; var curritem=0; $(document).ready(function(){ $('#selector a:first').addClass('newsSelect1'); newsitems = $("#ticker li").hide().size();
[jQuery] unsubscribe
[jQuery] using jQuery with Struts framework
Hi every Body : I 'm a java developer and i find that the jQuery is an amazing javascript library and very powerful but i have a noticed that in selecting controls you select usint the "id" tag but i struts framework we don't use id tag instead we use "property" tag if struts forms ; so i want to use the date-time picker on struts form but i don't know how since i have no "id tag please help me if any body has a solution for this . thanks ;
[jQuery] function from an external js does is not defined when using $(document).ready in the external file
Hey Guys, I have 2 files. index.html and settings.js inside settings.js: $(document).ready(function(){ function say_something(word){ alert(word); } }) inside index.html <script language="javascript"> $(document).ready(function(){ say_something("hello"); }); </script> I am using Firefox 2 with Firebug and it claims the function is not defined. The code does not work. So why is this a jQuery problem, you ask? Well, if I remove the $(document).ready call from the external file, everything works
[jQuery] Cycle (fx:'custom' )
Hails! I've been having a trouble with a custom effect on IE and Safari, but it works perfectly on Firefox, although Firebug shows the following message: "[cycle] unknown transition: custom". It's not a error message, but I believe it has something to do with the bug in IE and Safari. Then, I tried turning the custom effect into a transition definition as the described in the Cycle documention (http:// www.malsup.com/jquery/cycle/adv2.html) and now it works in the same way on Firefox, but without
Next Page