Displaying Alert/prompt To Another User Page?
Nov 20, 2010
My group is working on a basic document management system that includes four users. staff member, department director, division chief and clerk. The programming language that we used is PHP.when staff member logs-in on his homepage and uploads a file he must choose reviewer from a dropdown menu that consists of dep. director and div. chief.When he clicks the upload button the homepage of who he chose as reviewer should receive a prompt/alert box upon log-in saying "you have a document to review".For example:if he chose division chief as the reviewer when the person logs-in on his homepage a prompt/alert should display that he has something to review.The code for uploading file is already up and working.
View 3 Replies
ADVERTISEMENT
Apr 28, 2010
" how to write a JavaScript function to pop up an alert() if a user scrolls down the webpage faster than a certain speed"
View 1 Replies
View Related
Dec 25, 2010
when a user go to an external link of my page an alert, or confirm box appear, or run some other code?
View 5 Replies
View Related
Dec 3, 2011
what kind of prompt box can I put a link in without displaying an OK or cancel button?
View 1 Replies
View Related
Oct 6, 2010
I'm trying to have a user input a number in a prompt box which gets totaled and displayed in an alert box.This is what I have and its not working out for me.
<html>
<body>
<script>
[code]....
View 4 Replies
View Related
Mar 27, 2009
is it possible to have a drop-down in an alert box?I may have to program a pop-up or a hidden div instead.The reason I ask is that I've got a backend web editor for creating/maintaining websites - and there is an option to make a link a sublink of another one (so it only appears on the menu when you are at that webpage). However, it would make life a whole lot easier if when a user pushes that button an alert box comes up asking them which page they want it to be a sub of (and then returns the value).
View 2 Replies
View Related
Oct 10, 2009
How do you position an alert or prompt to anywhere on the screen. How do you change the font for the alert or prompt (i.e Hebrew)
View 3 Replies
View Related
Jul 20, 2011
I need to write code to prompt the user to save the changes before the user session expires. And this should happen only when the user makes any changes, if he doesnt make any changes, I should not be prompting him. For this I need to check if any fields are modified in the page. I need a generalised code that goes in the header or footer page of the application, so that I dont have to make any changes to the existing 100 pages.
View 2 Replies
View Related
Dec 4, 2009
<html>
<head>
<title></title>
[code]....
View 1 Replies
View Related
Jun 10, 2009
The application works fine but it makes the user enter the answer twice before it brings up the question "Would you like to continue?". I thought the fix would be to just call "myMH.checkAnswer(studentAnswer);" straight from the method in the "appclass" but that didn't fix it I m so lost on this problem. This problem most likely is right in front of my face but don't see it lol. I have another question as well but I think if I get this one figured out first it might answer my other one.
View 2 Replies
View Related
Sep 21, 2009
How can i "prompt the user for the sales tax rate as a percentage"? this is what i have so far....
var tax = prompt("What is your tax rate percentage?", "")
document.write("Return Value: "+tax,("<br />"));
View 2 Replies
View Related
Dec 19, 2010
I am in the process of learning javascript and I've been looking at this code for the longest time ever. So far I got most of it done. For example I leave all the required fields empty, it gives me the alert message of the first field and not the alert messages of all the others. What I want to know is how can you go through and check the whole form first before submitting and then when there is any error on any field, shows just one alert message containing all the error messages.
Code for the form
<form action="mailto:hummdedum@felloff.com" method="post" name="form" onSubmit="return isFormValid();">
* First Name: <input type="text" name="FName" id="FName" onblur="checkFName();"/><label id="labelFName"></label><br />
* Last Name: <input type="text" name="LName" id="LName"onblur="checkLName();"/><label id="labelLName"></label><br />
* Password: <input type="password" id="pw" name="Password" onblur="checkpw();" id="pw"/><label id="labelpw"></label><br />
*Re-type Password: <input type="password" name="2Password" id="pw2" onblur="checkpw2();" /><label id="labelpw2"></label><br />
I am a: <br />
<input type="radio" name="status" value="fresh" /> Freshman<br />
<input type="radio" name="status" value="soph" /> Sophomore<br />
<input type="radio" name="status" value="jr" /> Junior<br />
<input type="radio" name="status" value="sr" /> Senior<br />
I am taking classes in the: <br />
<input type="checkbox" name="semester" value="fall" /> fall time<br />
<input type="checkbox" name="semester" value="spring" /> Spring time <br />
My favorite element is:
<select name="element" id="element">
<option value="">select one</option>
<option value="fire">Fire</option>
<option value="earth">Earth</option>
<option value="water">Water</option>
<option value="air">Air</option>
</select><br />
*Birthday: <input type="text" id="BDay" name="Birthday" onblur="checkBDay();"/><label id="labelBDay"></label><br />
*E-Mail: <input type="text" id="email" name="Email" onblur="checkEmail();"/><label id="labelEmail"></label><br />
<input type="submit" value="Submit" />
<input type="reset" value="Clear" />
I want to also validate birthday.. and I tried using regular expression with leap years but the expression is too hard for me to think of. So I am gonna try using split() but I don't know and for the clear button. Since I blur functions, how would I just clear all the blur statements = like a restart of the form and then when the user enters the field the blur function still works?
View 3 Replies
View Related
Dec 7, 2009
Doing web page with ASP/VB.NET. Have text boxes for UI on page. Two command buttons - Submit (for db update) and Cancel. I need the Cancel button to prompt the user to verify cancellation. Need OK/Cancel buttons on alert. If user selects Cancel-no action. If user selects OK then I want the text boxes cleared of user text input and focus returned to first text box. I think this may be the code but do not know how to apply it.
function Clear()
{
var res=window.confirm("Please confirm cancellation-text boxes will be cleared"); [code].....
Is this code valid or invalid for the events I need? How do I set it to fire when user clicks the ASP Cancel button?
View 1 Replies
View Related
Oct 27, 2011
I'm new here and I have tried to search the forum, but there was nothing fitting to my problem.
I would like to display content in an alert box. Sounds simple, but the content is fetched immediately, so I have no influence on that[code]...
This responseText is quite long and I need to display it in more than 2 lines.
Im doing some security research for my master thesis and am a JacaScript newbie
View 6 Replies
View Related
Jul 23, 2005
Most of these characters are not on the standard keyboard.
Here's a successful contrivance, with comments & cautions,
a little page that works in IE6.
<HTML><HEAD><SCRIPT TYPE="text/javascript">
function alt() {
document.all.s1.innerHTML="Current Temp: 68°F";
var txt=document.all.s1.innerText;
alert(txt);
}
</SCRIPT></HEAD>
<BODY>
<INPUT TYPE="button" VALUE="Temperature" onClick="alt()">
<P ID="s1" STYLE="visibility:hidden"> </P>
</BODY></HTML>
comments: The innerHTML property is needed to produce the
character glyph from the entity code. If the entity string
were passed to innerText(in 1st statement) then the code
would remain literal.
This work-around depends on s1 being rendered before alt()
is called. It will not work as immediately executed code,
because element s1 would not exist yet.
cautions: Trying to style alert's display will produce error
msgs. Do not use <B>, <U>, or <I> tags in the argument
string. No Heading tags either.
Strange enough, an inline STYLE, setting font values, say,
does not give error msg, but will not execute either.
Alert ignores it.
You can use <BR> tags in the argument, which give the same
result as
in a direct arg to alert().
In sum, you can tell alert what characters to display,
in what order, and on what line, but you cannot tell
alert HOW to display them.
View 4 Replies
View Related
Feb 26, 2010
Just trying to display a javascript alert and for some reason the browser is just displaying the code
I have put the following into a file called test.js but it is just displaying all thie code in the browser - see [url]
I am sure this is something really basic. I have tried this in Firefox and IE
Code:
View 2 Replies
View Related
Apr 17, 2011
I have problem, the code cannot operate. The user must select in dropdown list having one display of image every time.
JS code
var sel = document.getElementById("sw");
function f1(){
var imgs = ['chart1.cgi', 'chart2.cgi', 'chart3.cgi', 'chart4.cgi'];
var im = document.getElementById("pic");
im.src = imgs[this.selectedIndex];
}
html code
<img id="pic" src="chart1.cgi" />
<select name="sw" id="sw" onchange = "f1()" >
<option value="s1">what</option>
<option value="s2">whatever 2</option>
<option value="s3">whatever 3</option>
<option value="s4">whatever 4</option>
</select>
View 6 Replies
View Related
Mar 25, 2011
So with the below form if the value of any of the select list changes the user is alerted something like "You are about to make 2 changes". How can I do this?
<script>
function validate(){
}
</script>
<form method="POST" onsubmit="return validate()" action="--WEBBOT-SELF--">
<select size="1" name="fruits[]">
[Code]...
View 9 Replies
View Related
Jan 31, 2011
I'm new to programming with the DOM and new to this forum as well. I have the code below showing a web page that is simply trying to alert the user of recognized DOM nodes. I am not getting the bodyElement or textElement to be recognized by the browser. The error states that "an object is required."
<html>
<head>
<title>Trickier nesting, still</title>
<script language="JavaScript" type="text/javascript">
var myDocument = document;
[Code]...
View 3 Replies
View Related
Jul 2, 2009
How do I show an alert/popup msg to the user if (items.Count < 1)?
View 3 Replies
View Related
Jun 27, 2004
I'm working in an .asp page where the user can delete a record. However i want an alert window to be displayed when the user clicks on delete asking the user if he really wants to or not ( the kind that has the two buttons ). If the user clicks no then the record delete is cancel, and if the user click yes then if goes to the page where it will be delete it.
View 1 Replies
View Related
Feb 16, 2009
I want to make different style of alert box on my code how to make user choice alert box.
View 1 Replies
View Related
Jun 16, 2010
i would like to add a onfocus alert pop up when a user tabs into a certain field
so say if i had
<td align=center><input maxlength=1 size=1 id="end" class="notnumber" name="18n_">
when the user tabs in to the textfield an alert pops up displaying a informaiton messaage
View 1 Replies
View Related
Mar 8, 2011
I currently have a page which, when the user clicks a button creates a new row displaying a form. I also have other forms on this page how to close a form using javascript? My code to create the table row and form are below...
myform = document.createElement("form");
myform.method = "post";
myform.action = "editdetails.php";
myform.id = "editemail";
myform.name = "editemail";
var a=document.getElementById('editdetailstable').insertRow(2);
var b=document.getElementById('editdetailstable').insertRow(3);
[Code]....
View 6 Replies
View Related
Mar 22, 2009
How can I do this?
-> I have a couple of files in a page in my website. I want the visitor to add his/her name & email id to visit this web page so that I can keep track of the visitors downloading the files.
View 1 Replies
View Related
Sep 18, 2011
I want to pop up alert when the user browse file into input for example I have this input:
HTML Code:
<input type="file" name="myfiles[]" />
Now, when the user finish to browse an file I want a function to start working, what I mean by finish browse file is when the user select file and than click on the file he selected twice and than when the browsing files windows close I want this function to start.
View 3 Replies
View Related