15,127 Topics
| |
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 … | |
helloo i have created a login/register box but javascript doesnt work. I dont see an error and it used to work but i have reinstall the local server and now any of my javascripts dont work. Any help? <script type="text/javascript"> $(document).ready(function() { $(".tab").click(function() { var X=$(this).attr('id'); if(X=='signup') { $("#login").removeClass('select'); $("#signup").addClass('select'); … | |
I am writing a web site and I am using javascript to read/write to a file. There are multiple sites that say to do this: var file = new File(txtFile); however, it doesn't work. I fired up chrome's developer tools and went to the javascript console, and it gave me … | |
Hai Everyone.. Could someone please tell me that is there any jquery plugin to upload an image with editing functionality like resize,drag position as in shown Facebook profile picture upload? | |
Hello, I have created a dropdown lists using javascript dynamically. But i am not able to get the selected option values of that dropdown lists. could anyone please help. | |
Hi Anyone can pls help me with a unique random number generator of length 3, prefixed with values from DDMMYYYY (e.g. for today's date 25062015001)? | |
Hello i have problem on mobile device to prevent on click to another image to hide first. This is for hover effect and work fine : $("div.mitarbeiterfoto") .mouseenter(function() { var id = $(this).attr("id"); var idInfo = $(this).attr("id").substr(5); ($(this).find('img').css('display', 'none')); ($('#' + id + '_o').css('display', 'block')); showInfo(idInfo); }) .mouseleave(function() { var … | |
Hello I have two array that I want to use like String.Format Array 1: { "{0}", "-", "{1}" } Array 2: { "1", "2" } I want to use values from Array 2 to replace all {0}, {1} in Array 1 etc. so what I have tried: var i = … | |
Hi, I Show list of standards in one select box, Based on that selection, I will display the related section in another select box, after that I will nter remaining fields normally, then it will save into DB. My question, How to edit that second Select box values in ajax … | |
Greeting to all! Thank in advanced for help I wanted to retrieve a value in text area using javascript and store it into s variable so that i can pass the variable as parameter for AJAX purpose. This might be a stupid question.... and i'm sorry about that~ besides, thank … | |
i have a login form and another form..i want to check user is logged in or not while user in on home page and he/she want to jump on another page. | |
| I have a problem with unchecking checkbox with dynamic id. Both of them are checked but I need to set if one is clicked that other one is disabled then this is example: <input id="value_Ture_do_30_15_0" class="rnr-checkbox" name="value_Ture_do_30_15[]" value="1" checked="checked" type="checkbox"> <input id="value_Ture_preko_30_15_0" class="rnr-checkbox" name="value_Ture_preko_30_15[]" value="1" checked="checked" type="checkbox"> I have tried … |
Hello everybody I'am trying to execute JavaScript in GeckoWebBrowser my code is : Hide Copy Code GeckoWebBrowser1.Navigate("javascript:void(" + TextBox2.Text.Replace("""", """""") + ")")` my JavaScript is : Hide Copy Code var r = confirm("Press a button"); if (r == true) { x = "You pressed OK!"; } else { x = … | |
Hi folks ! Since last year i started building website. Up til now i always used html css and javascript/jquery. Now i want to get into adobe photoshop. My question : Can i upload my existing html file into adobe photoshop for editing or is there any other way to … | |
I wasn’t sure which forum to put this under so I just selected web development. I have run into an issue that ironically I have solved before but thanks to my wonderful drop-box the changes I made were not saved and when I changed them again on another computer, the … | |
Hope this is the correct forum to place this question. How would i run a php script in a javascript file? I have a php script named connection.php, it accesses a mysql database and runs queries. I would like to run the php script from a javascript file named initializeMap.js. … | |
Hi, few days ago i downloaded a website so that i customize and run it in my localhost, buy when i run it in my localhost i get this javascript window which says, the page at localhost says the following image failed to load, probably a broken link: http://localhost/menuData/images/over.png but … | |
Canvas won't draw a [line](https://jsfiddle.net/WildWind/axboxp2e/) ? | |
Hi, I have a problem with some JavaScript code, i have three fields in my form scoreActuel, addedScore and NewScore, i used the onChange function because I want that every time the fields addedScore is updated , the field NewScore is updated as the sum of the values of the … | |
Is it possible to run two(2) funcions with the same id? `<a href="#icon" class='icon' id='icon' > ` | |
I am trying to pass a value from a hidden input using ajax but console says whatever im doing is not a function `Uncaught TypeError: "#name".val is not a function page.php:35` which is this line : `var name = ("#name").val();` html: <input type='hidden' value='$newname' id='name'> ajax: var name = ("#name").val(); … | |
I am having no luck with this code but for some reason i can get this element to work but not the other one. here is my code. <td><a onclick="javascript:approve_account_function(<?php echo $row['id'];?>, <?php echo $rownumber;?>)" class="btn btn-success" name="yes_account" id="yes_account">Approve</a></td> <td><a onclick="javascript:decline_account_function(<?php echo $row['id'];?>, <?php echo $rownumber;?>)" class="btn btn-danger" name="no_account" id="no_account">Decline</a></td> … | |
Hi. Im trying to update a page with a form using AJAX but it isn't working. Nothing happens. I have a table and one of the columns has an anchor tag like this`<td><a href='#' value='$name' class='request' onclick='request(".$name.")'>$status</a></td>` so when the user clicks on Request a form opens up via ajax. … |
The End.