[jQuery] Simple one: difference between varXy.find(':text') and $(varXy).find(':text')
Hi there thats an easy one for you ;-) if i do: var mySet = $('tr>td:nth-child(2n)'); how do I use mySet? What's the difference between mySet.find(':text') and $(mySet).find(':text') Thanks :-)) GGerri -- View this message in context: http://www.nabble.com/Simple-one%3A-difference-between-varXy.find%28%27%3Atext%27%29-and-%24%28varXy%29.find%28%27%3Atext%27%29-tp22348597s27240p22348597.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Simple one: difference between varXy.find(':text') and $(varXy).find(':text')
Hi there thats an easy one for you ;-) if i do: var mySet = $('tr>td:nth-child(2n)'); how do I use mySet? What's the difference between mySet.find(':text') and $(mySet).find(':text') Thanks :-)) GGerri -- View this message in context: http://www.nabble.com/Simple-one%3A-difference-between-varXy.find%28%27%3Atext%27%29-and-%24%28varXy%29.find%28%27%3Atext%27%29-tp22348597s27240p22348597.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Ajax Add Loading Delay
I'm new to jQuery so learning as I go. I've created an ajax request which shows a loading circle whenever a request is made but I would like to add a delay before the sucess data is shown. Some of the requests are really quick which is great but I would like to display the loading cirlce for just a second evrytime so it's clear the data has changed. How could I add this? There maybe a better solution and if I've coded anything incorrectly please do let me know? Thanks Jemes <script type="text/javascript">
[jQuery] Strange double hits on selectors?
Dear List, i am using jquery 1.3.1 and encountered the following issue: With the CSS class "int" i want to mark input fields that only accept numerical keyboard input. When i started to add the feature that arrow up increases and arrow down reduces the input value, i found out that the function was actually bound two times to the input field: the values increased in steps of two. Doing some more examining i found out that ALL my functions got bound two times to their nodes. What am i doing wrong?
JQuery autocomplete PHP MySQL help
Hi this is my first post! I'm v new to JQuery, but already am excited about it. But am stuck on this because I can't find any real examples... I want to link up the JQuery autocomplete module up to my MySQL database using PHP. I've got the JQ part working fine. But I don't know how to display/format my PHP array? Should I just print_r() the array, or run through it and each out every value? Or do I display it in an unordered list? It seems that echoing out each value (on their own or as a list item)
The need for speed...or delay
I have some drag & drop code that I've written and one part of it is that when a draggable is succesfully dropped it's new location get saved with a $.get(). This works fine but my problem is that if the browser gets reloaded before the call recieves a 200 OK naturally it doesn't get saved. So my thoughts are that maybe it would be faster to write a cookie with the new location and then server side look for that cookie's existance and if it's there pick out the information, save the new location
[jQuery] what did i do? subnav breaks in IE
I'll have to go through and debug, but in case anyone has an eye for this sort of thing...IE breaks my subnav and displays each <li> on a separate line. http://97.107.131.227:8000
[jQuery] jquery tablesorter
jquery tablesorter documents are not visible as perfect and seems to upadate. I tried to make demo with assign a id for a table and added content using thead and tbody. Sorting start working but asc/desc images are not appearing. I got the issue after explore the other examples online and resolve it. We must be need to add a class "tablesorter" (defined in style.css) on applied table including id of that table.
[jQuery] lose focus on txtbox and div, do something
I have a div with a textbod inside of it. When both of these lose focus, so the focus is not on either of them, then I want the div to move. How would I write the code that if both of these lose focus, THEN do whatever i want. I just want to know how to have 2 selectors, and when both of them lose focus, then do something. Ami gave me this code but it doesn't seem to be working, can someone help me out? var divFocus=false,textareaFocus=false $('div').focus(function () {divFocus=true}).blur(function()
[jQuery] JMaps directions search error
I've been trying the directions search of Jmaps for my app. But keep getting errors. I tried printing the error message (valid.message), But just says 'unknown error occurred' Not sure what is wrong & how to fix it. Has anybody experienced this before. If so could you please share your solution to it? I followed this example as it is.. http://map.ifies.org/examples/google/Google.Address.SearchDirections.html Thanks. -- View this message in context: http://www.nabble.com/JMaps-directions-search-error-tp22365850s27240p22365850.html
[jQuery] JMaps directions search error
I've been trying the directions search of Jmaps for my app. But keep getting errors. I tried printing the error message (valid.message), But just says 'unknown error occurred' Not sure what is wrong & how to fix it. Has anybody experienced this before. If so could you please share your solution to it? I followed this example as it is.. http://map.ifies.org/examples/google/Google.Address.SearchDirections.html Sample 'Query' that i tried: "From: Oceanside, CA to: san marcos, CA". I hope its not a formatting
[jQuery] can't get started
Hello, I've downloaded both the compressed & uncompressed versions and tried both the initial example from the jquery site (http://docs.jquery.com/ Tutorials:How_jQuery_Works) and the step-by-step intro from the tutorial videos (http://blog.themeforest.net/tutorials/jquery-for- absolute-beginners-video-series/). I have tried putting the jquery download in the same directory as my html (e.g. <script src="jquery-1.2.3.js" type="text/javascript"></script>... and I've tried putting it in a separate
[jQuery] Drop down select list with images plugin?
Does anyone know of a jQuery plugin that allows you to create drop down select lists with images like the ones used at onlineshoes.com? See link below, the select lists I'm referring to are the size and color selectors. http://www.onlineshoes.com/productpage.asp?gen=m&pcid=129007 Thanks in advance.
[jQuery] Calling PHP function with $.ajax()
Hi, Is there any way to call a php function directly with $.ajax()? I did some search and the answer I've got varies from impossible to using workarounds such as passing query string to the 'data' and let php direct which function to call. I know that with asp.net it's possible but i'm not familiar with PHP. Here is the code that works for me in asp.net. $.ajax({ type: "POST", url: "Default.asp/Book", contentType: "application/json; charset=utf-8", data: "{}", dataType: "json", success: AjaxSucceeded,
Send a variable value to a php file
Hi all, I've got a variable inside a jQuery function that I want to send to a php file (stored in another server) . How can I do that?? Please, note that the variable cannot be sent by clicking on a link or via sending a form .. Thanks in advance!
No preview image
Since no one replied to my old thread.. I thought I'll create a new thread.. So here's what's up: I have this: <a href='preview.php?id=".$row['id']."' class='previewBanner'>Preview</a> and this: $(function() { var offsetX = 20; var offsetY = 10; $('a.previewBanner').hover(function(e) { var href = $(this).attr('href'); $('<img id="largeImage" src="' + href + '" alt="Banner preview" />') .css('top', e.pageY + offsetY) .css('left', e.pageX + offsetX) .appendTo('body'); }, function()
[jQuery] Image flickring IE7
Hello, I have this issue that in IE7 my images of my website flickr and you can see rebuidling.... http://torenhoeve.tracklister.com is the url of you wan't to see what is the problem.. I have been searching for a solution but didn't fout it yet. Hope there is a jquery plugin that helps me solve his problem... Any ideas ? Thx, Ward
[jQuery] .clone a form
Hi All. I am having an issue with cloning a form. When I clone an existing form, only the input tags are cloned. Here is an example" -- HTML <form class="hook" action="do/something" method="post" enctype="multipart/form-data"> <input type="text" name="variable"> <input type="submit"> </form> <div id="clonehere"></div> -- JQuery $('#clonehere').append($('.hook:first').clone(true).html()); -- Result #clonehere will only get this part of the form <input type="text" name="variable"> <input type="submit">
[jQuery] Trying to add/remove a class "when...."
Hey all. I'm trying to add/remove a class and am having trouble. When I add the new class, the color takes hold, but not the changing of the background image. The original CSS is defined as input[type="button"]{background- image:....} How do I remove a class that is defined like the one above? I tried removeClass("input"), but that didn't work.
[jQuery] Superfish Help
Hello, I have installed the Superfish module and can get it to display on my site, but I can't seem to get the drop-down to look good. In fact it looks pretty awful. Any help would be great. You can see it at eslbasics.com
[jQuery] calculate value of input based on two selects
hi guys, just wondering how i would update the value of an input box to be the value of the sum of two select (drop down boxes) plus 1. i.e. (select1.value * select2.value) + 1 I need to do this everytime either of the two fields are updated. my pseudocode is: select1.onUpdate{ total.value = (select1.value * select2.value) + 1; } select2.onUpdate{ total.value = (select1.value * select2.value) + 1; } if anyone can help me "translate" this to jquery i'd be mighty relieved. thanks, alex
[jQuery] Objects Methods as event handlers.
I've recently taken on a job where I have been required to use jQuery instead of my usual framework of choice - prototype. I've handled the transition well enough but one area of functionality has me befuddled - using object methods to handle events. I've been working around the problem but the workarounds are quite ugly. An explanation. First I'll give the code as it would look in prototype myClass = Class.create({ this.element: null, this.initialize: function( element ) { this.element
[jQuery] Beginner a little stuck
I have multiple forms of the nature [code] <form> <input hidden value =1> <input submit class="submit" </form> <form> <input hidden class=qty value =2> <input submit class="submit" </form> [/code] I have the script as follows.... [code] <script language="javascript"> $(document).ready(function() { $('.submit').click(function() { var msg = $('.qty').val(); $.post("<?= site_url('cart/add_cart') ?>", {qty: msg}, function () { $('#sidebar').load('http://localhost/update_records.php'); }); return false;
[jQuery] Bug using input type file with IE7
Hi, I have a problem. I need clear the field <input type="file"> using jQuery. The jQuery script is: $(document).ready(function(){ $('#clearButton).click(function(){ $('.file).val(''); }); }); The Form declaration is: <form enctype="multipart/form-data" id="form"> <fieldset> <legend>Fields</legend> <table> <tr> <td>File</td> <td><input type="file" id="fileField" class="file" /></td> </tr> <tr>
[jQuery] transition between two classes
Does anyone have any examples of this? I downloaded the UI core which supposedly supports this but when I visit the documentation, the page is blank. http://docs.jquery.com/UI/Effects/ClassTransitions Thanks Brian
[jQuery] I need two progress bars superimposed on one another
Hi, Here is my requirement: I need to have a progress bar which should show me details of the following: Total number of test cases ran, Total number of test cases passed. it should be displayed as shown: |---------------a>---------------------------------- b>----------------------------| 0 20 60 100 here, the entire length of the progress bar will correspond to count of total number of test cases I have, the level till b> from 0 will give me the total number of test cases executed and level till
[jQuery] Slider - value = function
Hi peoples. I just wanted to ask... is is a bug that I cant use a function as value of a Slider (UI) ? fx: $("#soundControl #setVolume").slider({ range: "min", min: -3, max: 103, value: ytplayer.getVolume(), }); This wont even show the slider because of the value of value (ytplayer.getVolume()) What can I to make this work?
[jQuery] Access to restricted error
I'm get a "Access to restricted URI denied" code: "1012 --- try { parent = parent.parentNode; }" after I do an $.ajax call to send form data to an email processor (PHP). It's located in the exact same folder, so I'm unsure to why I'm receiving this error. The link for this file is http://www.mediafuel.net/test/colts/ajax2/index2.html. You click on Send to Friend, then if you fill out the form information and click the button to send the information. The php file is at http://www.mediafuel.net/test/colts/ajax2/stfcolts.php
[jQuery] LocalScroll with anchor in URL not working
Hi -- I'm using the LocalScroll plugin, and having trouble getting it to work when passing the anchor through as part of the URL. Instead of scrolling to the appropriate anchor id, the window just moves a few pixels and stops. Calling LocalScroll on links within the page works fine, but not when the link is coming from another page or typed directly in the browser address bar. My code for initializing LocalScroll is: $(document).ready(function(){ $.localScroll.hash({ axis:'x', duration:1500 }); $('#container').localScroll({
[jQuery] Use iFrame like a normal document
Hello, Unfortunately I have to use an iframe (or unless someone else has a better idea). I would like to load a webpage into an iframe and then be able to use jQuery to work out where certain divs are located. Note that it should base the locations on the iframe and not in relation to the whole doument. So, for instance: $("div_im_trying_to_find", my_iframe).offset(); or $("iframe div_im_trying_to_find").offset(); Anyone know if this is possible or whether there is a better, smarter way to go about
[jQuery] doing validation on submit
How can I stop the latest jQuery validator from doing validation onKey up or onBlur and just do it on submit for the keywords field? -- View this message in context: http://www.nabble.com/doing-validation-on-submit-tp22359421s27240p22359421.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Breaking changes during upgrade to 1.3.2
When I upgraded to 1.3.2 from 1.2.6 the following code segment broke. Does anyone know if there any breaking changes in the jquery syntax, or am I just using it wrong? function ToggleCheckboxes(sender, featureTypeId) { $("span[@featureTypeId$='" + featureTypeId + "']").find ("input[@type$='checkbox']").each(function() { this.checked = sender.checked; }); }
[jQuery] Get contents of first child tr, td with class
I have a table like so: <table id="recent_activity"> <thead> <tr> <th>t1</th> <th>t2</th> </tr> </thead> <tbody> <tr> <td>value</td> <td class="date">2008-09-01</td> <--- want this content </tr> <tr> <td>value</td> <td class="date">2008-09-01</td> </tr> </tbody> </table> And I want to try and get the first td with class date, I've tried the following and I get close, but I think I'm just missing something easy: $('#recent_activity tbody:first-child .activity_date').val(); <-- returns undefined or
[jQuery] [autocomplete] Enhancements made
Jörn Zaefferer I have made some enhancements to your autocomplete plug in. The enhancements include three new options. <ul><li>focusFieldAfterSelect : gives focus to the input field after selecting on true, does no give focus on false</li> <li>focusFieldAfterCancel : gives focus to the input field after clicking outside of it on true, does not give focus on false</li><li>onSetValue : a call back function that is called after the input field is updated via autocomplete</li> </ul> The first two options
[jQuery] show and hide jcarousel lite plug in
I have a set up I am creating where when the user clicks on an image in one carousel it will display another carousel that contains pictures in it to view in a larger window. I have been able to get the carousel on both to work, but I am having trouble getting the second to show and hide and pick from a certain set of pictures when a picture in the first carousel is clicked. I have tried using a javascript switch statment (which works fine in other wbesites that dont use jquery) and also the code
[jQuery] Scrolling Flash control in a jCarousel
Hi all, I've got a series of JW Player flash objects in a jCarousel, the idea being that once one movie is finished, it triggers an event to the carousel to flip to the next frame and then start the next movie. But even when a movie in a player is not playing nor buffering, once jQuery starts to slide it out, the flash truly does not respond well, flickering in a most unpleasant manner. Anybody out there have luck with sliding a div containing a flash movie without it getting all ugly? Would like
[jQuery] ajax data
Hi to all I got the following problem I want to send to PHP server nested json using ajax. {item1:'one', item2:'eeee', item3:[{item31:'sdf', item32:'sdfs'}] } My code: $.ajax({ url: "translation_edit.php", type: "post", data: {item1:'one',item2:'eeee',item3: [{item31:'sdf',item32:'sdfs'}]}, success: function(data) { alert('Success');}, complete: function () { alert('Complete');
[jQuery] [autocomplete]Error: $("#suggest1").autocomplete is not a function
<script type="text/javascript"> $().ready(function() { var data = [ {QUERY: $("#QUERY").val(), url:'test.asp? Process=CheckCustomer'} ]; $("#suggest1").autocomplete(data); }); </script> <div class="required"> <label for="Test...">Test...</label> <input type="text" id="suggest1" /> </div> Data needs to be taken as: test.asp?Process=CheckCustomer&QUERY=a Not very familiary with jquery yet. Can anyone tell me why I get the following error. Error: $("#suggest1").autocomplete is not a function
[jQuery] RE: Anchors & Images Tutorial
I have had a look at this tutorial by Malsup and simply, you can add an a link to the image slides. However, for me like the tutorial with: function onAfter() { $('#output').html("Current anchor: " + this.href); I have for myself: before: onBefore, pager: '#featurenav' }); function onBefore() { jQuery('#headline').html(this.alt); } }); The image slides are held within a div and it is simply: <a href=""><img src="" alt="something" /></a>. But adding the a link to the img src tag does not make the
[jQuery] Need to insert an element in DIV at position X Y
Hi! I am trying to create a webpage where users can insert a pin (div) in between the text using context menu. My problem is that i do not know how to insert at the exact position. Using Dom's I can arrive only to the nearest DIV but a DIV contains a lot of text and the PIN has to be position close to the text. I can obtain the position of the mouse click using pageX and pageY but dont know how to insert an element at that position. I tried insertAfter, prepend, append but not getting the desired
Next Page