MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

any MOSS + Javascript experts?

  Asked By: Jackie    Date: Dec 13    Category: MOSS    Views: 711

I'm not sure this is a javascript issue, though I have a hunch.

I've been modifying a copy of default.aspx for my master page. I don't
know when this happened, but I've ran into an issue where if you are
in EDIT THIS PAGE mode, and you click any non-admin-js link on the
page (such as a standard ahref or a javascript link that I make
myself) you get an error in IE (not Firefox):

Line: 88
Char: 9
Error: The download of the specified resource has failed.
Code: 0
URL: [whatever url is in the href of the particular link]

Line 88 in my generated markup roughly around here:

var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
// -->

Now, I say 'roughly' as I'm not sure how accurate the particular IE
extension I'm using to view the generated markup is.

Normally, this error wouldn't really be an issue, as one doesn't
normally click on regular links on the page while editing.

However, it's a problem for me as I'm hacking the toolpane with some
javascript and css on pageload. I'm wrapping the toolpane in some HTML
so I can float it, then providing a javascript link to hide/collapse
the pane. The problem is that when the user clicks that link, they get
this error. Then everything is fine, but it's very annoying to have to
get this error every time you want to edit a page.

If I remove all of my CSS/Javascript, the error is still there, so it
doesn't seem directly related to that.

Anyone have any idea what might be causing this error?



1 Answer Found

Answer #1    Answered By: Jose Scott     Answered On: Dec 13

I've done more tests on this this morning.

At first I thought it might be related  to the Telerik RadEditor, but
now I think it was wrongfully accused.

On my publishing site, if I revert back to the default.aspx
masterpage, click  EDIT PAGE, click in the page  CONTENT field and then
click elsewhere, I can replicate this same error.

I know it's a long shot...but anyone have any clues? Might this be a
sharepoint issue? Something wrong with my IE?

Didn't find what you were looking for? Find more on any MOSS + Javascript experts? Or get search suggestion and latest updates.