20,316 Topics
[code=html] <select name="test1" style="width: 200px"> <option></option> </select> [/code] This is typical drop-down box in html forms. My question is, hot to make the option to capture current date. Or Must I use any other function than drop-down box. Please advise.
i am stuck in a prob... i wanna dat wenever i send a msg to ma frnd(i do coding in php), a popup or a bubble type msg appears on his screen without page refresh... Please please please please please please help me..... can u get me outta this prob:'( …
I have a blueprint of a building that I have scanned into my computer. I am looking to have a menu of some sort where I can select what room I want to color, and another menu to change the color. Any ideas?
i have three "buttons". when each is pressed i want to 1.) detect if it is not hidden, if so, return (do nothing). 2.) detect if another button is not hidden, if so i want it to hide that button and continue to the third. 3.) i want it to …
I got a problem in order to access the value for my radio button. I'm developing web application system that allow user to book something. so, i display the detail in list.But, i don't have any idea how to access the value.. this is the coding [code]<%@page import="java.util.*" %> <%@page …
Help, I have a web based form containg values typed in by the user. The first value is called noItems, which is outside the form. The form contains a persons name, the number of items,noSub, thay have submitted and their final grade. I need to use noItems and noSub to …
what i am trying to accomplish is to have two elements lets say SEND and RECEIVE. when i click the element SEND i want the RECEIVE element to receive the effect. currently my script only effects the element itself: [CODE=javascript]var animElements = document.getElementById("send").getElementsByTagName("p"); for(var i=0; i<animElements.length; i++) { animElements[i].onclick = …
ok so i have a page where the user clicks something the page sets a cookie.and its in the onlick event. But for some eird reason it won't work doesnt any1 know why? also i created a function for setting cookies but it still doesnt seem to work.
i have been trying to find a way to do it, but i can't seem to think of one. i need to do this: [CODE=javascript]var animElements = document.getElementById("resizercontainer").getElementsByTagName("p") for(var i=0; i<animElements.length; i++) { animElements[i].onmouseover = widthChange; animElements[i].onmouseout = widthRestore; } function widthChange() { if (!this.currentWidth) this.currentWidth = 150; doWidthChangeMem(this,this.currentWidth,170,10,10,0.333); } …
I've been working on re-designing my website, and I decided to add a javascript based slideshow to go on the front page to link to articles. I know next to nothing about scripting (XHTML/CSS is my thing). The question I have has to do with the slideshow loading incorrectly because …
[CODE]var s = document.getElementById('field[12]'); var cust_cc_exp_month = s.options[s.selectedIndex].value; // This displays the correct Value -- which is "0" for item #0 = "Please select..." alert("Month: " + cust_cc_exp_month.toString()); if (cust_cc_exp_month == "0") { // This code never executes! } Here is the HTML portion: <select id="field[12]" name="field[12]"> <option value="0">MONTH</option> <option …
ok i have a iframe and i want it so that when someone clicks a link inside it it opens in the same window. not a new window. i was thinkingof using onclick but it would be too much work.
Hi I am looking for a scrolling solution for a site - I want to have images scrolling on the screen from when the page downloads and then offer the ability to show an enlarged pic by mousing over a thumb nail. I am being told this is not possible …
My name is Sam, and I'm taking Honors C++ at Ravenscroft in Raleigh I have a background in Java, and have worked with Lisp, Game Maker, (X)HTML, Javascript, CSS, and several programming languages/tools I have little memory of. So hey!
Dear Sir, Can I use SQL query with in the Jave script being used in ASP page. If i can please reffer me some samples code. Actually I have made a form in ASP code it contain a combobox with items from the database. on the selection of any item …
Hi i want to bind a drop down list on the other drop down list selected index change event. i m using the following code--- ddlid.Attributes.Add("onchange","javascript:callfunction(this);") function is written in a seperate js file. this works in IE but not in Mozilla... plz give me the solution so that it …
hi, i m having a problem on on uploading this site it is giving unexpected object error plz help me </head> <body onload="afterload()"> <img src="images/ICB Blue_top arc.gif" id="toparc"/> <div class="content"> <img id="logoimg" src="images/ICB Blue_logo.gif"/> <div id="registerDiv"> <FORM name="drop_list" action="mobisyregister_.php" method="POST" onSubmit="return ValidateSelect(this)"> <table cellspacing="0" cellpadding="5" border="0" width="100%"> <tr> <td valign …
Hi i have a form which holds several Inputs of type text, now when im clicking on a check box it run a js script which gets each Input text element and colors its background with a color something like this [code=javascript] var filed=document.getElementById("one"); filed.style.backgroundColor='red'; filed=document.getElementById("two"); filed.style.backgroundColor='red'; ... .. . …
I'm facing a problem with Firefox. I've got a page with a input text box element within a form . On the Click of Submit , I would like to open a new window with width =1200 and height=900 . I've used the following code [code] <form name='form' action="login_check.php" method="POST" …
Please, anyone, tell me how can this be: [CODE] var cust_state = document.forms.info.dropdown_a.value; // Displays "TX" or whatever state was selected. I tried removing this line; it doesn't help. alert("State: " + cust_state); if (cust_state == "XX") { eval('document.forms.info.dropdown_a.style.backgroundColor = "#FFCCCC";'); eval('document.forms.info.dropdown_a.focus();'); alert("Please select a State from the drop-down box."); …
Hi everyone, I was wondering if someone could help me do something i would like to do. I want to create draggable boxes with content in them like standard html, etc. These boxes can be dragged around closed and there content hidden. The type of boxes i am trying to …
This is just something that I'm working on for my own website. Could someone please check this over real quick to see if I have any major errors in it? [CODE=PHP]<?php /* index.php created by Suetan Start Date: Wednesday January 9, 2008 Project: RPGCMS Version: 0.0.1a */ define('IN_RPGCMS', true); $root …
I am looking for a way to pass a variable from one form to another form in a new page. Bassically when a person clicks 'register' for a specific class, I would like it to open up my registration form and automatically fill in the class name and perhaps other …
Hi! I wonder if there is very simple way to convert SVG format images to gif format. For example: <img src="ImageConverter.js"> ImageConverter.js gets the SVG-image from somewhere and returns image in gif format.
I've posted a new article on my site, dealing with how to integrate JavaScript and ASP.NET. It's a "beginner level" article. [url]http://www.tgreer.com/aspnet_html_03.html[/url]
Hi all, I'm a n00b at Python and am working on outputting html using pyhtmloo - I've checked the [URL="http://sourceforge.net/docman/index.php?group_id=89844"]pyhtmloo site[/URL] for guidance but no joy there. Hopefully I'll find guidance here... The python code below outputs an html page and what I'd like to do is set the refresh …
I am having trouble with a piece of javascript code that expands blocks of text. For example, when you click the title, the text under it will expand. I am fairly new to javascript but it looks like the code bassically re-writes the link in the html so that when …
<?php function extract_url($main_url){ $cek_url = parse_url($main_url); $prefix_url = $cek_url['scheme'].'://'.$cek_url['host']; $f = fopen($main_url,"r"); $inputStream = fread($f,65535); fclose($f); if (preg_match_all("/<img.*? src=\"(.*?)\".*?>/i",$inputStream,$matches)) { foreach($matches[1] as $link){ if(!eregi('mailto:|javascript:|ymsgr:',$link)){ if(eregi("http://",$link)){ $url = $link; } else{ $url = $prefix_url.'/'.$link; } if(eregi('PHPSESSID',$url)){ $url = explode("PHPSESSID",$url); $url = substr($url[0],0,-1); } $output[] = $url; } } } return $output; …
Hi Guys, I have a code which seems to be working fine. I have used zend to debug it but there is nothing wrong with the code. The problem is i'm creating some webpages on my laptop and when i try to create a group the page tells me " …
Hi everyone. I have sort of a simple question: I have need to replace one object (an image) with another object (a textfield/form object). I want the switch to occur when the user clicks on the image, and have the textfield appear in the same location. Is this possible? Thanks! …
Hello! I got a Web Site ([url]www.papikos.com[/url]) which shows well in MOZILLA (check it out). In IE is shows bad, on the left, right side too much space and the header is also not good (please check it too). Can somebody help with the according SCRIPT to make it look …
Hi Everyone, I'm fairly new to DaniWeb and I was hoping I could get some advice from all you experts out there. I registered my own domain name and got a host a few days ago and am planning on building a personal website based on Ruby on Rails (I'm …
plz help me how to do select/dropdown iam new to ajax i followed the example select/dropdown from sourceforge net but its not possible how to do it using [B]jsp[/B] plzzzzzzzzzzzz help me in this, send me the code how to do it in jsp
hi im new to this javascript business and have a problem with the following code [ICODE]<HTML> <HEAD> <TITLE> SOFASPEND - IN THE BEST POSSIBLE TASTE </TITLE> <SCRIPT LANGUAGE = "JavaScript"> /* Program to prompt for a number and then display message according to the response but allowed 2 maximum tries …
Selcet/Deselcet All checkbox in Datagrid using Javascript
Hi i want to need javascript using datagrid, for example i have a datagrid and in datagrid above two check boxes 1)checked and 2) unchecked .In datagrid also 5 checkboxes is there ,if i clicked checked all checkboxes will select and if i'll clicked unchecked all unselect checkboxes will select …
Hey guys, so i'm not great with JavaScript since i mostly do HTML and C++... ok, so i have a site with a "contact" box that sends me the users message. i want the text to clear when the user clicks on it, but for some reason, i can't get …
i got an assignment it has to display the mouse pointer and at the same time the x and y coordinate. can anyone help me? i've found the codes for displaying the mouse pointer just got some problem with the implementing side. thanks a lot.
how to get data in textbox from database when item selected in listbox in jsp without refreshing the page, i had code that refresh the page. if not in jsp even possible in javascript or any plz........thanxs in advance (max try in jsp)
Check to see if a cfwindow exists When a window gets created by <cfwindow> coldfusion gives it a unique name and not the name you assigned it. I have found a work around in the way of checking for the title of the window as when you create a cfwindow …
hai guys i have generated a captcha image and i want the image to change every time the user reaches the page.......... the code seem to work well with IE but in firefox the image does not get changed .......i tried "onload" command but the image goes on for an …
Yes it's should be simple.Can anyone tell me why this won't right a string in the flippin body? Thanks [code] <!-- Document : computer_object Created on : Feb 23, 2008, 11:47:50 PM Author : James Howerton --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>computer_object</title> <meta http-equiv="Content-Type" content="text/html; …
Hello, I am hoping one of you guru's can help me out. I am new to Javascript and a bit of a hack at HTML. The following works correctly in IE7 but doesn't work in Firefox. Any idea? Also, is there any way to get IE to quit waring people …
Hi everyone, I currently have this script on my page that allows users to add and remove rows in the page. I have a another script that calculates a value on the dynamically generated elements and static ones too. my problem is, I cant figure out a way to pass …
Is any way to fill an ASP variable at clientside with javascript. I like to use that value to send as a string with a textlink like described below. <SELECT ONCHANGE="location = this.options[this.selectedIndex].value;"> <option value="">Choose something</option> <option value="0">------------------</option> <option value="1">option 1</option> <option value="2">option 2</option> <option value="3">option 3</option> <option value="4">option 4</option> …
I have some music in the background of my website (Let it snow.mp3) - using the following code: <script language="JavaScript"><!-- if(navigator.appName=="Netscape"){ document.write('<embed src="let it snow.mp3" autostart="true" loop="true" controls="SmallConsole" width=50 height=15></embed>');} else if(navigator.appName=="Microsoft Internet Explorer"){ document.write('<embed src="let it snow.mp3" autostart="true" loop="true" width=70 height=25></embed>');} else{ document.write('<embed src="let it snow.mp3" autostart="true" loop="true"></embed>');} //--> …
Hi I built a website in dreamweaver, (on a mac). The pictures are aligned great, in Firefox and Safari. When I open Explorer, the picture at the homepage is smaller and doesn't cover all the cell. it's in the middle and there is a lot of black around it. How …
1. how to call a Javascript function onClick on GridView Header [on Sort Link]. 2. How to access a Header Template column of a gridview from code behind Thanx in advance
Hello Friends, I am having trouble figuring out how to get me Radio Buttons to search my database. Everything is up on the page and when I select enter it just shows all the items as if nothing was entered. There was already a set search button in the script …
i'm fascinated by the tooltip or the information bubble , which pops-up on this page when I point my cursor on a thread title. Does anyone know what it takes to code something like that? Is it possible with PHP, javascript or AJAX ? The attached image shows the tooltip …
The End.