lables translation
I'm doing translation/localization. I need to get all my text labels and replace them with other language translated labels ( array) when user selects new language How do I do it with jQuery? var myTextArray= $("div[innertext!='']"); for x in myTextArray { //Do replace x.innerText=langSetText(lang, x.id); }
jQuery image configuration
Where do I find the button images for calender? I download the js file, but when the calendar show up, the "Prev" and "Next" button do not show. It shows words instead of button.
How to show huge data in jQuery..
Hi again... i want to display data similar as below screen shot... where left side show cusines...and in right side it shows all menu items.... what control or html tag should i use to show the menu items so that the data could be displayed as quickly as possible also when we click left side cusines the menu items gets sorted accordingly... Thanks in advance...
Jquery - Passing selected row values to a hidden text box
I'm working on a postcode (airports & train station) search but can't seem to figure out why the selected row values are not writing the correct values to the hidden text boxes. Basically if I search 'Gatwick' as shown below: I get the following XML response: <?xml version="1.0"?> <addresslist resultcount="4"> <address id="0" catagoryid="1" lat="184179968" lng="-639296"> <companyname></companyname> <premiseno></premiseno> <streetname>GATWICK AIRPORT (NORTH)</streetname>
Using jQuery To Search .CSV File
’m completely new to jQuery so apologies for any obvious errors. I have a .CSV file with headings and data laid out as: Order Number, Stock Status, Quantity, Comments, Date 1234567, In Stock, 15, All in Red, 15/08/2012 1234568, Out of Stock, 203, Leave with neighbor, 21/08/2012 1234569, On Order, 20, Chrome finish, 17/08/2012 1234570, Other, 140, Wooden garment, 01/09/2012 1234571, Other, 541, Chrome finish, 31/08/2012 I have a HTML page with 4 buttons (correspond with Stock Status): In Stock, Out
jquery load
Hi, I have a jQuery load: ("#mydiv").load('controller/method', {'value': '<?php echo $val;?>'}); I am trying to get the value in another php page using $_GET['value'] Here url is controller/method I am not able to retrieve the value. Could any one please correct me. Thank you.
Visible & First/Last Occurrence
I'm trying to look at searchercustomcontent that are visible (some may have display:none applied) and then make sure it's parent is visible and then apply margin to parent first occurrence and padding to parent last occurrence. $('div[class^="searchercustomcontent"]:visible').each(function(i) { $(this).parent('li[id^="order"]:visible:first').css({'margin-top': '0px'}); $(this).parent('li[id^="order"]:visible:last').css({'padding-bottom': '5px'}); }); Thanks, Bill
replace multiple character in a string?
Hi, Jquery has given me the chance to learn new things on web development...I just have a question on the replace() function..... how can i change or replace multiple characters in a string. Is it possible? =) example: mystr = "i am new to jquery, it good to be updated"; char1="e"; char2="o"; in the given, i want that all "e" and "o" should have a background color, or perhaps make its font-weight to bold. Assuming that the mystr is inside <p> tag. please help.....
confirmation box increments on each page refresh.
Hey guys, I must have something wrong in my code or something.. for some reason when I try to delete a post before the page refreshes than all is good, but after the page refreshes the confirmation logs it twice. here is my code. var refreshSpeed = 8000; var intValID = 0; var KEYCODE_ENTER = 13; var KEYCODE_ESC = 27; var c_hashid = new Array (), r_hashid = new Array (); function loadComments () { $.ajax ({ url: "postComments.php", type: "post",
Smooth Image-to-Image Fade Transition?
Hi all, I've found a bit of code at this website: http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/ which is perfect in terms of functionality, etc. However, I'd like to make it a bit more slick and have the images fade into one another rather just change. Can anyone suggest a tweak to the existing code that would allow this to happen? Many thanks! SamB77
Local Documentation
A couple questions. The main site's link for "documentation" takes me to http://docs.jquery.com/Main_Page but it says go to http://api.jquery.com but when I go there, the top bullet on the left side is "New or Changed in 1.7". But the latest is 1.8 so I'm not sure if I'm looking at the latest documentation or not. Second, I see various ways to get local documentation but all of them are 1.7 (or older). What I really want is the style of api.jquery.com but complete and local on my laptop (because
cheking form fields with ajax
Hello, I need help for sending emails from forms with jquery/ajax method. My pb occured when I check the form fields before sending the data to the server. I have a field for the message and I check if it has at least 6 caracters every is ok if the user doesnt press enter before the 6 first caracters but a message contents header like 'Hello,' and then you rpess the enter key to go to another line. So my pb is if you press the enter key to go to the next line before having 6 caracters I have the
Loading external HTML into div
Hi, I'm fairly new to jQuery and I wanted to know how do I load three external HTML files into three different divs on another page when the body of the holder page loads. the divs would be as follows: <div id="holder1"></div> <div id="holder2"></div> <div id="holder3"></div> Thanks!
home page ipad
Hi! How can I make the following: the user enters my website. Then, on the screen appears a locked iPad and after the user drags the arrow from left to right the home page will be displayed with all the content - divs, images... The background (iPad chassis) will remain and the home page will be surrounded by the iPad. It is possible? How can I make this? Thanks!
Problems with scrollTop
Hello everybody, I have the following code which scrolls the page to the top if you press a link in my menu. The thing is I would only like this to work if the page is not at the top. So if the page already is at the top then it should not have any effect. How can I do that? $(document).ready(function(){ // scroll body to 0px on click $('.red ul.mega-menu li a').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); return false; }); }); Best regards, Lasse
Getting started with basic web apps
Hi all, Up till now I've simply being using jQuery as a means of introducing small pieces of interactive content on my corporate website (banners, nav bars etc). However I'm now looking to build a small bespoke application which should be a bit more of a project.. Basically I'm wanting a 'Select your bin' feature, where a user can pick the lid and then the body of their bin of choice. Once a user has made their selection the application will output a link which will lead through to a relevant page.
How does block-ui work ?
I am using blockui JQuery plugin. It is not doing what I need it to do. I have some events and html elements disabled or not working when they should. I want to write my on blockui, but I am not sure how the block ui is stopping the UI thread. I want to know what is the technique used by block ui to stop all inputs. Can anybody help ?
Getting text from file and displaying split into additional divs
Hi All Sorry if this sounds super simple but I just started with JQuery and am getting myself lost totally I have gon through the tutorials and getting there slowly but I need to be able to do the following I have a text file that contains as listed below : Total Taken : Number Total Remain : number Total Closed : number I can get to read this into my page using this $(document).ready(function() { $(".text").load("comercialsupport.txt" ).text() }); What I wish to do is put the areas
Problem with validation
Hi all. I'm trying to validate some fields before opening a dialogue but I can not do. <link type="text/css" href="css/smoothness/jquery-ui-1.8.23.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.8.1.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script> <script type="text/javascript" src="js/jquery.maskMoney.js"></script> <script type="text/javascript"> function enviardados(){ if(document.formContas.nome.value == "") { alert(
Leor Zahavi: Want to learn jQuery
Hello everybody! I am Leor Zahavi and I am really interested to learn jQuery. What are the basic concepts I should know before starting jQuery as I know a little core java. Thanks Leor Zahavi
Timer, function, element & maybe Ajax & php
Hi, This is the scenario I want to created. I have 10 products which I want to display and which have their on unique count down timer. 1) I have retrieved Timer(from mysql) 2) <p> will display the count down timer *Note my theory was element <p> was to call the function(Timer mysql) by itself and if the condition is wrong. Update the <p> text without loading (I believed got to do with Ajax) and perform again the function 1 sec later. ---------------------------------------------------------
I'm very new. I'm wanting to know the difference between download on the homepage, and the UI widgets downloads and ect....
Okay, firstly I apologize for the noob questions, but I learn quick, so hopefully you'll forget all about me soon lol. On the Jquery.com homepage, there is the big download button, and I understand what to do there I'm pretty sure. I click the button, copy all of the code, and save it as a .js file to point to when scripting requires it. I'm confused about the widgets and other offerings you can get when clicking on the UI link. Each seems to have it's own code that comes with it. My question is,
Form is not getting submitted second time.
$(document).ready( function(){ $( "input.pricerUpdate").click(function() { //document.getElementById(id).checked = true; //alert("hello"); $.post( "/cart1/programming_americanCore_process.action", $("#formBody").serialize(), function(data){ updateSummaryBar(data); }); return false; }); }); When i click the button first time the form is submitted & i get the response. After selecting another radio button...when i again submit the same form...nothing goes to server... action is not hit on the second
Question about viewing multiple sequential images with scroller
I'm researching a solution for replicating a certain type of image viewer. Basically, the images are x rays, and there will be anywhere from 2 to 20 images in a set. They are brought up in a viewer with the initial image, then a scroller is used (no thumbnails) to advance through them. Every time the scroller is moved, the next image loads. I have a feeling that the jQuery slider may be the best solution if I can use the separate images as the different incremental elements. I've looked over
How to use jquery online ?
I want to use the jquery controls (autocomplete ,calendar etc) to post articles in blog. I am an asp.net programmer and i am storing all the necessary files on a single folder inside my application. But while working with the blogs it is not possible to store all the files into my computer . So how to access the jquery files online. is there any options for that . Please provide detailed information
Prototype getElementsByClassName to JQuery help
Hi at the moment i use this which: Fetches all of element’s descendants which have a CSS class of className and returns them as an array of extended elements. var arResizableGalleries = $(PagePanelGroupIDs[i]).getElementsByClassName("Resizable_ImageGallery"); does anyone know how i can do this in jquery?
Use Exact Search Term Only
I have a function that looks at search terms in a class and shows content that matches the term from an input. The problem is, if I search for a1 and there's a term somewhere that's a12, then both are shown. I want to limit the result to only exact matches. Tried adding green text below, ie filter, but getting an undefined function. function HideFilter() { var txt = $('input#select_searcher_%id%').val(); txt = txt.toLowerCase(); $('[class^="searcher_stack-its"] span').filter("[class]").each(function()
Simple selector question - Why doesn't this work: $("p:not(p:eq(2))").css("border", "3px solid red");
I am following a basic jQuery course on Lynda.com and this exercise is not working. Is this an older syntax or something? Chrome's error message is "Uncaught Error: Syntax error, unrecognized expression: p:not(p" <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Document</title> <script type="text/javascript" src="../jquery-1.8.1.js"> </script> <script type="text/javascript"> $("document").ready(function() { $("p:not(p:eq(2))").css("border", "3px solid red"); }); </script>
How do I have 5 divs fadein, fadeout and stop on the last one?
I'm looking for each div to fadein, display for 5 seconds, fadeout. However on the last one I'm looking for it to stop (not loop) as the user will be able to navigate the content. Thanks!
Strange hover event behaviour
Hi everybody, I'm stuck with a presumably stupid newbie mistake. This works (mind the background color of the pagination buttons changeing on hover): http://waidelehof.sr-heidelberg.com/ This doesn't (again, mind hover behaviour of the pagination buttons, pointer cursor apparently removed while taking the screenshot): http://waidelehof.sr-heidelberg.com/pages/wohnungen.html What makes this behaviour strange and unnerving is the fact that both style instructions cursor and background color are part
How do I
Hi Everyone, First Thanks for your time! Need a little help please.. I'm using the following script how would I change it to make a PHP program execute on the server when the submit button is clicked? Sorry new to Jquery... still reading and learning. <head> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script> google.load("jquery", "1.5"); </script> <script type="text/javascript" src="jquery.multipage.js"></script> <link rel="stylesheet" href="jquery.multipage.css"
Question on how jquery variables work
I am curious about how jquery variable operate in regards to how data is accessed . If I create a variable var hiddenUserData = $("#hiddenUserData").find("span") and try to loop through the data, is the entire html collection stored in the variable or is it still referencing the DOM? I am trying to dymatically add content into a table via checkboxes, but it is very slow via internet explorer 8 and below. I am trying to figure out if I should use an array instead of an html collection.
Upload limit for posts in slider?
Can you program the slider to accept 50 to 100 posts from a post category in Wordpress? Thanks.
Need Help with Image Replacement Script
I am trying to make a Picture Gallery Page. On the left is a 5 x 7 set of thumbnail pictures and on the right is room for a full size image. By clicking on one of the thumbnails, I want the full size version to get placed into the right area. I am having some problems with what to code as my script. The page is laid out as follows: <table border="5" width="1000px" cellspacing="5" cellpadding="5" rules="all" align="center" frame="border"> <tr> <td width="100px">
Creating a simple read-only list (without any arrows)
Could anyone provide an of a read-only simple list. The list without the arrow?
Why are these multiple selectors required?
Hello, I am new to jQuery and to the forum, so a big hello to everyone. I have come across a nice little piece of code here: http://tympanus.net/codrops/2009/12/08/beautiful-slide-out-navigation-revised/ which creates a slide out navigation panel. The jQuery code located just before the comments on the page is short and I easily understand what it does, but what has me spooked is why do we need this multiple selector: $('a',$(this))instead of using just this single selector: $(this)I would love to
Where is Change Log?
I note that JQ 1.8.1 has just been released. I looked on the main page but except for the statement that the current release is 1.8.1 (with download links) there does not seem to be any link to a Change Log to see what was added to 1.8.0 to make 1.8.1 (or for that matter what was changed from 1.7.2/prior-releases.). I am used to seeing a change log (ie: Change History) with each new release of my software (so I know if I want to upgrade) but can not find it for JQ. Where does it exist (assuming that
clone on load...
I am trying to make this work: $("#content").on("load", "#prev_next", function() { alert('ahoy!'); //$("#prev_next").children('a').clone().prependTo("#top_prev_next"); }); And obviously I am doing something wrong so if someone would love to point me in the right direction that would be awesome. Pretty much #content is loaded into a div and I need to wait for the #prev_next id in #content to load and then clone it into #top_prev_next which is outside of #content. Any help or
struts2 jquery watermark
Hi, Clearing the watermark on Struts2Jquery plugin submit page.
Help replacing Mouseenter event
Hello all. If anyone can help me, I'd very much appreciate it! Basically I'd like the "menu" to animate up upon loading the entire page and remain as such. With the code below, it only pops up when the mouseenter event is triggered. $et_main_header.live( { mouseenter: function(){ $main_menu.css({'display':'none','opacity':'1'}).stop(true,false).slideDown(menu_slide_speed); }, mouseleave: function(){
Next Page