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

    DataAdapter.Update() trouble

    I have a DataTable with a DataAdapter in a Dataset that I created using the the dataset tools within Visual Studio. I had it create the INSERT/UPDATE/DELETE commands automatically for me and looking at them they look correct. I have written a bunch of code to then populate/change the data...
  2. Light777

    Getting Layer Properties

    Nevermind, I wrote the wrong alert. However, I'm not getting anything for style.height, as a string it would be "". When I use style.offsetHeight, I get an undefined error. Is there anyway around this?
  3. Light777

    Getting Layer Properties

    I am trying to get the height or width or left or top of a layer that has not been explicitly set or has been set to a percentage. i.e. #DIV {position: absolute; width: 100%} <div id="DIV"> </div> I am changing the innerHTML of this layer and then trying to get the height so I can lay out...
  4. Light777

    Getting quantities for each store

    Thank you lbass... That was the logic I had at first. I was wondering why it didn't work...well, I had the tables linked wrong. oops. Thank you everyone for your help on this situation.
  5. Light777

    Getting quantities for each store

    Thanks BFAGG, That would have worked... I failed to give more detail into the scope of the project. The report needs more than just those fields... i.e. Item Supplier Department Category Total Quantity Store1 Quantity Store2 Quantity Store3 Quantity Cost Price All of these values are...
  6. Light777

    Getting quantities for each store

    Sorry, let me try to explain myself a little bit better... the database: Item StoreID Quantity 1 1 3 1 2 5 1 3 2 2 1 5 2 2 3 2 3 6 etc. The easy way is to group by...
  7. Light777

    Getting quantities for each store

    I need to get a quantity value for each store based on the ItemID, however, the client wants it within a column rather than grouping the ItemID and listing the stores with a quantity behind each, which is a lot simpler. Of course people want things the hard way... i.e. if {Item.StoreID} =...
  8. Light777

    getting all attributes

    For testing purposes, I need to create a list of all of the elements on a page that I am working on with all of their attributes and values. Does anyone have a snipet of code that will cycle through every object and get their attributes? i.e. document.Form.TextArea.Value = "whatever"...
  9. Light777

    Expected semi-colon error and Object expected error

    ok, I put an alert in front of the if statements in both of the functions like this: alert(document.getElementById(&quot;MainContent&quot;).style.visibility); also one for SideContent. Both of the alert boxes are empty when they come up. Am I calling the element right?
  10. Light777

    Open Window Params don't work

    Try this: ssmitems1[10]= window.open('http://www.oursite.com/mischelpinfo/contactuspage.htm', '', 'width=450, height=300')
  11. Light777

    Expected semi-colon error and Object expected error

    Thanks, that was it, I'm not throwing either error anymore. However, something new is popping up...When I click on one of the side menu options, it should change the content around and make the SideContent containers visible and the MainContent hidden, but it's not doing this. It's keeping the...
  12. Light777

    Expected semi-colon error and Object expected error

    Thanks for catching a couple of things I missed, the comments I just threw in there last minute before posting, just for readability. However, those if statements wouldn't have worked, so thanks for catching that. It still doesn't help with the main errors I'm having though.
  13. Light777

    Expected semi-colon error and Object expected error

    I am doing a site for a computer store and I have come across a couple of errors that I can't figure out, if someone could help me that would be greatly appreciated. Here is the code: (At the end of this post, I'll describe the errors that I am getting) <%@Language = VBScript%> <html>...
  14. Light777

    Shrinking a box from the corners

    That is actually what I was doing. I called the shrinkMore function from the start like that. The problem I am having is getting the number from the object. I was able to solve this problem using the offsetLeft and offsetTop and offsetWidth and offsetHeight commands. They are not W3...
  15. Light777

    Shrinking a box from the corners

    I did a quick search to find out what NaN meant and it is short for Not-a-Number. Seeing as the first code that I wrote came up with no value at all for StyleObj.left then this leads me to believe that it is not pulling the correct object or properties for this object. Is there any way to test...
  16. Light777

    Shrinking a box from the corners

    I copied it exactly first using only the shrinkMore function because I didn't need to show the testing of it, that is only for myself to try to figure out what is wrong. Nothing happened so I put in a debug window into the function and I get NaN as the values for parseInt(boxStyleObj.left) and...
  17. Light777

    Shrinking a box from the corners

    Ok, now I get NaN as the values for all of the properties. What does this mean?
  18. Light777

    Shrinking a box from the corners

    I want to be able to shrink a box from the corners inward dynamically when a button is pressed. Here is my code so far: function div_collapse_from_corners(shrinkingbox) { var test = open('test.htm', 'test', 'width=200, height=200') styleObj = document.getElementById(shrinkingbox).style...
  19. Light777

    Invalid procedure call or argument: 'Left'

    Someone help, I've been pulling my hair out over this one. I keep getting an &quot;Invalid procedure call or argument: 'Left'&quot; error whenever I run this piece of code... strSql=&quot;SELECT NAME FROM Places WHERE NAME = '&quot; & Request.Form(&quot;StartPlace&quot;) & &quot;'&quot; Set rs...
  20. Light777

    Resize frames to center the document

    That only reduced the content...I set the side frames to 30%, and the middle to 627 px, which I know is the exact proportions of the middle content, and it reduced the content in the middle. I've also thought about doing it in JavaScript with: {function SetSize() Space = ((screen.availWidth...

Part and Inventory Search

Back
Top