15,120 Topics
| |
[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)? | |
[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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
I need some good open source slider and photo gallery | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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+, … | |
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, … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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() … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.