15,121 Topics
| |
hello all, i have this code [CODE]<script type="text/JavaScript"> function checkbox_click (number) { alert("number is" + number); } </script>[/CODE] [CODE]echo "<input type=\"checkbox\" name=\"boxname\" " value=\"5\" onClick=\"checkbox_click('3');\" /> \n"; [/CODE] i want add more code in javascript when is check show me in input text the number and when i check mutlti … | |
Hi All, I'm developing a Calendar project . I have all the concepts and framework with me upto my knowledge. I need to show the events on a particular day which i will fetch it from mysql values by PHP. Forgive me if im not posting in a professional way. … | |
My javascript function setHw is not called by pressing the return key in all of the following pages. Please help. [CODE]<div id="rowPerPageDiv"> <form name="tagform" action="Hw.htm" method="post"> <input type="hidden" name="currPage" value="0"/> Rows Per Page<input type="text" name="rowsPerPage" id="rowsPerPage" value="20" onsubmit="return setHw()"/> <input type="button" value="Apply" onClick="setHw()"><br> </form> </div>[/CODE] [CODE]<div id="rowPerPageDiv"> <form name="tagform"> <input … | |
I'm pretty new to JavaScript. I'm trying to define my custom errors, but it doesn't seems to be working [CODE] function MyError(msg){ this.message = msg this.name = "My Error" } window.onload = function(){ try{ throw new MyError("Test Message"); } catch(e) { alert(e.name + ": " + e.message); } } [/CODE] … | |
I have an image rotator that uses nested intervals. The outer one switches the images, and the inner one preforms the fade. The problem is is that the display is not updated during the interval function, and so, the fade is not displayed; the new image just appears- no fade. … | |
Hi I'm new to Javascript and trying to get a layer div to display next to the mouse cursor. My code works great in IE and Chrome browsers but won't work in Firefox. If I remove the part bewteen the asterisks which gets the cursor position it works fine, but … | |
While cleaning my computer, I notice that I have a lot of files that are marked as LOCAL file under File type. Does anyone have a clue as to how to open these? My cleaning software is flagging these files as files that are junk files that need to be … | |
| Hi again, I'm trying to load a text file into a variable and I know of the jquery load [CODE] $("div").load("file.txt"); [/CODE] but I want to be able to load it into a var, does anyone know how to do this? Thanks in advance. |
Howdy, First off, I should say that I am jumping on posting this issue much quicker than I normally would - but I'm not really in a patient mood now, and I'm far from being a fan of anything the W3 has done. Anyhow, I am in the process of … | |
Hi experts, i developed javascript code that connects to ms acess database 2003. Everything work fine as it can insert,update and delete information from database. But my problem is that when i try to validate all my input text so as to ensure that my user must fill all the … | |
Having a problem that I can't seem to find a solution for. I am using a picture as a button for my site and when you click the picture it brings you to the main page of the website. My problem is that I want the button to make a … | |
Hi experts, i developed javascript code that connects to ms acess database 2003. Everything work fine as it can insert,update and delete information from database. But my problem is that when i try to validate all my input text so as to ensure that my user must fill all the … | |
I wrote this code because I wanted the members of my volunteer organization go have a place they could easily get the most current list of email addresses to send a message. This code reads the names and addresses from the database, and creates a comma delimited list of addresses … | |
I'm a little out of my depth in server-side scripting, so I have to ask for some help here. I had some great help yesterday getting a 'select-all' checkbox script working, but have run up against a wall on the next step. Here's what I want to do, it relates … | |
I have written code for adding and removing dynamic rows.i am using same file for both ADD and MODIFY operations.this page is working for ADD operation. lets say for MODIFY operation one employee has added 3 rows and i need to display those rows and user can edit thoese rows … | |
hi, i need load a url in a div i have found many samples that work in that way, the problem is that i need javascript working in the destination link and for some reason the javascript dont work in the div that i load. there is any way to … | |
Hi, I would like to pass data to dialog box where the page in background is faded out. A good example is when I click 'LOG IN' on DANIWEB, I get a dialog box with username and password fields and the rest of the screen is in gray. Can someone … | |
<HTML> <HEAD> <TITLE> MEA </TITLE> <link rel="stylesheet" type="text/css" href="test2.css" /> <style> .suckerdiv ul{ margin: 0; padding: 0; list-style-type: none; width: 160px; /* Width of Menu Items */ border-bottom: 1px solid #ccc; } .suckerdiv ul li{ position: relative; } /*Sub level menu items */ .suckerdiv ul li ul{ position: absolute; width: … | |
I'm pretty new to JavaScript. I'm trying to define my custom errors, but it doesn't seems to be working [CODE] function MyError(msg){ this.message = msg this.name = "My Error" } body.onload = function(){ try{ er = new MyError("Test Message") throw er(); } catch(e) { alert(e.name + ": " + e.message); … | |
[I][B]please,help me i want to convert date(string) to date (date time), this date i make setting for day with one (constant)[/B][/I] [I][B]to use it in database i write in html [/B][/I] <html> <head> <SCRIPT type="text/javascript"> function startDate() { var d=new Date() var y=d.getYear() var m=d.getMonth()+1 var day=1 var date=m+"/"+day+"/"+y document.write("date … | |
Hi, I'm trying to change a background image used within a list <li>, yet have only been able to get this to work in IE and not Firefox. Please tell me what is wrong with this code: (Note: I have tried using style.backgroundImage yet that did not work in IE … | |
hi all, i am having a php page where we can upload and download files.Those files which are uploaded will be displayed in a table on the same page,for that i need to refresh page.So i used [CODE]<meta http-equiv="refresh" content="3">[/CODE] but it is refreshing for every 3 seconds. That causes … | |
Hi, I am new to ajax, but i want to learn cause it is used in our project.. So, here is my query, i am using .net 3.5 framework i've one dropdownlist and textbox controls in aspx page for dropdown: 1,2,3,4 (are the values in column1 in database table that … | |
Using javascript, I want generate buttons and textboxes dynamically depending on selection from dropdown. Use asp.net with c# languasge. I will try using above code.But not solved the purpose.Please suggest.[code]<head runat="server"> <title>Dynamically add Text Box and Button</title> <script language="javascript" type="text/javascript"> function add(type) { for(i=0;i<10;i++) { var element=document.createElement("input"); element.setAttribute("type", type); element.setAttribute("value", … | |
I'm pulling my hair out trying to find a checkbox check-all toggle script that will pass an array of selected to my server side PHP script. I really want a master checkbox that serves as a select-all/deselect-all control. I've looked at countless examples online, and the closest I can find … | |
I want this form as lightbox form. Is it possible. [CODE]<form action="lims_updated_north.php" method="post"> <table class="mytable" align="center"> <tr> <td>Code</td> <td> <input type="text" name="al" id="al" value="<?php echo $al; ?>" /> </td> <td>Owner Name</td> <td> <input type="text" name="cd" id="cd" value="<?php echo $cd; ?>" /> </td></tr> <tr> <td>Mobile</td> <td> <input type="text" name="nid" id="nid" value="<?php … | |
Write a program that creates a text file that contains a power of two table in HTML format. The file could be called "twoPowerTable.html". When it is viewed with a browser you will see something like: Power of 2 Value 0 1 1 2 2 4 3 8 4 16 … | |
Hi, i am making a website which prove a sudoku interactive game that enables users to play it. the game data is in the form of database and have the following field: +-----------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+----------------+ | game_no | … | |
Hello. I'm wondering if anyone has knowledge or a code that will refresh a script without a full page load. Just a widget/box on a site. What I have is a script which displays random posts in wordpress. Just calls 5 posts from the database with a simple random call. … | |
After searching I've found how to make an onload alert box when the page loads. However what I want to do is 1. When user goes to page the alert box/pop loads w/o the page, just an alert box. 2. Once the user clicks on OK, the page loads. |
The End.