Why double quotes??
Question says it all :D $('a[href^=http://]').each(function( ) { var href = $(this).attr('href'); href = href.replace('http://',''); $(this).after(' (' + href + ')'); // why double quotes });
Foldable Navbar
Hey Guys i have a vertical navigation like this Js Fiddle I want it to be folded link this Icon and when the user clicks on the icon , the vertical menu must appear . i guess i will have to use some JS and CSS . can somebody give me a rough idea of what i will have to do ?
jquery form validator
Hi! Use form validator form http://jqueryvalidation.org/ This plugin don't validation all form, but required fields issue. What can I do wrong?
text alignment in conjunction with .autocomplete
I am running into an issue where I need to use autocomplete with a textarea for multliine output. My problem is I can't get the text to align at the top of the textarea. It seems to want to align in the middle. I have tried many things, but I just can't see why this doesn't work: .ui-autocomplete-input{ vertical-align:text-top !important; }I have also tried applying the same instruction directly to the textarea, but this is just being ignored for some reason. Any insight would be appreciated.
Can't set up Real-Time Validation in form...
Hello everybody, I have a little problem with real-time validation in my form. jQuery event doesn't work in "select" drop-down. I use special stylized drop-down and it seems that there is some conflict... When I use default style, works great (I have included sample alert for check if it's working - click on iPad to see effect): $('#select').on('click', function() { if($('#select').val()=='iPad'){ alert('Alert!!!'); $('#select').val('Choice'); return
Session cookie
Hi Experts, I have a requirement to create a cookie and its expiry time is until when the browser is closed. Once again when i open the browser, it should not be available. Can you please recommend your suggestions? Have a nice day! Thanks, Sathya
This may not be the proper forum for my question.
So could somebody please point me in the right direction. I am looking for guidance on developing a multiplayer card game that runs on the web.
is it possible to have mobile ui for zend framework app
I want to have mobile user interface for a cloud application created using zend framework1.11. is it possible to use jquery mobile with zend framework for creating mobile ui. Also i want to change only the switching of layout when open in mobile device and when open in web browser.other codes and url are similar. is this possible
My app is not working offline
I need a script to run my app offline
.spinner and start option
Hello, I was looking over some JQ UI docs and came across this as an example: <script> $(function() { $( "#currency" ).change(function() { $( "#spinner" ).spinner( "option", "culture", $( this ).val() ); }); $( "#spinner" ).spinner({ min: 5, max: 2500, step: 25, start: 1000, numberFormat: "C" }); }); </script> But if you look over the API, start is an event not an option. Is this a typo, or something left over from a previous version? Thanks, Jim
title in the dialog
We are attempting to upgrade to the latest jQuery UI v 1.11.1. We are using version 1.8.3 The attribute for the dialog title in v8 is different than in v11, could somebody please tell me a work around to fix this. Even the documentation is different We are passing in an image with the title. example is here: http://jsfiddle.net/e2qyrw24/3/ when switching to v11 this is no longer available why, and what is the work around?
UI Tab
Hi, all! How can select tab by index use JavaScript? For example $( selector ).tabs({ activeTabIndex: 3 }) Thanks.
Dynamically create listview using javascript
I want to use the mobile listview like this: < ul data-role = "listview" data-inset = "true" > < li >< a href = "#" > < img src = "../_assets/img/album-bb.jpg" > < h2 >Broken Bells</ h2 > < p >Broken Bells</ p ></ a > </ li > < li >< a href = "#" > < img src = "../_assets/img/album-hc.jpg" > < h2 >Warning</ h2 > < p >Hot Chip</ p ></ a > </ li > < li >< a href = "#" > < img src = "../_assets/img/album-p.jpg" > < h2 >Wolfgang
Toggling action attribute hides the button
I have this button that is toggling an action attribute $( "#le_qd").click(function() { $('#le_qd').toggle(function () { $('#Aktion').attr('action', '<?php echo base_url('index.php/enterprise/send_in_advanced_mode'); ?>'); }, function () { $('#Aktion').attr('action', '<?php echo base_url('index.php/enterprise/send_in_easy_mode'); ?>'); }); }); this works but hides the button `#le_qd`
is there anything wrong here?
<style rel="stylesheet" type='text/css' href="style.css"></style> it is in the allFours.html file in the <head> tags. also <script type='text/javascript' src='allFours.js'></script> please help.
Capture Image and Set It to Image Control In GridView using JQuery.
I am working on a webform.It contains a gridview.Each gridview has a linkbutton and image control.If i click on linkbutton,modelpopupextender shows up to capture an image through webcam. I want to set the captured image to the selected row's image control. I'm using following JQuery code but it applies to all the image controls in the gridview. <script type="text/javascript"> var pageUrl = '<%=ResolveUrl("~/CS.aspx") %>'; $(function () { jQuery("#webcam").webcam({
Extendig the hight of two elements from an accordion?
I´ve got a dropdown function for a list of customers, on click on a logo, the hidden content slides down to show additional content. Now I have an accordeon in my hidden content and when I open the accordeon, the content below scrolls out of the div and you cant read it. Is it possible, to change the height or maybe padding-bottom of the active / shown divs "group" and "wrapper_hidden_content" on click of a accordeon element? JSfiddle http://jsfiddle.net/v5m4wyoo/5/
How can add multiple date formats in datepicker?
Greetings friends , I have the following code: $(function() { $( "#inicio" ).datepicker({ dateFormat: "yy-mm-dd" }); $( "#termino" ).datepicker({ dateFormat: "yy-mm-dd" }); }); in which I have a couple of dates ( #inicio , # termino ) and what I want is to add some formatting to these dates as follows : $(function() { $( "#inicio" ).datepicker({ dateFormat: "yy-mm-dd" }, { monthNames: [ "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre",
Validation with inputs hidden by knockout
Hi all, I can't figure out how to get the validation plugin to work at all with radio buttons that live inside a "ko if" conditional block. The radio buttons need dynamic names (to work as groups), which I assign through their data-bind attribute; the name however doesn't get assigned if the "ko if" is false, and jquery validation complains. I have tried all combinations I could think of, suggestions would be really appreciated. Thanks! The html looks roughly like this: <form> <!-- ko foreach: myList
autocomplete source function not displaying results and cannot access THIS
I am using jQuery Autocomplete. Originally, I was using a string as the source, and it was working just fine. Now, I am using a function: source: function( request, response ) { url = "ajaxsearchplace.cfm?term=" + request.term; $.getJSON(url + '&callback=?', function(data) { response(data); }); } This function is not displaying results under the associated text box. In Firebug, the function is giving JSON that is identical to what is being returned when
Jquery won't check if my checkboxes are checked
Hey Guys. I wrote a script below to see if the checkboxes are checked or not. This is a quick and dirty example I have. The actual code I will be implementing this to is more dynamic. The code below is supposed to bring back true or false based on what if the checkboxs has been checked or not. But for some weird reason its just bringing back false twice. It should be returning true, false on the console.log Any help would be very much appreciated. Thanks!!! Here is the link to my JS Fiddle http://jsfiddle.net/eldan88/jr6tfknh/
How do I get result-light.css referenced in jsfiddle
<link rel="stylesheet" type="text/css" href="/css/result-light.css">
unclickable textobxes in dialog
Sometimes textboxes inside a dialog become unclickable. I can click fine on dropdown box and select from it, I can click on buttons and they trigger the onClick just fine. However when I click inside the textbox, the cursor doesn't appear and I can't type in it, though if there is an onClick event attached it is being triggered. This doesn't happen all the time the dialog box is opened, but when this does happen at the same time the text on the page becomes unselectable, meaning I can't select anything
How to fetch data from xml file dynamically using jquery!
Hii everyone.. i have 3 different xml files with different data. i want to fetch them using jquery. when i pass name of the xml file jquery method should display it's in a table.. i must have a single jquery method. (fetching xml data dynamically) i have tried many ways but couldn't succeded Thanks and Regards... Ravindra.
Creating extra space at "Table filter"
When I am creating a table, using the Table filter (http://demos.jquerymobile.com/1.4.3/filterable/) Its creating extra space at the top of table. I am using 1.4.3 demo code. is this a bug? Here is a simple searchable table http://stockbangladesh.mobi/demo/newmobi/pages/table_jm.php
Ketchup formvalidation fails, form submits
Hello, I just added form validation with the ketchup plugin. The validation fails, but the page gets anyway submitted to the server, which is in my case a 4D database. I'm sure I'm missing something or doing something wrong, as the examples are all working … The code looks like this: <head> (…) <script type="text/javascript"> $(document).ready(function() { $('#contactForm').ketchup(); }); </script></head> <body> blabla <form action=„/4DCGI/WWW_Contact" method="post"
Draggable containment with scrollable list
Hello All, I'm trying to create droppable target on fixed toolbar above the list. Here is simple example http://jsbin.com/sakiz/12/edit Unfortunately it is not working Can someone help me? Thanks in advance
Switchy and colResizable
Hi.. I use jQuery 1.11.1 and jQuery UI and Switchy plugin . Now i want add colResizable ... But when add colResizable , Switchy Plugin both is not working... I change something and fix (can enable Switchy Plugin) but can not fix colResizable yes! If need files (Source) just tell me! I will attach all files... Sorry... My English not well... ♦♦♦ Email ♦♦♦
problems of typo input search
hi got a search input type but I have a problem, when I reload my page I superimposed various input in the same position of different sizes could someone please help me !!
Formating listview text and <li>-Tag
Hello everybody!!! I recently get up to work with the jquery mobile framework and I am really impressed about the possibilities and all the stuff. For practicing I started to build some example pages to get to know all the prospects of JQM. Here is a demo of my recent project, kind of a news list. I designed a theme with the themeroller and I am quite satisfied with the result BUT: - How can I enlarge the font-size? - How can I avoid the cutting of the text within the <li></li> tags (I did already
Has smoothState.js come to replace jQuery Mobile?
For people who have made their own UIs from scratch, would it be a better choice to switch to http://weblinc.github.io/jquery.smoothState.js/? From what I understand, jQuery Mobile is all about its UI. It's code heavy, has an immense backlog of things to do, and basic scrolling won't even work until version 1.7. What do you guys reckon? Thanks! Frank
make my menu stay at the top of the browser except on mobile devices (i.e #header below 400px)
Using http://stickyjs.com/ I am trying to make my menu stay at the top of the browser except on mobile devices (i.e #header below 400px), this is my code which isn't throwing up any errors when i check is JSHint, but at the same time isn't working $(document).ready(function () { if ($('#header').width() > 400) { $("#menu").sticky({ topSpacing: 0 }); } }); $(document).ready(main); Could really use some help if anyone has an idea?
How to apply colors for individual sticky like windows7 sticky notes
Hello Everyone, Please checkout this fiddle once & suggest. http://jsfiddle.net/Satish_Chandragiri/bk1ny4j2/2/ here i can able to apply single color to each sticky notes. But my requirement is i need to apply various colors for each sticky like windows 7 sticky notes. i.e on right click of each sticky, it'll show different colors that can apply to the sticky notes. how can i achieve this. any reference would be Thankful. Thanks in Advance Satish Chandragiri
Problem in validation of 2 textboxes
i Dear i'm not able to get the value of description here. i need to know am i missing something. $(".numeric").live("change", function (e) { $('.numeric').each(function (i, item) { if (isNaN(parseInt($(item).val()))) { } else { var amount = parseInt($(item).val()); $('.Descrpt').each(function (ander, itema) { var discription = parseInt($(this).val()); // <No Value here>
Wait JSON response inside a FOREACH
Hello, I have a doubt regarding how to show JSON reponse inside a FOREACH, what is happening is that FOREACH is not waiting the necesary time to get the response form JSON. I was searching some info. and I could find out that I can use queue or async.foreach but is not working for me (or maybe I'm not implementing it correctly) The issue maybe could be because I'm using JSON inside a function (function getTotal(idProcess,day)). [CODE] function getProcesos ( e ){ //Realizo un proceso de obtención de datos con JSON
How can I Remove Place holders with My content (Give me the code plz)
Using jQuery, Please provide code that will remove placeholders: <div class="class-replace"> <p> <a href="http://[SITE].com">[NAME]</a> © [START]-[CURRENT]. All rights reserved </p> </div> and replace it with content on page load: <div class="copyright"> <p> <a href="http://foobar.com">FOObar</a> © 2011-2013. All rights reserved </p> </div>
Using cycle plugin error, why it insert a peice of code?how to remove it?
I used cycle plugin in my website, but it insert java script code into the image group, so this code also been display when image cycles, please see below, it only happen on product server not in local server. <script style="left: 0px; top: 0px; display: none; position: absolute; z-index: 10; -ms-zoom: 1;" type="text/javascript" pagespeed_no_defer="">//<![CDATA[ (function(){var g=encodeURIComponent,h=window,k=document,l="width",m="documentElement",n="height",p="length",q=this,r=function(b,d){var
Running a basic animation within PHP
Hello. I am trying to run a simple animation with the following code but having no luck, can someone help please? IN THE <head> PART: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('#glynns_animate').animate({ left:'350px', opacity:'0.1', width:'600px', height:'15px', fontSize:'2em' }); }); </script> IN THE <body> PART: <div id="glynns_animate">THIS WEBSITE IS CURRENTLY
Redirect after confirmation
Hi, I have two forms the will be sent with one button, it gives an alert box if the form has been sent. Was wondering, how do I redirect the user after successful submission and after showing the alert messages? <script type="text/javascript"> $(document).ready(function () { $("#submit_form").click(function () { $.post($("#form1").attr("action"), $("#form1").serialize(), function () { alert('Form 1 submitted');
Dialog won't open on click when "autoOpen : false"
I have a dialog that works great when autoOpen = true, but when I set it equal to false, I can't open the dialog on the click of a specific button. Firefox Firebug doesn't show anything on the error console. Am I missing something obvious? Thanks $(document).ready(function () { $("#div_Detail").dialog({ autoOpen: false, buttons: { Ok: function () { $(this).dialog("close");
Next Page