15,120 Topics

Member Avatar for
Member Avatar for santhanalakshmi

Hi, I am writing a prgram in php.when i click "log out "button ,it redirects to my first page "index.php".(username & password) and then by clicking back button in the browser ,it showing all my previous pages that i visited. I want to disable back button in the browser (javascript …

Member Avatar for serkan sendur
0
126
Member Avatar for rouse

I found a demo version of a jQuery accordion menu that I liked. I want to implement it on my soon to be published home page, What it does not do is that it pushes and pulls the content below it, as down as the accordion expands and contracts. I …

Member Avatar for rouse
0
104
Member Avatar for veledrom

Hi, I cannot get the full physcial path of a selected file in Firefox. Code below works fine in IE. Is there other way to get full path in Firefox as well? Thanks [code] function getPath() { alert (document.formUpload.file.value); } <form name="formUpload" enctype="multipart/form-data"> Filename:<input type="file" name="file" id="file" onChange="getPath();" /> <input …

Member Avatar for veledrom
0
113
Member Avatar for aashishn86

[code] <script type="text/javascript"> function validatePID(inputField , helpText) { if(inputField.value.length != 9) { if(helpText != null) { helpText.innerHTML = "Please enter a 9 digit Number"; return false; } else if( isNaN(inputField.value)) { if(helpText != null) helpText.innerHTML ="Please enter a number "; return false; } else { if(helpText != null) helpText.innerHTML =" …

Member Avatar for aashishn86
0
100
Member Avatar for kg_ally

I've a perfect working code in IE but for some reason its not working in Fire fox...can anyone suggest why?

Member Avatar for mschroeder
0
130
Member Avatar for Sappster

Hello all. Got a slightly strange problem, which might be a little dificult to explain. I have some AJAX code which uses javascript to call a php file that queries a database and returns data. Basically I have a problem with the order that things get executed once they are …

0
39
Member Avatar for lifeworks

Hi I have the following CSS menu, which uses a js to create the menu on Mouseover... I want to add a delay onMouseOut... I have tried the setTimeout function, but am having some trouble getting it to work... the submenu just stays out... [code=javascript] var menuids=new Array("verticalmenu") //Enter id(s) …

Member Avatar for nav33n
0
252
Member Avatar for serkan sendur

i want to have a big hidden table, then i will have a div and that div will be located on that table, only the intersection of the div and the table will be visible. is that possible?

Member Avatar for Rashakil Fol
0
52
Member Avatar for serkan sendur

hi guys, i have one main page with two iframe elements, these two iframe elements is assigned same source file as follows : mainpage.htm : [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> <title>Untitled Page</title> </head> <body> <table> <tr> <td> <iframe id="leftPane" src="iframepage.htm" width="300" height="800"></iframe> </td> <td> …

Member Avatar for Rashakil Fol
0
91
Member Avatar for rajeesh_rsn

Hi I had a form validation script with me. that is [ICODE]<head> <script type="text/javascript"> function validate_required(field,alerttxt) { with (field) { if (value==null||value=="") {alert(alerttxt);return false;} else {return true} } } function validate_form(contact) { with (contact) { if (validate_required(username,"Userame must be filled out!")==false) {username.focus();return false;} } } </script> </head> <body> <form action="password_process.php" …

Member Avatar for essential
0
88
Member Avatar for aashishn86

Hi!! i want to validate a list box onthe onblur event and if no value is selected , display a message on the left using <span> and innerHTML here's what i have written [code] <html> <head> <script type="text/javascript"> function validateCB() { if(document.rec.loc.options.selectedIndex = = 0) { alert(" hi"); return false; …

Member Avatar for nav33n
0
95
Member Avatar for Leandro-AL

Hello! I have a small script which dynamically creates select tags (they are placed within divs). Each select has a [B]+[/B] and [B]-[/B] sign next to it, and if you click the [B]+[/B] it adds another select below that one, or if you click the [B]-[/B], it removes that current …

Member Avatar for Leandro-AL
0
141
Member Avatar for myth3_16

Hi All, I was wondering if anyone could help me with this one. If you want to see what I have at the moment goto [url]http://www.personally-yours.co.uk/indev/test/state_dropdown.php[/url] This page has two drop downs, the bottom one is populated depending on what is selected in the top one. What I want to …

Member Avatar for anish.anick
0
121
Member Avatar for Syakoban

Hi, I'm not much more than a[I] jquery cut and paste - change a simple user definition[/I], guy. I can't write javascript... So, I was trying to marry two jquery "animation effects" in one page and apparently have a conflict. The two things work separately but it seems that there …

0
51
Member Avatar for aashishn86

hii !! i am using the onblur event for form validation to validate that a field should not be empty i am using the following function [code] <scirpt type="text/javascript"> function isEmpty(field) { if ( field.("<name from form>").value = ' '); alert("empty field"); } </scirpt> [/code] the problem is the event …

0
46
Member Avatar for somesh_nag

Hi, I want to display a java script confirmation box before browser session is timeout with message as "Your session is going to timeout in 2 mins. Do you want to extend session?", if user is clicked on "Ok" button within the session timeout period, session should be extend. If …

Member Avatar for ravinder007
0
1K
Member Avatar for jeffc418

Hey all! Pretty simple I hope :D I have a website that absolutely requires JavaScript to be enabled for it to work. How can I make it so that if a user with JavaScript disabled tries to view my site they are redirected to an error message? Thanks!

Member Avatar for jeffc418
0
104
Member Avatar for jumbla

I have a form that sends the value of my input box to search.php where I cature it using POST: [code]<form method="post" name="boxsearchform" action="search.php"> <input name="INPUT" id="INPUT" type="text" value="" /> <input type="image" name="search" src="searchboxgo.gif" /> <select name="choosevar"> <option value="title">Title</option> <option value="colour">Colour</option> </select> </form>[/code] What I would like is to use …

Member Avatar for essential
0
128
Member Avatar for emilio

hi my page contains a button with a javascript click event. when i click the button i want to check if the page is valid, and if the answer is yes, to perform the event function. if the page is not valid i want the error message to show in …

Member Avatar for emilio
0
70
Member Avatar for millsy007

I have recently changed my page so my date that is held in a textbox is in the European Format, ie DD/MM/YYYY The problem is all of my other javascript functions expect it in the 'normal' format. Is there a way I can change the format I now have it …

Member Avatar for essential
0
103
Member Avatar for GeoffC

I am using the following to set up a textarea for the input of the body of an email. [code] <td valign="top"><textarea name="zbody" id = "zbody" class="stylefont_textarea" tabindex = "3" onfocus="gotostart()" cols="40" rows="10"><?php echo $sig?></textarea></td> [/code] the php inserts a "signature" into the textarea. When I tab to it, the …

Member Avatar for GeoffC
0
80
Member Avatar for serkan sendur

is there anyway of distinguishing between whether the button is clicked directly by a mouse or its click event has been triggered logically? [code]<input type="button" id="someID" value="dene" onclick="alert('something');" /> <input type="button" value="dene2" id ="someID2" onclick="document.getElementById('someID').click()" />[/code] now guys i want some kind of thing : when you directly click on …

Member Avatar for serkan sendur
0
113
Member Avatar for jzimmerman

Hello, this may not be the correct forum but I'll start here. I have a system that retrieves information from a database. I want to have some of that information hidden until a user checks a box to display it. The script is here: [code] <script type="text/javascript" language="JavaScript"> function HidePart(d) …

Member Avatar for serkan sendur
0
225
Member Avatar for sadhu

here i have small issue. pls sort it out 4 me soon n be thankful 4 u [code=html]<div id="div1"> <input type="radio" name="radio" id="radio" value="150" onclick="return displayCost(this.value);" /> </div> <div id="div2"> <select name="select2" size="1" id="select2" onchange="return calculateCost(this.value);"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> </select>Pages </div>[/code] here there is no submit button or form. …

Member Avatar for serkan sendur
0
80
Member Avatar for millsy007

I have a javascript calendar, It is working fine, I have set all the styles, but have now realised that it displays in american date format ie Month Day Year I want it to display in European Format ie Day Month Year I was hoping there would be a way …

0
50
Member Avatar for dpd

Hi all, I'm not overly proficient at Javascript, but have fumbled my way through some tutorials to come up with the following code to create a tab mechanism. It works perfectly in Firefox, Safari, Chrome and IE8. However, in IE6 and IE7 it fails to operate as of the 'for …

Member Avatar for serkan sendur
0
110
Member Avatar for Lib Auth

Hello Daniweb Community, I recently visited the Runescape.com website as per requested by a friend, and noticed there advertisements. They have a small box with a ? that once clicked opens a new window specifying the ad number. How do you do this? Sorry, if it isn't created with javascript. …

Member Avatar for serkan sendur
0
64
Member Avatar for BimanD

I am a new JavaScript user. My teacher told me to display my name using javaScript i solvd it using (document.write) command. and then saving it in(.HTML) format.Now my teacher told me to do the above problm using an external .js file. Plz someone help me to solv this problem. …

Member Avatar for serkan sendur
0
75
Member Avatar for serkan sendur

hi guys, i have a javascript application which compares two xml files, to show that comparison i load two files on two iframes and when user click on node(i rendered the nodes to span elements) i run a comparison function, the problem is i want to disable onclick event of …

Member Avatar for serkan sendur
0
320
Member Avatar for vedmack

Hi I built a html page with a single button which suppose to open new window which shows XML file... I want to disable right click mouse in the "new window" which is being opened after button hit... I do know how to disable the right click inside an ordinary …

Member Avatar for HTMLExpert
0
803

The End.