15,694 Topics
![]() | |
Hi All I need help in making a Drop down search box I have dropdown HTML code and also Search Box HTML code, could you please help me in making both as one I made sample code but not sure why its not working, please do the need full [CODE]<HTML><HEAD><SCRIPT … | |
I have this script and i need some help [CODE]<script type='text/javascript'> numcount=0; t=setTimeout("test()",30000); document.getElementById("incrementBtn").disabled=false; timer_on = 1; function increasecounter() { timer_on = 1; numcount++; document.getElementById('countdiv').innerHTML=numcount; t=setTimeout("test()",30000); } function test() { if(timer_on) { timer_on=0; document.getElementById("incrementBtn").disabled="true"; document.getElementById("score").innerHTML = document.getElementById("countdiv").innerHTML; } } function reset() { timer_on = 0; numcount=0; document.getElementById("incrementBtn").disabled=false; document.getElementById("countdiv").innerHTML = 0; … | |
I am writing a JavaScript program that you click the mouse on a button and it shows how many times you have pressed the button. here is the JavaScript for it [CODE]<script language="javascript"> var numcount=0; function increasecounter(){ numcount++; document.getElementById('countdiv').innerHTML=numcount; } </script>[/CODE] and here is the html: [CODE]<div id='countdiv'>0</div><br/> <input type=submit … | |
Hello Daniweb, I'm currently working on a pretty straight-forward AJAX application. In this application, I get some XML, and then parse it. An example of what I'm working with is as such: [code] <?xml version="1.0"?> <postRoot xml:lang="EN"> <post type="comment" date="January 1, 1970"> <user>athlon32</user> <content>Hello World</content> </post> </postRoot> [/code] Now, I've … | |
Hi all. is it possible to alter a form after an ajax call? what i want to do is this: i have a form with some textfields and a select box with 2 options. what i want to do is when a person chooses one option, i will unset some … | |
I have a website which dynamically gets images and then displays it but i have sub image which has to update the main image, but this main image is a lightbox which uses href link so i am wondering if someone can show me how to update this href using … | |
![]() | Could somebody please help me to add a function to this script in which the image to test if the server is up has a timeout, so it shows an error message to the user instead of just loading forever. The current function of the code is: Attempt to load … |
Hi pals , I am really stuck in parsing a JSON string and take it's values. I got the json string as {"user":{"id":"1","firstname":"Freelogin","created":"0000-00-00 00:00:00","lastname":"Administrator","email":"fred@websecurify.com", "usergroup_id":"1","status":"1","ip_enable":"N","priv":"0","expire":""},"data":{ "1":{"5":{"last_update":"2010-12-13 16:16:16","status":"0"},"3":{"last_update":"2010-12-13 16:41:48","status":"1"}},"2":{"6":{"last_update":"2010-12-13 16:41:48","status":"1"}}},"server_array":[{"id":"1","name":"anes.yyy.net"},{ "id":"2","name":"neseema.xxx.net"}],"service_array":[{"id":"5","name":"POP3"}, {"id":"6","name":"Cpanel"},{"id":"3","name":"SMTP"}],"sort_by":"servername", "sort_order":"ASC","pagelinks":"","totrows":"2","offset":"0","limitvalue":"10", "rows_monitor":2,"current":"monitor","uri":false} Friends How to Parse this and take the Results for further processing in javascript.... I am waiting … | |
Inside client control I generate a button, with script to run. I want to call object's Print() method when this button is clicked, the result value must be passed to Print() as well. How can I do that? This is my object: [CODE] Type.registerNamespace("CustomControls"); CustomControls.FirstObj = function(element) { CustomControls.FirstObj.initializeBase(this, [element]); … | |
Hi want to add facebook like chat script in my web site. Can anybody help me. Actually I want to know how it work. | |
see the piece of code [CODE] <tr> <td> Start Date of Conference</td> <td> <asp:TextBox ID="txt_startDays" runat="server" onchange="checkdate(this);" ></asp:TextBox> <a href="javascript:calendar_window=window.open('calendar.aspx?form1=form1.txt_startDays','calendar_window','width=554,height=488');calendar_window.focus()"> <img alt="" src="images/calendar.png" /> </a> </td> </tr>[/CODE] [CODE]<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="calendar.aspx.vb" Inherits="gfln1.calendar_aspx" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> <script runat="server"> … | |
I would like to have two dropdown list search for my posting in my blog. Example: First dropdown list : Select Cuisine Second dropdown list : Select Location Then Search button. I can't figure out the javescripts. Please help. Thank you so much! | |
I had this in another board but after takin a second look I think this is where it belongs, in any case. ------- How can I preceed the ticker with ND News: using hex color #FF0000 ? Everything I have tried, as far as placing the text goes doesnt work, … | |
I'm trying to display an image in a canvas element. After computing the required width and height of the canvas, I'm calling the drawImage() method on the canvas context. Here is the javascript code: (c is the id of the canvas, ctx is the context) [CODE] $("#c").width(aw); $("#c").height(ah); ctx = … | |
Hi Everyone, I have a very simple js function to toggle div visibility, here's the working version: [CODE] function Toggle(obj) { var state = document.getElementById(obj); if (state.style.display === 'block') { state.style.display = 'none'; } else { state.style.display = 'block'; } } [/CODE] Now, as I have multiple divs, I want … | |
Hi all, I'm relatively new to JS and I have an issue which I can't seem to get my head around... I have a perl script which iterates through an array and populates a table with its values. Within the created table I have a link in each row which … | |
Hello! I have a table with cells, and each cell contains the following code: [CODE] <td align='center' bgcolor='#C45651' width='80' height='60' nowrap='yes' id='$' onClick='callPicture(this);'><p dir='ltr'><img border='0' src='X.jpg' width='80' height='60'></td> [/CODE] The javascript function [CODE]function callPicture(ID){[/CODE] gets the cell's ID and uses it. (This table is being written cell be cell dynamically … | |
Hello, I want to give alert on click of button my codes is [CODE] Protected Sub BTN_SAVE_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BTN_SAVE.Click Response.Write("<script>alert('hello')</script>") End Sub [/CODE] But after clicking it is giving alert message. why? Alok Shrivastava | |
In my form there are two anchor tags [B]Add[/B] and [B]Clear[/B] having same class called button. What I am trying is submit the form data to another page(post) using ajax & clear is for clearing the data using javascript.The problem is that as both buttons having the class the same … | |
Hey guys - I'm working on a new website template. It works great, except for a little bug with the Contact panel. It should slide into the screen from the right side into the center, but fails to do so. I believe it is because of the CSS property "display" … | |
Hi, My script works perfectly but when I put in in the wordpress post the below variable is changed from [CODE] var initialData="\{\"0name\":\"Secret\",\"0brandStatus\": \"checked\",\"1name\":\"OldSpice\",\"1brandStatus\": \"checked\",\"2name\":\"Degree\",\"2brandStatus\": \"checked\",\"3name\":\"Dove\",\"3brandStatus\": \"checked\",\"4name\":\"Axe\",\"4brandStatus\": \"checked\",\"5name\":\"Maxim\",\"5brandStatus\": \"checked\",\"6name\":\"Nivea\",\"6brandStatus\": \"checked\",\}" ; [/CODE] [B]to[/B] [CODE] var initialData="{"0name":"Secret","0brandStatus": "checked","1name":"OldSpice","1brandStatus": "checked","2name":"Degree","2brandStatus": "checked","3name":"Dove","3brandStatus": "checked","4name":"Axe","4brandStatus": "checked","5name":"Maxim","5brandStatus": "checked","6name":"Nivea","6brandStatus": "checked",}"; [/CODE] [B]How do I make sure the … | |
Recently I came across this website [URL="http://www.willebois.nl/photo/"]http://www.willebois.nl/photo/[/URL].I would like to know if we can acheive the same effect using something other than javascript.I am a novice programmer an really dont understand the logic behind the website. please help | |
The above code will get the user information from page "getuser.php". The output of getuser.php has some numericals populated in 5 rows. The 6th row i.e., the table footer has the sum of all numericals populated in the above 5 rows. The numericals in the first 5 rows are populated … | |
Hello, I'm looking to learn Javascript. My knowledge of it is currently very limited, so I would like to learn it properly.. from scratch. Could anyone recommend me Javascript resources? ![]() | |
![]() | I was just wondering if it was possible to upload an image using XHR rather than a hidden iframe? If so, do all modern browsers support it? |
Hi I'm tryng to make two boxes on my page always the same hight, no matter how much text is inside one of them. So the boxes will always be the hight of the box with the most text. you can see what I meen here: [url]http://wearecrunch.dk/test-globeaid/[/url] I would wan't … | |
How to align three divs to the right part of the page. We can do this [CODE] div1 { padding-left: (xyz) px; float:left; } div1 { float:left; } div1 { float:left; } [/CODE] but my question is what if these three divs are not of constant width (e.g if they … | |
There are lots of websites , which are using ajax. But, there are some who just made ajax most popular thing nowadays . Here are some examples. Google Twitter Facebook Linkedin Orkut Myspace Google maps Wordpress Knol | |
Hello, thanks for reading my thread. I'm still new to web development so I appreciate your help in advance. Here is the issue I am having: In my project, I have a index.php page with a sidebar menu and a div id called “content”.The user can select different menu items … | |
Hello. What I need is very simple in concept, although I am the worst in the world (not really) at JavaScript. I basically want to make a displayed image change, no special effects, every set amount of seconds. I also want to have a forward and backward image button to … |
The End.