[jQuery] [validate] highlight somehow when using rules
Hi, I came across a small problem and I think this could be a nice feature. Normally I use a class on my fields that require validation to show the user that field is required. But when I use rules on fields with more than one rule I think it's useful to implement a way to automatically add a class on the matched field from rule. Hope this make sense.
[jQuery] Using a variable as a CSS property
I'm trying to figure out how to use a variable as a css property. For example: $('.name').animate({variable : 100}); I wrote up a quick example script. My goal is to switch the animation direction depending on the link that you click. Either have the object animate from the left or top. Any ideas how this could be done? Or why this isn't working as expected? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"
[jQuery] use jQuery object of parent in an iframe
Hi, I am developing a web application with full of independent widgets in form of iframes. I would like to avoid embeding jquery (and jQuery UI) in each iframe's head to reduce number of requests and want to use the libs from the parent window instead. In iframes' head I tried the following code: window.$ = window.content.$; window.jQuery = window.content.jQuery; Well it works but naturally as the jquery object belongs to the parent document I can manipulate only the DOM nodes of parent document
[jQuery] [validate]
Hello, Thanks for great plugin :-) I have a question related it. Hope someone can help me please. Let's assume I have a form and a few text inputs. I would like not only to validate them on every change but also to fire custom function. I dont know how to achieve that. What I am trying to do is to mix jquery validation + php validation. Jquery validation errors are placed into a div. My php validation also put error messages to the same div after form was submitted and validated by php rules. Once
jquery in Internet Explorer - not working
I'm sure this is a very trivial and probably simple thing to fix, but unfortunately I've run into a massive wall with it! (Vague disclaimer - i'm new to Javascript and jquery, but learning slowly.) I've implemented the scrollTo and prettyPhoto plugin on my websites, both work brilliantly on everything but Internet Explorer: http://www.jainamistry.com I've used the following code to initialize the jquery: <script type="text/javascript"> $(document).ready(function(){ $.localScroll();
close an iframe from itself
Hello, I have a payment gateway inside an iframe, and when the process finish I want to close it. My try follows. In the main document I have this code: jQuery(document).ready(function(){ jQuery(document).bind("cleariframe",function(){ alert("remove"); }); }); Expecting to bind the function cleariframe. When it will be launched I will replace the alert with a properly ('#iframeId').remove In the iframe I have the following code: jQuery(document).ready(function(){ jQuery(window.parent).trigger("cleariframe");
changeing Image Src on Click with Jquery
I am trying to swap images in an img tag once it's clicked and it doesn't seem to be working. this is the code that I have: $('#smallImg1').click(function(){ $('#smallImg1').attr('src', '../../App_Themes/Default/Images/belkinLarge4.png'); }); Any help would be appreciated.
Requested data not showing in firefox
Hi all. I'm pretty new to jquery and javascipt in general. I've had fun so far and I'm really enjoying using jquery. So far most compatability problems I've experienced have been down to IE (trailing commas in arrays, etc). This latest problem stops a page which works great in IE and chrome working at all in FF. The code below basically loads a table of data by post request. Then applies various functinalities to the elements contained within the loaded data. In FF the table which should be loaded
[jQuery] slideUp doesn't occur
Hello, I wrote following code for slide-up and slide-down animation of div tag, javascript: $("#patientdvTop1").click( function() { if ($("#patientopenCloseIdentifier1").is (":hidden")) { $("#patientdvContent1").slideDown ("fast"); $(this).css({'background-image' : 'url ("images/LeftBar/mainTopOver.png")'}); $("#patientopenCloseIdentifier1").show (); }else{ $("#patientopenCloseIdentifier1").hide (); $(this).css({'background-image' : 'url ("images/LeftBar/mainTopNormal.PNG")'}); $("#patientdvContent1").slideUp
jQuery with tablesorter (applying zebra widget)
I'm using tablesorter with jquery and I have a table which has Zebra widget. Every td of this table has an input and I set my parser to read the value of this field to start sorting. Ok, it's working fine. But, when I change the value of an arbitrary field and click on header to sort the table, it loses its zebra widget. The lines become colored with wrong colors (odd and even wrong). I tried to call the "applyWidgetId" trigger.. but it doesn't anything. Does anyone knows what can I try???
fade in an hidden element, without modify layout
Hi, I want to fade in and out my menu but I want it overlaying on top of my website and not modify the website page structure. Do I need some additional css for doing it ? thanks
[jQuery] tilde (~) selector
Hi, I have a problem with the tilde selector - either I don't understand how it works, or there's something wrong with it... Let's say we have such HTML: <html> <head><script src="http://code.jquery.com/jquery-latest.js"></ script></head> <body> a b <div>c</div> d </body> </html> $('p ~ div') returns the div, $('div ~ p') returns the last p. But $ ('p ~ p') doesn't return anything... I thought it should return the "b" and "d" paragraphs, because they're both siblings of the 'a' paragraph, right?
[jQuery] I need some help
why my blog(bulid with juery ) cann't works in IE but well in Firefox???? site http://pbox.blogbus.com who can give me some advise thanks very much...
[jQuery] Jeditable - How to style a button using CSS
Hello all, I am a newbie to jquery and jeditable. I have a select that is working using jeditable. However, I cannot figure out how to style the submit button. I have the DIV of the field to edit within a <td> of a table. Anyone able to help me? Thanks, Charles
:?: Want to show jsrollPane in qtip --onRender function
hi,there. I use Jscrollpane for my new project. which is great and works on the page. The page works fine but when it is called inside the qtip, the customized bar disappear. see the custmized scroll barhttp://81.171.199.24/qtip/scrollpanel.html See qtip example (click snowy Owl link): http://81.171.199.24/qtip/index.html The developer from qtip suggest I should include the scroll script on your qTip page, and call the jScrollPanel method within the onRender callback of your tooltip otherwise won't
Total of text boxes in GridView
I have grid view (.net 3.5) that has hours fields where user can enter hours information for a week, with other controls. There is text box that shows Total for the individual days: Day1TextBox, Day2TextBox, Day3TextBox, Day4TextBox, Day5TextBox, Day6TextBox, Day7TextBox AND TotalHours. User can edit hours for days while TotalHorus is readonly. When user changes the hours i need to show updated total hours in text box TotalHours. TotalHours = Day1TextBox + Day2TextBox + Day3TextBox + Day4TextBox
[jQuery] Store modified pages
Hi, i have a quiestion. Is it possible to modify a page, (for example putting a new block with text and image or changing the id name of different div´s ---->to append ) and keep this page even when i close the navigator, i mean keeping on that way (storing it on hard disk) ? I don´t know if it is possible or it is necessary to use more powerful languages. Thanks indeed. quiKe
Pagination
Hi all, I am starting out with the fantastic jQuery framework, I am at the early stages of working through a book called Learning jQuery by Packt. Anyway, on to the question, I have put the book aside for a minute, I had something in my head for a site I own, I then took a look on the web to see the code for doing it, I will dissect the code at some point. The code I am using is this: http://net.tutsplus.com/tutorials/javas ... th-jquery/ ...which is great, however, on my frontpage, I have around
[jQuery] [validate] add regex for password
Hi, I'm trying to make my password field regex-valid, but don't know what to add. Here is my code : $.validator.addMethod("integer", function(value, element) { return !jQuery.validator.methods.required(value, element) || /^\d+$/ i.test(value); } , "Numbers only please"); $("#register_form").validate({ rules: { user_password: { minlength: 6, integer:true }, } }); But this does not work. Did I make something
[jQuery] how to Passing Data jQuery UI Dialog?
I'm put an image, which when it clicks it will delete some data on the database <img src="template/default/images/removeGray.gif" id="remove" onClick="removeEdu(13)"> On above example, when user click it will delete data with id = 13 on database. This is the function function removeEdu(id) { $('#dialog').dialog('open'); return false; } And this is for the dialog $("#dialog").dialog({ autoOpen:false, bgiframe: true, resizable: false, width
[jQuery] Jcarousel and Thickbox
Hi, i am trying to use jcarousel with thickbox. everything works fine for the first three image which are loaded but if I use next button to go to next three images, the images are shown in jcarousel and If I click on image the image is shown without thickbox. I assume that the tb_init is not being called for the images which are loaded later. My code is similar to example code on the site of jcarousel.
Pagination Links using jQuery
hi guys, i am stuck with a problem here.... i am trying to form pagination links from a list.. the exisiting formation is something like this <li class="first"><a href='VIEWUSERONLINE?&ival=5'> First Page</a></li> <li class="previous"><a href='VIEWUSERONLINE?&ival=5'>Prev Page</a> </li> <li class="next"><a href='VIEWUSERONLINE?&ival=11'>Next Page</a> </li> <li class="last"><a href='VIEWUSERONLINE?&ival=11'>Last Page</a></li> Using this as a reference i need to replace the list with paginated links
[jQuery] how to Synching fields on a change (jQuery Datepicker (Keith Wood))
I wanna know how can I automatically change the second input field to get a end date after I selected the first field and get a start date. I need keep the second input field' value same change as the first one. Like the calendar application from booking.com or tripadvisor... Many thanks
[jQuery] [ANN] jQuery barcode
Hi all, I releades a new plugin for jquery named jQuery Barcode. http://code.google.com/p/jquery-barcode/ Works with Opera, Firefox3, IE8, Prism, Gecko-based browsers Could someone review it? Thanks!
[jQuery] Print functionality
Hello... I would like to have a "print this page" link that when clicked, opens up a new window with specific content and print css, in the same way that gmail does it. Can anyone point me in the direction of a tutorial or advice? Thanks for your help... AMWJ
Using Field Name as It Value
Someone please help me! I'm trying to get the name of every textfield and set as it value, I'm trying without any success things like this: $(document).ready(function(){ $("input[name]").val($("input:name")); or $("input[name]").val(this.name); }); ;/
jQuery slidedown submenu
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#topmeny a').mouseover(function() { $('#menycontent').slideToggle('fast'); }); $('#topmeny a').mouseout(function() { $('#menycontent').slideToggle('fast'); }); }); </script> The problem i have is when i try to move my mouse down too the menu that
[jQuery] Data Typists Needed ! Work from home, Great Income!
Data Typists Needed ! Work from home, Great Income! Excellent opportunity to earn a great income from home working only 1 to 2 hours a day. The amount of money you can earn with this home based job is limitless. Visit our website for more details at http://www.megalinesolutions.com
[jQuery] Performance of "parent > child" selector vs .children() method
Essentially, I'd like to know if there is any difference between $("div.grandparent > div.parent > div.child") and $("div.grandparent").children("div.parent").children("div.child") Does anyone know which of these is more performant or preferred when selecting child nodes? Thanks.
[jQuery] just a shout out
I've been majorly head's-down in a jQuery-driven AIR app for the last few weeks. I've been using jQuery almost daily since very early on (2+ yrs?). It works great for my web apps and great for this AIR app, which is _very_ heavy js/jQuery. Great work! Thanks, kudos, etc to the jQuery and jQuery UI teams!! Now, back to my custom plugins and chaining events.... ;-) - Jack
[jQuery] digg-style live feed
Hi all, I've been looking for the last day or so for a jQuery based plugin or tutorial to show how to achieve something similar to the live digg stream (not that I can it now) or twitterfall (http:// twitterfall.com). Something where new content is inserted at the top with some transition, older content fades off the bottom. Anyone know of any tutorials that show how to do this sort of thing? Regards, Gold
Need urgent help in dispalying OVERLAY DIV via jquery
HI, I have tried a lot, but did not find any solution. I am new at jquery. I have just make a signup form with proper jquery validations etc. Now user fills the form and press submit, then all entries goes at database successfully. What i want is that, On my registration form when user fill the all fields and press submit, then after successfull data insertion in database, i want to display a "OVERLAY DIV" which covers all the section of the form and display message " Please wait ... while registration
[jQuery] getJson + asp.net
Hello: I'm trying to use the getJson() with asp.net page (attempting to adapt jquery in action example to .net): <script type="text/javascript"> $(function(){ $('#styleDropdown') .change(function(){ var styleValue = $(this).val(); $('#detailsDisplay').load( 'getDetails.aspx', { style: styleValue } ); adjustColorDropdown(); }) .change(); $('#colorDropdown') .change(adjustSizeDropdown); }); function adjustColorDropdown() { var styleValue = $('#styleDropdown').val(); var dropdownSet = $('#colorDropdown');
[jQuery] Overriding jQuery methods
I need to override a jQuery method, more specifically the animate method. My aim is for jQuery to trigger an event ( eg. trigger('animate') or trigger('fadeOut') ) so that one can hook to these events within other code. I don't understand advanced javascript object oriented programming and couldn't find a solution on the net I also think that this will be good addition to the jQuery core. Thanks Andho
[jQuery] Fade in from being invisible...
Simply question: I want to have a DIV start by being invisible, then fade in but I am not sure how to start in such a way that jQuery can make it fade in. Any help?
[jQuery] How to "Remove" attached jQuery Plugin from element. (aqLayer Plugin)
Hi everybody, Thanks for your help in advance ... I have attached and aqLayer to an element like such ... $('#prvt_days_cell').aqLayer({closeBtn:true}) .dblclick(function(){ $(this).aqLayer('Validation: If there is private kilometers, there must be private days.'); }); Now at a later stage i need to remove this aqLayer from the element. Any ideas? Help is much appreciated. Thanks.
[jQuery] Selecting lowest element containing text
I need to select the lowest element containing a given string. The :contains(text) selector returns the element I want but also all its ancestors (since they too contain the text). I haven't been able to figure out a selector expression that returns only the lowest element. Any help appreciated. Thanks David
[jQuery] static slider with colorscale
I want to use a gui that's used to show a score from 1 to 10, it looks like a slider except that it's not interactive, when the score is 1, the slider's knot is at the left end of the scale, and right when it's 10. The color also intensifies when the score increases. Does such gui exists? If not, what's the easiest way to build it? any base gui I can use? thanks
[jQuery] How to operate other frame's DOM?
Hi everyone I make a progrem using jQuery, I want to realize the function from one frame to operate other frame's DOM. Who know the method? For example from one frame to operate other frame's button disappling or show up. Thanks in advance. Wang Suya
randomize quote display and thickbox
hi, i am bringing in quotes from an html page randomly using this code: $(document).ready(function(){ $('#quotesContainer').load('quotes.htm',function(){ var $quotes = $(this).find('blockquote.text'); var n = $quotes.length; var random = Math.floor( Math.random()*n ); $quotes.hide().eq(random).fadeIn(); }); }); works fine. problem is i want some of the quotes to have a link from the author to read the rest of the quote when its too long. i have thickbox running fine and when
Next Page