15,700 Topics

Member Avatar for
Member Avatar for trektrak

I'm totally new with ajax and js... and I know this is possible. I've created a php table page... I would like to see the page refresh everytime I insert new data to my sql database. I know I can do this using header refresh on the php page itself.. …

Member Avatar for pritaeas
0
63
Member Avatar for DriftingSteps

Hello there! I'll make this short and simple. I need help with the following - 1. Disable right-click in my webpage, 2. Disable "View Page Source" option. I've seen point no.1 implied in many websites, but haven't seen point no.2 anywhere. So can you help me with these? Thanks in …

Member Avatar for 098
0
2K
Member Avatar for Ctechnology24

guys please help me how can I print the contents of my div in mozilla because it runs properly in opera mini and google chrome, well actually it still prints but the only content is "undefined" instead of the real contents of the div this is my codes [CODE] <head> …

Member Avatar for Ctechnology24
0
167
Member Avatar for dineshswamy

i ve worked on this script for more than a week but couldnt find out whats wrong with this . please help me out [CODE] var c; function start() { window.setInterval("Requestvisits();",1000); } function Requestvisits() { var xmlHttpobject; if(window.XMLHttpRequest()) { c=new XMLHttpRequest(); } else if(window.ActiveXObject) { c=new window.ActiveXObject("Microsoft.XMLHTTP"); } if(c) { …

0
62
Member Avatar for toldav

I need help in troubleshoot my code for reason the if statement is not working. any help please Im new into Javascript/ [CODE] <!doctype html> <html> <head> <meta charset="utf-8"> <title>Grade Calculator</title> <style type="text/css"> body { font-family: Arial, sans-serif; text-align: center; } form { width: 300px; margin: 0 auto; text-align: right; …

Member Avatar for Troy III
0
532
Member Avatar for javedsai

Hello everyone, I've a links/menu in bottom of html page. For 1 link I've 4 sub menus. When I mousehover that, link then, it should open in upward direction. Kindly, show me how to achieve that. Thanks in advance... Regards, Javed Sai

Member Avatar for hericles
0
83
Member Avatar for pizzipie

I am trying to call a .php or .html file to display an input page for emails. The file ContactDisplay.php contains a <button> to onclick a call to the sendEmail() function which, in turn, sends data to the file ContactEmail.html. The data is retrieved using $_POST and used to populate …

Member Avatar for pritaeas
0
204
Member Avatar for dineshswamy

i tried almost a week to figure out how to insert a hyphen after successful date entry ,in my form validation, but couldnt find appropriate intrinsic event and logic. help me out.. eg: when the user enters 26 the script automatically inserts '-' since 26 is a valid date. Next,when …

Member Avatar for dineshswamy
0
105
Member Avatar for drimacus

Hi, this is probably a trivial question but I'm so new to this I would learn a lot from any help... Why does the content in global variable "str" disappear as soon as I unclick the alertbox? How can I keep it? I put the string in a <div> and …

Member Avatar for drimacus
0
347
Member Avatar for simplypixie

I am new to Ajax and have only been learning jQuery on and off for a few months so I apologise if this should be simple. I have followed a tutorial to get shopping cart functionality working using PHP, jQuery and Ajax and it is nearly there but I have …

Member Avatar for AleMonteiro
0
198
Member Avatar for anita_86

Hi all.I found this code on a forum to confirm that the user wants to delete the record from database and that the link has not pressed accidently.But it is not deleting the record even after pressing ok.This is may be because the id is not passed properly. Can anyone …

Member Avatar for anita_86
0
173
Member Avatar for thehunk

hello ! please any one help me how to pass my array as a parameter from extjs 3 to c# webserivce , so that i can save it in my database please help me Best wishes

0
95
Member Avatar for solomon_13000

The code below will add new form elements when ever I click the add button. However when you add more elements the combo box element goes out of alignment. Try it out. Now is there a way to fix this problem?. [U]multientry.js[/U] [CODE] function addValue(divname){ var newdiv = document.createElement('div'); newdiv.innerHTML …

Member Avatar for lordjohar
0
797
Member Avatar for vizz

[CODE] <div id="navcontainer"> <ul id="navlist"> <li><a href="#" id="current">Item one</a></li> <li><a href="#">Item two</a></li> <li><a href="#">Item three</a></li> <li><a href="#">Item four</a></li> <li><a href="#">Item five</a></li> </ul> </div> [/CODE] This is my code for menus. How to hide "Item two, three, four, five", If "Item one" is clicked (using jquery)?

Member Avatar for stbuchok
0
108
Member Avatar for divsok

[IMG]http://i.imgur.com/UfUjV.png[/IMG] there are more rows on the table and each row has a button.i need to the get first coloum value of each record by clicking the button..

Member Avatar for pritaeas
0
97
Member Avatar for davy_yg

Hi, I am looking a Javascript code that can fold my sidenavigation. [URL="http://ocklaw.com/new/about/"]http://ocklaw.com/new/about/[/URL] The first show would be: Vision History Client People The next : Vision History Client People Chairman Partners Director Advisors Senior Lawyers Junior Lawyers Secretariat Librarians How ? So when people select people then the next navigation …

Member Avatar for stultuske
0
71
Member Avatar for jayhall

Hi All I found this code online what need, expandable table we have to reserve two rows for each entity, one that will be master row and another that will show details. Details rows are toggled by clicking on master row. What I am doing is in my table second …

Member Avatar for AleMonteiro
0
2K
Member Avatar for veledrom

Hi, The code below always returns Fail although I send correct username and password. Can anyone spot what I do wrong? Thanks in advance [CODE]<?php $username = htmlspecialchars(trim($_POST['username'])); $password = htmlspecialchars(trim($_POST['password'])); if($username == 1 && $password == 1) { echo json_encode(array('result' => 'success', 'username' => 'myname'); } else { echo …

Member Avatar for AleMonteiro
0
141
Member Avatar for knitex

For my code below i use getElementsByTagName('p') to get the values of the paragraphs that the user enters. but for some reason it when i use textNum[0].value it returns undefined. i tested it with textNum.length and the length keeps increasing which means values are being added to the array. not …

Member Avatar for AleMonteiro
0
240
Member Avatar for torbatt
Member Avatar for pbracing33b

Hello I am trying to do a simple program. But the basics of this program must have buttons like a calculator. So I was just testing my array and for loop and I can't seem to get anything to show up whatsoever I've tried document.write, alert and so forth. and …

Member Avatar for Troy III
0
97
Member Avatar for zack654

I'm beginner with jquery, and I need to create slider of few images on home page. When I check some tutorials on line, all use jquery plugins, and every look quite different. I'm quite confused. So, I would like to see what plugin you use (if you use) when making …

Member Avatar for pritaeas
0
61
Member Avatar for shaan_046

0 down vote favorite share [g+] share [fb] share [tw] I have a class in which i have a method name method() returning a String in the form of JSON string. The output is :: [CODE] [{"ID":1,"Names":"Shantanu"},{"ID":2,"Names":"Mayur"},{"ID":3,"Names":"Rohit"},{"ID":4,"Names":"Jasdeep"},{"ID":5,"Names":"Rakesh"}] [/CODE] Now this in the form of data that i want to Populate …

0
131
Member Avatar for vn412

Hi, Im using the following script [CODE] var ajax1 = new Ajax_init(); ajax1.GetData('bindddl,ddlCity_01,SELECT cityid,cityname FROM city where countryid='+text.value+' order by cityname','ddlCity_01'); var ajax2 = new Ajax_init(); var ctyid; if(document.getElementById('ddlCity_01').value){ ctyid=document.getElementById('ddlCity_01').value;} else{ alert('szdfzxf'); ctyid=0; } ajax2.GetData('idols, where cityid='+document.getElementById('ddlCity_01').value+ ' and countryid='+document.getElementById('ddlCountry_01').value ,'divlist',p); } [/CODE] Here is the ajax code: function Ajax_init() …

0
71
Member Avatar for leo88

Hi, I wants to ask about how to call the javascript function/method in .aspx file from code behind(or server code)? for example: Javascript: [CODE] function initCard(userid) { //userid, balance, subsidy breakfast, subsidy lunch, subsidy dinner var iRet = winCtrl.initCard(userid, 0, 0, 0, 0); } [/CODE] code behind: [CODE] Dim sb …

Member Avatar for G_Waddell
0
427
Member Avatar for ArtphotoasiA

Hello everyone... I have a good issue here... I made a website in WP and I have now a conflict with an old plugin. That plugin is called wpdir (word press directory pro) and is useful for several reason but regretfully no one care about that code anymore. Here are …

Member Avatar for ArtphotoasiA
0
153
Member Avatar for Que336

Hi there I have been trying to experiment with Parsing XML using Javascript. For some reason nothing happens. I found this example on W3 schools. Any idea why it's not working? This is my HTML page which contains the Javascript [CODE]<html> <head> <script type="text/javascript"> if (window.XMLHttpRequest) {// code for IE7+, …

Member Avatar for Que336
0
250
Member Avatar for hervens

I'm currently working on an html5 web application. While my app is running, is there a way to get access to currently playing audio through my app? For instance, if youtube is playing, Is there a way that I could stream all audio information coming from anywhere in my computer, …

0
81
Member Avatar for theone48

I'm trying to write a selection tool but I'm kinda stuck. My idea is to have a list of items, and if the user selects one one from the list, it prompts the user to add information on the selection Say, <li> sunday monday tuesday ... </li> if tuesday is …

0
44
Member Avatar for Troy III

[I][COLOR="Green"]!below is the code snippet [/COLOR][/I] This is a multi-use property toggler. In the given example we are toggling a sub property of an element. e -is the property owner to be targeted; p - is the property name to be set; v - is the property value; henceforward changing …

Member Avatar for Airshow
0
246
Member Avatar for parimalnarayan

I don't know where exactly to post this, I hope this is the correct section. I have been working on making a forum. I want to introduce notification alerts for 1) new messages, 2) reply to their posts, for every user. But I don't have any idea about displaying the …

0
113
Member Avatar for himanshu.1691

i have a page for user registration where i a form with a image tag to it. i want the user to fill the form but as soon as he uploads the image i want the image uploaded to be displayed on the image tag. Then i want all these …

Member Avatar for himanshu.1691
0
628
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
223
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
322
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
167
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
104
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
258
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
218
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
300
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
186
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
184
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
90
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

The End.