15,694 Topics

Member Avatar for
Member Avatar for naju
Member Avatar for lk123456

Hi, I am new to JavaScript and I was wondering if it was possible to assign two click actions for one button.

Member Avatar for JorgeM
0
115
Member Avatar for riyaz123

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?

Member Avatar for JorgeM
-1
91
Member Avatar for Lonestar Jack

$("#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>

Member Avatar for JorgeM
0
169
Member Avatar for SimonIoa

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 …

Member Avatar for Airshow
0
127
Member Avatar for CodyAcer

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 …

Member Avatar for CodyAcer
0
133
Member Avatar for surferbloggy

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": …

0
106
Member Avatar for 9tontruck

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 …

Member Avatar for JorgeM
0
219
Member Avatar for decongh

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 …

0
167
Member Avatar for romanromeo89

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 …

Member Avatar for romanromeo89
0
127
Member Avatar for nadiam

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 …

Member Avatar for nadiam
0
252
Member Avatar for ivan3510

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() …

Member Avatar for Airshow
0
975
Member Avatar for Daniel_29

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 …

Member Avatar for Daniel_29
0
171
Member Avatar for Ritesh_4

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 …

Member Avatar for Ritesh_4
0
737
Member Avatar for joemalaya

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. …

Member Avatar for Mostarac
0
551
Member Avatar for Eppy Azmi

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 …

Member Avatar for pritaeas
0
337
Member Avatar for klemme

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 …

Member Avatar for pritaeas
0
250
Member Avatar for Siberian

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 …

Member Avatar for Siberian
0
604
Member Avatar for adsegzy

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 …

Member Avatar for JorgeM
0
284
Member Avatar for Ritesh_4

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?

Member Avatar for Airshow
0
156
Member Avatar for gcardonav

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 …

Member Avatar for gcardonav
0
130
Member Avatar for Priti_P

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 …

Member Avatar for dany4ev_1
0
346
Member Avatar for nadiam

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(); …

Member Avatar for dany4ev_1
0
376
Member Avatar for davy_yg

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

Member Avatar for dany4ev_1
0
107
Member Avatar for gcardonav

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 …

Member Avatar for gcardonav
0
189
Member Avatar for davecoventry

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 …

Member Avatar for davecoventry
0
258
Member Avatar for RAPIDFIRE0311

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 …

Member Avatar for LesF
0
302
Member Avatar for kyleo92

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 …

Member Avatar for diafol
0
184
Member Avatar for ekseks

[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() : ' '); …

Member Avatar for neerajgarg
0
335
Member Avatar for shrikantsmane

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 …

Member Avatar for shrikantsmane
0
955

The End.