I did a bunch of searches but couldn't find any help.
I'm getting an error on my indexof in IE7, works fine in Firefox/etc.
here's the code:
var prefix = "";
var relative = document.getElementById('url').value;
if(relative.indexOf("http")<=0) {
prefix = "http://";
}
window.open(prefix +...
I need to be able to convert 6-2-04 into 06-02-2004, right now it's being converted to 06-02-1904.. I need to add like.. 1000 years.. heh! what can I do to make it see 99 as 1999 but 04 as 2004?
Code is below:
function checkForDate(strPassed) {
var newDate = new Date()...
I'm allowing the user to enter in a time, and then in javascript it will take that time and validate it, then make it a military time if it's not a military time already. I wanted to make them conform to a specific time (dropdowns for hours, minutes), but everyone else is saying to allow them to...
I'm trying to reference two windows. I have a page index.html that opens up and a popup window popsup to get some JSP information. This window has a javascript that does a confirm. If the users says OK I want it to redirect index.html to another document. My code is below.. what am I doing...
I'm trying to let a user enter a time (Such as 07:00:00) then, run my javascript so that I can look at that time. At this point it will confirm the time with the user.. then If the time entered is between 7am and 6pm on a monday through Friday I want to pop up an extra "Are you sure?"...
I am currently trying to display a list of emergencies that have happened. So that the user can either send one up as an alert, unalert it or edit it. For legal purposes they cannot delete any of the emergencies they enter.
Here's my data:
isemgid - emergency - isemgevent
1000 - FALSE -...
This would be my code:
<%
v_yesno=request.getParameter("f_yesno");
if (v_yesno == "yes")
{
do code A
}
else
{
do code B
}
%>
<input type=radio value="yes" name=f_yesno> YES
<input type=radio value="no" name=f_yesno> NO
</body>
</html>
When someone...
I keep getting an error.. I've been staring at this code for a full day now.. I'm probably missing something fairly easy. If you could point my problem out to me.. that'd be great.
try
{
db.connect();
}
catch (ClassNotFoundException e)
{
throw new...
I'll try and give as much information as I can for this.. maybe then you can help me?
Request.getParameter is a number. Even when I hard code a number in, the same error is given. This is a javaserver page. The user DOES have permission to delete. The database was connected with db.connect...
I have a form with 2 buttons. The names of the buttons are selected. The values are delete or update. Now this is the code below. I just want to be able to delete and if the button delete is pushed a confirm to be shown. If yes is pressed on the confirm, then delete..
CODE...
Here's my problem.. I want a msgbox.. so I'm trying to do a function in client side vbscript that passes a value to a function in server side.
Here's the code. Can someone help me figure out how to do this?
<Script language=vbscript>
delete=MsgBox("Are you sure you want to delete this...
What I'm trying to do is validate an entry that a user types in. I'm trying to use wildcards but I'm not sure how. I want to make sure that no commas, double quotes, and single quotes are in the text entered by the user. My database statement can't handle those entries so I need to keep them...
What I'm trying to do is validate an entry that a user types in. I'm trying to use wildcards but I'm not sure how. I want to make sure that no commas, double quotes, and single quotes are in the text entered by the user. My database statement can't handle those entries so I need to keep them...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.