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...
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?
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...
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...
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...
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...
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...
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?
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?
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?
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?
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 =...
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...
I need to iterate through the rows in a range
For Each lookUpRow In UKStaffRange.Rows
Next lookUpRow
I want to get the values from the 1st and 2nd cells
How do I do this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.