Noob question about rotating images
Hello all, I've just started to use jQuery and im totally lost. Im not familiar with jQuery syntax and now i need it to rotate image. Basicly i just dont get what i suppose to write inside $('#HERE'). Its in line 18 and im trying to rotate that heroImage (hero.png) there. $('heroImage') wont work. $(heroImage) wont work.... what i suppose to write there to rotate image? pls help the noob :) // Hero image var heroReady = false; var heroImage = new Image(); heroImage.onload = function () { heroReady
decoupling the range slider widget
I am having trouble getting a decoupled version of the mobile, dual handled range slider. To be clear, what I want is the widet with none of the other jQuery mobile features. I went to the mobile download builder and checked one box, "Range Slider" under "Forms." It auto-selected other boxes for me, which I assume were the dependencies. When I use the mobile js file from that zip and html from the online example, I get two single handle range sliders instead of one double handle range slider. Here
localStorage not persisting in jQuery 1.3.0 (Windows Phone 8)
I have a strange issue when upgrading my jQuery Mobile library within my Windows Phone 8 HTML5/PhoneGap application from v1.1.0 to v1.3.0. I rely on localStorage within my application, which I use to set certain parameters from page to page depending on who's logged in, etc. However, when navigating between different HTML pages within the application, the localStorage seems to clear itself, which I have no idea why - and is undesired behaviour. Because the pages are separate (not all contained within
I can use Global Ajax Event Handlers with other ajax provider?
Hello, I want to know if the Global Event Handlers work with ajax's call from any provider, like Prototype. Thank you Nano
How to SHUFFLE rotating testimonials?
www.WEBCO-MN.com - scroll down to "What customers are saying" to see an example. (Apologize in advance, I'm not a crazy coder. I know the simple stuff, and I know nothing about javascript) I found a simple code that allows me to enter the text into DIV areas. I have a number of testimonials to add still, but the customers that go to our website will only see the first few every time, I'd like them to shuffle. I'd also love it if there was a way to be able to hover over the text and make it pause?
order of the divs in html
Hi I have a ques here. Like if i have a big html. In that html, i have defined orders of the divs appearing in it. like: <div1> <div2> <div3> i have styled these divs thru css and have given css acc to their current position. But now if my data is dynamic now and i cant' say which div will come at which place. like it is kind of caraousel. how can i handle this? is there any way?
Maintain user filters across all pages?
Hi there, Is there a way i could maintain the user entered text/drop down data somewhere so that it is accessible across all pages(something like global variable) using JQuery. but it seems i am not supposed to use session/cookie concept as well. Thanks.
jQuery execute more than once on page, each(function() ?
Hi, I have the below code which I believe basically says if the div with id="sectionavailability" equals "in stock" replace with SOME HTML or if it has "out of stock" replace with SOME OTHER HTML Works great, but only executes once on a page, the first occurance of id="sectionavailability" if(jQuery("#sectionavailability").length){ if(jQuery("#sectionavailability").text().toLowerCase() === "in stock"){ jQuery("#sectionavailability").html("SOME HTML CODE HERE"); } else
Are there plans for Sizzle 2.0 dropping oldIE?
Since jQuery already has two versions, one of them dropping oldIE, wouldn't it be good to also create a separate Sizzle 2.0 version dropping oldIE? Regards, Michał Gołębiowski
fixed footer with input above keyboard iscroll
Im using Iscroll to an webapp and all goes fine. My problem is that i have a footer with data-position="fixed" and in here i have an input. When i click this input the virtual keyboard covers the footer and i dont see the text. I'm usin this with jquery mobile, i've tested in an ipad and a iphone, and the pluggin works fine, except when i'm writing on the input field in my footer, it pops up the virtual keyboard and covers up the input field. here's a link where you can see it: http://www.gilasdesign.com/test2/threads.html#conversation
Debugging jQuery Isotope plugin
Hi there, I'm working on a site in Wordpress that uses a theme that has the Isotope plugin implemented. This plugin allows users to sort content based on filters but the theme only supports sorting by one filter at a time. I've been trying to implement combining filters but I'm now a bit stuck. Here is a JSFiddle by the plugin author on how to combine filters: http://isotope.metafizzy.co/index.html And here is my demo where I'm trying this out: snaprockandpop.samcampsall.co.uk/shoots/ Here is my
[solved] Problem with IE and mouseenter/mouseleave on div containing some text
Hallo, I'm quite a beginner with js/jquery so probably my problem has already be solved somewhere... however I don't know how to googlate the answer :( Here's the problem: I have a div (container_div) with 2 smaller div inside: one containing an image (image_div), and one containing some text (text_div). I want to start an animation on image_div everytime the mouse is over the whole container_div. The animation works fine as long I use firefox or chrome; on IE instead the mouseleave event is triggered each
Please help me making this slideer.
I want to make this type of system, you can understand. URL is : http://joshuaraichur.com/ Please help
interval refresh listview without loosing textarea focus
Hi. I'm new here and I hope you'll could help me. I have a jQuery mobile website with a message system. The user could write messages with his friends. On the message page the user have all his conversations. If he clicks on a conversation, he'll see the complete conversation. There is my problem. I don't know, how to auto-refresh the content of the listview, which shows the conversation. If I refresh the whole, I will lost the focus of the textarea for writing a message. Could anybody help me with
Unexpected call to method or property access
I have created some dynamic divs in my application. Now when i try to hide , show or add html to these divs i am getting Unexpected call to method or property access. my jquey is as follows: $(document).on('click', '.expand', function() { var theURL = "#URL(Action('ViewPage-GetUsersAssignedToOrg'))#"; var username = document.MBSearch.UserNameCheck.value; var documentname=document.MBSearch.DocumentNameCheck.value; var orgid = this.name; orgid = orgid.replace(/^\s+|\s+$/g,''); username=username.replace(/^\s+|\s+$/g,'');
Can't get a conditional statement to work...help please!
I'd like to inject the class name "in" into a div if the div contains the text "In" or "Remote", and for everything else have the class name "out" get injected instead. The first part of the if statement seems to be working but the second part, the else part, doesn't seem to work. Here is my code: (function ($){ Drupal.behaviors.at_topnav = { attach: function(context, settings) { var i = $('div.user_status:contains("In", "Remote")'); if ( i ) { $('div.user_status').addClass('in')
Searching option in Dropdown list?
Is any method available for seacrhing option in attached scrrenshot? for example I am entering 'East Cost 1' in Search box (and also clicking the go button it will return same records)it will return all East Cost 1 values in the dropdown list.Is it possible?
How to accept the format of .cer file for validation
Hi, I want to validate the file of .cer file format . i tried with the blow code but not working rules:{ myfile: { required: true, accept: 'application/pkix-cert/*' }, sr1: "required" }, messages: { myfile:{ required:"Upload Certificate", accept:"File must be Cer | Pem" }, sr1: " Enter SerialNumber" } Please help me that how to solve
skitter jquery slider _blank problem help !
Dear guys, I got a problem, I confuse this a long time because I'm not the professional programer, I try to use a cool jquery "skitter" but when I already done it, I found it can't use _blank , _top to blank new windows in iframe the sample url is http://blog-imgs-56.fc2.com/e/v/i/evilkiwi/banner3-u99.html the iframe web url is http://www.i-search.com.tw the url blank always work in the first image, but failed blank in second image, (the problem also happened to use mouse to click change image)
jQuery Roundabout - How can I make it cycle through once li's on page load then stop?
jQuery Roundabout - How can I make it cycle through once on page load then stop? Hello, Im using jQuery Roundabout from http://fredhq.com/projects/roundabout does anyone know how i can make it rotate / cycle throught my 5 li's once on page load then stop. ? thanks ricky
Doubt
is there any way to show the excel file inside a jquery mobile button..guys help me with the code plz....
Changing a string to only show part of the text
Hi there, Is anyone able to show me how change the following text: <span class="ct_pd_item_saving">Saving £25.00 (50.00%) on RRP (£50)</span> to just display "RRP (£50)" The price can change so in this case I can't use just JQuery .replace Please can someone show me the method for achieving this? Thanks :)
jQuery datepicker does not work when overlaps other form elements
I'm using jQuery datepicker together with jQuery mobile. When the datepicker is show it does not pick the date that overlaps the background form element. Instead it just activate the background form element. Is there any way to solve this problem? http://jsfiddle.net/wQRDx/4/
I got a ajax error "No Transport" in IE6, not a cross site issue
I got a ajax error, 'No Transport', and I just POST some data to one part of my site, the action field in form is :'/shopping-cart/item' $.ajax({ type:'POST', url:'/shopping-cart/item', data: widget.serialize(), dataType:'html', success: function(html) {location.href=html}, error: function(xhr, msg, thrown) {alert(thrown)}, statusCode:{ 403:function() {alert(‘xxx’');}
any ideas how to optimize this?
Hello, I am new to this forum, as to jquery or html. I was learning beginners material and at the same time trying to make some basic animation. I created an object array with 16 objects and animated them. But now I see if I make animation loop at 30fps my cpu info shows like 18-20% of cpu load. this is just the beginning of my idea, and when I will fill it with all the objects to render, it will be consuming way more of cpu resources... so maybe I am missing something here? maybe I should be using
Creating opacity like by dialogs
Hi, I am trying to create the same opacity effect as on the dialog. So if clicking something the full screen should get some opacity except for a certain div and if clicking outside the div nothing happens. But I couldn't find out how it works on the dialog. Does anybody know how it works or how I could get similar results. Thanks in advance.
[New Problem] Jquery populate optgroup based on first select box
Hi, my first ever jquery question right here, I need help in jquery-multiselect plugin to show optgroup's children based on the option from first multiple selectbox, here is what I currently stuck with jsfiddle.net/hsQjh/4 For instance, I picked option 1 - Distributor/Agent and 3 - TV Channel/Broadcaster from first box, I want the optgroup labeled with 1 - Distributor/Agent and 3 - TV Channel/Broadcaster to be populate, it's almost same act like this sample: jsfiddle.net/UNbvn/ <head> <link href="jquery.multiSelect.css"
jquery function
I have an html page with 3 sections that have same html markup in each - the only difference is a keyword of text in each section on the page I need to track. I'm trying to make a function that will track each of the 3 sections on the page with an existing clicktrack function I have, as opposed to writing out the same tracking rules for all 3 sections multiple times. The 3 keywords in each of the 3 sections I need to use in the function to track each section are section 1: book section 2: magazine
Hi if am submit the query i got undefined value for this method... any one can tell how to validate this array validation.?
Html: <SELECT NAME="Members[]" id="Members[]" SIZE="8" MULTIPLE="" STYLE="clear:right; float:none;" onDblClick="objForm.Users.transferFrom('Members[]');" class="list-box-user" > //JS <script> $("#inform").click(function() { var user = $('#Members[]').val(), error; // var locations = $('#Members').val(); //alert(locations); var ajaxUrl = 'includes/validation.php?valid=useradd& '&members=' + user; $.ajax({
File Upload Validation
Hi, How to validate for file input type and i tried below code var validator = $("#parse").validate({ rules: { sr1: "required", }, myfile: { required: true, accept: "cer|CER|pem|PEM" }, errorElement: "span" , messages: { sr1: " Enter SerialNumber", myfile:"File Required" } }); if(validator.form()){ // validation perform //$('form#parse').attr({action: 'mycontroller'}); $('form#parse').submit();
links
Apologies if i appear totally unknowledable. I am calling a simple moving boxe into a website via iframe command, a link inside the banner works a treat however it opens a duplicate frame within the main website ? is there a link command to bypass opening within the iframe and going to directly link to say a navigation button in the index ? thank you Lesley
Cascade multiple dialogs
I am relatively new to jQuery, and after have searched for a couple of hours, I am about ready to just..give up. We have a page with multiple dialogs, all of which work fine - we have the dialog open state persisting on postback, but, if there are mutliple dialogs open on postback, they all get stacked one directly on top of the other. Is there a method by which we can cascade multiple open dialogs?
Search Array for matching strings.
Hi, I have the following: ad=new Array('a','b','c','a','d','e','a'); I want to return the index of the letter 'a'. Using inArray I only get the index of the first 'a', is there a way you can return all the values without looping through with a for next loop? Thanks.
Horizontal scrolling onmousewhell
Hi, I want to do. Horizontal mousewhell scrolling. Can you help me? I want to do it this way. http://impactweb.pl/themeforest/modernmetro-dark/ Thanks.
Triggering Submit of form on button.
Hay All, I have example code at jsfiddle of what I am trying to do. I have a lock button on the page which triggers the user to verify a question. If 'OK' is triggered I try to trigger the click event on the hidden submit button on the page, but nothing happens. I have tried this in Chrome, IE7, IE8, IE9. The console never display the form submit message. I'm looking for thoughts and maybe direction on what I may be doing wrong or could do better. Thanks in advanced.
Need help whith modalbox!
1.We have a modal window, that when you click on a link modal window opens. How to do that when you open the modal window url page changed on http://site.com/modalbox and we can follow this link to open the page with open modal window. 2.We have modal window whith http://site.com/modalbox url, in a modal box has two links next and prev if we click next content modal box changed and url on http://site.com/modalbox#two and we can follow this link to open the page with open modal window whith content
Find part of a string and style it
Hello there. I am a beginner to jQuery, and I am trying to accomplish what seems like an easy task. I want to find a certain word in a string, and when it is clicked on, go to another page. I know that I need to use window.location.href = ""; for the redirect. My string is Come play with us, and I want to redirect to a page when us is clicked on
Jquery Newsletter signup form
Hi All, I am very new to Jquery and have limited knowedge of it. I am trying to add this type of jquery pop-up form http://jsfiddle.net/hendriono/Jg8rd/show/ to my site www.whatiseewhenilookat.com, it uses Gallery3 site software to http://galleryproject.org/. I am having a nightmare trying to get this to work, I would be very grateful to anyone who can help me out with this
Custom Icons on JQuery UI Button
Howdie,I have searched the forums and google for an answer to this and it seems pretty much every answer is out of date and doesn't work. After spending a couple of hours banging my head I'm stumped. I simply want to replace the icon in a JQuery UI button with a custom icon. I have been attempting to do it this way based upon numerous posts I have found: .icon_help { background-image: url(../image/Help_16x16.png) !important; width: 16px; height: 16px; } And then specifying it: $('#btn_help').button({
Problem with Table Sorter Plugin
I am having an issue with the tablesorter plugin. While I have it enabled at my site (at http://www.coinchoose.com), if doesn't sort when I click a column header. I know it must be something easy, but I have looked at the example and can't figure it out. Any help is appreciated.
Next Page