How do I read HTTP trailers?
I am using $.ajax() to interrogate a server whose response incudes headers, response data and trailers. the response data are readily available via $.ajax().done(), as are the headers via jqXHR.getAllResponseHeaders() but I don't seem to find a way of reading the trailers. Are they accessible? Can anyone point me in the right direction? Thank you John
How to load a CANVAS from an image stored on server but not displayed in the HTML DOM
Hello, I have a code here where I display an image and when I click on it, it becomes a canvas. It is OK but I want in my website to display only the CANVAS . Is there a way to load the canvas without displaying the image it comes from on the screen? Thanks for any help. <!DOCTYPE html> <html> <head> <title>ANIMATION with timer: a solution very difficult to apply</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
Resize Div by adding a new one
I want to resize divs as I press an "add Div" button. The width of all divs together should stay the same The Divs should fit into a parent Div: With 1 Div, the Div has a width of 100% With 2 Divs, they have the width of 50% With 3 Divs, they are all 33.333% and so on... Together they are always 100% Its
One more question.. need an explaination!
Hey there.. last question. Can anyone explain to me what this means, and when to use it? Thanks a lot. .on
Animating Border Length
How can I animate the border length of an anchor element to increase gradually?
Can someone explain + addTo + ???
Hey there. I am going through the Codecademy lessons trying to learn jQuery, and there is a lesson that I have come across where the correct answer includes + addTo +.. i understand the other components of the correct answer, but this piece of code is something that wasn't previously discussed in other lessons on Codecademy, and I am wondering what it means, and what the purpose of it is? Here is the complete code: $(document).ready(function () { $("#button").click(function () {
attaching a command to an id or class
Hi folks: I have repetitive code, along the lines of $('#id or .class").delay(800).fadeOut(1200). I could do function fadeIt(id) { $('#' + id).delay(800).fadeOut(1200); } but is there a way of specifying a class as well, in the same function? or does doing it to a class have to be a separate function? cheers.
How to load a canvas from png image on server instead of stored RGB?
Hello, My way to load canvas seems long, that is: save 3 files with the pixel of the canvas R G B that I open with JSON invocation $filename0="test1_r.txt"; $handle1 = fopen($filename0, "r"); $contents0 = fread($handle1, filesize($filename0)); fclose($handle1); $filename0="test1_g.txt"; $handle1 = fopen($filename0, "r"); $contents1 = fread($handle1, filesize($filename0)); fclose($handle1); $filename0="test1_b.txt"; $handle1 = fopen($filename0, "r"); $contents2 = fread($handle1, filesize($filename0));
page refresh when multi tasking on mobile
hi every one i have developed website on jquery mobile i am facing issue while using the mobile web when a message comes on my cell phone after checking the message i came back the web page it refreshes page and does not show the css effects
Problem with disabled select.
Hi everybody, I have a problem with disabled select, input text and textarea. These elements are in a form in a dialog form. When I open the dialog I control if the input text is not empty. If the condition is true I need to disabled input text, text area and select. It works fine. But If I open the diagol again it doesn't work, I mean that the elements are not disabled. This is the code to disabled the 3 elements: for (i=1;i<=10;i++) { for (j=1;j<=10;j++) { if ($("#matt"+i+j).val()
Do not function css("display","block") in my program
Good Night; Im new in Jquery and I have practicing all morning. At this time anyone suggested me, practice with this program to see how hide and show parts of css or piece of text. This is the program, but I dont know what happened there because dont work fine, in other words, do not show neither hide the div id="formulariomayores". Im using Netbeans. This is the code: <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;
Dreamweaver CS5.5 has MXP for 1.5.2 as newbie how to I upgrade jQuery ui
Hi, Although an old hand in IT (and development) This is a new area. Got DW CS5.5 for a project. Adobe has jQuery UI on its site in an MXP format with version 1.5.2. I wanted to work something out but the online manuals refer to the new versions supplied in a zip format. Is there any documentation so show me what actions to take in order to use the latest version? Kerry
How to resize div in page loaded using jquery.load() ?
Hi, I have a page loading in a div using jquery.load(), however when the main page is resized, I'd like to resize the loaded page as well, because it contains a div, is there any way to accomplish that? I already setup the $(window).resize function in the loaded page, but it does not work, I will appreciate your help, thanks!
Adding multiple span elements to a div
Good afternoon, apologies for what may seem like a trivial question. I can't seem to wrap my brain around something I am trying to accomplish. I feel it is something straightforward that I am missing. I am trying to add multiple spans to a error div so that when an input is made and the field has lost focus, I can remove the span that showed the error to begin with. $('.required').val(''); $('#insert').on('click', function() { var valid = true; msg = ''; sp = ''; $('.required').each(function() {
Dialog produces TypeError: $(...)button is not a function
Running the CODE in 1., below, produces this error. TypeError: $(...).button is not a function text: falsejquery.ui.dialog.js line 351 The status on all files opened is 200. Permissions on all files is 777. I don't have a clue as to why this is happening or how to fix this. Thanks for any help to solve this. R <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Dialog</title> <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.3.custom.css"> </head>
Demo Site Layout - Navigation Panel
The demo site for jQuery Mobile 1.4.0 has the exact layout I'd like to use for my app - that is: - For desktop width, navigation panel is persistent - For mobile width, navigation panel is hidden, accessible from icon Anyone know of a straight-forward layout that does this? I'm trying to open and persist the panel in a css media query but with no luck.
Using regex with a variable in the pattern
HI, I am trying to match a pattern with a variable in the string like so: $(document).ready(function(){ $.get('inputQueryExamples.txt',function(data){ var queryString = data; var cleanString = ""; var db = ''; $('#database-list').change(function(){ db = $('#database-list').val(); console.log(db); //put code in here to select pattern, replace un-needed stuff
jquery with grid.....
Hi, this is second report the first one have solved but same case, please see sample at fiddle ... as you can the text number from one to ten show in second column for ten rows. And and please press grid view button and you see the table changed to grid, but i only want to show grid of second column where is show number one to ten in grid... how can i do that! Also is this possible to show boxes in row instead of column! like first second 3rd box in first row next three boxes in 2nd row instead
Matching game - change bg color when condition is met
The problem follows the code: Matching Game Click two different cards to see if they match! salmon swordfish swordfish shrimp lobster scallops lobster salmon tuna scallops tuna shrimp I'm writing a basic memory game where you flip 2 cards and if they don't match, they flip back over, but if they do match their background color changes. All of the flipping is done on click; it adds a class of flipped. Right now nothing happens when a match is made; the cards just stay there keeping the flipped class.
trouble with table
Hi, i wrote jquery with table that allow me to switch, please check demo at fsfiddle , as you can see there is two buttons one gril view and other list view, under list view is show full row table using <td>, but under gril view I'm trying to show three or 4 boxes per row instead of all boxes in one column. Does any one how to fix that to show few box per row instead of all box one column! please help thanks. AM
New to jQuery and just had a few questions
Hey guys, Been doing HTML and CSS for a few years, however recently got into PHP for my job. Taught myself the basics, but when it came to a login system I cheated and used Usercake. All working fine, but I need to change some of the things on it, such as a popup for registration errors and things. My question is, on the registration form of my usercake registration form, it already has labels setup which input to the sql etc, but if I wanted to use a script like the validation script, will they
Help: Calling TextBox Changed Event using Jquery
Hi All, I am a novice and I have issue in firing an server side event from Jquery. Scenario: I have a textbox in user control which has a event TextChanged that I need to fire when the text box loses the focus, I am trying to do in blur event. See the below code, Jquery code: $(document).ready(function () { $('#NumericTextbox').blur(function () { }); C# Server side code: protected void NumericTextbox_TextChanged(object sender, EventArgs e) { OnNumericValueChange(); } How do I call the
Problem with Scope
Hi, I have a problem with the item-scope. I'm creating multiple elements, that are opening a colorbox on click and "onCleanup"(colorbox) the triggering element should be changed. But the focus is set to the last element, not at the triggering element. How can adress the correct element? here is the code: foreach(...){ var el = jQuery('<div></div>'); el.click(function() { jQuery.colorbox({ iframe:true, target: ..., ...
jQuery Clone, performance issues
Hello, Could someone take a look the issue and help me to solve the problem? Thank You! http://stackoverflow.com/questions/21579276/jquery-clone-performnace-issue
Keyboards closes after opening
Hey, Like the topic says, my problem is that the keyboard opens and a second later closes after i trigger focus. I only have this problem on Android 2.3.3. Anyone knows a solution for this? Grtz, Tim
Fiat Site in the Gallery, how was the slideshow made?
Hello there, my question concerns this mobile site in the gallery, http://www.jqmgallery.com/2012/04/14/fiat-spain/ I like the slideshow effect they have there, I was able to pull it out and get it to work, but I do not know how to modify it. It seems that clicking the arrows changes the left attribute by a certain amount, <ul class="home-slideshow" style="width: 1650px; left: -375px;"></ul> But I didn't see any javascript on their page that corresponded to that, it appears that they modified the
ajax post working with ie but not with others...
example... i have a form with text input and file... the form has attached onsubmit=" $.ajax( { contentType:'multipart/form-data', data:new FormData(this), processData:false, type:'post', url:'myurl.cshtml' }); return false; " this works perfectly with ie 11, but doesn't work with chrome 32 or firefox 26, the error is something like this Uncaught TypeError: Failed to construct 'XMLHttpRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function. (anonymous function)
Problem after ajax.
Hello All. I am using Jquery and working with ajax of this. I am trying to use the $.post function of the jquery It is working quite good. but the problem start after ajax done. it lose events of the jquery. suppose a table was working with sorting. It does not sorting after the ajax is done. Please help me on this. Thanks
Enqueue some code to execute after a js is ended ?
I've a page where there is a propietary js widget with a button. User press button, and the widget loads from a remote website an html table into a 'div' I placed on page. I need to apply $('.my_div').stupidTable() on the results, so table can be sorted by clicking on headers. I cannot find a way to 'intercept' the moment in which the html is loaded, to execute some code against it. ... stupidTable() is a 'table sorter plugin'. It's fantastic, light, and works ... but I cannot apply it 'live'...
Jquery Mobile 1.4.0 + page change = custom select menu stop working??
Hi I posted this question on Stack overflow but I had no solution really: I have just upgraded from jquery mobile 1.3.2 to 1.4 on my MVC application (MVC 5 developped on VS 2012) In my code I have set the generic option for native menus to false:$.mobile.selectmenu.prototype.options.nativeMenu = false; And the default Ajax navigation is kept to true - it was like this before on 1.3.2 and worked perfectly well:$.mobile.ajaxEnabled = true; When I first load the application I can see all my items in
two jquery plaugin not working in two different page
Hi sir, one jquery used on master page in .net for search and second used jquery on aspx page. second jquery not working. master page jquery proper working. i am sending code of you. please check it.. Master page jquery <script language="javascript" type="text/javascript" src="../../jsNew/jquery.js"></script> <script src="http://testing.constructionmarkets.com/AdminRegistration/scripts/jquery.autocomplete.js" language="javascript" type="text/javascript"></script> <script language="javascript"
[Resolved] How to select a div content like if done by user?
an user asked me a "Select all" link/button on the page to select a precise area of what0s on screen. It's easy to identify the area, because it's all on a specific div. How can I visually select all the div content, like if user has selected it by click & drag of the mouse ? It's only a 'shrtcut' to allow user to, then, right-click -> copy
show/hide div based on URL parameter
Hi guys, Am a beginner with Jquery and what i want is as follows. I have a div that should be hidden on default, but when a certain URL parameter is present, then the div is visible. I am basing the following on this demo : http://sandbox.ajaxcssblog.com/jquery/jquery.url/url-demo.htm I have the following html <div id="display" style="display:hidden;"> <p>test text</p> <img src="someimage.jpg" /> </div> And i have the following in the head <script type="text/javascript" id="demoscript"> $(function(){
SCRIPT16389: Failed error on IE7 using jquery-1.4.2.min.js
Hi, I am getting very strange error only on IE7. working fine on IE8 9 and mozila chrome. Here is the error: SCRIPT16389: Failed jquery-1.4.2.min.js, line 79 character 316 Any thought??
Modifying Script to Include Next/Previous Capability
I’ve been trying to modify some existing code by adding Next/Previous links… I seem to be having trouble within the nextImage() and prevImage() functions. Even though I’ve figured out how to get the HREF of the next item in the anchor link sequence, I’m not getting the page to update properly (displaying the next/previous thumbnail in a selected state, and the main image updated to the corresponding image). Using alert boxes, I can tell that the URL I’m passing is correct, but I’m not sure why the
Autocomplete on content refresh
I have a array[] of strings that prefills my autocomplete widget: var array = [<values prefilled from server>]; $(function(){ $( ".urlInput" ).autocomplete({ source: array }); }) and everything works fine. On the page, there is an option that allows the user to add the values via AJAX that get inserted into the datasource that prefilled array. After the successful AJAX request/response, I am trying to update the source of the autocomplete widget with the new value the user added.
Certificate Error using IE v 8 on XP
Hi, All of a sudden we are getting the following error when accessing our website through IE v8 onXP : Message: Script error Line: 0 Char: 0 Code: 0 URI: https://code.jquery.com/jquery-2.0.3.js Message: 'jQuery' is undefined Line: 12 Char: 2 Code: 0 URI: https://www.thebestshoppers.com/jquery.cycle.all.js Is there something we are doing incorrectly in the jquery access? We do not see these errors when using other browsers (Firefox, Safari, Chrome). thank you
Radio button
I am having a issue with my radio buttons. I am working with a auto-complete form and everything looks fine besides the buttons. When I start typing the persons name the list of options pop up from my database. Then I select the name from the list and the form populates. I cant seem to get the buttons to check. The database is using 1 for male and 2 for female, If I use this code to test, the button checks correctly based on the number used. $("#2").prop("checked", true); //workingThis one checks
jquery problem with post data into click function
Hello! I have a problem, i need send data to post inside of the clic function. My code is: <!DOCTYPE html> <html lang="en"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <title id='Description'></title> <link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="scripts/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="scripts/demos.js"></script> <script type="text/javascript"
How to generate a chart with dynamic json data?
Hi guys. I have a scriptlet in my jsp that converts a resultset to json like shown below. My question is how to I generate a graph with this dynamic json data using jquery? Any help is appreciated. <div id="EnviroStat"><% ResultSet EnvStats = Getter.getsomethin(); JSONArray jArray = RS2JSON.convert(EnvStats); for (int i = 0; i < jArray.length(); i++) { JSONObject jObj = new JSONObject(); jObj = jArray.getJSONObject(i); out.println(jObj); /* out.println(jObj.get("Header1")); out.println(jObj.get("Header2"));
Next Page