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 wOOdy-Soft 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 RicksAtWork

  1. RicksAtWork

    Multiple Submit buttons in Mozilla

    Solved it with this - totally unobtrusive! document.getElementById('Form1').onsubmit=ValidationKernal; var buttonClicked = null; //Add Click events to all submit buttons var controls = document.getElementById("Form1"); for (i=0...
  2. RicksAtWork

    Multiple Submit buttons in Mozilla

    I have a form with various fields and two submit buttons. I have set the default event handler for the submit event to point to a validation method i.e. document.getElementById("Form1").onsubmit=Validate; In my function Validate, I want to determine which button was pressed is this possible?
  3. RicksAtWork

    Manually creating postback with javascript

    I've rephrased the question slightly: I want to generate a postback using client side javascript. I am currently using unobtrusive javascript (for accessibility reasons) so, I am NOT using code like this: <input type="button" id="btnUpdate" onclick="Validate()" /> Instead I am using...
  4. RicksAtWork

    Manually creating postback with javascript

    I wasnt to generate a postback as if a specific button element was pressed. Looking at how .net does this it seems to add the following html to a form: <input type="hidden" name="__EVENTTARGET" /> <input type="hidden" name="__EVENTARGUMENT" /> With this an additional javascript method is...
  5. RicksAtWork

    Unobtrusive Javascript and Submiting forms

    I have a method addEvent which wires up events. //Set default submit handler to always return false, and therefore not submit the form. document.getElementById('Form1').onsubmit=function(){return false;} //The following code points all submit events at the method EventKernal...
  6. RicksAtWork

    Sending files to the browser

    This is my second attempt - this seems to kill my server completely.... Any ideas where I'm going wrong?? string filePath = context.Server.MapPath("~") + "/Audio/UploadedAudio/" + filename; FileStream oFile = new FileStream (filePath, FileMode.Open, FileAccess.Read); try...
  7. RicksAtWork

    Sending files to the browser

    I am trying to send an mp3 to a browser. However, it takes about 20 seconds before anything appears, and then file appears all of a sudden in blocks. How can I make teh app so the response is sent immediately in chunks? This is my code so far: FileStream oFile = new...
  8. RicksAtWork

    Safari and setting backgroundcolor with javascript

    its for a yellow fad type technique - so I cant add all the iterations of this to the css!
  9. RicksAtWork

    Safari and setting backgroundcolor with javascript

    var obj = document.getElementById("div1"); obj.style.backgroundColor = "#FF0000"; This works in al browsers except Safari 1.3.2 Any ideas how to resolve this?
  10. RicksAtWork

    Protecting a site

    I am currently developing a website. During this development I am protecting the site with windows authentication. I do not yet want to expose the site to the world, however, I have a couple of web services that I want to make public. Is this possible without adding code to my site?
  11. RicksAtWork

    Session State and Webservices

    My error occurs before i specify a method - rather the problem occurs when i call the .asmx file without a reference to the method I want to execute. Can you apply a similar tag to the whole webservice?
  12. RicksAtWork

    leading zeros

    I am pulling a value from a row: safeID = (lookUpRow.Cells(1, 2)) An example number is 001234 I then want to place this value in another cell via Sheets(targetWorkSheetName).Cells(targetRow, 7).Value = safeID However the leading zeros are lost. How do I prevent this?
  13. RicksAtWork

    Ranges and Cells

    Aye.. my final code reads: For Each targetCell In targetStaffRange.Cells 'Get the individuals name for this row targetIndividual = targetCell.Value targetRow = targetCell.row For Each lookUpRow In UKStaffRange.Rows staff =...
  14. RicksAtWork

    Ranges and Cells

    Cheers for your help. If I'm iterating through cells i.e. For Each targetCell In targetStaffRange.Cells Next targetCell can I get the row number of the current cell? targetStaffRange is just a range 1 column wide It comes from a sheet that contains many columns. Is it...

Part and Inventory Search

Back
Top