ERR_CONTENT_DECODING_FAILED when using .ajax
I have a log file at http://www.pokersoftwareanalysis.com/tail/log.log that looks like: 2015-05-20 14:19:52.306655 hello 2015-05-20 14:19:55.406846 hello 2015-05-20 14:19:57.292777 hello The log file was generated on a Godaddy shared linux hosting account using this code: with open( log_path, 'a' ) as f: f.write( '%s hello\n'%datetime.now() ) I have an html file at http://www.pokersoftwareanalysis.com/tail/problem.htm that attempts to load the log file. The content of the
Is there an .add() that adds to the existing jQuery object?
I'm writing some code that responds to a set of filters. The way I'm trying to tackle it is first determine which elements should be hidden and which elements should be shown, and then hide or show those elements. That way the elements are all hidden or shown more instantaneously without having to evaluate criteria in between each one. After I identify an element that should be shown, I need to store it in a group of elements to be shown. I was thinking of doing something like this: var $elementsToShow
How to load a script to another DIV and resize target DIV and an iframe as well?
Hi, I have the following page that contains 2 DIVs. <div id="div1" style="width: 50%"> include my script one here </div> <div id="div2" style="width: 50%"> include my script two here. <input type="button" id="load3" value="load script three to div1"> </div> // script three, which contains an iframe Question: When the button with id of "load3" is clicked how to load the script three to div1, then resize div1 to 100% and make the iframe inside the script three using 90% of window width and height?
Popups flickering on multi-page template
Hi, I have a jQM multi-page template in a single html where each page has one or two divs as popup as per this example: http://demos.jquerymobile.com/1.4.5/popup-image-scaling/ . It works just fine on Android and also on desktop but somehow only on iOS, while popup shows okay, when closing the popup it flashes intermittently. I have tried various things: such as move popup div just after the link that opens the popup, make popup div sibling of the page header, popup with animation disabled, disable
Newbie: Duplicate clicks on Android?
Hi, I'm seeing a weird issue on some pages. I use http://x1024.github.io/jquery-fastbutton/ to eliminate click delays. On some HTML pages (that have multiple jquery mobile pages and so are "multipage" templates") loaded without Ajax, somehow the first page is navigated automatically as soon as the HTML page is loaded. It is intermittent and it happens only on Android. On iOS it works fine. I'm using jQuery mobile 1.4.0 still. Has somebody seen this? Any pointers appreciated. (I tried to use FastClick.js
Showing any page as a dialog?
Hi, Is there a way to show a JQM page (that is part of a jQM multipage template in a html and each jQM page has a id) file as a dialog using data-rel="dialog"? The idea is to use the destination html file as is and also popped up as a dialog to avoid defining a separate popup. Thanks in advance and regards
No bleeding out when using a JQM control on a page
Hi all, I have the following scenario: - a static index.html page that looks like this: <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> </head> <body> <script src="myscript.js"/> </body> </html> - at runtime I create a container <div id="container-uniqueid"></div> as a direct child of the body element - I dynamically load a jquery mobile control (e.g. slider) at the press of a button and place the jquery mobile control inside
$.post problem
Hi, I insert a record into DB with this code: $.post("assets/addspot.php", { title: vtitle, longitude :vlongitude, latitude :vlatitude, email:vemail, stato : vstato, user : vuser, phone:vphone, web : vweb, mobile : vmobile, image :vimage, description : vdescription
jQuery validates all required fields except file upload.
I am definitely doing something wrong and I would greatly appreciate someone pointing me in the right direction. Many thanks in advance. I am trying to validate file upload along with a few other form fields. All the form fields listed in the script below are being validate except the single file upload called BidIDFile. Any ideas what I am doing wrong? <script type=' text/javascript' src=" http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/additional-methods.js"></script> script type=' text/javascript'>//
This is a good workaround for disabled button at mouseenter?
I have to show tooltip message on (enabled or disabled) button and I know about this ticket , but I didn't see the following solution nowhere: Tooltip message is not shown Tooltip is working in way I want (the difference between the codes is just in "init()" function) Does this solution have any unwanted side effects? Thx
Can I get Ajax html response and pop a part of the result into a javascript variable?
I want to populate Ajax response and set a part of it into a new variable. $ . ajax ({ type : "POST" , url : " ajax.php" , data : "id=" + id , success : function ( data ){ $ ( "#response" ). html ( data ); var new_var = $new_result; } }); ========== [[ ajax.php]] $new_result = 'hahahha'; echo $all_names; echo $all_address;
Best way to go with multiple inserts
Hi all. Though only a home-taught novice in all, I am OK when it comes to using PHP and jQuery to insert records in a database. However, i am considering trying something that I am not sure is even possible (but assume it is) and hope someone can give me a pointer of which way to go. Basically, I have written a script that generates scenario's to run through Selenium IDE and IBM's RFT. At the moment it just returns the info to screen but I want to save the runs into a MySQL database to be retrieved
Mobile Navigation Menu with JQuery [SOLVED]
Hello! I'm working on a website with mobile-first responsive design (just like everyone and their mother) and I have been struggling with the navigation bar. I tried following this tutorial but I've been having some problems. The navigation menu does indeed hide the normal menu, and display the menu a element, but the menu image does not display, and when clicking on the a element, the menu does not appear; no Jquery seems to be loaded. I've triple checked all my image and script srcs, and they all
Problem using Event when slider is changed
Hi! I am currently using the following jquery Mobile together with jquery. <link rel="stylesheet" href="themes/klaus-theme.min.css" /> <link rel="stylesheet" href="jquery.mobile-1.4.5.min.css" /> <script src="jquery-1.10.1.min.js"></script> <script src="jquery.mobile-1.4.5.min.js"> I am trying to use the exakt same fiddle at this url, and no event is triggered after changing the slider in my code... Are there any problems with jquery mobile 1.4.5 with jquery 1.10.1 ? thanks, jsfiddle for my problem
Sync audio with text
Has anyone used the popcorn.js plugin for syncing audio with text, does it working on older IE browser. Thanks Mathie
Trying to make my own expand collapse script for each div content
So I found out that the plugin I tried to get to work isn't really meant for my end goals. Its mean to translate a series of blocks into an accordion you can expand and collapse each section of. This I do not want. I do not want blocks stacked against each other. Instead I want seperate divs that I can click a link for to hide and show with cookie. I tried making it but failed I think: http://jsfiddle.net/master412160/xrxsw1ht/2/ 1) The font awesome is loaded and I tried adding an icon in the html
callback and no navigation using submit.
I am using JQM 1.4.4. I am trying to submit a form using the default ajax call and I need to do two things that I can't figure out. First I need to stop all navigation and second I need to have a callback so I can notify the user if the save was successful or not. I know I can do this using ajaxSubmit ( options ) in the jquery form plugin but I was hoping I can do this with JQM. The last part of the action "savesharefees" is used to call a php save function that returns success of failure. Thanks.
sortable plugin's "scroll" functionality and iScroll
Hi, I absolutely love the .sortable(...) plugin. However, I can't get its "scroll" functionality to work if I'm using iScroll. Are there any known ways of getting these two technologies to work with each other?
throttledresize demo
The throttledresize demo found at: https://api.jquerymobile.com/throttledresize/ For me, it seems to work on Android and not iPhone. Is it best to just use orientationchange event since it falls back to throttledsize as a backup? Is this a known device difference that we just have to keep in mind? I don't think there's any other way to resize the screen other than an orientation change on iOS, is there?
AutoComplete writes search result to input and at bottom of page
Hi guys I'm new to jQuery UI and I'm seeing a strange result. For some reason the autocomplete works exactly as expected, except that in addition to populating the appropriate text box with search results, I also get the selected line at the bottom of the page. I end up with this appended (red rectangle bottom left): Here's my code. Any ideas? $( document ).ready(function() { console.log("loaded"); var myData = []; var requestHeaders = { "accept": "application/json;odata=verbose" } $.support.cors
Replace some HTML
I am brand new to Jquery and not finding exactly what I want. (don't know what to search for) So I thought I'd try here. I have this code... <strong id="cups" class="styleColor" data-to="11244">11244</strong> I want to replace 11244 for the data-to to be a new calculated number. This is a count-to plugin in a template we purchased. I want the count-to number to ever be changing depending on some calculations I make on the fly when the page loads. So I will do the calculations in a script then
Strange behaviorwith iframes, title-cased CSS, and Chrome/Webkit
This may be the oddest issue I've seen in my entire life and it took me ages to narrow down the problem, but long story short - I'm working on a project that is using jQuery to write DOM nodes to an iframe and I found some odd behavior with CSS classes containing capitalized characters. I've narrowed it down to what seems to be an issue with jQuery's "append()" function for "$()"-wrapped HTML, and it affects all versions of jQuery 1.x and 2.x, Chromium/Webkit-based browsers only. See the following
How to do Automated Mobile Testing
We want to set up some regression functional testing on our sites for iOS and Android cell phones and tablets. This seems to be a hard to solve issue on Selenium or other platforms. Has anyone accomplished this at a less than enterprise line item budget?
jQuery UI 1.11.2 draggable and connect to sortable issue
Please see below examples - using jQuery UI 1.11.1 I am able to define draggables that connect to multiple sortables and all works fine: $('#list .item').draggable({ helper: 'clone', connectToSortable: '.table-cell' }); $('.table-cell').sortable({ connectWith: '.table-cell', items: '.item' }); http://jsfiddle.net/9syhdnzm/1/ However when using jQuery UI 1.11.2 the draggable clone loses it's style and moves away from the cursor when entering sortable areas: http://jsfiddle.net/9syhdnzm/2/ Is this
How to get Visible column data from Datatable
Hi, I want the datatable data with with visible column only. Can any one help for the same. I m binding data like: ('#myTable').DataTable({ .......
How to get the date back from datepicker into Code.gs in google apps script for spreadsheet
Thanks to contributors on google+ and stackoverflow I now have a google spreadsheet with a script and a form attached, with which the club's newsletter editor can export items from the club's calendar and get them nicely formatted in the spreadsheet, ready for further editing and printing to a PDF file for distribution to the club members. The editor can fill in the form to specify the starting and ending dates, and the script does the rest. But I would rather use datepicker so s/he can select the
How to custom data text value in autocomplete ?
Hello guys. I have try show data and get value using autocomplete jquery. Textbox will show data choose and label will get value .But it's error Uncaught TypeError: Cannot read property 'DEPARTMENT_ID' of undefined . This is data JSON when i see console.log Object {d: "[{"DEPARTMENT_ID":"D00000000001","DEPARTMENT_NAME"…"2015-05-05T00:00:00","EDIT_BY":"","FLAG":false}]"} d: "[{"DEPARTMENT_ID":"D00000000001","DEPARTMENT_NAME":"HR","DEPARTMENT_DES":"HR","EDIT_DATE":"2015-05-05T00:00:00","EDIT_BY":"","FLAG":false},
How to make jQuery accordion menus slide back up?
I'm having a hell of a time with a jQuery project I am working on here: http://jsfiddle.net/digitalsky/undjdrg8/9/ First off, let me start by saying I AM a newbie to this, I'm learning as a I go as my experience is mostly all front end stuff (HTML, CSS, etc.). Anyways, what I am trying to accomplish here seems simple, but it's driving me up the wall! I want the 'Course Schedule' tab to open it's sub-menu when clicked (which it currently does if you see my fiddle above. Okay, so great, half of it
Saving .css and .js files and using them on blogger
Hey guys, i created a blog on blogger/blogspot and made an FAQ using the accordion from jquery. In the html you can see where the code comes from: ... <head> <title>jQuery UI Accordion - Collapse content</title> <link href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet"></link> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
iOS7 Network Activity Indicator keeps spinning after an $.ajax request
I'm developing a webapp with jQuery Mobile 1.4.2 and jQuery 1.11.1 and run into an issue with Safari in iOS7. Whenever I perform an $.ajax request (see general example below) the iPhone/iPad Network Activity Indicator starts spinning and does not stop until I close the webpage. The problem does not occur on my old iPad1 with iOS 5.1, and Chrome also runs the web app without any issues on an iPhone/iPad with iOS7. I would like to allow users to run the web app from the Home Page, and that is causing
Opening custom jquery tab with anchor link
I really need some help for jquery tabs. I would like to get to a specific tab via external anchor link (http://www.url.com#content2), the navigation link becomes activated and the correct tab is shown. Other HTML Page <a href = "#b" > B Title </a> | <a href = "#bb" > B Title </a> HTML Page <div class = "tabs-container" > <ul class = "tabs" > <li class = "current" ><h4><a href = "javascript:void();" data-tab = "tab1" title = "Title 1" > Title 1 </a></h4></li> <li><h4><a href = "javascript:void();"
Is blockUI.js will work synchronous Ajax calls ? (i.e async : false)
Is blockui will work if I call an ajax call with async:false property? Example: $.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' }); $.ajax({ type: "POST", cache: false, async: false, url: Util.func.GetHostName("Public/GetStatesById"), contentType: "application/json; charset=utf-8", data: JSON.stringify({ CountryId: id }), dataType: "json",
Show and hide navigation
I am trying to figure out how to toggle aspects on my pages. I have a navigation bar at the top of my page and when I click one of the options I want a dropdown with the different options. I have made all the html and css, just I have no idea how to toggle back and forth from everything. I have read alot of information for the last few days and cant find anything that is working or helping. This is the default code when you load the page: <div id="main-menu-links"> <ul> <li> <a
addClass whithout events or commands
I have a div that needs to be hidden or not as returned value from the database , suppose when logging into the system is loaded in the user session index.html < html> < head> <title > test < / title> < ? php $ admin = 1; if ($ admin == 1 ) { ? > <script type = "text / javascript" > $ ("# divMeu " ).show () ; // << == How to run this event without using .click events </ script> < ? php} else { ? > <script type = "text / javascript" > $ ("# divMenu " ).hide () ; // << == How to run this event without
jQuery AJAX succeeded, but $_POST is empty
index.php: <script> var image = canvas.toDataURL('image/png'); $.ajax({ type: 'POST', data: image, success: function() { alert('Ok.'); } }); </script> <?php var_dump($_POST); ?> This returns "Ok." alert and array(0) { }. How can I get jQuery image variable?
top.location.href doesn't send the full URL
Hey I want to write a function which reads out an entered URL from a input field and sends this URL as query string to the next site. Here is my jQuery Code: $(document).ready(function() { $("#myform").on('submit',(function() { var url = $("#user-url").val(); url = encodeURIComponent(url); top.location.href = "index.php?application.php&url="+url; })); }); and the HTML Part: <form form id="myform"> <input type="text" id="user-url"/> <button type="submit" class="grey">Submit</button>
Base theme?
When I download the latest release of jQueryUI, it no longer includes the base theme. Was it taken out or moved? How can I get a copy?
Building a plugin , what to plan first Jquery or CSS ??
Hey guys , I have a total noob question , but i still got to ask . when you build a JS plugin that also has alot of CSS involved , what do you do ? - Plan out the CSS first ? or the JS/Jquery 1st or both simultaniously ? for example , if your building a simple carasoul , would you first define - how to hide the slides ? - speed of transition etc ? - what size the carasoul sould be etc in the CSS and then move on to the Jquery part of it ? Ex. below is how the bootstrap carasoul CSS is built
Are "Nested Accordian" & "Expand" by Adi Palaz now obsolete plugins?
Hello... A large professional website I inherited relies on two plugins by Adi Palaz ('Nested Accordian' and 'Expand') which I'm searching for detailed API documentation on beyond the abbreviated comments in the code itself. Adi's Nested Accordian is ranked #2 out of 20 on this recently-updated survey. (Unforunately, the link provided for Adi's website appears to be obsolete -- with no alternative website I can find. The two questions I have at this time are: Does anyone happen to know if/where detailed
Add delay between sliding divs in jquery
I am thinking to add a delay, but I could be wrong. Maybe there is another solution. Here is a new updated fiddle. I have the slide direction correct now. Now the slide doesn't look so good. When the colored box slides out to the left, it reveals the gray main menu box. I need it NOT to reveal the gray box but to have the gray box slide in. Maybe it is a problem with the timing. There might need to be a delay before the gray box slides in to make it look good. The gray box text should have space
Next Page