469,935 Members | 1,983 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

Javascript Unspecified error


I have a frameset and in one of the frames I have two functions.
This code resides in a frame named leftFrame -

Expand|Select|Wrap|Line Numbers
  1. //This function downloads an Excel report
  2. function downloadExcelReport()
  3. {
  4. var selectObj = top.topFrame.document.getElementById('id_chain');
  5. document.forms[0].chain.value =
  6. selectObj.options[selectObj.selectedIndex].value;
  7. document.forms[0].submit();
  8. }
  10. //This function changes the text of an <LI> item onmouseover event
  11. function setinstructions(message)
  12. {
  13. var obj = document.getElementById('instr_text'); //Line 1
  14. obj.innerText = message;
  15. }
When downloadExcellReport() completes it gives the user open/save
option for downloading the Excel file. If the user choses to open the
file, then the setinstructions function works fine and the LI text is
updated, however if the user choses to save the file, then Line 1
produces a javacript error 'Unspecified Error'. I am unable to figure
out the connection between the two. Anybody has any idea what could be
causing this problem.

Please help
Oct 19 '10 #1
0 930

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Ashish | last post: by
3 posts views Thread by bsinni | last post: by
1 post views Thread by puneet.bansal | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.