15,698 Topics

Member Avatar for
Member Avatar for Fibinacci85

Hi Guys, Sorry its been a while since iv posted been busy. ok so im working on this website That I`m trying to code in plain HTML or atleast try and get as far as i can using plain HTML. so i`ve created the main page where i can navigate …

Member Avatar for Fibinacci85
0
222
Member Avatar for MichaelCJ10

I want to create a code that will allow me to calculate bonuses based on the 10 salarys. i need if statements for this, i need to then assign the new value to my other array i have set up called total, and then i need to display that as …

Member Avatar for zeroliken
0
320
Member Avatar for akoprowski

Hi all, I just wanted to let you gals&guys know about Opa (opalang.org), a new programming language for web development. I think Opa is really cool. It takes care of both server- and client-side programming in one language, where all the communication between the server and clients is fully automated …

0
166
Member Avatar for Steven_B

Hello potential problem solvers! I want to apologize ahead of time if this is a repeat of a similar question that I did not find, but here's my issue. I have a form I recently have been asked to try to make work seamlessly(no page refreshes), so of course I'm …

0
103
Member Avatar for webblar

I'm trying to get it so table cells within a row that are clicked on changes the background colour. HTML code: [CODE]<table border="1" cellpadding="10"> <tbody> <tr> <td>Hello World</td> <td>Hello World 2</td> </tr> <tr> <td>Hello World</td> <td>Hello World 2</td> </tr> <tr> <td>Hello World</td> <td>Hello World 2</td> </tr> </tbody> </table>[/CODE] Script code: …

Member Avatar for stbuchok
0
2K
Member Avatar for sagar2dumbre

