Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm getting an IE error with these lines of code:

<a href="javascript: return false;" onmouseover="window.status='{@EncodedAbsUrl}';  
return true" onmouseout="window.status=''; return true" 
onclick="javascript:createNewDocumentWithProgID
('{@EncodedAbsUrl}', '', 'SharePoint.OpenDocuments', false);"><xsl:value-of 
select="@FileLeafRef" /></a>

Error reads "'return' statement outside of function". (It's non-intrusive - just the yellow triangle in the bottom of the browser window.)

I know very little about javascript, so I'm hesistant to correct. Any thoughts, guys?

share|improve this question

1 Answer 1

I think you want:

<a href="#" ...
share|improve this answer
    
Scott, thank you very much for your answer! That little tip helps me and my coworkers immensely - I hope karma rewards you well for your kindness! THANKS AGAIN!! :D –  Ryan May 2 '11 at 18:40
    
@Ryan, if that worked for you can you check the check mark next to the answer so I get credit. –  Scott Warren May 3 '11 at 12:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.