15,121 Topics
| |
[CODE] <?php $hostname = "localhost"; $username = "hi"; $password = "bye"; $dbid = "jesus"; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $name1=$_REQUEST['name1']; $result=("SELECT name FROM lydia WHERE nam='$name1'"); while($myrow = mysql_fetch_array($result)) { $first=$myrow[0]; echo $first; } ?> <html> <head> <script type="text/javascript"> function win() { var c='<?php echo $first; ?>'; … | |
Hello. I'm using JS/DOM to create a map in a <div>, named map, like this: [code=javascript]var tile = document.createElement("IMG"); tile.src = "tiles/" + node.getAttribute("type"); tile.setAttribute("width", "32"); tile.setAttribute("height", "32"); tile.className = "brick"; map.appendChild(tile); [/code] It works, but the image breaks on a <br/> (screenshot: [url]http://i28.tinypic.com/6ynu3o.png[/url]) the image is a 32x32 tile … | |
We are using java script to create dropdown box dinamically by clicking button. And we want to show the contents in those dropdown box from database. Is it possible??? If possile then how??? We are using C# in background and ASP.NET in the frontend. | |
Hey all, I'm trying to make a small menu popup via CSS. On rollover, the link should display another set of links below the link that the mouse is hovering on. The code Below works in FF but not in IE. Could someone help out? Thanks. [CODE]style.css .navigation { margin: … | |
I'm using javascript to display text with a sidebar. It works fine in FF 2.0.0.13 but in IE 6 the links do not work and nothing is displayed. Could someone tell me how to solve this problem? [URL="http://knight.110mb.com/ebook_section.htm"]webpage[/URL] | |
[code] i need a solution.. i want to transfer a numeric value from a combo.. according to value with ajax/javascript i want to create radio button.. suppose i send 3 then , it will show 3 radio button.. plz help me... here is the javacript code function radio_b(){ var a=document.getElementById("radio_button").value; … | |
i download Element. Dimensions.js but when i include it ... got error object doesnot supported.... :( what to do? | |
| |
i have been researching into java script and have found that uses of it include field validations and online calculators. What type of disadvantages does java script have, is there nay major security issues with it?? Would be great for you to help thanks. | |
I'm trying to understand something fairly simple I hope. How to pass optional parameters to a function or object in javascript by the parameter name. for instance, what script.aculo.us does with their scripts. syntax example: [code=javascript] Sortable.create('id_of_container',[options]);[/code] live example: [code=javascript]Sortable.create('examplelist',{ghosting:true,constraint:false})[/code] the object has a possibility of 5-10 parameters, all of … | |
[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Show hide content with sliding effect</title> <meta name="language" content="English"> <meta name="robots" content="follow"> <meta name="googlebot" content="index, follow"> <style type="text/css"> body{ font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif; /* Font to use */ margin:0px; } .ad{ position:absolute; top:10px; right:10px; } .dhtmlgoodies_question{ /* … | |
^ | | | javascript noob Hi there I have the following script that strips out acceptable non-numeric characters that you would find in a telephone number and then checks to see if it is equal to ten digits. The problem I have is that I can't figure out how … | |
can anybody make this flash menu xhtml valid... i tried with some tutorials over the net but it still doesn't work. this is the code [CODE]<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="923" height="90"> <param name="movie" value= "http://www.zeriislam.com/menu.swf" /> <param name="menu" value="false" /> <param name="quality" value="Best" /> <param name="bgcolor" value="#1f314f" /> <embed src="http://www.zeriislam.com/menu.swf" … | |
I want to swap two images back and forth based on a mouse click. eg + and -. i am doing this on a tree structure based on the values extracted from the database. eg + English - Maths - Trignometry + Chemistry and the code which i am using … | |
Hello! i want to know if it is possible to create two drop down list and add code such that when a user select a value from the first drop down, he cannot select the same value from the second one..? | |
Im trying to creat an Imagemap Menu using my banner. This is a proto-type for a much more complex imagemap menu. I have created an imagemap of the original banner (click the eye) and used an image swap script to swap to my 'menu banner' (which will have more clickable … | |
Im trying to insert a script <div class="js-kit-comments" permalink=""></div> <script src="http://js-kit.com/comments.js"></script> into my boards profiles page <tr> <td class="row3" valign='top'><b>Country</b></td> <td align='left' class='row1'>Australia</td> </tr> </table> board http://inny.ipbfree.com/index.php? to a particular spot beneath a td (profile field) called 'country' I cant seem to get it to happen. can anyone help? code … | |
Im in the process of creating a product gallery for our companies web site, this will include things like hats , tshirts, flashdrives, mugs, etc. But i need to create a simple order form. The problem im encountering is that im very unfamiliar with javascript and ajax, and each product … | |
is it possible to alert session variable.is the syntax is correct... [CODE=php]<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- function login() { alert($_SESSION["un"]); } --> </SCRIPT> </head> <body bgcolor="#f1f3f3"> <form> <?php print "<input type='submit' value='submit' onClick='javascript:login();'>"; ?> </form> </body> </html>[/CODE] | |
I'm a graphic designer with very little HTML knowledge who has inherited the maintenance of non-profit agency's website. They have javascript drop-down menus as the part of their main navigation. Up until now, I've only had to change the text or change the size of the menus. But now, they've … | |
Hi, I am trying to make a table that has following columns: site id,txn id,txn name,target id,target db there can be any number of rows in the table and each row has at least one different column entry with respect to other rows.Now i wish to delete from database data … | |
Okay, this page wrecks IE6 / 7. Please view the pages in question at [URL="http://www.listenlight.net"]http://www.listenlight.net[/URL] Also, is there a way for linux users to check page development for IE over the Web? [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>◦ Letitia Trent ◦</title> <meta http-equiv="Content-Type" … | |
Hi i have been searching around the net, but have not have any luck(most probably i m searching for the wrong thing). I am able to get json data from my database, i now want to populate the text fields in my form how do i go about doing it? | |
I have some problems with javasript functioning in firefox... something very basic as open window browser??????????????????? | |
HI all , I have a question about Ajax. FIRST : Can I call ID from the other files who contain J.S. code with ID ? SECOND : I have Index.html , prototype-1.6.0.2.js , and I want to make changes from files2.html to files3.html . Can I do that ,and … | |
Hello, can anybody help me in getting this code running also in firefox and safari. The goal is to display images scrolling from right to left on my screen ... Here is the code I use : <script language="JavaScript1.2"> //Specify the slider's width (in pixels) var sliderwidth=840 //Specify the slider's … | |
i hv problem which: i have 2 radio button with value 'yes' and 'no' and one textbox, my question is : default the texbox is disabled and when user choose radio button "yes" the texbox become enabled... anyone can help me? thanks | |
I have a program that suppose to print out a student information so I have to use Alert in order to make this a success but my JAVA SCRIPT is not producing anything, I dont know what Im missing in my code please have a look at it.... its quite … | |
I am new to Dreamweaver, and stumped. Though I can do it easily with frames I cant get CSS to allow user to click on one of several thumbnails in a left column and show larger image of the clicked thumb in the main area of the SAME page. Is … | |
I want to us a simple HTML drop down lists (<select name="menu"....) as a quick jump between a couple of different html pages. I was able to come up with the script to have the pages jump to the URLs. However, I was hoping to have the current page dynmically … |
The End.