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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by newbie404

  1. newbie404

    Adding weekdays to a date

    Thanks a million! Works a treat. You the man!
  2. newbie404

    Adding weekdays to a date

    Thanks Dan, but not exactly. My problem is with weekdays, or adding a day. I got a snippet which I have changed so I have... function MoveWeekdays(num_days) { //get date from form dt=document.myform.myfield.value dt=dt.split("/") datField=new Date() dd=parseInt(dt[1])//The Date...
  3. newbie404

    Adding weekdays to a date

    Hi, I am writing an ASP program but need to have some javascript in it too. I need a javascript function that you can supply in a date in the format mm/dd/yyyy and an integer which is the number of weekdays (M-F) to add to it.I have written the function for use in the ASP side but am a bit...
  4. newbie404

    Calling a javascript function AND an asp one

    Thanks vbkris! So, the javascript will change the ifrsame location and that will run the function, and this page will return the results to it's parent? Yikes! I can see myself messing this up... here goes.
  5. newbie404

    Calling a javascript function AND an asp one

    thanks. Thats what I thought, I just wasn't sure if this was the case for all functions. Cheers for the clarification.
  6. newbie404

    asp sql problem

    I don't get the problem but one easy way of achieving this would be to have bobs page stored in the database in the record that has his username and passowrd combination. That way bob enteres his username and password. Say the username is "bobjones", password is "bobspassword" and page is...
  7. newbie404

    Calling a javascript function AND an asp one

    Hi, I have an asp page where I have a form. Within the form I have a button which does NOT submit the form, but instead calls a javascript function which does some things for me. I have found that I also want to call an asp function on the page when the button is pressed. Is there any way of...
  8. newbie404

    asp sql problem

    'You could split it into two actions... gstrSQL = "select <whatever is going to get you the username>" conn.execute(gstrSQL) myFECHNB=rs("Username") ' then use the returned value in another query gstrSQL = "select FECHNB, FECVNB, FECBTX, FEAAC3, FEAAC9, FEALDT, FEKNNB, DDAIDT...
  9. newbie404

    adding days and half days

    Thanks, but that's not working for me. I found a script that works at http://www.flws.com.au/showusyourcode/codeLib/code/AddWorkingDays.asp?catID=1 Thanks for the help anyhow, but it was weekdays not weeks I was trying to add. And weedays as 'w' seems to just add a day (even if that day is...
  10. newbie404

    adding days and half days

    I am trying to write a function where I add a number of days or half days to a date. however, I am not sure how to add days of the week (M-F) only when adding days. I thought that it was newdate=DateAdd("w", 1, indate) but this seems to just add a single day even if it is adding to friday. I...
  11. newbie404

    Maintaining spaces with xsl transformation of xml

    Hi, I have some trouble getting my xml to display correctly using xsl. I have a node with formatting which can also contain changes which are marked <insertion> or <deletion>. Insertions should be shown, deletions should not. A sample piece of this xml is: <Text> text&lt;inserted&gt...
  12. newbie404

    Extracting attributes wityh xsl

    Thanks for all the help - I got it working with <xsl:value-of select="./@id" />
  13. newbie404

    Extracting attributes wityh xsl

    Thanks for the two suggestions, but I still can't get it to work. Totally stumped with this one. Any other suggestions are more than welcome. thanks Andy
  14. newbie404

    Extracting attributes wityh xsl

    Hi. I am writing some xsl to extract attribute details from an xml file and display them. My problem is I am not getting the output! The xsl (a section of it) is - <xsl:for-each select="Option[@correctanswer='true']"> <div id="filename"> <xsl:value-of select="@id" /> </div> </xsl:for-each>...
  15. newbie404

    Including some child nodes of mixed nodes, but not others

    Yeah, I've been using w3schools, but they seem to stop after the basics. As soon as you have your cd's sorted out you are on your own! :o)

Part and Inventory Search

Back
Top