20,316 Topics
i have external javascript [code=JavaScript]var titles = new Array(); titles[0] = "Mr"; titles[1] = "Mrs"; titles[2] = "Miss"; titles[3] = "Ms"; titles[4] = "Dr"; var courseNum = new Array(); //this array is in parallel with the courseName array. courseNum[0] = "3503"; courseNum[1] = "3508"; courseNum[2] = "3633"; courseNum[3] = "3639"; …
Hi Everyone! I want to make a nice floating bar at the bottom of the screen, which hovers about 15px from the bottom. I am doing this to make a site look good in small and big resolutions. The minimum height for the bar to hover is 600px about, if …
Hello, I'm new to javascript, and need some help, why the following code refuses to do anything. [CODE]<html> <head> <style type="text/css"> .btn { background:URL("elemer.jpg"); width:200px; height:100px; display:block; } .btn.sfhover, .btn:hover { background-image:none; } </style> <script type="text/javascript"> sfHover = function() { var sfEls = document.getElementById(„btn”); sfEls.onmouseover=function() { this.className+=” sfhover”; sfEls.onmouseout=function() { …
Hi Everyone, I am using javascript to validate a form: [url]http://www.cultureisaweapon.org/pals/hospital/contract.html[/url] the errors show up as necessary; however, when someone does not enter a required field, and the errors show up; the form displays itself at the middle - is there any way, a function I can use, to display …
Hi, I have a site which lists the basic information of CDs and allows the user to click a link to see detailed information regarding each CD. I've been doing that for a long time by just putting the detailed information in a DIV and using a script to toggle …
Hello Folks, Suppose there are two text fields in a particular form. Now I want to iterate the focus within these two fields only. More elaborately, after the field one will has lost the focus, the field two will get the focus and after the field two will has lost …
[code=html] <html> <head> <script type="text/javascript"> function validateFloat() { var o = document.frmInput.txtInput; switch (isFloat(o.value)) { case true: alert(o.value + " is an float") break; case false: alert(o.value + " is not an float") } } </script> </head> <body> <form name="frmInput"> Enter something: <input name="txtInput" size="4"> <input type="button" value="Validate" onclick="validateFloat()"></input> </form> …
Hi I have a site in Joomla CMS. I want to redirect my old url : [QUOTE][url]http://www.brcreation.com/index.php?/Softwares/Tool-to-Convert-Files?itemid=167&mid=167[/url][/QUOTE] to : [QUOTE][url]http://www.brcreation.com/Softwares/Tool-to-Convert-Files?itemid=167&mid=167[/url][/QUOTE] As you see above, I want to remove "index.php?/" from my site url. I have created a script for this but there are some problems. It doesn't redirect to correct …
Hello all, i am having great difficulty in trying to get the job_id variable from the table that is displayed that will be passed into the next page and profile page information will be selected where he job_id (from previous page) is equal to the job_id of the profile. In …
i'm developing a website for my final year project entitled [B]foreign workers booking system[/B]. Now i got several problems the problems are:- 1.How to come up with a dwi language website 2.How to make a private mail so that i can send a mail to an employer. 3.How to have …
I have a form with a hidden object: [CODE="HTML"]<input id="tracker" type="hidden" name="tracker" value="0" />[/CODE] The value is read with JavaScript and increased each time an element is added: [CODE="JavaScript"]var tracker = document.getElementById("tracker"); var tracked = parseFloat(tracker.value) + 1; tracker.value = tracked;[/CODE] This works fine while in HTML and JavaScript, but …
Hi I'm trying to use a script in my servlet. When a user creates a query a list of items is generated. On clicking on the item, I want something (i'm trying to use a script but if there are better solutions please tell me) to get the id of …
hi, i want to validate checkboxes where each checkbox has a different name 1.atleast one checkbox should be select. 2.not more than 4 checkboxes should be selected. can any one tell me how to validate this.
Hi Im trying to submit a form , which holds another form tags inside (i must do it this way) the problem is that this doesn't work on IE, while it works perfect on Firefox the button seems to have no effect on the page... its like it is not …
Hi all, i want to do pagination using jquery...I am not good in jquery but i would like to learn...so can u please send me the code... Thanx in advance
Hi I need to make a layer drag able in my html page. Please any one give me a tutorial for doing that please Thanks Rajeesh
Hi everyone! I'm getting this error all the time: Parse error: parse error, expecting `','' or `';'' in... I know that the problem is the href line, but since this is the first time I'm writing this kind of thing I can't write it correctly. This is the code that …
Hi, Javascript doesn't work if i do this way. How can i solve it? Is that because i echo it. Thanks [code] <?php echo "<html><head> <link type=\"text/css\" rel=\"stylesheet\" href=\"cssFile.css\" /> <script type=\"text/javascript\" src=\"javascriptFile.js\"></script> </head><body>"; ?> <form name="form" action="added.php" method="post" onsubmit="return validateForm();" style="float:left"> <input type="text" name="ID" size="20" tabindex="1" /> <input type="submit" …
Hi, I have a loading bar gif to be displayed initially, until main image (1MB) is loaded in my web page. How can i do it? Thanks
I have being trying to make a javascript code that will show different submenus depending on what was selected on the previous menu. Although my script has no bugs according to Internet Explorer it seems to not work in IE nor Crome. Can anybody see what's wrong with this code …
Below is my javascript code. It seems to hanging up at the "var data = transport.responseText.evalJSON();" part. Here is a link to see how my html is made. [URL="http://twisted.visionsminis.com/price/compressors"]http://twisted.visionsminis.com/price/compressors[/URL] [CODE] if (!window.WAUpdater) var WAUpdater = new Object(); WAUpdater.Methods = { options: { redirectOnError: true, baseUrl: "", updateColor:'#666666', mode:"add", removeRow:null }, …
My router is stupid, and needs to be rebooted a lot. I've simplified the process down to http:192.168.1.1/restart.htm as a shortcut on my desktop. Once open, there is a JS button with the onClick command RebootDevice() If I first load the restart page, then type RebootDevice(), it reboots. Can I …
hi i want to insert a symbol between all the chek box value eg:the value will be either 1 or 0. [code=php]$tmp =$_REQUEST["check1"]; $tmp .=$_REQUEST["check2"]; $tmp .=$_REQUEST["check3"];[/code] this how i have requested the value .in order to separate the values .i want to add some symbols(like comma)plz tell me how …
Hi, I have a simple code which works well in I.E ,but it is not working in mozilla firefox 3.0..Why is it so. the code is as follows: [code=html] <!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=utf-8" /> <title>Ajax - PHP example</title> </head> …
Hey guys, i'm fairly new to ajax, and today discovered that javascript files won't fire within an ajax loader. my problem: i've built a web application using a mixture of javascript, ajax, and html. however this is designed to go on a page that already takes a little time to …
Hello everyone, i'm an IT student (first year) and i've received a task to make a website for my school (fictional ofcourse). Now i have an idea on how to make it,but after asking my teacher, he said i cant use iFrames but have to use AJAX instead. The code …
Hi, I have the follow script as part of a hover drop down menu : [code]<!-- var timeout = 500; var closetimer = 0; var ddmenuitem = 0; // open hidden layer function mopen(id) { // cancel close timer mcancelclosetime(); // close old layer if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; // get …
write the javascript code to hide a particular label in c# .net..can any one tel me?
Hi to all, I have the following problem: I have a page that includes an iframe, this iframe is dynamic (meaning that I don't know what will be its source, user can insert any URL). The problem is that are some URLs that take over all over the site, I …
Hi, I use onmouseover and out for <td> or <div> to change either backgroung image or color. However, onmouseover and out are not validated for HTML. w3scholls HTML validator doesn't validate them. How can i solve this problem? Thanks
Hi All, Some website said the we cannot run php function in javascript because php is on server side and javascript is on client side. My code will help us to run a php function when you type something on the textbox given below. [icode] <?php function myfunction(){ $x="I love …
The is a two part problem, part 1. I have a (primary) DIV tag that contains a FORM inside which I have among other things checkboxes - an unspecified number. Their name attribute is the same for all. Their value is set from a DB via VbScript. I have another …
Hi, I want to add this line [inlinecode]<user id="5" ready="No" collected="No" />[/inlinecode]in my XML document. How can i do it? After sorting this, I'll update and delete selected nodes later. I you can also helping me doing all, i would be very grateful. Javascript please. Thanks [code] <users> <user id="1" …
Hello I'm building my own html parser in python, and have ran into some problems. First off, I'm using python 3, so I can't use the old bundled sgmlparser, or beautiful soup and could not find windows binaries for lxml, so I'm rolling my own. It is for my master …
I have attached an attachment which has drag and drop feature. The elements of rightmost column can be dropped to any of the white cells. My attachment also has NEXT button, when clicked generates next week day and dates. Now here I have added an alert option. When a name …
Hi! We have a project,to make a website in school, so one of the mandatory things is the registration form. so i can just copy from the example the teacher gave us and add some stuff, but i wanted to practice checking the form, and one of my "missions"(huh i …
Hi there, I'm working on building a small application for home use. When a user does [control+c] to copy something, highlight an area to be copy, how do capture what context is being copy from those two options? Any help to point me to the right direction would be greatly …
i need to validate textbox to accept only integer and not more than 100 i create this fuction but i dont how to resrict numbers to be lesss than 100 only [code=JavaScript]<script type="text/javascript"> <!-- function checkNum(number) { if (isNaN(number.value) ) { alert(number.value + " is not a number. Please re-enter."); …
Hi I have a webpage, with hidden content divs. There are 7 sections and each is in one of these hidden content blocks. I have a script which sets the display = '' when the link is clicked javascript:showHide('div_id'), and thus the div is displayed. However, in IE, after I …
Hi! We have a project,to make a website in school, so one of the mandatory things is the registration form. so i can just copy from the example the teacher gave us and add some stuff, but i wanted to practice checking the form, and one of my "missions"(huh i …
Hi I am new bee to JS and PHP, i have a code to display the images from directory in the path C:\wamp\www\prawin\new\locations\test\admin But this code didnt works . can any one help me. My code is [ICODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> …
Hi all, I am trying to run a javascript function, RH_ShowHelp, that is stored in the file RoboHelp_CSH.js. The function itself should open a popup window containing our product's help system (written with Adobe RoboHelp) and the javascript file was supplied by Adobe as the standard call. I have managed …
How can the user obtain a specific result by choosing values from 2 dropdown list. As a result, the value obtained can not be modified by the user.The table of ten rows by ten columns have to be stored in a mysql dbase.. It's certanly possible , but tedious and …
Hi I have careated a website with a floating (moving on body with javascript) DIV menu with Absolute position via CSS file. There are some Dropdown box on my body Now the problem is that when i the floating DIV move over the Drop Down menu, the menu will be …
hi there thank you for helping me before but i have new problem with javascript i need to disable the selection list wheb the checkboxes are unchecked and enable when they are checked this my code so far [code] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> …
I have <div> tag that is dynamically filled with check boxes and some text based on what the user picks from the page. For example, there is information in a tabular format and next to each is a check box. There can an unspecified number of them. User click the …
Two friends had a disagreement about the placement of the return in the following code: [code] var abc; try{ //there can possibly be 1 or more answers; abc = getAnAnswerFromPossibleAnswers("type","key"); } catch(ex){ ex.printStackTrace(); } //We only want the first answer even if there were more return abc[0]; [/code] One person …
Hi, I have a button on the parent page that when I click it, a popup window appears. In the popup window the user enters a value in a text box and clicks a button to return to the parent page. The entered value in the popup window is sent …
I hate to come back so soon, since I was all proud of myself for working out the last issue. This is a different issue, and beyond the scope of my knowledge. The pagination itself WORKS FINE. However, I'm trying to use a tooltip script on an image hover, and …
Hi, I'm currently trying to implement expanding text to links. However, as the links are created dynamically I need to be able to make the DIVs Id-tag 'general' in the script. So, instead of this: [ICODE]function pageLoad() { collapseAll($('myvar_1','myvar_2','myvar_3)); } [/ICODE] I would like something like this: [ICODE]function pageLoad() { …
The End.