15,121 Topics
| |
Hi all, How do I use data from json in a javascript function? I have something like this! $('#monday').click(function(){ test(); }); function test() { $.getJSON('singleday.php?dld='+ id+'&chkdag=' + 1, function(json) {sday=json}); OtherFunction(); } Now I want to transfer the json date into an other function. something like this function OtherFunction() { … | |
Dear Experts, Thanks for your time. My application developed in 2003 asp.net and C#, there are some important java scripts these scripts are working in IE but when i tried in Firefox, Google Chrom, it does not work. [B]WHERE I AM WRONG IN CODING ?[/B] [B]Important[/B] When i try to … | |
Hi Guys, I have a problem here. I can't manage to get the slidesshow display on my aspx. After a few tried. take a look at tis link. [url]http://www.serie3.info/s3slider/[/url] I m trying out this link and many people say it works. But still I failed to display.. mycode: [CODE]<div id="slider1"> … | |
Hi there, quick question. I am reading a book about javascript and the author doesn't seem to like quotes ("") at all, but he loves angled brackets (<<>>). what really strikes me is that it looks like he uses them instead of quotes. FOr example I would say: [ICODE]alert("Hello WOrld!");[/ICODE] … | |
Hi I have developed an website with drupal 7.10. I want this should be in bengali language. everything is ok but problem with numerical system. for example: date,time,points etc. Now I have decided to add java code at the bottom of the theme. so that after loading the page javascript … | |
I want to make a rating system that uses ajax for the rating. i use php and call all of the images, then i want to use ajax to post all the votes to a php script. However, i dont know how to get the elements. I want to be … | |
So i though how i can get the information that i want but i dont know how exactly to do that. I will have two functions one is rating(id) and one users(id), where the id is the [COLOR="Red"]tt1842127[/COLOR] of one imdb movie web page for example this [url]http://www.imdb.com/title/[/url][COLOR="Red"]tt1842127[/COLOR]/ I searched … | |
I'm learning JavaScript, and want to know how I can run / test code on windows? I also want to download the library. Can anyone assist me? Thanks | |
hi, i want to load data after loading related php page. i used ajax and even jquery. jquery was not sure this is jquery code [CODE]$.post('<?php bloginfo('template_url'); ?>/bk_page/schedule_check.php', "", function(data) { $("#fieldsetConfirm").html(data);}) [/CODE] but this and when i was using ajax it changes data, but unfortunately, the pay now button … | |
may peace on you ! Guys i am stuck in a query i want to get the value of row when a image in that row is clicked.so the purpose of update by getting that row id.i got the code below but it get me the row# and col# not … | |
hi , this is my code. i want to return data using a php page after processing a query within it. [CODE]$.post('check_booked.php', { room:roomv, srtdate:sdatev, eddate:sdatev}, function(data){ alert( data); });[/CODE] before completing php page i test using online code which returned nothing.. i don't know what wrong, as i have … | |
I have 2 arrays and I would like to compare the 2 arrays. If an element in array 1 is NOT in array 2 then I would like to display that element. In this case, I should only display the letter "c" but it doesn't work and I don't know … | |
My website's performance has decreased. My website needs 13 secs to download. So [COLOR="Green"]i want to combine js scripts to one script.[/COLOR] But i don't know how to do it. Please tell me very easy ways to combine js scripts to one. | |
I don't know javascript very well... I have a form with the name register_group and a radio button for pc_parade_float with yes/no options. I want to display a different comment depending on if they clicked yes or no in the radio button. The code I have is as follows: [CODE]<script … | |
<form name="content" id="content" action="../cgi-bin/upload.cgi?upload_id=" method="POST" enctype="multipart/form-data" onsubmit="setValueforHidden(this)" target="xupload"> when the user presses the submit button(after form valdiation was over ) i have called the below api. function StartUpload(f1) { var UID = Math.round ( 10000 * Math.random () ) + '0' + Math.round ( 10000 * Math.random() ); f1.action = … | |
I attempted to add new row but it does not seem too work. Did I do something wrong? [B][U]Pricing.html[/U][/B] [CODE] <HTML> <HEAD> <TITLE></TITLE> <SCRIPT SRC="jquery-1.7.1.js" LANGUAGE="text/javascript"></SCRIPT> <SCRIPT SRC="addRow.js" LANGUAGE="text/javascript"></SCRIPT> </HEAD> <BODY> <TABLE> <THEAD> <TR> <TH bgcolor="#33CC00">Select</TH> <TH bgcolor="#33CC00">Quantity</TH> <TH bgcolor="#33CC00">Inner Packaging</TH> <TH bgcolor="#33CC00">Quantity</TH> <TH bgcolor="#33CC00">Outer Packaging</TH> <TH bgcolor="#33CC00">Price</TH> <TH bgcolor="#33CC00">Minimum … | |
Hey Is it possible to run a Java Servlet that loads a .html page that has a bunch of JS scripts in it? I know how to load a normal .html page (I believe it is correct) but not sure if it works if it has Javascript as well. Thanks. | |
[CODE]function ValidChkBox(source, args) { //var pnl = "tabContainer_tabPanel" + Pageno + "_MultipleChoice_" + ElementID; var chkChoiceList = document.getElementById('<%= chkChoiceList.ClientID %>'); var chkChoice = chkChoiceList.getElementsByTagName('input'); for (var i = 0; i < chkChoice.length; i++) { if (chkChoice[i].checked) { args.IsValid = true; return; } } args.IsValid = false; }[/CODE] [QUOTE]The aboue coding … | |
Hello all. I'm trying to figure out the javascript so that when I hit the total up order button, it will fill in the subtotal, PST, GST and give me my total in the box above the total up order button. Can some help me out? Thanks in advance. [CODE]<!DOCTYPE … | |
I have this function that seems not to be working. If I click on the send order button and the first name field is not filled, it should say first name not entered. But it's not. I put comment in the javascript where I'm tring to fix. Thanks in advance. … | |
i have a sortable list. when the user rearranges an item, i should know what was switched with what. i dont want an array. i just want which element switches with which. each list item already has a unique ID. | |
I am looking to recreate a form function like this website: [URL="http://www.plus.approvedtelephonesystems.co.uk/UK/questionnaire7/uk-companies.aspx?gclid=CLSH-eTeg60CFQUhtAodyhSNTg"]http://www.plus.approvedtelephonesystems.co.uk/UK/questionnaire7/uk-companies.aspx?gclid=CLSH-eTeg60CFQUhtAodyhSNTg[/URL] What happens when you click the answer to the question the form scrolls to the next function. I would love to know how this is done. I am not a javascript developer but having looked into this the … | |
Hi all. Im new to JS and would like to note the following case: Ive run the following test numerous times ie: [CODE]<html> <body> <script type="text/javascript"> var s = 0, o = 0; for (a=0;a<=10;a++) { var start = new Date().getTime(); var res = 0; for (b=0;b<=100000000;b++) { res = … | |
Can anyone please help me do this with javascript [URL="http://uss.feri.uni-mb.si/images/Vaje/vaja10/slika08.png"]Screenshote[/URL]? It must be written like this. User inputs rgb color for first column (green,red,blue) and inputs number of columns. Then this must be in linear fading and every column has to have popup window with that rgb color. If anyone … | |
I'm having trouble making the following code work. I'm trying to change text in "columnleft" with the showMess function, when I hover on the paragraph with the class "title." The really frustrating part is that this code has worked elsewhere for me. What am I missing? [code] <!DOCTYPE html PUBLIC … | |
| Hi, I'm using this script [URL="http://www.daniweb.com/web-development/php/threads/68355"]http://www.daniweb.com/web-development/php/threads/68355[/URL] and i would like to know if it's possible to have the number like 1 000 000 instead 1000000? i found a function like this [CODE]function lisibilite_nombre(nbr) { var nombre = ''+nbr; var retour = ''; var count=0; for(var i=nombre.length-1 ; i>=0 ; i--) … |
In a nutshell, my company is using several different programs that use a string of data regarding personal appearance information for different TV/movie character. This data need to be read in a very strict manner. (The following example is exactly how we need to input the information... including all brackets … | |
Can JavaScript capture menu or page navigation selections and use this to pull matching data from a remote server and insert it inside a div tag on the next page? I’m working with a 3rd-party catalog system that only allows adding one user descriptive header div block (i.e. the same … | |
Hi, I don't understand why this validation check isn't work, Everything is OK, but .... [code] <html> <head> <script type="text/javascript"> function valForm() { var x = document.forms["ActorForm"]["actorfname"].value; if (x == null || x == "") { alert("First name must be filled out"); return false; } } </script> <meta http-equiv="Content-Type" content="text/html; … | |
Hey, I have been playing around with the history.length property in JavaScript and have come across a bit of a problem I don't understand. On my localhost machine I have two pages - Page A and Page B that both have one line of script being: [CODE]document.write("Number of URLs in … |
The End.