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: *

  • Users: jfdabiri
  • Order by date
  1. jfdabiri

    disable submit button if some variable > 0

    cmc, wherever the button's place is on the html code, just wrap this around it: <% if some_number > 0 then %> <input type="submit" name="btnSubmit" value="Click Me!"> <% end if %> actually you don't need to check for show-button to be true. i have done this many times.
  2. jfdabiri

    Dealing with Zero Length Strings in an Update Command

    johnypolite, is there anyway you can share that cheat sheet? because i am trying to validate my user input too. if you care to look, i have a thread on javascript section on this site dealing with sql injection. thanks.
  3. jfdabiri

    lastModified

    you might have to grab the actual file of the page (like: my_page.asp) and look at the lastmodified date of that file.
  4. jfdabiri

    NaN Problem

    you can use alert field on each field value to see if all your fields are valid numbers, thus finding the offending field.
  5. jfdabiri

    Making First Letters Upper Case in a String

    try this simple one: i think tsuji or one of the other guru's gave me this one data = "THIS IS DATA, AS YOU CAN SEE THE WORDS" & " before conversion" wscript.echo data With New RegExp .Global = True .IgnoreCase = True .Pattern = "\b(\w)(\w*?)\b" WScript.echo .Replace(data...
  6. jfdabiri

    Making 1 row out of 2

    you need an aggregate function to use group by.
  7. jfdabiri

    Form submit, take entire page

    this company has a cgi that has a mailto cgi. check with them: http://www.citynet.net/supportforms.cfm you can contact them on the phone to see if they can help you. i use their form submit/mailto cgi.
  8. jfdabiri

    Operation must use an updateable query

    yes, it's the permission issue. i had this same problem with an access db at my isp's server. need to check the security tab of the db file.
  9. jfdabiri

    Form submit, take entire page

    my isp who hosts a website for me, has a cgi program that submits an entire form with field names on the form as email. you may want to check with the web site to see if they do.
  10. jfdabiri

    Leading Zeros on a Timestamp Date

    when you use split(date_string, "/") it gives you different parts of the date: mm, dd, yyyy no need to "count" until you reach "/" and to make mm and dd 2 digits, the best way is to concatenate "0" and the one digit, and take the 2 right most bites: mm = 5 dd = 3 new_mm = right("0" & mm, 2) '...
  11. jfdabiri

    Criteria Expression Error - HELP!

    actually you don't need the ending "" or "'" since you don't wrap those around numbers. "SELECT * FROM contestants WHERE key = " & winKey the above should be sufficient
  12. jfdabiri

    Leading Zeros on a Timestamp Date

    sorry about being vague: in access the date should be wrapped in # e.g. #05/20/2008# in oracle, it's not make_date it's TO_DATE(your_date_string) e.g. to write to the database use: TO_DATE('05/20/2008 14:53:10', 'MM/DD/YYYY HH24:MI:SS') and to read from the database use: TO_CHAR(date_string...
  13. jfdabiri

    Leading Zeros on a Timestamp Date

    what's your database? access? oracle? or ? i tested the code above and it worked. how are you testing it? try writing sdate for test purposes. the two-digit thing works for displaying and sorting. if you write to the database, you have to use # for access tables and make_date(sdate) for oracle.
  14. jfdabiri

    Leading Zeros on a Timestamp Date

    to make mm and dd always 2 digits, use: mm = right("00" & mm, 2) dd = right("00" & dd, 2)
  15. jfdabiri

    Leading Zeros on a Timestamp Date

    The sort would work if it had leading zeros like this: 05/02/2008 10:22:01 AM 05/16/2008 04:08:21 PM """"""" actually your data is not in "sortable" order. if you really want to sort, it should look like this: YYYY/MM/DD HH24:mm:ss you can split the whole string separated by spaces. part(0)...
  16. jfdabiri

    NaN in Internet Explorer but not in Firefox?

    i found the problem. since internet explorer is a little bit retarded and can't figure things out, this line: var model = me.value; should be changed to this: var model = frm1.modl.options[frm1.modl.selectedIndex].text; any suggestions on why it works in firefox and not in internet...
  17. jfdabiri

    NaN in Internet Explorer but not in Firefox?

    thanks, it still doesn't work with the radix specified. here's my code. another problem is that the value of the field is undefined. i think that's the problem. <html> <head> <title>Models</title> </head> <script> function changeme(me) { var amount; var model; var amtx; amount =...
  18. jfdabiri

    NaN in Internet Explorer but not in Firefox?

    i tried it. that's not it. i don't think you have to specify the radix. the default is 10. the strange thing is that in firefox it works, but not in internet explorer. any other suggestions? thanks.
  19. jfdabiri

    NaN in Internet Explorer but not in Firefox?

    hi, i have this javascript function that works ok in firefox, but in i.e. it returns NaN. is there anyway to fix this? thanks. function changeit(me) { var amount; var model; var amtx; model = me.value; if (model == "x20") { amtx = "100.00"; } amount =...
  20. jfdabiri

    how to go to different pages with different buttons?

    bigred, you deserve a star (maybe more than one). the link that you provided was the best answer i have seen so far. it seems like the whole experts' sites on the internet have never attempted something like this. because they don't know how it's done. i found out how to pass the data: where...

Part and Inventory Search

Back
Top