15,120 Topics
| |
I have an object: [CODE] function cat(){ this.timesSaid = 0 this.sayMeow = function(){ setTimeout(this.meow, 1000) } this.meow = function(){ this.timesSaid++; alert("Meow!") } } [/CODE] However, I keep getting this.timesSaid as undefined. I assume it has to do with me calling it via setTimeout. How do i work around this problem? | |
Hi I cann't get count the selected list box items using javascript so you please help me. if you know means please send to me Advance thanks | |
Hi, i'm trying to achieve the exact same effect as the 4 bottom tabs of this page : [url]http://uk.virginmoney.com/virgin/[/url] Most Jquery I have seen 'pushes' the content above or below it up or down the page as it reveals the hidden content, the above example reveals the content over the … | |
I have a column in my gridview that loads images from a database. Right now, I have the image in the column and when you have your mouse over the image, a div with a larger image pops up next to it. What I want to do is have an … | |
I'm creating a page that calculates a number depending on what value is inputted into a text field. I need to create some javascript that updates this new calculated value and outputs it next to the input field. Anytime the user changes the number, it recalculates the value. My calculation … | |
Hello All, I am Writing a code that adds a row of cell(with inputs in them) to the table. But I want the user to complete each cell before adding a new row. I was attempting you use a for statement to go through each of the cells to check … | |
Hello All, I have a simple question How do i get a variable from one function into another function. I am new to javascript. Here is my code[CODE] function timestart(that) { var x = new Date(); that.value = x; } function timeend(that) { var y = new Date() that.value = … | |
Hello everybody, I have some trouble with the google maps api. I want to add markers from a xml file to my map but it seems that the function is not parsing my xml file and I am clueless. Any ideas here is my code: [code] <!DOCTYPE html> <html> <head> … | |
Hi, I want to implement the layout, which have been implemented by a developer on myspace. You can have a look at the panel by visiting this link -> [URL="http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=158486"]Myspace[/URL] I want to implement it in jquery and one more thing, the panel should load after the page has been … | |
hi, i have one database employer, where i m gone found datas, so i want one script in javascript and php, when i clic in name of employer list then show me all information, like number, photo... that belongs to folowing employer. please help me. i uprociate any help.:'( | |
Hi All, I have a problem in one coding part that was " I want to display one prompt box. When i click on the particular prompt box then it prompts for your name. When you given a name for example Mother, it must display a message like "Greeting mother" … | |
hello i have this function to check all the checkboxes in the form. function msgSCheck(){ chk = document.msgFList.msgCList; if(document.msgFList.msgCheckCtrl.checked==true){ for (i = 0; i < chk.length; i++) chk[i].checked = true ; }else{ for (i = 0; i < chk.length; i++) chk[i].checked = false ; } } and input checkboxes like … | |
Hello, I am trying to insert an html document into a modal window based on the results of a database query using plone/tal and jquery. What I need is for the "href records/rpc*_url" to be a link to the html document of the same name as the query result. i.e. … | |
I am new to Daniweb, but I have browsed the forum here for a while and it has often solved problems of mine, so now that I encountered a pickle which I cannot seem to solve in a satisfactory way using only googling, I'm asking for some hands on help: … | |
h, i have this for call the hs.expand using a link: [code=html]<a onclick="return hs.htmlExpand(this, { contentId: 'highslide-html2', objectType: 'iframe', objectWidth: 400, objectHeight: 400} )" class="highslide"href="link"><call </a>[/code] that work fine, but now i want call the same function using a function like this: [code=JavaScript]hs.htmlExpand(null, { contentId: 'highslide-html2', objectType: 'iframe', objectWidth: 400, … | |
hi, i need validate dinamic table javascript before i insert data do db, i m new here. please help me. here is code: <!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> </script> <script type="text/javascript"> /*<![CDATA[*/ function addRow() { var … | |
Hello All, This is my first post on here. I am new to javascript and I have a problem. how can i 1. Have a button that adds a new row of cells to a table 2. In these cells there are input boxes/check boxes/dropdown list/ radioboxes and textarea. 3. … | |
hii frnds i hav creates a txt file in server ,i want to open it in notepad of client machine !!can we?? i think it can be passible wit an ative x but i dont know how! plzz help me :( | |
hi! i only want to know how to get the value of the array in javascript using class? [CODE] <div class='view'>1</div> <div class='view'>2</div> <div class='view'>3</div> <div class='view'>4</div> [/CODE] | |
Hi, i'm trying to achieve the exact same effect as the 4 bottom tabs of this page : [url]http://uk.virginmoney.com/virgin/[/url] Most Jquery I have seen 'pushes' the content above or below it up or down the page as it reveals the hidden content, the above example reveals the content over the … | |
[CODE]if(response==="success"){ $('<p></p> |').appendTo('form textarea').html(''+file); } else{ $(''); }[/CODE] Hi!, I'm trying and playing arround with the .appendTo, to specify only on one text area, rather than .appendTo to every text area, is there any way to do that? or it is not possible? i try with the "div" and "id" "p" … | |
hi. i want to check expire date with mysql query between start date and enddate. if the end date is bigger then today's date then its good else it didnt display records. can any one please help me out. Thanks in advance. :) | |
Hi Guys, I'm trying to do up a contact form that after a user submits the information, the drop down contact box will slide back up instead of redirecting to another page. The script works fine in Chrome and Safari, but Firefox and IE keeps redirecting to the php page. … | |
Hello, I'm not sure exactly how to do this, but I was wondering if someone could help me out. I have variable $z, and it sets the number of poll options (fields) available ($z was originally a database item set by the administrator). Instead of having $z set by the … | |
Hi, I have a small problem and have been trying to figure out a solution for this without any success days. I did search the forum but didn't find any solution. This is my situation. I am generating a chart (using an opens source chart called amCharts) that allows me … | |
I'm not understanding this. I have a .cfm file which is processing a form submission and doing a number of tests on the form. If certain conditions are met, I need to alert the user and get confirmation. At that point in my code, I've put a standard confirm script: … | |
Hi, I am pretty new to web development so bare with me. I have a simple problem that I have been trying to solve it for a while now. I have 2 select boxes in a form that when the first select is changed the 2nd select will populate from … | |
Hi, I'm trying to write a form that has required fields. When the form is filled out with the required fields missing, I'm trying to have a pop-up that tells them what is missing and then cancels the submission of the form. At the moment I have the function below … | |
I have a problem in posting form elements through ajax, what am i doing wrong? Can anyone help me please :( [CODE]<?php error_reporting(5); $uid = "username"; $tid = 500; $photoTiding = "true"; $picName = "picname"; $pid = "pid"; include('sample_db.php'); //displaying users pic and textarea to comment. $user = "SELECT pic … | |
Ok I'm javascript newbie and I have to make script for displaying random images after click on dice picture. The problem is that the script shows only only 1 picture after the clcik and it won't continue with the next random images. [CODE]<html> <head> <script type="text/javascript"> function randomize(){ var delay … |
The End.