15,121 Topics

Member Avatar for
Member Avatar for VenusCrystal

Hi, I have ajax call in my script which calls php file. I need to extract its response in two parts to add it on my page to different components each. For example, say I have these two echo statements in my php: echo "<option> add to list1 </option>"; echo …

Member Avatar for diafol
0
2K
Member Avatar for efth

I have some functions that I frequently use in a file called customLib.js. When I want to use one of the functions I copy its definition to the script where I want to use it. Could I upload it somewhere, like dropbox, and use a dropbox url as the src …

Member Avatar for gon1387
0
119
Member Avatar for bangla

Hi, I am trying to disable the 'start' button after i click on 'start' button. Its not working. Please help. <html> <SCRIPT language="JavaScript"> <!--hide function newtext() { document.myform.mytext.disabled = true; setTimeout("moretext()",9000); } function moretext() { document.myform.one.disabled = true; } //--> </SCRIPT> </HEAD> <BODY> <FORM name="myform" method="post" action="sessionS1.php"> <table width='600' cellpadding='5' …

Member Avatar for Bachu
0
115
Member Avatar for bangla

Hi, I click 'start' button, then start button is disabled as expected. Once I click start button, i want to see the values of f1 and f2 on first row , values of f3 and f1 on the second row. First row is working just fine. but the second row …

Member Avatar for Bachu
0
469
Member Avatar for rouse

I have two immediate problems with the code I am working with. I have an area when I hover over it makes visible prompts to social media sites. But I don’t know how to keep the prompts visible while you choose the site that you want to visit. Secondly as …

Member Avatar for rouse
0
157
Member Avatar for bangla

Hi, Would you please help me how to store a value from java script into php variable? <SCRIPT language="JavaScript"> var q1=Math.floor(Math.random()*11) <? php $q1v = q1 ; ?> </SCRIPT> echo $q1v

Member Avatar for bangla
0
81
Member Avatar for programmer12

Hi, I am trying to create a way where Javascript can do a loop between two Unix Timestamps to print out the dates and some html. I have created a way for this method to work in PHP. However, I need this same method to work in Javascript. Working PHP: …

Member Avatar for programmer12
0
616
Member Avatar for techyworld

Hi am using Ocanvas Javascript Library, i need to blur an image. how can i do this?

Member Avatar for Taywin
0
73
Member Avatar for jonsan32

I have a basketball league with over 100 teams, and I'm trying to organize the look and feel of the schedule, standings, and gym locations for the coaches, players, and parents to view on my website. I'm wondering how I could apply something like the code I posetd below, but …

Member Avatar for diafol
0
213
Member Avatar for divyakrishnan