AJAX has retrieved value(using some DB operation)and inserted in text box.while retrieving that values on onClick event of button System.out.println shows null value.i want to retrieve value of "emp" input tag jsp file code:- [CODE] function checksubmit1() { document.w1allot.prepare.value=1; document.w1allot.submit(); } function showState(area_value) { if(document.getElementById("ddlFlat").value!="-1" || document.getElementById("emp").value!="") { xmlHttp=GetXmlHttpObject() xmlHttp1=GetXmlHttpObject1() …

0
190
Member Avatar for Surfsup

I have 2 links ('black' & 'white'). I wish for the user to click on one of these links in order to addClass and removeClass to the body and for that change of body class to persist throughout as the user browses other pages of the website (or indeed on …

Member Avatar for Surfsup
0
1K
Member Avatar for philspotter

CALLER [code] function showContent(s,i){ // loading //loading_img(1); //s = s.toString(); // i undefined if(i==undefined){ i=""; } if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else{// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){ //alert('s'+s); document.getElementById('s'+s).innerHTML=xmlhttp.responseText; if(s==0||s==1||s==4||s==7||s==8||s==9){ var v="js"+s; if(document.getElementById(v)){ eval(document.getElementById(v).innerHTML); // THIS IS …

Member Avatar for philspotter
0
256
Member Avatar for Pravinrasal

pass dynamic values in json data in java script means when i am changing combo box i want to store values from combo box to json in key -value pair and finally also want length of JSON anyone please help me ...... Here is my code [CODE] <script type="text/javascript"> var …

Member Avatar for AleMonteiro
0
664
Member Avatar for vn412

Hi, I m populating 2 select boxes country & city dynamically using ajax. All is working fine in mozilla &all but not in IE. but when i change country acc. to it city select box doesn't get populated in IE. [CODE] <td width="60%" align="right">Country : <?=PopulateSelect('country1',"SELECT * FROM tblname order …

Member Avatar for vn412
0
217
Member Avatar for daitken

OK! I gave it away in the title. . What I have is a java script that is the floating top menu for the site. Instead of putting all that code on each page I want to have it on one page and just use a little code to import …

Member Avatar for daitken
0
291
Member Avatar for khanrock

I am currently having a html code as: <form> <input type="text" name="price1" size="14" value="Rs.900" readonly="readonly"/> <input type="text" name="price2" size="14" value="Rs.600" readonly="readonly"/> <input type="text" name="price3" size="14" value="Rs.500" readonly="readonly"/> </form> <form name="qty"> <input type="text" name="quant1" id="id1" size="14" value="0"/> <input type="text" name="quant2" id="id2" size="14" value="0" /> <input type="text" name="quant3" id="id3" size="14" value="0" /> …

Member Avatar for partha.asp
0
185
Member Avatar for lena1990
0
46
Member Avatar for cartergarth

I did something like this: [CODE]$('#test').append("<option id='ddm'>added dropdown</option>");[/CODE] it shows its html in the browser but I can't see it when I view source, is this normal? Thanks.

Member Avatar for pritaeas
0
183
Member Avatar for Cupidvogel

Well, the following code is giving me unexpected result. [code] a = setTimeout(function() { alert('fuck'); },9000); b = setTimeout(function() { console.log(a); },3000); [/code] Here I expect that after 3 seconds, the then-value of [b]a[/b] will be printed ([b]a[/b] should be changing its value right from page-load). However, on running it, …

Member Avatar for Airshow
0
89
Member Avatar for ayushsocial

Hello guys and gals I have created a banner for my client. It's a image banner not flash, with common html coding Eg <a href="http://www.mysite.com"><img src="http://www.mysite.com/banners/2-12/160x600_5.jpg" width=160 height=600 border=1 ALT="Click to Visit"></a> Now my client gave me an URL, which is a tracking code of some affiliate network. I need …

Member Avatar for ayushsocial
0
195
Member Avatar for trickist17

[CODE] /*the ø stands for document.getElementById*/ function conwidth(){ var a=document.getElementsByClassName('dropdown'); var e=[]; for(i=0;i<=a.length;i++){ if(a[i].innerHTML.length>28){ /*Safari Error (only if I bypass the setwid(j,k)command): TypeError: 'undefined' is not an object (evaluating 'a[i].innerHTML')*/ e.push(a[i].innerHTML); var j=ø(a[i].parentNode.id).parentNode.id; var k=200+8*(a[i].innerHTML.length-28); setwid(j,k); } } } function setwid(b,c){ var dr=document.getElementsByClassName('dropdown');var st=document.getElementsByClassName('strich');var a=function(a){return ø(a.parentNode.id).parentNode.id;}; /*Safari Error: TypeError: 'undefined' …

Member Avatar for trickist17
0
204
Member Avatar for chandub

hai everybody am using following code to preview the image before uploading it. but am unable to display the image please help me. [code=html]<SCRIPT type="text/javascript"> function preview(what){ document.getElementById("previewField").src=what.value; } </SCRIPT> <INPUT type="file" id="picField" onchange="preview(this)"> <IMG id="previewField" alt="Preview">[/code] thank you.

Member Avatar for Troy III
0
97
Member Avatar for Cupidvogel

Hi, if I run something like this to popup an alert 2 seconds after page-load, the alert pops up instantly: [code] <html> <head> <script type="text/javascript"> setTimeout(alert('Was it worth the wait?'), 5000); </script> </head> <body> <p>Hi!</p> </body> </html> [/code] whereas if I double-quote the alert function, it is functioning as usual. …

Member Avatar for stbuchok
0
3K
Member Avatar for edu_3dw4rd

Hi everyone, My name is Edward and I have question about AJAX, JSON, and google geocode. I have an assignment to create a webpage that has following text fields: name, street address, zip code, city, and state. The goal of this assignment is that when I fill the zip code-text …

0
129
Member Avatar for h2so4_2003

I used the method for action=edit to pass the value in hidden way to required page. function editRecord(val) { document.getElementById("action")=val; document.actionEdit.submit(); } <table> <tr> <td><a href='abc.php?cno=<?php echo $data[$i]["no"]; ?>' onclick='return editRecord("edit")' > Number </a> </td> </tr> </table> <form name="actionEdit" id="actionEdit" action="./abc.php?page=xyz" method="post"> <input type="hidden" name="action" id="action" /> </form> It doesn't …

Member Avatar for pritaeas
0
96
Member Avatar for dips255

I need a script to generate a popup when page loads with background disabled. Please help

Member Avatar for zeeshan88
0
3K
Member Avatar for Waldema

[CODE]<?php require_once('auth.php'); define('DB_HOST', 'xxx'); define('DB_USER', 'xxx'); define('DB_PASSWORD', 'xxx'); define('DB_DATABASE', 'xxx'); $connection = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if(!$connection) { die('Connection error: ' . mysql_error()); } $selectdb= mysql_select_db(DB_DATABASE); if(!$selectdb) { die('Unable to select database: ' . mysql_error()); } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>xxx</title> <link rel="stylesheet" href="xxx.css"> <head> </head> <body> <div …

Member Avatar for lps
0
142
Member Avatar for dschuett

I am trying to archive a database entry using .post, but I am getting this error: "Uncaught SyntaxError: Unexpected token (" I am defintely still in the learning phase of jQuery, so any help is appreciated! [CODE] //Archive Table Row function archiveEntry(id){ function(){ if (confirm("Archive Fill #"+id+"?")) { $.post('/elevator/scripts/php-inc/archive.php', {id: …

Member Avatar for dschuett
0
104
Member Avatar for Surfsup

I have a simple script (below) that on click (to the element with an id of #addClass) adds a class (.switcher) to the body tag. The script uses jquery. I would like to know if it's possible to modify this script so that when the user moves on to the …

Member Avatar for Surfsup
0
340
Member Avatar for piotrekw

Hi, I would do result loop where the only exists title attribute and how to make the result of the title attribute? This code does not work: [CODE]<html> <head> <script type="text/javascript"> function ppp() { var i=0; for(i=0;i<9;i++) { var idm='a' + i; var AttributeA=document.getElementById(idm).getAttributeNode("title"); if (AttributeA) { document.write("number: " + …

Member Avatar for piotrekw
0
271
Member Avatar for westerdaled

Hi I wanted to add some some date comparison functions to some xslt. I thought since I have a custom myjs.js library loaded with a DoDebug function that simply returns a boolean True I could use the following but I get an "Unknown XSLT function Error". Is there a way …

0
54
Member Avatar for cartergarth

What is the naming convention for jquery? [url]http://net.tutsplus.com/articles/news/learn-how-to-create-a-jquery-plugin/[/url] says [CODE][B]funcName/jQuery.js[/B] [/CODE] while... [url]http://www.ok-cool.com/posts/read/19-jquery-for-programmers-part-1/[/url] says [CODE][B]jQuery.funcName.js[/B][/CODE] Thanks.

Member Avatar for pritaeas
0
91
Member Avatar for Bubbleboy

I have a set of PDF files on our website that the user needs to log in in order to view. The only problem is once they log in and get the URL for them, they can email it to their friends or anyone and they can be viewed by …

Member Avatar for lps
0
106
Member Avatar for leo88

Hi, I wants to ask how to pending the coding in code behind before the javascript function is finished execute? for example: [CODE] ScriptManager.RegisterStartupScript(Me, Me.GetType(), Guid.NewGuid().ToString(), "initCard('" & 28 & "');" & Page.ClientScript.GetPostBackEventReference(Me, ""), True) Me.Response.Redirect("~/MasterData/StaffMaintain.aspx", False) [/CODE] From the coding above, I call a javascript function of "initcard()",before redirect …

0
75

The End.