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 strongm 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: cawthor
  • Order by date
  1. cawthor

    Noob alert - Programatically build table on page load

    Each row of the table would contain 5 text boxes (which make up a single line item). I am using these text boxes to gather various data elements from the user. The user can submit more than 1 line item at a time, so I want multiple lines (50 was an exageration). Say 6 rows. Instead of creating...
  2. cawthor

    Noob alert - Programatically build table on page load

    say I have a table with 50 rows, each with an input box. In ASP I'd do something like: <table> <% for i = 1 to 50 %> <tr> <td> <input type="text" name="myTextBox_<%=i%>"> </td> </tr> <% next %> </table> I wouldn't have to build the entire table up-front. I was...
  3. cawthor

    Noob alert - Programatically build table on page load

    I'm trying to add rows to a table on page load instead of building the whole table in the designer. However, the following code produces no results. No error, just nothing on the screen. I'm defining the table in the html as follows: <asp:Table id="Table1" BorderWidth="1" GridLines="Both"...
  4. cawthor

    Issue resetting ScrollTop to zero

    That works great...thank you very much!
  5. cawthor

    Issue resetting ScrollTop to zero

    I've included some sample code below. If I scroll down a few items in a multi select box, then reset the ScrollTop to zero, the list resets to the first element correctly. However, if you then click the scroll down arrow, it will jump to the next value before the scrolltop reset. Eg. Scroll down...
  6. cawthor

    Anyone know of a scrollable sub-menu?

    Hi, I'm looking for a navigation menu that allows you to scroll the sub-menu values. Eg. You roll-over the main menu button, 'Products', and instead of displaying all 20 links, it displays 5 and allows the user to scroll up and down through the list (with maybe an up arrow at the top and a down...
  7. cawthor

    Custom datediff function giving weird results for Oct / Nov!

    Thanks for the help guys. It looks like it was the clock change that was affecting it. I'm still not sure why it would return '2' for that one week though, wouldn't it be the rest of the year if that was the issue? If I add the following code it works perfectly: d1.setHours('5')...
  8. cawthor

    Custom datediff function giving weird results for Oct / Nov!

    Hi, I was looking on the web for a function that would calculate the number of week days between 2 dates. I found the following function which I thought was working ok. However, it produces strange results for dates in the last week of October, start of November! I set up a test page to run...
  9. cawthor

    onChange and onBlur cannot see the event.keyCode

    yeah thats what I feared. But if I have an 'onkeypress' AND an 'onblur' event on the same text box, then pressing TAB executes the onblur event (skipping the keypress event where I can check for the keycode). I require the onblur event in case the user selects a different form element with the...
  10. cawthor

    onChange and onBlur cannot see the event.keyCode

    I am trying to execute a function when a text box focus is lost via the TAB key. I added a condition to the 'onBlur' event of the text box to check the keycode, but it always returns 0. Same for 'onChange'. Is there a way for these events to recognise that the TAB key was pressed?
  11. cawthor

    Don't submit form when ENTER key pressed

    Thank you very much! Works great.
  12. cawthor

    Don't submit form when ENTER key pressed

    I have a form with various text boxes. When a user presses the ENTER key whilst in one of the text boxes, the form is submitted. Can I disable this and just move the tabindex to the next text box? I don't want the form to submit until the user clicks on the 'Submit' button. Thanks.
  13. cawthor

    onblur and radio buttons

    Thank you. This will work great!
  14. cawthor

    onblur and radio buttons

    I have a text box that I immediately validate using an OnBlur function. However, if the user clicks on a radio button after they have entered their text (which triggers the onBlur event), the radio button doesn't get selected. You have to then click the radio button a second time to select it...
  15. cawthor

    Iframe on top of a Flash Movie

    Unfortunately not. The flash movie is created by a commercial package that generates dynamic graphs. Therefore, I do not have access to an fla file.
  16. cawthor

    Iframe on top of a Flash Movie

    I have a flash movie embedded in my page. I've added an iframe over a portion of this movie (it acts as a button to launch a larger view of the flash movie). This works fine, but if you click on the flash movie (not the iframe area), it brings the movie to the foreground and covers up the...
  17. cawthor

    Does IE cache cookie values??

    ok it must be a browser setting as I can run the same test on a different PC and it works fine.
  18. cawthor

    Does IE cache cookie values??

    Hi, I have a cookie set in my page. When the user updates a name field on the form, the cookie is updated. I know this is working correctly as I can open the cookie file on disk and see the value has been updated. However, the page always displays the original cookie value. I can even delete the...
  19. cawthor

    IE version for using imagemaps?

    Thanks for the help. We upgraded to 6.0 and it works fine.
  20. cawthor

    IE version for using imagemaps?

    Is there an IE pre-req for using Imagemaps? I have the following code on my page: <img src="images/find_lines_1.gif" alt="Find" border="0" usemap="#find_lines_1_Map"> <map name="find_lines_1_Map"> <area shape="rect" alt="" coords="5,103,22,120"...

Part and Inventory Search

Back
Top