Hi.. I have a group of checkboxes and I want to apply a style to checked checkbox and remove the style of all other boxes.Here only one checkbox should be cheked at a time. The code I used as follows <script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".item").click(function(e) { //$(".item").each( …

Member Avatar for diafol
0
1K
Member Avatar for jrosh

$('#div').load('/controller/_partialview); <div id="div">"partial view"</div> does not work (does not load the partial view) in IE9 It works perfrectly on firefox and chrome What is the solution? thanks in advance

Member Avatar for stbuchok
0
264
Member Avatar for chandub

Hello everyone happy new year to all. i want get length of only fractional part of number in java script function. example if number is 4.321 then length of fractional part is 3. please help me. thank you

Member Avatar for peter_budo
0
123
Member Avatar for jeepdude

Hello all, newbie here with a, hopfully, easy question. I'm creating a simple site for personal use for family photos and things and I am having troable with my onclick only working once. I've searched the web bu found no answer that has solved my issue. I've stripped my code …

Member Avatar for jeepdude
0
135
Member Avatar for rohit.khurana

The variables in javascript are represented internally in which form..i mean wether ASCII or unicode or any other format..?? And what is the difference between unicode and UTF8 if there is any..??

Member Avatar for rohit.khurana
0
136
Member Avatar for azgold472

Hi there I have the following code. <script language="text/javascript"> banner1 = new Banner('banner1'); <?php $con = mysql_connect("localhost:3306","User","Pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("barndata", $con); $today = date("Y-m-d"); $result = mysql_query("SELECT * FROM event where Date >= '$today' ORDER BY Date ASC LIMIT 0, 7") ; …

Member Avatar for Taywin
0
271
Member Avatar for rubai

This is a sample code i have <script type="text/javascript"><!-- google_ad_client = "ca-pub-1234567778889"; /* Firest add */ google_ad_slot = "4634587934"; google_ad_width = 574; google_ad_height = 50; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> When I paste this code in ad section it is being changed as given below <!-- google_ad_client = "ca-pub-1234567778889"; …

Member Avatar for rubai
0
147
Member Avatar for marComm

Hi, I am having trouble getting a video player to work using Javascript. I copied this from a page a developer at my company did, but he is away right now so I can't ask him for help. Here is the HTML: <div class="feature" style="width:485px; height:273px"> <div class="video-placeholder"> <img src="../../assets/images/figures/tro-video-placeholder.jpg" …

Member Avatar for Taywin
0
218
Member Avatar for dd2308

Dear All, I have one php based application now i want to make interactive application of the same . i started work on flex for php . but now the problem is menu . in current application i have javascript file for menu with few php code i want add …

Member Avatar for AleMonteiro
0
228
Member Avatar for venkyb47

If I enter same date for startdate and enddate fields(ex: startdate is 2012/12/29 and enddate is also 2012/12/29) then the following if condition executes and return false in javascript. var strtdate = document.getElementById("x_START_DATE").value; //getting task startdate var enddate = document.getElementById("x_END_DATE").value; //getting task enddate var task_StartDate = new Date(strtdate); var task_EndDate …

Member Avatar for venkyb47
0
236
Member Avatar for Nathaniel10

I have a script in which I would like new code to appear based on the response to a question. I am using 'onChange' to trigger the event. The difficulties I am having are that: 1) The format of the form changes after the event. I would like the new …

Member Avatar for Nathaniel10
0
126
Member Avatar for varma51

<!DOCTYPE HTML> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> <!---<script src="sisyphus.min.js"></script>---> <script type="text/javascript" src="https://raw.github.com/simsalabim/sisyphus/master/sisyphus.min.js"></script> <script> $(document).ready(function(){ $('#formElem').sisyphus(); }); </script> <script> $('#formElem').submit(function() { localStorage.clear(); }); </script> <script> function my() { var x= document.getElementById("q1").value; if( x!='NULL') { document.getElementById('d1').style.background='green'; } } function my2() { var y= document.getElementById("q2").value; if( y!='NULL') { document.getElementById('d2').style.background='green'; } } </script> …

Member Avatar for Taywin
0
256
Member Avatar for GraficRegret

I found a tutorial on how to build a php events calendar and this tutorial uses a mixture of php, Ajax and Javascript to form the calendar, everything works properly and displays well, up to the point of actually pulling up and displaying the events details which are pulled from …

0
98
Member Avatar for daniel36

Please tell me the best way to learn ajax.I want to do crud oprations in database using ajax wihout refreshing the page. thank you in advance.

Member Avatar for daniel36
0
154
Member Avatar for rem2

Hi there I'm working on bresenham ellipse drawing and i have few problems <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>Rasteryzacja Elipsy</title> <link rel="stylesheet" href="app.css" type="text/css" /> <script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script> <script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script src="raphael.js"></script> <script src="svgfix-0.2.js"></script> <script> function toImg(){ var svg = $("#svg_drawing").html(); svg=svgfix(svg); …

Member Avatar for rem2
0
237
Member Avatar for b.shafabakhsh

Hi guys I got a code from a website header menue from a website,It's a combination of JS, and CSS. Right now I have the following code: <script> $("#menu-images").Menu({ dataSource: [ { text: "Dashboard", imageUrl: "images/home.png", }, { text: "Catalog", imageUrl: "images/AdminCatalog.gif", items: [ { text: "View Products"}, { text: …

Member Avatar for radhakrishna.p
0
91
Member Avatar for pooran.c

i have a xhtml page which has has login box . onload of the page, a scripts is called which hides the box , and on pressing login link one more scripts displays box (login box is in div tags). now the problem is when user enters the wrong login …

Member Avatar for lambing
0
219
Member Avatar for Eyeteeorg

As part of studying how to use switch, I wrote this .js script that's supposed to obtain user input, evaluate whether the user input a number, a string or mixed output, and then return the appropriate output. The prompt() command works fine but the alert() commands produce empty output. I'm …

Member Avatar for Eyeteeorg
0
218
Member Avatar for Kullercode

Just started learning JavaScript can someone please tell me what is wrong with this code <!DOCTYPE html> <html> <body> <h1>Password Requirement</h1> <p id="demo">Please enter your password</p> <input id="myInput" type="text" > <script> function myFunction() var a=document.getElementById("demo") var b=document.getElementById("myInput").value var c=document.getElementById("myBtn") if (b=="26a8f9e"(b)) { alert("Correct") } else { alert("Incorrect") } </script> <button …

Member Avatar for amrita111
0
302
Member Avatar for newbiecoder

Hi , I have table created by Json : function show(json) { var content = '<tbody>'; var counter; for(counter = 0; counter < json.length; counter++) { content += '<tr><td>' + json[counter]['id'] + '</td>' + '<td>' + json[counter]['time'] + '<td>' + json[counter]['fullname'] + '</td>' + '<td>' + json[counter]['message'] +'</td>' +'<td>' + …

Member Avatar for radhakrishna.p
0
1K
Member Avatar for varma51

hii this my code.the problem is i'm changing the background color for an header using on click function in javascript.but wen i did page refreshing the default background color is appearing.i want to dislay the changed background color of that header wen once on click function is done. please help …

Member Avatar for diafol
0
271

The End.