Adding acronym
I have a HTMl field that has this markup: <label for="id_data_path_ip_0"> <input class="radiolist inline" id="id_data_path_ip_0" name="data_path_ip" type="radio" value="Tool"> Same as Tool</label> Is there a way to add an acronym to this with jquery? If I was writing the HTML it would look like this: <label for="id_data_path_ip_0"> <acronym class="help" title="This requires the setup of a remote mount.">?</acronym> <input class="radiolist inline" id="id_data_path_ip_0" name="data_path_ip" type="radio"
Jquery not working when deployed on iis7
I am using simple Jquery statements just to show a modal popup, here #infomsgbackground works as modal background and #infomsg works as a modal popup, all these codes works fine in visual studio 2010 with ie and in firefox but when i try to deploy it on iis 7 ..this code not working JQuery <script type="text/javascript" src="~/jScripts/jquery-1.4.1.min.js"></script> <script type="text/javascript"> $(".updatephone").live('click', function () { $("#infomsgbackground").fadeIn("slow");
[HELP] Menu by JQuery + CSS
Hi all, I'm coding a menu by JQUERY + CSS but when i fill it with data, it doesn't appear as the original one (Without filled data). Here's my code: <script type="text/javascript" src="../jquery.js"></script> <script type="text/javascript" src="../menu.js"></script> <link href="../menu.css" rel="stylesheet" type="text/css"> <div id="menu"> <ul class="menu"> <li><a href=#><span>trang chu</span></a></li> <?php $sql_theloai = " SELECT idTL, TenTL FROM theloai WHERE AnHien = 1 ORDER BY ThuTu ASC";
jquery sidebar not working in IE
Hi all, I have a jquery sidebar added to my website pages and it works in all the browsers except for IE. Can you please help me solve the issue. Hosted Weblink: www.cakesandballoons.com Thanks, KRK
White flash on images
Hi, I try to load an UI web view on ipad, but i have some problem with the java script functions and images. Every time it load an image there are a white flash on images. On desktop browser it's work perfect... Someone can help me?
Add firefox search engine for jquery doc
I'm using Firefox every day for devloping. Firefox has the feature to directly search into some website. Here the Firefox doc: https://developer.mozilla.org/en-US/Add-ons/Creating_OpenSearch_plugins_for_Firefox I think could be usefull to have a "open search" for the jquery doc. It could be done in half an hour. what do you think ?
Jquery script to logout from all opened tab if user click on logout on any page
Hi, I want script to log out from all opened tab if user click on log out on any opened tab using jquery and php. For this I am using following script but it's taking heavy resource of server as my site is on shared server: is_session_expired.php code: <?php session_start(); //echo $_SESSION['sess_memberid']; if(isset($_SESSION['sess_memberid'])){ echo "no"; }else{ "yes"; } ?> <script> function isSessionExpired(url,dopage){ //alert(url); var randval
Best way to create a simple animation using sequence of images
Have a look at this fiddle - http://jsfiddle.net/BT2wk/8/ I am just trying to create a smooth animation by quickly swapping some images. For this i used .fadeIn() and .fadeOut() methods but it is making my images flicker. I have tried tweaking the speed but it always flickers. I wish to create a smooth animation. Am i using the right approach or methods for creating my animation or is there a better way ? If fadein fadeout are the methods for me, then can you tell me how can i remove flickering
Only Return Values Found in an Array
Hi all, I have two REST calls and need to return the values that match (ex. If the first REST call output produces an array of 1, 2, 3... I want to the second REST call to output the values that match 1, 2, 3.) My data looks something like this: - Data source 1 accessed by REST call 1 has a field named PostCategoryID. This field can contain multiple values - Data source 2 accessed by REST call 2 has two fields, one named ID and another named Title. The ID in list matches the value(s) in the PostCategoryID
Which parts of the form should be submitted based upon select
Hi everyone. I'm hoping someone can help me with how I should handle this problem. I have a form that contains a select with multiple data elements for each option. The data elements are not consistent because what needs to be submitted along with where the form action should be will be different depending upon what the user selects. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
jQuery and Dreamweaver CS6
Dear forum moderators / users, I'm still fairly new to jQuery and Dreamweaver CS6. I have the following files (see below) downloaded from the website. But I can not find how to add in Dreamweaver? Those files below itself Is it simple to add something or has to be something else done? Thanks for the effort. - jquery.mobile-1.4.0 - jquery-sizzle-1.10.17-3-g0ff8cc9 - jquery-ui-1.10.4 - jquery-2.1.0.min.map
Need method to get "Current Url" and then display it on the web page
I'm trying to get the current page url....... and then display it for use in the html page as a "template tag" where it will display the url wherever the tag is placed on the page. So it could be used in making a canconical meta tag, or making a link to the current page somewhere on the page for instance. I've been given this code <script type="text/javascript"> jQuery(document).ready(function() { var href = jQuery(location).attr('href'); var url = jQuery(this).attr('title'); jQuery('#current_title').html(href);
ajax().done
Is .done() available for ajax? Something like this: ajax({something, something }).done( function(){something else})
Need help using ajax
Hey Guys. I am new with ajax, and I am trying to retrieve data and append it to a div tag. For some reason my code below doesn't seem to work :( $(function(){ $.ajax({ url: "testdata.txt", type: "GET", dataType: "text", success: "successFN" }); // End of $.ajax function successFN(result) { $("#result").append(result); } });// End of function </script> </head> <body> <div id="result"></div> </body> </html>
populate html table using data from ajax based rest call
Hello, I am having a AJAX REST call in one of the JS file and have a HTML table, want to populate the HTML table with the data recieved in the get call. I have tried the below code but its not working. JS File $(document).ready(function(){ $.ajax({ type: "GET", url: "SERVICE URL", dataType: "jsonp", success: function (data) { $.each(data,function(d,results){ // ben is the id of the HTML table $("#ben tbody").append( "<tr>" +"<td>"+results.Firstname+"</td>"
Help with the trigger function
Hey Guys, I have been reading about the trigger function. I have tried it out on my own but it doesn't seem to be working. I took the following example from the jQuery API website and added an alert function... When I refresh the page it doesn't seem to be displaying an alert. In the jquery website is also refrecnes an a selector named foo but didn't find any element ID the references foo?? Below is my code. Thanks!!! $( "#foo" ).trigger( "click", function () { alert("Automatic Click"); }) ; Documentation
[SOLVED]animate() + detach()/appendto() issue
Hi, I'm trying to learn how galleries work. I have 4 images horizontally lined up. I'm trying to make it so they shift to the right, and the image on the far right moves to the far left hand side, so it creates a fluid transition. http://jsfiddle.net/M4v3F/1/ $(document).ready(function(){ $("#right").click(function(){ if($("#box1").find("#image1").length > 0) { $("#image1").animate({left:'202px'}, function(){ $(this).detach().appendTo("#box2")}
crossDomain usages ?
I asked here : http://stackoverflow.com/questions/21255194/usages-of-jquerys-ajax-crossdomain-property a question about crossDomain. From the docs , it is not understood when should I use it ! if i'm using it with jsonp , so the response type is application/javascript which is not a subject to cross domain. so I dont see when should i use it.
Check text with contains in iFrame
Hi Just whant to get this conditional works. The HMTL-Codes looks like this: <div id="availableLanguagesContainerBody"> <a onclick="changeUserLanguage('EN')" href="#"> English </a> </div> With JS and JQ I whant to check if the User choosed "English" or other languages. if ($('iframe').contents().find("#availableLanguagesContainerBody a:contains('English')")) { //do JS//; } Javascript allways says that this text/object exist, even there is something else. Do you have an idea? Thank you for your reply.
jquery ajax setup not working for post request :(
Hi, I am using the jquery ajax setup for adding some additional global parameters. GET ajax request working fine but POST ajax request the additional global parameters is not sending. Is there any way to add global parameter for POST ajax request? Please advise. Thanks, Kumaresan
How can i know where i am redirecting
Hi How can i know where i am redirecting using jquery? Before page unloads i want to know on which aspx page am i redirecting to .
Code for text box precision . . before Dot 3 Digit and After Dot 2 digit . . it's working fine in Google Chrome But in IE 10. . How to solve tis???
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test7.aspx.vb" Inherits="test7" %> <!DOCTYPE html 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 id="Head1" runat="server"> <title></title> <script type="text/javascript" src="Scripts/jquery.min.js"></script> <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script> <script type="text/javascript">
I have problems with cookies
Hello everyone!!! I'm starting with jQuery and specially with cookies. As a test application I'm using a nested list with a collapsible effect created with jQuery. The effect is working fine and now I'm trying the next level which is save the state of the list between reloads. For this I'm using cookies (jquery.cookie.js) but there is something strange that I can't understand. The cookie is been saved in the browser but I can't get the value after reloading the page. This is how my code looks like:
Presenting kind of graph from DB
Hi all, So I have to present some information from DB. It looks something like this: So I have some objects with (x,y) and then they are sometimes conected to neighbors, by Blue, Red-Blue or Blue-Red line. My question is do you guys have some idea, or sugestions how I can present it. I would like to have object also clickable, so I want to use ajax for sure for that, but I can't find good solutions for main problem how to present them?
Selecting all options from a multiple select on form submit doesn't work
Hi, I'm trying the following JSFiddle: http://jsfiddle.net/a8qaC/1/ My problem is that the values of the second select: "#select2" doesn't get selected on the form submission. It only works well in Chrome 32, but not on Firefox 26 nor Internet Explorer 11 So you can reproduce it as follows: 1) Select all options form the first select (#select1) 2) Press the "add >>" button 3) Deselect all values from the (#select2) 4) Press the "submit form" button The desired behavior is that all options on #select2
$.ajax does not work in Windows8.1 WebView
hello dears: I am working on Windows8.1 WebView with $.ajax to get local file system. My project has xml, resx, csv, html etc resource file. xml or html is worked find in $.ajax but resx, csv file is error in $ajax. this.webView.Navigate(new Uri("ms-appx-web:///html/index.html", UriKind.RelativeOrAbsolute)); $.ajax({ url: 'Resources/re.resx', // => NG //url: 'Resources/re.csv', // => NG //url: 'Resources/re.xml', // => OK //url: 'Resources/re.html', // => OK
Validation - PO Box OR Address (multiple input controls)
Here's the code: if ((jQuery('#OwnersPoBox').val() == "") && (jQuery('#OwnersStreetNumber').val() == "ie. 301") && (jQuery('#OwnersStreetName').val() == "ie. Jefferson") && (jQuery('#OwnersStreetType') == "ie. Street or St")){ alert('Please enter the owner\'s po box or street address'); jQuery('#OwnersPoBox').focus(); return false; } if (jQuery('#OwnersPoBox').is(":disabled")){ Return = ValidateItem('OwnersStreetNumber', true, "Please enter the owner's street number.", null,
set a value to textbox
I'm trying to set value of texbox with name "Pay" to 0. But it doesn't work. What is wrong? $(document).ready(function(){ $("button").click(function () { $("input:text[name=Pay]").val(0); }); });
cannot access prev html tag in Jquery
hi i have code like this http://dpaste.com/1568849/ question is how can i access prev of td selector of value="fird0s" ? thanks :)
Instead of INPUT >> GET value
I need a little advice on how to modify this javascript code: HTML code <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <label for="kwd_search">Search:</label> <input type="text" id="kwd_search" value=""/> <table id="my-table" border="1" style="border-collapse:collapse"> <thead> <tr> <th>Name</th> <th>Sports</th> <th>Country</th> </tr> </thead> <tbody> <tr> <td>Sachin Tendulkar</td> <td>Cricket</td> <td>India</td> </tr> <tr> <td>Tiger Woods</td> <td>Golf</td> <td>USA</td>
set maxDate to specific date
Hi, I would like to ask how can I set the datepicker maxDate to a specific date. Itried the following: if (GetQueryStringValue('id') != "" || GetQueryStringValue('id') != null) { maxClosing = new Date(<?php echo date("Y", $max_closing_date); ?>, <?php echo date("m", $max_closing_date); ?>, <?php echo date("d", $max_closing_date); ?>); } else maxClosing = "+90D"; but although my #max_closing_date is 2014-04-19, I am getting the maxClosing when id is set as: 1970-01-01 like this: if (GetQueryStringValue('id')
disply raw xml, tags and all
OK, so I need to open up an XML file and copy the contents into a string and display as is, with the tags. What do you think can we do it? Crazy? Perhaps, but I just do what they ask. I thought I could trick the interpreter by putting quotation marks around the data, but I get "[object Object]" when I do that instead of [object Object]. Not that tricky I guess. I guess I will have to stick everything inside some <pre> tags eventually too. $('#display-xml').click(function(){ $.ajax({
what is the difference between .stop() method and "queue:false" property?
i am pretty confused with this that .stop() is used to stop the current animation.....Queue is used to allow callback functions to execute or not? why it is used prectically??
Passing parameters as string in ajax call
I have a javascript method which contains an ajax call: function MyFunction(urlTask, task) { ... ajax({ url: urlTask, data: task.Params, type: 'POST', dataType: 'json' }) ... } urlTask is the name of a method in the controller (asp.net mvc 4), it varies depending on some conditions. As a example, it can be Task1, Task2,...: [HttpPost] public ActionResult Task1(string Param1, string Param2) { } [HttpPost] public ActionResult Task2(string Param1) { } Each controller method has a different number of
forcing screen to update after jquery changes an element.
I have some jquery code that changes an element at intervals. It uses "setTimeout" to run a function every 1.5 seconds that changes the contents of a textarea. In this example, my code tries to fill the textarea with "one", then waits 1.5 seconds, then fills it with "two", then waits 1.5 seconds, the fills it with "three". But when I look at my screen, all I see is "three". I can understand why the screen would not refresh in the middle of a jquery function, but I'm using "setTimeout", so some
Redirection to another page
Environment : MVC with Jquery ajax call Requirement: my requirement is Navigating to another page In Ajax call on some condition (which redirects to another view) Able to navigate to another page with following code .but loader not showing .added loader explicitly still is not showing only while redirecting. -> $().redirect(urls, {param1:param1,param2:param2 },'POST'); please suggest me is there any other way to achieve this.
Question regarding a Tutorial from jQuery Missing Manual
This is with regard to the Quiz tutorial. The script goes like this, <script> var score=0; var questions = [ ['How many moons does Earth have?', 1], ['How many moons does Saturn have?',31], ['How many moons does Venus have?', 0] ]; function askQuestion(question) { var answer = prompt(question[0],''); if (answer == question[1]) { alert('Correct!'); score++; } else { alert('Sorry. The correct answer is ' + question[1]); } } for (var i=0; i<questions.length; i++)
% - rem into px
how can I calculate mixed values ? 100% -5rem and get the result in pixels thank you
load a fading div on resizing
I want to load a preloader on resizing the HTML <div id="preloader"></div> the CSS #preloader{ width:100vw; height:100vh; z-index:9999; background:@black; position:absolute; top:0; left:0; text-align:center; opacity:0; display:none; } When resizing and when the html total (viewport) width cross the size 1440px 1024px 768px I would like to set the opacity : 1 and display:block; for the #preloader with a 0.5second fading effect I cannot find a good way to do that function runPreloader()
closing xml file after data acquired
OK, I am back to this issue. I am doing a post and then once it's complete an ajax GET. The problem I am running into is the on the server side they are writing output to an XML file, which I then read. The first step they want to do is delete xml file, which apparently they can't do because Javascript seems to keep the file open. So how do I close the file so they can delete. Here the general code for my routine: $(document).ready(function(){ //post to plan.jsp var qString
Next Page