15,694 Topics
![]() | |
pliz let me have an working example for it | |
Hi, I am new to JavaScript and I was wondering if it was possible to assign two click actions for one button. | |
Hi guys, I have use 1 javascript code for banner and anther one is just above the footer but 1 javascript code is running and another one is not running.Theefore I just want to know how to run 2 javascript code in 1 page? | |
$("#phone").blur(function () { alert('on blur'); }); form code: <form id="input_form" action=""> ... <td class="text_right">phone: </td> <td class="text_left"> <input id="phone" class="input" type="text" value="(123) 456-7890" name="phone" style="background-color: yellow" maxlength="15" size="15"> </td> | |
Although i can upload mp3 files locally (wampserver), meaning that the path its been storaged on the database and the actual file is been saved on the folder i have chosen when i upload my site on the internet i can't longer do that. Although the photos i try go … | |
Hey guys! this is my first time here. i was planning to learn JS to make some Games especially MMORPG Web based games. I wasn't planning to make MMORPG right away, ill start making some simple games. But i want to know if JS is okay for making some MMORPG … | |
Hi i'm showing data from json with angularjs if i write this <div class="boxhotel" > <p>rateChange: {{roomz.RateInfo}}</p> </div> i retrieve this {"@rateChange": "false", "@promo": "false", "@priceBreakdown": "true", "ChargeableRateInfo": { "@total": "343.9", "@surchargeTotal": "53.9", "@nightlyRateTotal": "290.0", "@maxNightlyRate": "145.0", "@currencyCode": "USD", "@commissionableUsdTotal": "290.0", "@averageRate": "145.0", "@averageBaseRate": "145.0", "NightlyRatesPerRoom": { "@size": "2", "NightlyRate": … | |
I am trying to download (into memory) an image as an object firstm, and display it as a background of body. here is what I have done: var url = "www.example.com/image/image.jpg"; var imageObject; $.ajax({ type: "GET", url: url, datatype:"image/jpg", success: function (data) { imageObject = data; $("body").css("background", imageObject); // not … | |
Hi, am trying to update google map markers without refreshing the map page. I used an ajax to refresh the php part of the code, hoping it will couse the markers to move,but no,lol. From what i found out online i need some kind of respond command for it to … | |
Hello, I have for example a <div id="main"></div> and inside this div tag I load html content from extrernal file using jquery with .load() method. I can see evething has loaded normaly inside this div tag, but can not access any html tag loaded from the external html via css … | |
hello. i want to use the draggable plugin. i have downloaded the custom bundle : [jquery downloads](http://jqueryui.com/download/) im trying: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Draggable - Constrain movement</title> <script type="text/javascript" src='js/jquery-1.11.0/external/jquery/jquery.js'></script> <script type="text/javascript" src='js/jquery-ui-1.11.0/jquery-ui.js'></script> <style> #draggable { width: 150px; height: 150px; padding: 0.5em; border: 1px solid … | |
Hi! So, as the name of this discussion says, I have some jquery code. And sometimes some parts of them don't work, sometimes they do work. The page is made for conjugating verbs, which is done with php, and this isn't a problem. Here is the code: $(document).ready(function(){ function conjugate() … | |
I have a simple form on a secure website which submits data using an AJAX process. The website's function is to track inventory and clients for a food pantry. Everything is working great...except for one MAJOR problem... We use a UPC barcode scanner to scan items while we take inventory … | |
Hello. I have the following existing function, used to load images in fancybox, but although the code works find in FF, in Chrome am getting an error (in the "firebug"-like tool), whereby under the "link.fancybox({..." code it shows "Uncaught TypeError: undefined is not a function". The error does not happen … | |
Hello guys, I want to put youtube video bar in my website... and i already found the way to do it. Using google ajax search api. Google already provide the wizard to generate the code. [URL="http://www.google.com/uds/solutions/wizards/videobar.html"]http://www.google.com/uds/solutions/wizards/videobar.html [/URL] The problem is, by default it shows only 4 videos for horizontal view. … | |
Can Someone help me to solved my problem. How to count total of value base on dropdown? for example <label for="gender">Gender</label> <select name="gender" id="dr" > <option value="" selected="selected">Select Your Gender</option> <option value="M">Male</option> <option value="F">Female</option> </select> Than i want to know how many record in the database contains Male/Female. This Record … | |
Hi all, I am creating an ecommerce site, and have some javascript getting data from dom elements and inserting them into my PHP Cart via AJAX. It all works fine, but then i came to think of possible security issues with my approach. Button inserting data into the cart with … | |
This question relates to another thread. I want to hide a div and keep a div hidden whether it's before or after the DOM loads. I can use hide() to hide the div, the div that is suppose to be hidden, will be hidden behind a div that is half … | |
Hello Friends, Pls I need your help. I am designing a website that has to do with customizing items and ordering for the items. Am example of this is http://www.moonpig.com/uk/Product/Customise/1/LL896 I know this has to do which jquery, ajax & javasctipt. I am a php developer. Pls which scripts do … | |
Hello I am doing maintenance on a web server, and have several js files present which I need to categorize. However, I am faced with the dilemma of identifying between clientside js files and severside ones. Is there a distinct way to identify between these files? | |
I created a page that will take a users input and then compare the input with a word. The idea is that the user has 6 chances to guess the word. If the user guesses the word or ran out of guesses the button clicked will change from Guess to … | |
Hello, I want to open and dialog box on onclick of image. for that , i had written below onclick code to call function and pass parameter to it. this $skills_id is unique. What I want next is, using this $skills_id, I want open dialog box which fetches and shows … ![]() | |
Hi, so i have an input text `<input type="text" name="numguest" id="number-of-guests">` and a button `Okay`. When a number say, 4 is entered into that text box and clicked okay, 4 of this text box `<input type="text" name="guest-name[]" placeholder="Guest Name" id="text-gname">` will appear. i tried: $("#okay").on("click", function(){ var num_of_guests = $("#number-of-guests").val(); … ![]() | |
Hello, I am trying to create a clickable button that pass value to the next page after the button being clicked. Yet, now what I have is a button that cannot bring me to the next page. study_progress_table.php <button type="button" onClick="parent.location='add_student_progtab.php?study_package_id="'.<?php echo $study_package_id; ?>."'">Add Study Progress</button><br><br> Please help ![]() | |
Hi guys, I change my code from Javascript to jQuery and I believe I have everything allright, but my jQuery is not showing the value. Can you help me with it? I am adding the important snippets but if you need all my code here is it [Click Here](http://liveweave.com/YoR5Vz). Thank … | |
I have a simple php file: <?php /** * email_validation_query: evq.php * This file is placed in the root directory and returns the owner's email address * in the jos_owners table along with the animal's name and the breeder who registers them. **/ $user_name = "user_name"; $password = "password"; $server … | |
I need a delete function, I have tried all sorts of things and in this instance I have 2 different functions does not do anything. I just left it here for developmental help. The most I am able to do is delete all rows, **and only want to delete rows … | |
I'm trying to learn JSON/JavaScript as I'd like to use it over PHP/SQL. I was going to do this with TEMPOJS because it seems like that might be the easiest way to start off? I'm getting hung up, however. I can make everything work if I include the JSON directly … ![]() | |
[CODE]<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link rel="stylesheet" href="css/jquery.datepick.css" type="text/css" /> <script type="text/javascript" src="js/jquery-1.4.2.js"></script> <script type="text/javascript" src="js/jquery.datepick.js"></script> <script type = "text/javascript"> function updateSelected(dates) { $('#selectedMonth').val(dates.length ? dates[0].getMonth() + 1 : ' '); $('#selectedDay').val(dates.length ? dates[0].getDate() : ' '); … | |
Hi, I am facing some canvas related problem. I have create canvas at run time to draw a simple horizantal line. And also set tooltip to that canvas. code will execute well and when arrow move on line, display which is also fine. but the problem is around also getting … |
The End.