Well, it appears that IE will process a javascript click of a button on an iframe and then code running on the main page whereas Firefox does the opposite. To fix this, I did the following code:
window.frames[0].document.getEl ementById('btnS ave').click(); setTimeout('doc ument.getElemen tById(\'ctl00_C ontentPlaceHold er1_btnMainSave \').click()', 250);
This forces Firefox to wait on the main document code, giving...
User Profile
Collapse
-
Follow up on this: It appears that it is running the code on the main page first, instead of the clicked button on the iframe. The main page has code on the backend to verify that the work in the iframe has been done first. It seems that IE is running the iframe first, but FireFox does not. How do I make FireFox handle it like IE does?Leave a comment:
-
Clicking a button on an iframe
I've got an ASPX page with an iframe that has another ASPX page. When the "Next" button is clicked on the main page, I want it to click the "Save" html input button on the iframe page. On the back end of the main page, I have the following line:
btnNext.Attribu tes.Add("onClic k", "window.fra mes[0].document.getEl ementById('btnS ave').click();" )
This works fine in IE. It also works... -
I now have:
SELECT distinct
IsNull(Column1, '') AS Column1,
IsNull(Column2, '') + CASE WHEN @MyBit = 1 THEN ' My Test: ' + [select @MyVarChar = COALESCE(Column 3 + ', ', '') from TableSub where Value = @MyValue] ELSE '' END AS Column2
FROM TableMain
and I get:
ADO error: Invalid column name 'select @MyVarChar = COALESCE(Column 3 + ',', '') from TableSub where Value = @MyValue'
...Leave a comment:
-
Coalesce / Comma Delimitted List
I'm trying to return multiple column, one of which is a column + a comma delimitted list of values. Below is a simplified, non working, query:
(assume @MyBit, @MyVarChar, and @MyValue are all declared)
SELECT distinct
IsNull(Column1, '') AS Column1,
IsNull(Column2, '') + CASE WHEN @MyBit = 1 THEN ' My Test: ' + (select @MyVarChar = COALESCE(Column 3 + ', ', '') from TableSub where Value = @MyValue) ELSE...
No activity results to display
Show More
Leave a comment: