Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. faiyth

    IE7 - Object Does not Support this property or method (INDEXOF)

    Thanks! That bit about the url not coming in as a string was the issue. I converted it to a string and the entire thing works. Thanks! Here's the working code: var prefix = ""; var relative = String(document.getElementById('url').value); if(relative.indexOf("http")<=0) { prefix =...
  2. faiyth

    IE7 - Object Does not Support this property or method (INDEXOF)

    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 +...
  3. faiyth

    Converting to wrong date

    Actually nevermind I figured out something that will work.. if(newDate.getFullYear() < 1990) { newyear=newDate.getFullYear()+100; } else { newyear=newDate.getFullYear(); } strPassed.value=lz((newDate.getMonth() + 1)) + "-" + lz(newDate.getDate()) + "-" + newyear;
  4. faiyth

    Converting to wrong date

    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()...
  5. faiyth

    Converting user entered time to military

    Oh! Also, your script isn't showing me military time whether I click yes or no. It ONLY shows regular time with a am/pm or no am/pm. So since it's 1:38 right now, it's either show 1:38 or 1:38 (am/pm).. the correct military time is 13:38.
  6. faiyth

    Converting user entered time to military

    Alright great. I used that and it displays the time. but just NOW's time. I'm taking this and using it to let a user enter 4pm into a text box, when they leave that text box it's going to take the time they entered, make sure it's a time, and then turn that time into military time, then put it...
  7. faiyth

    Converting user entered time to military

    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...
  8. faiyth

    Problem with Multiple Windows

    Nope, same thing. It's still redirecting my popup window instead of my index.html document.
  9. faiyth

    Problem with Multiple Windows

    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...
  10. faiyth

    I'm trying to let a user enter a ti

    Hehe! Sorry, i'm absolutely frustrated. So of course my code is messy.. I've written it cleaned then spent 2 and a half hours deleting, adding and changing things.. so my code just gets uglier and uglier.. But I'm still having the same problem with your helpful code. Whether the user enters...
  11. faiyth

    I'm trying to let a user enter a ti

    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 &quot;Are you sure?&quot...
  12. faiyth

    Distinct Select Problem

    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 -...
  13. faiyth

    Totally Confused - Please help..

    This would be my code: <% v_yesno=request.getParameter(&quot;f_yesno&quot;); if (v_yesno == &quot;yes&quot;) { do code A } else { do code B } %> <input type=radio value=&quot;yes&quot; name=f_yesno> YES <input type=radio value=&quot;no&quot; name=f_yesno> NO </body> </html> When someone...
  14. faiyth

    Missing a Finally but I don't want a finally

    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...
  15. faiyth

    Problem with delete

    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...
  16. faiyth

    Problem with Delete Statement

    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...
  17. faiyth

    VbScripting Problem

    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(&quot;Are you sure you want to delete this...
  18. faiyth

    Problem with Wildcards

    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...
  19. faiyth

    Problem with Wildcards

    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...

Part and Inventory Search

Back
Top