Question regarding performance of clone() and appendTo()
Hello, I just wanted to ask this question. Will there be any performance issues if I use clone() and appendTo() frequently? I need to clone a table and append it to a parent div when ever the user selects the option in a listbox Thanks a lot.
$(document).ready not executing sometimes after a postback
$(document).ready() isn’t called after a postback is made. This happens thrice in 5 attempts or more. I have the below code in the $(document).ready() which needs to be executed on every postback which is not executed sometimes. $(document).ready(function () { Sys.StringBuilder.prototype.appendFormat = function (mask) { this.append(String.format.apply(null, arguments)); }; }); As a result i get the below error Object has no method 'appendFormat' Does anyone know why this is happening
fadeIn works, but toggleIn does not
they seem identical in usage, but while $(".mainbody").fadeIn(2000, 'swing'); does work when replaced by $(".mainbody").toggleIn(2000, 'swing'); it does not work. any good reason?
trimmed condition if x equals a or x equals b or x equals c or x equals 4
i would like it to be an equivalent of human if x equals a or b or c or 4 is there a way to do this?
Jquery Mobile 1.3 Panel Issue
I am using the new Panel and I need the capability of having certain elements within the panel be expandable. I have implemented with: <div data-role="panel" data-position="left" data-position-fixed="false" data-display="push" id="nav-panel" data-theme="a"> <ul data-role="listview" data-inset="false" data-theme="a" data-divider-theme="a" style="margin-top: -16px;" class="nav-search" data-count-theme="b"> <li data-icon="delete" style="background-color: #111;">
[jQuery] how to implement a repeatly jeditable plugin JS?
hi all, i am using jeditable plugin to implement some feature that accept user comment and save to the database, it is work fine for a single comment entry, but what about if it will have a dynamic entry as following shown. I am not familiar much about jquery, so i want that script can change to repeatly assign id c_1, c_2....c_N to jeditable as well as access repeatly hidden field in the pattern shown as a parameter to pass into php. so when a user click "write a comment" on any comment, it will
Undocking a draggable not under the mouse
I would *really* appreciate some help on what to do about this: http://jsfiddle.net/Trober/URudt/23/ Problem: the draggable is not under the mouse when undocking it. 1. Drag the "Drag-n-Dock Me" block to touch the north/top boundary. 2. Drop it in that position; it should dock itself against the north/top boundary. 3. Drag it away from the north/top boundary. The draggable is not under the mouse, and remains flush against the left boundary. Thanks, Ben
Issue with google hosted jquery
Hi, I'm working on a site for my company which uses jQuery. Originally I had linked to the google hosted jQuery 1.9.1, however for some reason the site keeps loading 1.3.2 instead (even though the url I have typed in explicitly states 1.9.1) which is causing the site to not display in ie7/8. The site is joomla 1.5 based. I've tried googling a posting a question on the google groups but I have yet to find/get an answer. Does anyone know why it would be doing this or how to test or anything of the
fade DIV in and out with a second DIV
Hi all Looked all over for an example but nothing that matches what is seemingly such a simple thing to achieve! My code below should help explain: <section class="panel fadercontainer"> <div class="multimicro" id="panel1"> <h1>Box 1</h1> </div> <div class="multimicro" id="panel2"> <h1>Box 2</h1> </div> </section> When my page is displayed I need panel1 to be shown. After 5 sconds, I need panel1 to fade out and at the same time get panel2
Obscure problem with the Chrome browser(25), radio buttons and dialogs
Here's the scenario: if you have a modal dialog with radio buttons and you bind the change(or the click) event for the buttons to a function that tries to open another modal dialog. Then run it. If one of the radio buttons is checked and you click another, the radio button click gets reset. IE if button a is checked and you click button b, button a remains checked (if you slow things down in a debugger you will see that button b gets checked and then button a gets rechecked) So far I've only seen
How to wait until one listener will finish its work?
Hi guys, http://jsfiddle.net/V34ud/1/ It should change images, how It really does, but If I fastly hover between "A" elements It works strangely. I know the last showed image doesn't want to disapper. I think the problem is with listeners. One doesn't finish it's work when another one starts work. Am I right?
Where's the jQuery API Documentation XML dump gone?
I can't download the latest API Documentation XML dump from here to feed my own jQuery documentation browser. Where is it gone? ---- Another jQuery API browser: http://www.dashop.de/?hf=blog_f.html&if=blog/en/dev/JavaScript/content/JavaScript-jQuery-API-Documentation-Viewer.html
use jquery to find any character and remove it
I have a website in drupal.There is seems to problem with it. Before the end of body tag a digit appears 9. I did not find any file to remove it. SO i need to remove that through jQuery. I know there is find() method in jQuery but is finds only the elements not the character. I need to find character and remove it. Structure of it is like this.It doesnot comes under any element than body tag so I cannot select element surrounds it and remove it. <body>all the other site elements....9</body> $('body').replace('9',
Post page broken in Chrome(25)
For instance, I couldn't post this as a problem in Chrome because you can't select the Report a problem tab. I'm on FireFox right now. I also don't see the rich text editor in Chrome version 25 on this page nor can I hit any of the buttons at the bottom to post, preview or cancel. I've turned off any ad blockers or flash blockers for the site just in case, no luck.
How to optimize this?
Hi, I am starting with jQuery and creating websites in general. I have done this code for showing and hiding different unsorted lists. I believe this is really beginner level and there is a much better way to do such thing. My code is working properly, I just want it a little simplier and I don't know how to do it. Here is my jQuery code: <script type="text/javascript"> $(function() { $('#snaps, #events, #trips, #photoshoots, #main_about, #main_contact').hide(); $('.link_best').click(function()
How to using jQuery function
I'm using this jQuery function but when user press login and the username or password is incorrec, how am I show the error message? Becuase when user click submit button it will redirect to login_validation.php to do the verification checking. And in the login_verification.php I'm using if..else statement to do. How am I going to show error if the username or password is wrong and I want it pop out in the login page not the other page. <script> jQuery(document).ready(function(){
problems with cloning
function editMode(el){ var elm=$(el).clone(true); //work with elm, ad input elements $(el).replaceWith(elm); return el; } var p=$(".editArea").first(); var pp= p.clone(); p.before(pp); ppp=editMode(pp); //code below don't work, all elements input must nulled, without cloning code work //t.length==0 td=$(ppp).find("td,span"); $(td).each(function(){ var t=$(this).children("input"); if(t.length){ t.val(""); } });
jquery mobile build for android apps, how to?
hello, is there a build of jquery mobile for android applications made with phonegap? I could go through the css files manually but that's a pain. Also would be useful if the javascript would be compiled for android devices only, would bring the size of the files down and make the application faster. any ideas is there is something like this out there?
JQuery Forms ajaxSubmit issue with Internet Explorer
Hi there! I have a very simple piece of test code using JQuery Forms plugin. In Chrome and Firefox it works exactly as intended -- I type in a name, push the submit button, and the form is submitted behind the scenes to the action page on the server, which returns a value, which gets displayed beneath the form, and then the form slides out of view. In Internet Explorer 9 (and I used developer tools to force it to 7, 8, and 9 with identical results), when I push the submit button, it just submits
Jquery Tablesorter
I am looking for a way to use Jquery Tablesorter that will do a table span on duplicate items for example location below. Since both Person 1 and Person 3 are from Ft Know the table was spanned for that location. Example: -------------------------------- - Name - Location - -------------------------------- - Person 1 - - ----------------- Ft Knox - - Person 3 - - -------------------------------- - Person 2 - Houston - -------------------------------- Any ideas?
positioning-problem-when-scrolling-down-webpage
i try very simple code here by have so many break lines so i can scroll down to the page. when i scroll down, click on the text box, the pop up calendar dosen't appear next to the text box, i appears all the way on the top. is there the way to make the calendar appeas next to the text box. thanks <link rel="stylesheet" href="css/jquery-ui.css" /> <script src="scripts/jquery-1.9.0.js"></script> <script src="scripts/jquery-ui.js"></script> <script> $(function() { $("#datepicker").datepicker({
When next JQM update expected?
jQuery mobile is great project! When do you expect to make next update, e.g. 1.4? Thanks
Help Help Help
Admittly i am a complete amature. Ive spent 3 days on this but i am clueless, and i havnt a clue about the code so i am even more. Im after a simple image slider box that will sit as a feature in a div on my site. I have built one using wow slider, viewable at mhbglobal.com/roller/index.html. I am very happy with the way it looks so far. But to finish it i want to have a navagation bar attached to the left hand side that changes into an arrow as it moves up and down. See mhbglobal.com/lay2.png as
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?
Next Page