15,120 Topics
| |
I am newbie in ajax.i want to send a normal ajax request when i will click the search button.i write some code the search onclick function.. $(document).ready(function() { $("#Search").click(function() { $.ajax({ "dataType": 'json', "type": "POST", "url": "../test/loginform_details.do", "data": { username: $('#username').val().toString(), password: $('#password').val().toString(), }, "success": function(data) { fnCallback(data); } }); … | |
Im working with WordPress right now and this plugin - http://codecanyon.net/item/ultimate-player-with-youtube-vimeo-ads-wp-plugin/7316469 - I also have the jQuery version too. I have 20 categories on a page. Its tabs then when you click the tabs a new video player loads with a seperate video. The only issue is I have 20 … | |
When I access call.php the variable name 'json' is not accessible to param.js as below: init.js $("document").ready(function(){ var data = { "action": "init" }; data = $(this).serialize() + "&" + $.param(data); var json; $.ajax({ type: "POST", dataType: "json", url: "response.php", //Relative or absolute path to response.php file data: data, success: … | |
Hello, I want to ask, what going on for this. I try to implement form, user key in the username, it will trigger the function to check the username is existing or not. I tried to figure out the problem, but dont know what's going on... My Js file, jQuery(document).ready(function() … | |
in onblur i called two different events; but its not working. First event only working. How to do? either in onBlur() or onFocus() Example: onblur="a();b();" | |
| For my angular controller I have: app.controller('AdminCtrl', function ($scope, $http) { $scope.data = { Name: '', Password: '' }, $scope.login = function (data) { $http({ method: 'POST', url: '/login/postlogin', data: JSON.stringify({ data: $scope.data }), contentType: "application/json", dataType: "json" }).success(function (data) { alert('success!'); }).error(function (error) { alert(error.message); }) } }); For … |
I have a form that need user verifaction from ldap before being submitted. I have an ajax code for the same, to get the value of the field onchange and query ldap so that it returns the name and email id. My code is as below : <input type="text" name="Admin_name" … | |
I have this function: function (Blobs) { console.log(JSON.stringify(Blobs)); // Make the progress bar here Blobs.forEach(function(Blob) { console.log(Blob); $.post(window.location.href + '/add', Blob); // Increment the progress bar by the correct amount, once above request has completed }); } (This function is passed as an argument, hence no name) I want a … | |
Hi. Below is the code which parse data from mysql into json, but for the name column i want to have <a href="http://example.com">column name</a> instead of jst the column 'name'. is it possible in any ways. <?php $link = mysql_pconnect("localhost", "user", "pass") or die("Could not connect"); mysql_select_db("userdb") or die("Could not … | |
I have this codes in a php file (init_js.php): <script> <?php $idx = $_GET['id']; $APP_WEB_PATH = APP_WEB_PATH; ?> var idx = '<?=$idx?>'; var APP_WEB_PATH = '<?=$APP_WEB_PATH?>'; </script> Then I import this file to a php page (branch.php). When I view source I can see var idx = '7'; var APP_WEB_PATH … | |
The following codes can be found in my javascript file (code.js): function addBranch(path, id){ //Click "Cancel" button return to Restaurant Manager Page $("input[name=btCancel]").click(function(){ window.location.href = path + '/branch_manager.php?id=' + id }); } The following codes can be found in my php file (test.php): <script src="<?php echo APP_WEB_PATH; ?>/js/jquery-1.11.1.min.js" type="text/javascript"></script> <script … | |
I am getting an error for the line of code included in a js file. $(document).ready(function(){ //Click "Cancel" button return to Restaurant Manager Page $("input[name=btCancel]").click(function(){ window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>"; }); }); The uncaught exception points to window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>"; Is it because I cannot mix JavaScript with … | |
hi im new to javascript and im attempting it for the first time. im using framework 4.5, asp.net, c#. i need help in with the javascript. i need calculate quotation and display the information. heres my code so far model.cs public class QuotationView { [Display(Name = "Pickup Address")] [Required(ErrorMessage = … | |
I am using javascript for a responsive collapsable nav. I have used this script in the past successfully, but now it's not working. The url is [http://www.piscesprep.com/index](http://www.piscesprep.com/index). index.php is calling the responsive-nav.js and this is the code on my inc_nav.php: <a href="#nav" class="menu" id="toggle"></a> <div role="navigation"> <div id="nav" class="nav-collapse"> <?php … | |
hi i want to add an instant quote calculator on the about page and i want to know the steps on how to do it. im using asp.net mvc5 | |
Hi al you wonderful daniweb peoplez :) I am currently on a mission to write some cool javascript / jquery / ajax controls and now i realised that if I call the control multiple times it seems to lose scope. I realise that this is a small design flaw, and … | |
I want to resize my caroseul on click of a button. Below is the code that needs to be changed. Width: 100% needs to be changed to width 50%. I am using JQuery maybe there's a way using that but nothing works so far other than changing the CSS itself … | |
I'm having trouble applying the javascript necessary to close one set of sub-menus when another set is opened. The tutorial site provided some demo code that works, but I can't get it to work without displaying all the various buttons to activate the other available skins. Up top is the … | |
Hello, I have no such information or you can say less information about the ajax can anyone help me out the thing is that i want to pass dir id in the get url but that get id will be selected by the user though from a drop down i … | |
Hi, I'm a total hack with jquery and need some help. I've an html select list and a text area. The select has about 25 options in it. When a specific option is selected, I'd like to populate the text area with some text. Example: HTML: <label for="comments">Technician Comments: </label><textarea … | |
what i need is how to save the file part to mongodb using mongoose and also the image id, and also get each image in a link such as localhost//3000/users/photos/234 as u can see im a newbie here thanks /*Define dependencies.*/ var express=require("express"); var multer = require('multer'); var mongoose= require … | |
I am using the ShieldUI jQuery chart plugin and have the following issue. I went through the basics of binding the control to static data and all works well. However, I would like to load live or dynamic data to the chart. | |
hi i used multer to create an upload script now i would like to display the photos uploaded by eacch user on diff pages with diff adrees i.e exprome.come/photos/234 and also every photo would have its comment. any ideas? i think every comment should be saved with the photo id … | |
My code is working for the Agents, Labs and Investigator's grid, but when I add the last grid 'Vaccines', the grid does not display. According to firebug there is a "TypeError:W.localdata is undefined" It seems to be a problem with my orders3 data, but I can't figure out what. Can … | |
How to change the format of: --> var enterDate = '2016-01-15'; // to 2016-01-15T00:00:00.0000000+08:00 with JS syntax? // I try these and none of these works out: 1) enterDate.format("yyyy-mm-ddT00:00:00.0000000+08:00"); console.log(enterDate); 2) enterDate.toLocaleFormat("%B %e, %Y %M:%S"); Thanks in advance. | |
I want to style only a span using javascript; I'm using: variable name.className=""; Everythihing in the Div is whatever color I set for the style, instead of strictly the span ? | |
$(window).resize(function() { var y = screen.width; if ( y >= 767){ $(window).scroll(function(){ var x = $(this).scrollTop(), transY = (x * 0.3), scale = 1 + (x * 0.00003), transform = 'translateY('+transY+'px) scale('+scale+') translate3d(0,0,0)'; $('#banner .col-sm-6 img').css({ opacity: 1 - (x * 0.0008), WebkitTransform: transform, MozTransform: transform, msTransform: transform, transform: transform … | |
Hello Is it possible to use SQL queries in a JS file? Example I have the following code, and would like for each input[type='text'] encountered, to save its value to a sql table in a column: jQuery("input[type='text']").blur(function(){ var id = jQuery(this).attr('id'); var inputVal = jQuery(this).val(); }); | |
I've inherited some code utilising the bootstrap framework. I'm currently seeing some odd behaviour where no matter what date was last picked, the date picker always seems to open showing the month of July. Is there any particular places in the code I should be looking to see if anything … | |
hello friends i have just a short question. i want to make i calculator in avascript to change the value a html field in real time i have my script before the html body tag close function calculTarif() { var prix = parseFloat($("#prix").val()); var poid = parseFloat($("#poid").val()); var total; if … |
The End.