ajax call chrome status text cancelled
Hi I am making a Ajax call to a URL when I debug in chrome it says status text cancelled? why would a request be cancelled? when I manually type the URL the browser, returns the expected value no problem every time. here is my ajax call? $.ajax({type: 'GET', url: "http://192.168.0.34:81/tenHsServer/tenHsServer.aspx", data: {t: "ab", f: "DeviceStatus", d: "C5"}, crossDomain: true, success: function(data) { alert(data); }, error: function (request, status,
Datepicker - DateRange
Hello, i ve installed Datepicker on my Page, and now i need a function for a DateRange. Where can i find this? i required: Field1: MinDay: 2010-01-01 MaxDay: Today -1 Day Field2: MinDay: MayDay from Field1 +1 Day MaxDay: Today I hope anyone can help thx regard
Issue when upgrading from jQuery version 1.4.4 to 1.8.0
Hi All, In my project there was a reference to jQuery version 1.4.4 which was working fine. Later because we need to use "on" function instead of earlier "live" method I changed the version to 1.8.0. Now, I am able to use "on" function but many of the UI alignment has been disordered. There seems no direct way to find out why this is happening. Can anyone give clue what may be the reason behind this problem. Thanks
targeting parents
you can use THIS if you want to target the object which the event was focused on ie $("#cat").click(function(){ $(this).fadeOut(1000); ]); is the same as $("#cat").click(function(){ $("#cat").fadeOut(1000); ]); is there a equivilant way to target the perent node of #cat?
How do I validate fields using the Blur event and the Submit event on the same form.
Hello everyone: I have a form I wish to validate and at this time decided not to use the validation plugin due to my needs and customization with ASP.NET. The idea is to have the form validate on Blur (as the user leaves a field) , but also use the submit event if for any reason a person decides to submit an incomplete form. Currently I have the blur event working and in addition to that, I also have an additional focus event and another blur event which provides more usability. In a nutshell here
jQueryUI grid plugin
Hi guys I'm a die hard fan of jQuery & jQueryUI and I want to take this wonderful opportunity to announce the much awaited grid designed using jQueryUI widget factory paramquery.com Though there are lot of jQuery grid plugins out there but I didn't find any grid plugin based upon jQueryUI widget which is an excellent design pattern especially for designing UI controls with consistent API. I hope ParamQuery Grid fills this void. Please check the grid examples at paramquery.com/demos and let me know
Jquery and SWF
Hi, I have created a website for my company in which i need to put 2 .swf files. But it is not working in mobile. So, i tried changed it to a movie but of no use. Can anybody please let me know, whether i can embed the swf in jquery using JQuery SWF object plugin, or i can change to whole animation using jquery. Please reply as soon a as possible Thanks in advance Rekha
When Drag even is called on Draggable?
I need to know when 'exactly' drag event is called on draggable. After left, top properties of draggable are updated or before left,top properties are updated? Because when I read the left and top of a draggable it lacks 1px behind.
How 1-liner to alternate bg color on li but start over after each header?
I am trying to add a class to a div enclosed by li elements. Have to use a div inside the li to make the entire row colored and not just the li text. Here is my jquery 1.9 code: $(function(){$('a + h3 ~ li:even > div').addClass('bgcolor1')}); And here is the sample html layout: <ul> <a name="a"></a> <h3>A</h3> <li><div>blah blah blah</div></li> <li><div>blah blah blah</div></li> <li><div>blah blah blah</div></li> <a name="b"></a> <h3>B</h3> <li><div>blah blah blah</div></li> <a name="c"></a> <h3>C</h3>
Can I use user-defined attributes in the attr/prop method?
Hello, Can I assign a user-defined attribute to an anchor tag. Can I access this user-defined attribute using the .attr/.prop method?
fire event after opening page
Hello, I want to load a dynamic data when opening new page, but i cant get to the onload event... How can I call function immediately after loading a new page ? here is my code in each file Index.html : <!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body onload="alert('home page');"> <!-- Home --> <div data-role="page" id="page1"> <div data-theme="a" data-role="header"> <h3> testing </h3> </div> <div data-role="content"> <div class="ui-grid-a">
function wont work after use of append()
My script places all of the JQuery inside $(document).ready(function() { }); as standard. Some of the pages Divs are static and some are created dynamically using the append function - this is my append code $('#data').append("<div id=\"stenchblossomchart\" class=\"chart\"></div>"); (note that in that example data is the ID of a static DIV element) the problem comes when i try to detect an event on div created by this append code - my code is as so $("someobject").click(function(){ alert("sam");
Text jumping with javascript
Hello Javascript-expert, I want to do a program based on javascript online (Browser) for datasets of texts (PDF, Word, HTML). It should open those datas and enable text jumping. An example would be 3 words per second. The surrounding (imagines, background, text format) should be untouched. Here is a example for it. http://www.bestaltmed.at/imagines/imagin.php Can you please give me an idea, how I can accomplish that? Thanks a lot, Chris
get width of a select
I am trying to get width of the select box but not doing it write please advice me. here is my html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns:wicket="http://wicket.apache.org/"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="stylesheet" href="chosen/chosen.css" /> <script src="jquery-1.7.min.js" type="text/javascript"></script> <script src="chosen/chosen.jquery.js" type="text/javascript"></script>
HTML5 MP3 Player
Hey guys, I was wondering if someone on here could help me out with a problem i'm facing. I am currently playing around with the audio.js html5 mp3 player, and everything is going great, except that when I have more than one player on a page, i'd like only one player to play at a time. I'm not sure if there is a good way to go about this in jquery. The mp3 are played via the same js engine file and are placed between <audio> tags in the html along with direct links to the audio files. Now would
Researchers say that over a third of iPhone apps still access a device’s unique identifier
Researchers say that over a third of iPhone apps still access a device’s unique identifier In 2011, Apple advised that iPhone and iPad apps should stop logging the unique identifiers of users’ devices, a practice that can be exploited to build up profiles for ad-targeting purposes. But a new study by researchers at the University of California, San Diego, suggests that many apps still do so. At the MobiSys conference in Taiwan this week, the researchers will present data gathered from 225,000 apps
How to style the dropped list in the trash bin while the draggable is a clone
I am developing a visual selector for compound library using the JQuery UI droppable photo manager demo as a basis. To prevent the original draggable from being deleted, I have set the draggable.helper class to "clone", and have modified the selectImage function's input to (ui.helper). The only problem for this modification is that the cloned list element is not placed in order (float to left) in my selection bin and can be stacked randomly depending on where you drop it. It is not the case
Google Map vs Collapsible list
I want to use google map and list on two different tab. The real example is Here. The problem is: if you load the map page "map.php" first, The map can display correctly, but the listview will collapse after you dismiss the dialog window (which is wrong). If you load the listview page "error.php" first, the listview will keep open after you dismiss the dialog window (which is correct). But the map.php can not be loaded correctly. I post the full code below. Thanks a lot for the help. -------------------------
Animated-menu.js trouble
Hi guys! I'm using the script animated-menu.js in my website, but i'm having some trouble. So, my website appears just fine in Google Chrome and Firefox, but not in Internet Explorer. My menu is positioned on the right side of the page and, as the Internet Explorer assumes that my page as a margin on the right (I have to scroll right to see that margin) my menu, when mouse rolls over, slides to the right instead of sliding to the left, as I wanted! I think I need a line in the code that tells the
How do I refresh a div using jquery and ajax?
Hello I need to know how to refresh only one div using jQuery and AJAX. Basically, here what I am doing. When a user log on the site using jQuery and AJAX I need to update the header by displaying "Welcome back, BLAH" also i can to change the buttons in the header to add "sign out and my account buttons!" it is very smiler to this web site when you log in the buttons in the header change! Note that i have the buttons and the name in a div and they all change via PHP and cookies but i need to to change
conflicting slider and pop up form
Hi, i have a page with a slider when i add the pop up form and its scripts to the page only the pop up form works and the slider stops working, i tried using the <script>jQuery.noConflict();</script> line after the javascripts that i think are conflicting because when i remove the "jquery-1.4.min.js" javascript the slider starts working but then the form doesn't work...but i am not sure if i have done it right..please if anybody can help i'd be really grateful this the code of my page <!DOCTYPE
need help with Enhance Forms using jQuery UI
I am trying to enhance my forms look and feel for which I am trying this tutorial . I tried to copy the code into my html but its now working and there are some errors , is there a working copy which I can download and use and can I see a demo of this? The links for demo and download dont work. here is my html <!DOCTYPE htm l PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <meta http-equiv="X-UA-Compatible"
Define accordion selected header style separate from other UI elements
I am using the full jQuery UI (1.9.2) and want to style my accordion differently than the other UI elements. However, when you create or use a predefined theme, all elements use the same style. I've been able to define the header's default and hover styles (below), but haven't found the solution for the active header. Does anyone know how to style the selected accordion header separately from the other UI elements? .ui-accordion .ui-accordion-header { my style } .ui-accordion .ui-accordion-header:hover
refresh div section after ajax call
I have a content data which contains all session information. I want to refresh that div section in which i display session information. For example i have a cart page in which several products are shown in cart session, when user click on delete button ajax send a request to server where i delete product from session and on success jquery refresh cart div to show updated session data. I dont want to generate html on server side and replace it with existed html on success of ajax call. If i able
update all buttons using jquery for ajax
I am using jquery to update all buttons in my page using $(document).ready(function(){ $( "input[type=submit], :button" ).button(); }); when I add a new button using ajax the above script wont be excuted please advice how can I fire the above script for ajax request , I doing ajax with wicket and not jquery.
MVC4, Tabs and Selected Tab
I've got a small MVC4 application and have implanted Tabs. As users select a Tab, they are able to access the corresponding Controller Index View, however, the first Tab is always selected. Is there a way that I can set my current Tab based on the Controller as the View is loaded? I can post code snippets if necessary. Thanks, Maggs99
Tablesorter makes table unresponsive
Hi all. Currently I'm using Tablesorter plugin with Bootstrap. Tablesorter makes it's work perfectly, but I've found some caveat. Using Tablesorter I lost all responsive features on my table, it's size is not changing when I change size using mobile developers tools. Is there any way to fix that problem or Tablesorter only works that way?
DataTables Initialization on dynamically constructed table
I've an html table dynamically constructed in a php file. The table id is logTable When the user page is loaded, I use $.getJSON to grab the table and display it on the user page as follows: $.getJSON("ol_LogTable.php", {filterVal:1}, function(data) { $('#activityLog').html(data); var LogClass = $('#logTable').attr('class'); console.log("log Class: " + LogClass); $('#logTable').dataTable(); });The console.log is reporting the correct class. So I'm able to successfully use $('#activityLog') to grab
How can I load different html pages without refreshing, but changing the url?
Hi, I'm trying to use a navigation system for a website where there is no refresh at all, through jQuery, I don't know if using ajax is possible, but I'd prefer that approach, however, this is what I have so far: jQuery script $(document).ready(function(e){ var page; var prevPage; $('ul#nav li a').click(function(){ prevPage = getPrevUrl(window.location.href); page = $(this).attr('href'); $('#content').load(page + '.html'); if(page + '.html'!= window.location){ window.history.pushState({path:page
Size of jQuery mobile scripts
Hi there, I have a mobile web site that uses JQuery framework but the size of the JavaScript and CSS files is bit big: JavaScript jquery.mobile-1.3.0.min.js (in minimized format, size is 144.4K) CSS jquery.mobile.structure-1.3.0.css (in readable format, size is 79.7K) jquery.mobile.theme-1.3.0.css (in readable format, size is 49.6K) Those figures were taken with YSlow running on my Firefox desktop browser. I have two questions: What can be done to to reduce size of those files? Is the size of files
Adding TextBox to FrameSet/ Frame
Hy Guys :D I was helped here a few days ago and i need help now too :/ the problem is .. I'm using C# to create my bho to add Jquery to Website ( I can't change the website by the programmer-side ( can't modify the website but the website have Jquery Lib :D yes <3 ) Here come the problems : The website doesn't have <body></body> Just have <html><head><title><form><frameset id ="fs" ><frame id=frmMenu><frame id="frmMain"><noframes/> and that's it ... soo how can i add this textbox code ... $('<input
Any themeroller for svg like jquery?
I need to change my svg application css style by theming like this jquery themeroller. Is there any suggestions to change the css of svg elements by theming or how to support jquery themes to svg. Is there any themes provider for svg? any suggestions should be appreciated..
how make sintaks in jquery more solid so as another person can't read sintaks
how make sintaks in jquery more solid so as another person can't read sintaks ??i have been ever told by my friends but i have forgotten,,please help me brother and sister
jQuery Autocomplete with default selected in combobox
Hello everyone I am using this script (Autocomplete) for my project, and now i want to pass default value like "BASIC" in Autocomplete combobox when page is load. How it is possible with this script? Any ideas or suggestions? Thanks.
Jquery and SWF
Hi all, I have created a website for my company in which 2 flash swf files are there. But flash is not working on mobiles. So i want to make it work. I tried converting it to video but that also not helped me. Can any one please let me know whether i can use the plugin (Jquery SWF Object plugin). Or is there any other way to do the same animation in jquery. Please help me. thanks in advance Rekha
Double input text problem - Android
Hello, I am using jQuery Mobile 1.3.1 with jQuery 1.9.1, and I am facing a problem. I tested my application on a HTC Wildfire S (Android 2.3.3) and when I enter a text input, the input is displayed twice (one is the jQuery mobile input and one is a native input that is "floating") and when I am typing, the text is displayed in the two fields. I tested it on a Nexus S (Android 4.1.2) and I didn't have the problem, I also tested with a native input (with "data-role='none'") and I had the same problem.
offset is not working in jquery1.10.1 with migrate1.2.1
Hi, I am using position to identify a body in jquery 1.10.1. but it seems to be error like "TypeError: jQuery.offset.bodyOffset is not a function" If any solution for this issue. Is any other way to identify position of offset.Here my code.. <script> function test() { var body = $('body'); var option = { "my": "top left", "at": "top left" } alert(body.position(option));
autocomplete focus wihout filtering on type
Hi, i have autocomplete opening without typing a letter (just like a simple dropdownlist): $('#input').bind('focus', function(){ $(this).autocomplete('search'); Now when i type some letter, i need to set focus on first matching item of list. I don't need to filter my list, just focus on element.
Change the position of the error message in Jquery validation plugin
My code: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Makes "parent" required only if age is below 13.</title> <link rel="stylesheet" href="http://jquery.bassistance.de/validate/demo/site-demos.css"> </head> <body> <form id="myform"> <label>Age </label> <input id="age" name="age" title="Please enter age!"> <br> <label>Parent </label> <input id="parent" name="parent" title="Please enter parent!"> <br> <div class = "errorDiv"></div> <input type="submit" value="Validate!"> </form> <script
integrate with jsf?
I am trying to integrate jquery mobile with jsf 2.x. Is it possible to do so?
Next Page