You cannot replace it with a client-side script expression. You could modify the src attribute from a client-side script block elsewhere in the page but you would have to know or be able to receive the account number and price from somewhere:
Code:
function modifyIframeSrc(IframeName, Src)
{
var oFrame = document.getElementsByName(IFrameName)[0];
oFrame.src = Src;
}
function getAccountSrc(AccountNumber, Price)
{
var sSrc = "BookLst.jsp?acctno=" + AccountNumber + "&price=" + Price;
return sSrc;
}
Then somewhere you need to call:
Code:
var sAccountNumber = "=<%= acctno %>";
var sPrice = "=<%= price %>";
modifyIframeSrc("booklst", getAccountSrc(sAccountNumber , sPrice));
or you may have other ways of retrieving the details.
You still may need to force a refresh of the iframe for the new page to show properly.
--
Joe