Need help using a variable as a key for $.post()
Hey Guys. I am using $.post() inside a user defined function. I am trying to pass a key value into the $key param. I can't use the $key variable as a key in the $.post() Is there anyway I can use the $key var is a value for the $key. Below is the code function add_items(element, $key){ var cat_id = ($(element).attr("id")); //Insert a new row using an ajax post method, post the the cat_id to reference //under which category the menu item should go under $.post("ItemCreate.php", {key : cat_id })
JQuery not executing
I have a project that utilized the JQuery API and works great in my development environment. When i deploy it to the IIS server, i have to refresh the page a few times before JQuery begins to work....very weird. Any ideas?
Problems using colorbox to load an external non ssl hyperlink from an ssl website
As above, I run a website that uses ssl encryption (https) and would like to open an external non-ssl hyperlink (http) to a pdf using the colorbox plugin. I do this using the following code, however nothing seems to be loading, any ideas? <script> jQuery(window).load(function() { jQuery("a.linkColorbox").colorbox({iframe:true, fixed:true, width:"75%", height:"75%"}); }); </script> <a title="" target="_blank" href="http://www.somewebsite.com/Equipment.pdf" class="linkColorbox
406 Not Acceptable
Dear Friends, i have a plugin using jquery, this plugin has a script that cause me this problem: Not Acceptable An appropriate representation of the requested resource index.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. this is the script that cause me this problem: /*********************************************** Begin prism-core.js ***********************************************/ /**
Un responsive script error with jquery mobile
Hi, I'm getting Un responsive script error while binding data for jquery mobile list dynamically. any ideas? Regards, Phani
add min date to datePicker
Hi I have the following code which pulls up my datepicker calendar just fine in my form, but can't seem to find where I'd put "minDate:0" so that the control will prohibit a date selection of less than today. Any ideas? I'm relatively new to jquery, I really appreciate your patience. <script> jQuery(document).ready(function($) { // this will apply the datepicker to any input that contains a class of 'calendar' $('input[class*="calendar"]').datepicker(); }); </script>
unclick other when click one of them
Hi let's say that I have a collection of DIVs into a section with ID <section id="cats"> <div class="cat"></div> <div class="cat"></div> <div class="cat"></div> <div class="cat"></div> </section> when I click on one of them I want to add a class but to remove that class from all other items in the collection to get <section id="cats"> <div class="cat cat-click"></div> <div class="cat"></div> <div class="cat"></div> <div class="cat"></div> </section> and if I click on the item itself or any of items
Hide fixed footer on scroll
Hi there, Im trying to hide the fixed footer when scrolling down the page, and again re appear when back to top or on tap. I can't seem to find a solution or any posts regarding this issue. Can anyone help please?
Simple jquery and input text onchange
Hi all, I have spent far too much trying to get a simple jquery and input box example to work. When someone finishes typing something into the input box, i want jquery to popup an alert. Eventually I will be doing some more code with this but right now i just want to get this working! Here is my example, which doesn't seem to work: <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript">
How to find a previous class in a previous row and get it's value
Hello, I have a button that is on every row, I need to find the value of a class that is in my heading. I have the following that is returning "undefined" . I have this same code to find classes and it works fine. var $item = $(this).parents("tr").prevAll(".lastitemno").eq(0).val(); The the class "lastitemno" has a value assigned by a cgi program, but the var "$item" is returning "undefined". There can be any number of rows between the button and the class defined in the heading.
recaptcha function doesn't get executed after jquery email verification
I am struggling with this problem for days now :( I need to get recaptcher validation executed after successfully jquery email validation (which works), here is my html code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js"></script>
How to get the inner html of individual sticky on save click?
Hello Everyone, How can i get the inner html of individual sticky on save click here in alert box. So that i can directly insert this div element into database. checkout this fiddle once and help me. http://jsfiddle.net/y38rhg7s/15/ I would be thankful Thanks in Advance Satish Chandragiri
Multiple Select Option and How to Select and Unselect All
On a form submission, I have this piece of code: <select name="searchEventCategory" id="searchEventCategory" data-native-menu="false" multiple="" tabindex="-1" selectedindex="0"> <option selected="selected" value="ALL">All Categories</option> <option value="Art Exhibits">Art Exhibits</option> <option value="Camping">Camping</option> <option value="Carnival/Festival">Carnival/Festival</option> <option value="Community Meetings">Community Meetings</option> ...etc... </select> It may
need a search dialog that opens like datepicker
I am using jquery ui datepicker for selecting dates for multiple form fields by clicking on the relevant form field. I would like to use the same basic (look and feel) action for multiple userID fields, where clicking on the userID field will open a small dialog which has a field to put in a name search field, a search button driving a php/mysql search and a scrolling search result which is set up so when you select one of the search results it will populate a specified field on the opener with
jquery.cycle.all running early on long image lists
I'm using jquery-cycle.all with a "longer" list of images, 18 to be exact. The images are roughly 150KB each. Using FF v31.0 I'm seeing a defect wherein the first time I hit my page in a new FF session the image position is misplaced, it's shifted about 50% to the right and half out of the window. Reloading always fixes it. What I believe is happening is that the js script is running too early, before all the images are downloaded and causing the position calculation to be wrong. Once the images
iPhone popup scroll to top
Hi everyone, I've noticed a weird behavior using jQM 1.3.2 and jQuery 1.9.1 + popups on iPhone devices with multi-page architecture. Using single page mode that doesn't happen. Right after click in the jQM popup's close button, the page behind it scroll to the top, then scroll back to it's original position and then the popup closes. It fires so fast that looks like a flickering, but it's not. This behavior can be seen here: http://easytef.com/mobile/newAccount.html#accountPage On a iPhone device,
Help with JQuery 1.11 and JQM
Hello, We simply have this one little piece of code: <!-- jQuery Mobile --> <script src="include/jquery-1.8.1.min.js"></script> <script type='text/javascript'> $(document).bind("mobileinit", function(){ $.mobile.ajaxEnabled = false; }); </script> And we don't use jquery for anything except that - and we use Classic ASP, so I guess we need the above code. 1. Should I have to upgrade my JQuery 1.8.1 to 1.11.1 to be safe to use latest and greatest? 2. Does JQM have anything in it so I don't have
Only one tooltip opened for a time
Hi. I found a "design" problem in my proyect. I have the jqueryui tooltip on a form. At start, I make "click" on a form element for put the focus over it, and the tooltip is displayed. For change to another form element I use the keyboard Tab. At this moment, the first tooltip (when the mouse is over) is opened, and the second (when the keyboard send me) is opened too. This is not so beautifull, and some text are up. I try to close all tooltips mapping the tab in the document, but the mouse tooltip
Strange behaviour back button and $.mobile.changePage
We are quite new with JQuery mobile and managed to do multiple pages in single HTML working well. In our browse.html page we have pages for practice-list-page practiceitem-list-page practiceitem-detail-page The page flow between one page is working well. But then after few back and forth between pages (either through back button or click on listview then redirect $.mobile.changePage, page flow has a strange behaviour ie. practiceitem-detail-page page twice. It seem like remembering the history of
adding a score counting to my jquery
Hi there, I am trying to add the scores of the images ,If I drag and drop the image in the panel then the score adds up. I have a Javascript version of it for multiple clones.That is even if I drag and drop the same image Then the score adds up javascript version http://jsfiddle.net/qo88L3nx/2/ What do I need? I want to add a score system to my Jquery script. Here is my Jquery fiddle http://jsfiddle.net/1xnmtyqs/20/
How to validate Iframe input field data ?
Hello to all,,, i am using iframe to get credit card details on my site,, though this iframe is genrated through some payment gateway site... my question is that ,, whether is it possible to get iframe fields values and validate those input fields at my site ? please guide .... thanks in advance ....
getting data from closest input
hi yall so im trying to figure out how to get some data, without over naming my elements but i cant seem to get it done. ive got a little piece of html code in a php file, with a text input and a button. i incude this php twice on the same page. now, how do i get the value of the text input closer to the button pressed? the code is something like <input text> <button> <input text> <button> i haven't given any element an id. they all have classes (which is class="btn" for the buttons and "text-input"
Exception with date formatter
I've the below code in my jsp. <%@page import="java.util.Date"%><%@page import="java.util.*,java.text.*" %><%@include file="DBCon.jsp" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Insert title here</title></head><body><%try{SimpleDateFormat formater = new SimpleDateFormat("d-MM-yyy");String a=request.getParameter("sid");String b=request.getParameter("desc");String
Support for Spring Security
Does jQuery support integration with spring security?
Cannot get the value of jQuery Spinner by $_POST in php
I am using jQuery Spinner in a form just like Select Option. $("#hourlywage").spinner({ min: 50, max: 1000, step: 10, start: 50, culture: "en-US", numberFormat: "C" }); After submitted the form, I can get value from Select Option by $_POST['select']. However, there is nothing in the value of Spinner get by $_POST['hourlywage']. Is there anything I have missed or the method is wrong?
attempt to add function for click event handler fails with object required
I have the following function as a click event handler. $(document).on("click", "input[id *='submitReqSelect']", function (e) { debugger //alert("firing"); var sDialog = "#AddSubDialog"; var lineID = e.target.id.toString().substr(15); var selector = "input[id*='rb_'], #ReqInfoHolder" + lineID var ReqID = 0; var qty = 0 var subLineNumber = $("#newSubLine" + lineID).val() $(selector).each(function
Jquery Mobile - Lost POST data on refresh?
I am trying to figure out why my pages lose POST data when refreshed. I have some very simple code setup here to demo: http://www.fuchsiawild.com/mobile/test.php If I remove the jQuery mobile library, it will allow me to re POST the data when refreshing test2.php. With it in there the data is always lost. What is up?
Popup Form Issue
Hello! I was looking through previous forum posts about this topic but couldn't find anything that really helped me, so here we go. I'm brand new to programming, and especially new to jQuery mobile. Upon the click of a button, I open a popup that contains a form. I type in a word, click submit, and it appends this word to a list displayed on the same page. The problem is this... I add TWO separate words (two different submits), and then the page refreshes and the words are gone (haven't gotten to
The value of spinner inside table cannot be got by $_POST
I am using jquery-ui with spinner. I found that the value of spinner inside table cannot be got by $_POST. <table> <input id="spinner" name="spinner" value="5"> ...... ...... ...... </table> In this situation, spinner is discarded. Would anyone try this and solve the problem?
How to make divs equal height within a main container?
I am trying to make the divs within a main container have equal heights.I got this code from http://stackoverflow.com/questions/11688250/setting-equal-heights-for-divs-with-jquery. Here is a fiddle:http://jsfiddle.net/g9g869ny/ I am also trying to make it responsive(from max-width upto 768px), so If the device width scales down, I would like the script to recalculate the Height for every/any change in the WIDTH of the device - is it possible to constrain it that way? Please help.
How to keep stickys color on browser refreshing?
Hello Everyone, Please checkout this fiddle once & help me.. http://jsfiddle.net/Satish_Chandragiri/y38rhg7s/2/ Here i can apply colors to each sticky notes on mouse right click. But problem is after page refreshing color for each sticky is not storing. And backgroud color is not applying to textarea of sticky. so please checkout this & help me. I would be thankful Thanks Satish Chandragiri
Call function multiple times on click to make subsequent collapsible full screen
I am new to jquery mobile and programming in general. I have spent hours trying to figure out how to make my "two" nested collapsible full screen when clicked like "one" without having to give it a separate ID and javascript. I tried unsuccessfully to call the function for #foo to run with each click for separated nested collapsibles. ALSO, I have added functionally to scroll expanded collapsible to top of screen. However, this only works for the 1st button. How do I hide other collapsibles within
Adding easing to jquery css swap
HI I am trying to add some easing to a script I'm am working on and I can't get it to work right. var $mainlogo = jQuery('#mainlogo'); var $menuback = jQuery('.x-navbar'); jQuery(document).scroll(function() { $mainlogo.css({display: jQuery(this).scrollTop()>170 ? "block":"none"}); $menuback.css({background: jQuery(this).scrollTop()>170 ? "rgba( 255, 255, 255, 0.7 )":"none"}, { easing: 'swing', duration: '2000' }); }); What Am I doing wrong? I just want it to fade in instead of an immediate appearance.
I could clone only once
I m able to clone the image only once but not multiple times http://jsfiddle.net/32pw3syh/3/ Above is the original fiddle which I m working on http://jsfiddle.net/timspqr/1xnmtyqs/ Above fiddle has an example of multiple drag and drops ( cloning ) Failed JS Fiddle http://jsfiddle.net/32pw3syh/8/ cloned and could drag and drop only once
How to make jQuery UI icons align with text
I have observed that when using a <span> to make use of a jQuery UI icon, with text adjacent to the icon, that the icon is shifted higher than the text. You can see this effect in the ThemeRoller application if you look at the Highlight / Error samples: http://jqueryui.com/themeroller/ Is there a way to make the icon and the text vertically aligned with each other? We are getting complaints from our test team because they say it looks unprofessional and the icon is causing the other elements on
Having problem with Autocomplete not displaying images
Hi, I'm facing a problem with Autocomplete. whene i type for searching products it gives me suggestions. it shows product name but not display images... it displays some images and some not. when I inspect element it shows me this broken links <ul id="ui-id-1" class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" tabindex="0" style="display: none; top: 39px; left: 337px; width: 546px;"> <li id="ui-id-11" class="ui-menu-item" tabindex="-1"> <a>Classic</a> <br> <img alt="Office Tabel"
Uncaught TypeError: Cannot read property 'top' of undefined
I am trying to add jQuery PanelSnap to a site I am working on and I am getting a conflict in the console. The error is "Uncaught TypeError: Cannot read property 'top' of undefined" I need it to snap to the divs with the class .x-content-band but it is not working. Can you help me out? http://www.staywell.contravent.com/ pass: CV2014!
button jquery
hello, am new of this forum.i made source with phonegap and work,but i try to make button to execute in jbuild not have idea to do, can help me to make button on click for execute script....thanks <a data-role="button" id="button3" data-theme="e" data-inline="true">button</a> function radio() { playAudio("http://mp3.kataweb.it:8000/RadioDeejay"); } // Audio player // var my_media = null; var mediaTimer = null; // Play audio //
Is there a way to fire a click event with a this function
//Control Save $(document).keydown(function(e){ //CTRL + s keydown combo e.preventDefault(); if(e.ctrlKey && e.keyCode == 83){ alert("Control S has been pressed!"); }
How do I stop enter key from triggering a non-submit button?
I have a form with a bunch of selects and a single text input. Form data is sent via $.post whenever the inputs are changed, so a submit button isn't needed. The form does contain one regular button (using the button tag, not the input tag). The button shows a jQuery UI dialog when clicked. If you press the enter key in the text field, the browser submits the form but it also acts like you clicked the button (the dialog appears). That makes no sense to me. Why is this happening and how can I stop
Next Page