15,688 Topics
![]() | |
Sir, I have following codes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Numeric Textbox</title> <style type="text/css"> body { margin-top:220px; } #bc { background-color:#FFE4B5; } #ft { font-family: "verdana"; font-size:14; font-weight: bolder; color: green; } .bt { width:100px; … | |
Dear Sir, I have following codes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <title>Numeric Textbox</title> <SCRIPT LANGUAGE="JAVASCRIPT"> //------------------------------------------------------------------ function isNumberKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57 || charCode == 110)) { alert("Enter … | |
My button uses the following. It produces a random post within my blog whenever a user clicks it. <div id="myLuckyPost" class="random button"></div><script type="text/javascript"> function showLucky(root){ var feed = root.feed; var entries = feed.entry || []; var entry = feed.entry[0]; for (var j = 0; j < entry.link.length; ++j){if (entry.link[j].rel == … | |
This is my php & html code for show numbers in words. this works correctly `<input type="text" value="<?php include("number_words.php"); echo convert_number_to_words(123); ?>" size="70" readonly="readonly" />` this is my final total amount html code `<input type="text" name="totalamount" id="totalamount" size="8" readonly="readonly" />`. here i am doing convert numbers into words. but i … | |
Hi guys, I am trying to create a fast and smooth flickering / blinking logo. With my limited knowledge on javascript i've come up with the following script that basically does the job, but the 'animation' isn't smooth at all. Does anyone have an idea how I could go at … | |
Script i am using shown below.Date picker is showing on screen but it is applying to all input fields.( WHat should i change to get only for a particular input field. I tried with id rangeA but still it is applying to all fields. <script type="text/javascript"> $(function() { $('input').daterangepicker({arrows:true}); }); … | |
Good day folks, I am working on a project now and I'm wondering how to detect if a div is visible in the screen while the user is scrolling on the page. Hope someone will be able to shed some light. Thanks :D | |
Hi, I am looking for when you select a value from dropdown and submit. The results has to show in the same page with percentage. It is like voting. Thanks in advance. | |
This is my javascript code. here i am trying to multiple two values in each row (totally 7 rows) and then doing addition operation at end of the table. its worked but problem is NaN. when i entered all fields then only it shows the final value. if user entered … | |
Hi, I like to scroll all the scroll bar at the time.first scroll is working fine.but other scroll not working anyone have idea <html> <title></title> <head> <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <script> $(document).ready(function(){ $('.box').each(function(){ $(this).bind('scroll',function(){ var leftPos = $('.box').scrollLeft(); var leftPos = $('.box').scrollLeft(leftPos); }); }); }); </script> <style> .box{ width:500px; overflow-x:scroll; } .clear … | |
Hello, We uploaded some videos in the back to YouTube and they reproduce perfectly on our webpage. The thing is, with mobile becoming more and more intresting, playing them in a HTML5 video player would be more universal. How can we make this change? | |
i want to keep the previous contents of a particular textbox in a array and want to match the current input of the textbox with the elements in the array.Please help me out with the code.I want to keep the code in a .js file. | |
There is a form that i want to submit and url rewrite at the same time. I can change url by adding onsubmit="rewrite_form(event);" option in form : function rewrite_form(e) { var form = document.forms[0]; // .getElementById("form1"); window.location = '/search/' + form.f.value + '_' + form.t.value + '.htm/' + form.amt_from.value; if … ![]() | |
I am still learning Laravel 4 so I have a resourceful controller tasks and I am having a problem implementing my jquery. My delete works fine without jquery so i think that I am not providing the proper url I have found one problem I don't know how to pass … | |
i have a form that posts to a database and i was testing code that prevents any javascript or othe client-side scripting from being submitted to the database.All javascript code i submitted ended up in the database, i figure this is bad.How can i prevent this? | |
<script type="text/javascript"> $(document).ready(function () { var e = document.getElementById("ddlCategory"); var value = e.options[e.selectedIndex].text; if(value == "Others") { $('#Other').show(); } else { $('#Other').hide(); } }); </script> <table> <tr> <td><asp:Label runat="server" Text="Category: " /></td> <td><asp:DropDownList ID="ddlCategory" runat="server" ClientIDMode="Static" /></td> </tr> <tr id="Other" style="display:none"> <td><asp:Label runat="server" Text="Others: " /></td> <td><asp:TextBox ID="txtOthers" runat="server" /></td> … | |
This code snippet can be used to get the current time in 12 hour format using JS | |
I am trying to let my website create a cookie on the user's system so that it will know if the user is logged in or out. But it doesnt seem to work. Here is my javascript cookie code: function createCookies() { // Creates a cookie on the user's computer … | |
Hello. I'm trying to print out some information using JSon. However, I'm not getting the numbers I expect. Can anyone see what I'm doing wrong? Let me tell you about my code. Price is supposed to hold the price for a product. Variable out is my output. The function getBill … | |
I'm trying to get this script to work. I want an image displayed based on the current holidays throughout the year. Any help would be great. Thanks a ton! <script type="text/javascript"> function H(){ var s=new Date(); var isHalloween= (s.getMonth()==9 && s.getDate()>26) || (s.getMonth()==10 && s.getDate()<3); var isXmas= (s.getMonth()==9 && s.getDate()>26) … | |
I am making a website that will keep online records of the users gaming data. But my problem comes in here: The user can create an account, if they dont have one, or login to an existing one. <a href="login.aspx">Login</a> <a href="" id="loginstate"></a> Now my link tag with the id "loginstate" … | |
I've been looking for the answer to this problem for a while. I'm using nyroModal in gallery to show php pages. but the popup doesn't resize the first time it loads. I use this link: <a href="galtest.php" class="nyroModal cursor" rel="gal"><img src="img/gallery/thumbs/OldMiami.jpg" class="Tips1" title="In the Backyard Of The Old Miami (Detroit, … | |
Hello I have got a small piece of code from thefacebook developers page. It does not work inIE, it sends back an error, I have cleared the caching and loggin into facebook and nothing. Here is the code: <a href="#" id="fb-btn-2013" onclick=" window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=1028,height=768'); return false;"><img src="../../Content/Images/facebook-button.png" alt="Share … | |
I have been trying to use [code=javascript]<script language="javascript" type="text/javascript"> function check_length() { var x = document.getElementById("tbDescription").value; alert(x); } </script>[/code] to get the value of this text box [code=asp]<asp:TextBox ID="tbDescription" runat="server" Height="78px" TextMode="MultiLine" MaxLength="10" Width="363px" ValidationGroup="quickQuote" onkeypress="check_length()" CausesValidation="true"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="tbDescription" Display="none" ErrorMessage="You must give a description of your shipment." … | |
0 down vote favorite In new google map there are several travel mode like driving, bicycling, walking and transit but they also added fly mode also. I can choose fly mode in new google map but i cant get fly travel mode in google maps v3 api. I want to … | |
I am completely new to JavaScript. I do not understand it, even after reading numerous sources of information about it. I am stumpt on a question and really need help. Everything JavaScript is so unfamiliar. Here is what I need: Write a custom error handling JavaScriptâ„¢ function called processErrors that … ![]() | |
Hello everyone, I am trying to write a website that allows a user to input a stock symbol(ie. APPL, GOOG) and get basic information back. I have a html/js file and how it looks is fine but I am running into trouble when doing an HTTP GET using the XMLHttpRequest. … ![]() | |
I am interested in using the webgl-globe tool which I have downloaded [Here](https://github.com/dataarts/webgl-globe). I have basic experience using CSS and HTML but I am unsure of which files from the repository are necessary for using the platform and how they should be included into one webpage as each folder seems … ![]() | |
Hi all Im having a struggle here. I know very basic Jquery, and are reading up on on the YouTube API, but I cant seem to find how to do this. I downloaded a script for a custom YouTube player, and everything is good. I modified it to my needs. … ![]() | |
Hi guys, i need help with modal popup, i have already create modal pop up, but what i want is that tha modal page to show up just for 5 seconds than automatically to be removed. Heres My code... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD … |
The End.