[jQuery] change not working
Hello. I have a form where i update some fields if there are info on the database (autolad of data). Then I have to verify if some data must been shown if certain conditions happens. When I change the value of a *select* changes, validations are made and I have binded that select for changes. $('#selectId').change(function(){ // validations }); Happens that when I change that select using jquery it doesn't validates (but does when user updates the field on the browser). Any ideas to solve this problem,
[jQuery] how to catch mouse click if it is also an onblur event
I hope the above is clear. I have an click event that should be happening at the same time that a blur event is happening (by clicking on a link in a menu I am blurring the input field) which event puts the display of the menu to none. It seems that when I do this however despite it is the click which causes the blur to happen it is the blur that takes precedence. (this is in Firefox 3.06) My function is the following: function losefocus(){ var currentActiveCommands = jQuery("#menudiv ul li.runnable").find
[jQuery] Using jQuery Validation with Dot Net
I'm having issues getting the validation plugin (http://bassistance.de/ jquery-plugins/jquery-plugin-validation/) to work with dot net. Whatever i try i can't stop the form from submitting. I've tried several things i've found on this group and the web. Can anyone help me getting this to work? Here's my html. <span id="ctl00_Control_LeftColumn_CF_Contact" class="ContactForm"> <p class="SuccessMessage">Submitted <span class="Field"> <span class="Label">Name </span> <span class="Validation"> <span
[jQuery] Trouble with Validation Firing in ASP.NET
Here is my code. I have the reference to the javascript in my Master Page so it's definitely there and I am getting no JavaScript errors when checking it out with Firebug. The problem I have is when I click submit, it's doing a postback, it's not firing the validate method: <asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server"> <script type="text/javascript"> $(document).ready(function() { $("#form1").validate(); }); </script> <div class="webform"> <form id="form1"
[jQuery] Lightbox/ThickBox Accessibility
HAs anyone come accross a lightbox/thickbox plugin for jquery, that they would class as accessible? Using perhaps ARIA, i have tried using .focus() but i am having no luck with my testing to ensure it does move the user to the "lightboxed" content. Thanks John
[jQuery] Selector broken with 1.3.1 vs 1.2.6
I was using 1.2.6 with the following line which worked perfectly. row.find("select." + name + " option[value='" + value + "']").attr('selected', true); Now with 1.3.1 a javascript error is happening A Runtime Error has occurred. Do you wish to Debug? Line: 4723 Error: Exception thrown and not caught Any thoughts as to the cause? -- View this message in context: http://www.nabble.com/Selector-broken-with-1.3.1-vs-1.2.6-tp22003660s27240p22003660.html Sent from the jQuery General Discussion mailing
[jQuery] Event for on movement
Need to bind an event that is triggered when a dom elements left or top position changes. Any help would be great. thanks, m
[jQuery] Jquery Validaiton plugin
Hello, thanks for this great plugin. I try i use it however the valiation is working fine but the form is not submited can you please help me on that thanks
[jQuery] jquery 1.3 and scrollTo plugin
Hello I wanted to use jquery scrollTo plugin but it seems like its incompatibile with jquery 1.3 The plugin is available on this address (demos use jquery 1.2.): http://demos.flesler.com/jquery/scrollTo/ Does anyone know of any plugin with similar functionality but with difference that it works with jquery 1.3.? If not, is there any way to make it compatibile with jquery 1.3.? Is there any guide on what should be changed? Many thanks in advance!
[jQuery] error binding event with anchor tag
Hi, I 'm new to jQuery and 'm facing a some problem binding click event, a function to an anchor tag. I 've an anchor tag with ID add. $('.add').click(function(){ var newElem = "<li class='ui-state-default'>Temp Text Displayed<a href='#' class='edit-widget-control'>edit</a> <a href='#' class='remove-widget-control'>delete</a></li>"; //alert(newElem); $('#widget_window').append(newElem); }); This works fine (adds new list item to widget_window
[jQuery] incomplete data receive with POST method
i m posting some data on url page but it displays incomplete.following is the code snippet,what thing i m doing wrong plz notify me so that i correct,thanks test.js var list="vc++"; $.ajax({ type: "POST", url: "test.php", dataType: "json", data: "book="+list, timeout: 5000, success: successA, error: errorA }); function successA(data){ //code } function errorA(data){ //code } test.php echo $_POST['book']; //it displays only vc not vc++ (using POST method)
Is live query what I need?
After an AJAX call to pull in dynamic content that includes ClueTip elements, the Cluetip popup stops working completely. The DOM appears normal, I added an alert() to the activate function that proves the js is not being called. Is Live Query the solution I need? Regards, KK
[jQuery] [validate] message containers and valid XHTML markup?
From what I can make of the documentation, the only way to use validation containers is to put something like... class="{required:true,minlength:3}" into your HTML form elements. Now this works just fine for me, however, its not valid XHTML. Is there any way to have valid XHTML and use error containers?
[jQuery] Why does $.width return innerWidth but set outerWidth?
Hi all, I was just writing a bit of JS to set the width of some buttons to the width of the largest. While doing this I found that the largest one would shrink! Doing this in a debugger gives: $("#x").width(); // 222 $("#x").width(222); // makes element shrink $("#x").width(); // 216 The number returned from $.width() is equal to the innerWidth() (at least it is on my button, which has a border but no padding). When you set it though, if you set it to the value returned, it will shrink! It won't
[jQuery] Is there a way to make a textarea that auto expands as needed?
I'd like to figure out a way to make a textarea that expands with text input when necessary and shrinks, also, if possible...and without scrollbars. I've looked around, but haven't found a solution that does everything. Anyone know if that's possible with jQuery? Or how to do it? Rick
[jQuery] jquery.form -- file upload problem
Hi, I'm using jquery 1.2.6 with jquery.form 2.21. Tests were done on firefox 3.0.5. When posting a file, I was able to track down a problem (io undefined) to the construction of $io that seems to be incorrect thus leading to an undefined io variable (line 167): var id = 'jqFormIO' + (new Date().getTime()); var $io = $('<iframe id="' + id + '" name="' + id + '" src="about:blank" />'); var io = $io[0]; // check if( $io.attr('id') != id) throw 'bad $io'; if (!io) throw 'undefined io'; It does not help
[jQuery] One page site & multipage degradation
Morning all, I'm working on a large single page site at the moment. I've seen these around before quite happily using <a href="#page"> type mark up, leaving jQuery to control loading the content in dynamicly and so on. However, our solution to both graceful degradation and a worry that Google doesn't class one page websites as websites was to have <a href="page.html" class="btnNavigation">, leaving those without javascript enabled using a tradiaional website which went from .html to .html. While
[jQuery] Question about Interface elements
Hello all, I am in the early stages of developing a web portal and want to provide a drag-n-drop of blocks, so users can pretty much configure their own custom page. I am using Drupal as a CMS and found some pretty well functioning modules which enable the DnD functionality. I noticed that the Drupal modules in question (jquery_drag_drop, jquery_interface and interface_sortable) use the "Interface" plugin (http://interface.eyecon.ro). On inspecting this plugin it seems to me that it offers some of
Passing data to load url
I have a global function which can be used for loading an HTML block (<select><option>), enabling a cascading dropdown feature. js code is: function getblk(itm,blk,proc,prm){ $("#"+blk).load(proc,{prm: $("#"+itm).val()}); } I have made the parameter name variable (prm) but somehow this does not work. If I modify the "prm:" to "rgno:" (both without the quotes), it works since the param name expected by the proc is rgno. Any help on this is welcome and appreciated. Thanks. Ed
[jQuery] How to submit for usign validation plugin
<div dir="ltr">Hello every one can any body tell me what to do to submit the form $("form").validate({ invalidHandler: function(e, validator) { var errors = validator.numberOfInvalids(); if (errors) { var message = errors == 1 ? 'You missed 1 field. It has been highlighted below' : 'You missed ' + errors + ' fields. They have been highlighted below'; $("div.error span").html(message);
[jQuery] jcarousel not rendering in Mozilla Fire Fox v3.0.6
Hi guys, In IE7 my jcarousel works perfectly however in Mozilla FF it remains vertical, show the list bullets, does not show the arrows and on top of all, when i try to throw it off by doing something drastic to the CSS files it shows no effect at all. It seems to me like its not rendering the files at all. I'm using the Tango skin. Any ideas? here is my CSS: jquery.jcarousel.css [css] /** * This <div> element is wrapped by jCarousel around the list * and has the classname "jcarousel-container".
[jQuery] Upgraded from 1.2.1 to 1.3.1 and jquery.flash has stopped working.
Hello! I have just upgraded from jQuery 1.2.1 to 1.3.1 however this has broken the jQuery.flash plugin. (I'm also using jquploader in the page but I think it's jquery.flash that's causing the problem. I'm getting this error in fireBug [Exception... "'Syntax error, unrecognized expression: [@type='file']' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] Has anyone else had this issue or know how I can resolve
[jQuery] PHP+JQUERY ,Three combo's (Populate Country,State,City)
Hi Every One, I want to populate the value into combo, That is for example the first combo contains the country and second combo contains states third combo contains the city, So if select the particular country then i want to populate that country contained states , if i select the particular state, Then i want to populate the state contained cities, Any good suggestion Thanks <br clear="all"> -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION <a href="http://bharanikumariyerphp.site88.net/bharanikumar/">http://bharanikumariyerphp.site88.net/bharanikumar/</a>
[jQuery] Superfish and bgiframe issues
Hi, i've been trying to create a dropdown menu using the superfish v1.4.8 script and the bgiframe plugin (tried bot the latest, 2.1.1 version and the one included in the superfish package). Everything works fine with just the superfish script, the menu behaves correctly and all the styles are applied, the only problem is that select elements show throught the dropdown, so i tried adding the plugin. As soon as i add the plugin the menus get screwed up, all stylings are lost and the menus become white
[jQuery] Gathering page elements when using .post()....
Hey all. I need to gather the name/value of 25 elements. Is there a quick way of doing this with .post() rather than manually setting each one individually? I can do it with a URL, but I want to use POST, not GET. Any suggestions?
[jQuery] XML link tag problem
Hi! Here is a part of a given xml file: <?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xml:base="https://pluto.solar.go" xmlns:dc="http:// purl.org/dc/elements/1.1/"> <channel> <title>akarmi</title> <link>https://pluto.solar.go</link> <description>we are small planet but strong</description> <language>plut</language> <item> I would like to use the content of the first link tag but i can't! There is an example! vlm1 = $(xml).find("title").eq(0).text(); // success vlm2 = $(xml).find("link").eq(0).text();
[jQuery] jQuery autocomplete functionality won't work when textbox is in Tab
Hi, I am trying to use autocomplete.js of jQuery. It works fine if i use <input type="text" id="example"/> in html form, but as i put this input control in a tab then this function is not getting invoked sample code i used is $(document).ready(function(){ var data = "Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" "); $("#tabp")({ //id of the tabPanel $:("#tab1")({ // id of tab //example is the id of input control $:("#example").autocomplete(data) }) });
[jQuery] ie7 - Depth of elements wrong (sperinposed)
I want to use these two plugins: Superfish: http://users.tpg.com.au/j_birch/plugins/superfish/ LiScroll: http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html The site WAS ready until I tried it with ie7, with it the news that scroll gets rendered over the menu elements. So I followed the advice that you guys always say: simplify, so I made a small page containing the plugins examples, here it is: http://www.0plus1.com/google-groups.php Can somebody explain
[jQuery] New to JQuery, silly question.
Why does this : $(document).ready(function(){ if($(".leftNav ul li:last").height() < 32){ $(".leftNav ul li.last").addClass("lastWithItems"); } }) work in 1.3.1 but not this $(document).ready(function(){ if($(".leftNav ul li.last").height() < 32){ $(".leftNav ul li.last").addClass("lastWithItems"); } }) (Notice the li.last on both lines) ??? Also why isnt it explained anywhere :( Another thing why cant i do this function blabla() { } $(document).ready(blabla())
drag strange behavior
I'm using syntax like in examles: $(function() { $('.block').draggable(); }); But have some jump of div when i start drag it see here http://barhez.comoj.com/ , why is this happening?
Finding text and adding class to Parent
Hi, I want to find some text in an element and if-true, add class1 to it, if not add class2 to it. eg. <div id="myid"> <p>true</p> </div> So I want to search in "div#myid p" for "true" and if found, add class "class1" to the div, otherwise "class2". Currently I'm using this code: $('td.result').each(function () { var t = $(this).text(); t = t.replace(/FAIL/, '<span class="fail">FAIL</span>', /PASS/, '<span class="pass">PASS</span>'); $(this).html(t); }); but
[jQuery] jquery / ajax
Hi, i got a radio button. if this radio button is checked it shell send the value of the button to a .php document. didn't used ajax at all so i don't know how to do this. at the moment i tried something like this: $(":radio").click(function() { $("#infoding").css("display","block"); var value = $(this).val(); $.ajax({ type: "POST", url: "some.php", data: value, success: function(msg){
.live() performance issue
any ideas why Im experiencing performance decrease would be helpful. Essentially, I use ajax to bring in dynamic content which contains Cluetip objects. Naturally, the event handler breaks which causes the Cluetip to popup. The fix below seems to allow these cluetip popups to work again. However, the performance is significantly worse than the non dynamically loaded 'test' page. The cluetips can take several seconds to load and sometimes fails with a partial load. is the .live() behavior constantly
Slide animation not sliding all content in to view
HI, I have a simple bit of functionaility to toggle some paragraphs on and off when a user clicks a heading tag: HTML: <div id="values"> <div><h5>Working Together:</h5><p>LOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsum .</p></div> <div><h5>Respect:</h5><p> LOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsum.</p></div> <div><h5>Integrity:</h5><p>LOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsumLOREM ipsum </p></div> <div><h5>High
jquery .load function not setting dom element
Hi All, I can't for the life of me figure out how to do this so any help would be much appreciated. What I am trying to do is use the .load function to call a php file that ultimately results in the deletion of a record from a database. The php file outputs true or false as to the success or failure of the deletion. This output is assigned to an html element. I then try to access the text/html set so that I can output a prompt to the user letting them know if the deletion was successfull. If it was
Using the corner effect
Hi all, i'm trying to use this jquery plugin : http://www.malsup.com/jquery/corner/ with this code : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> <script type="text/javascript" src="http://jqueryjs.googlecode.com/svn/trunk/plugins/corner/jquery.corner.js"></script> $(document).ready(function() { $('#mytitle').corner(); }); and <div id="mytitle">This is :<br/> my great title</div> but i've no result. Do i miss something ? Thanks for
[jQuery] Duplicating the last row of a table
<html> <body> <tt>Hello folks, The code and HTML below are from a quiz editor - I have an onClick function that fires duplicateRow to add another question box onto the end of the table. Firefox does what I expect to happen - it selects the last <tr> row. IE7 and Safari, on the other hand, appear to treat the <tfoot> as the last tr in the table. Is there a way to satisfy the interpretation of all three browsers? Thanks, Bruce function duplicateRow(){ var clonedRow = $("#question_table tr:last").clone();
[jQuery] issues across different platforms
I have some jquery code that works great in the windows version of firefox, but the mac version is wacky. to be more specific, here is my code: $(document).ready(function() { $('#dim').click(function() { $('#videoembed').css("z-index", 9999); $.blockUI({ message: null, overlayCSS: { opacity: '.95' } }); $('.blockOverlay').attr('title','Click to turn on the lights').click($.unblockUI); }); }); using latest version of jquery and blockUI.
[jQuery] Browser locking up -- please help!
Thanks for Viewing, I have one page that locks up all browsers except Mac/Safari. It was more complex, but I whittled the jQuery code down to the bare essentials. Even though it's super-simple now, it still hangs for 15 seconds (FireFox is completely non-responsive during this) and ends with a script loop error message. Basically, I have a table where users click on a table row to direct them to that entry's page. (I put the href in the <tr> title attr) What in the world is wrong here? <script src='js/jquery.js'
[jQuery] Is A Child Of?
Hi, This is probably a really easy question an I apologise if it appear stupid but I am clueless right now. Given 2 jQuery objects (a,b) how can I tell if b is a child of a? James -------------------------------------------------------------------- This e-mail is intended solely for the addressee and is strictly confidential; if you are not the addressee please destroy the message and all copies. Any opinion or information contained in this email or its attachments that does not relate to the business
Next Page