User Profile

Collapse

Profile Sidebar

Collapse
quizwedge
quizwedge
Last Activity: Feb 9 '08, 04:20 AM
Joined: Oct 19 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • quizwedge
    replied to Clicking a button on an iframe
    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...
    See more | Go to post

    Leave a comment:


  • quizwedge
    replied to Clicking a button on an iframe
    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?
    See more | Go to post

    Leave a comment:


  • quizwedge
    started a topic Clicking a button on an iframe

    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...
    See more | Go to post

  • quizwedge
    replied to Coalesce / Comma Delimitted List
    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'

    ...
    See more | Go to post

    Leave a comment:


  • quizwedge
    started a topic Coalesce / Comma Delimitted List

    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...
    See more | Go to post
No activity results to display
Show More
Working...