[Building Sakai] Internet Explorer 8 - Javascript broking

View: New views
4 Messages — Rating Filter:   Alert me  

[Building Sakai] Internet Explorer 8 - Javascript broking

by André Zanchetta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all.

I've developed an small toll for sakai which is full of pure javascript and jquery code.
It was developed with Firefox and worked well. Very well.

However, when I tried to run it on Internet Explorer 8, some javascripts where broken.
Following the I.E. 8 javascript debugger, it shows that the errors occurs during the "body onLoad". More precisely: on the "setMainFrameHeight('Main85ab...')" method. The error: "object Expected". Afther that error, another one happens on "setFocus(focus_path)": which says that 'focus_path' is not defined.
As soon as the first error happens, all javascript code is stoped.

I'm not sure, but this 'onload' code seems to be inserted by Sakai.
Is there any way of removing these functions from the onLoad attribute?
Or does someone know where can I find some way to fix this?
Was I the first one who had this problem?

Thanks,
André Della Libera Zanchetta
ReadInWeb - Unicamp - Brazil


PS: I'm really sorry if there is any English error. That is not my native language.

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] Internet Explorer 8 - Javascript broking

by elicochran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I suspect that this will be fairly easy to debug. 

Is there a place where I could look at a live instance of the tool?
If not send along the javascript file or files and a dump of the rendered HTML page and I'll take a look.

Hard to debug Javascript without seeing the DOM and the code. 

- Eli Cochran
  user interaction developer
  ETS, UC Berkeley



On Nov 4, 2009, at 6:35 AM, André Zanchetta wrote:

Hi all.

I've developed an small toll for sakai which is full of pure javascript and jquery code.
It was developed with Firefox and worked well. Very well.

However, when I tried to run it on Internet Explorer 8, some javascripts where broken.
Following the I.E. 8 javascript debugger, it shows that the errors occurs during the "body onLoad". More precisely: on the "setMainFrameHeight('Main85ab...')" method. The error: "object Expected". Afther that error, another one happens on "setFocus(focus_path)": which says that 'focus_path' is not defined.
As soon as the first error happens, all javascript code is stoped.

I'm not sure, but this 'onload' code seems to be inserted by Sakai.
Is there any way of removing these functions from the onLoad attribute?
Or does someone know where can I find some way to fix this?
Was I the first one who had this problem?

Thanks,
André Della Libera Zanchetta
ReadInWeb - Unicamp - Brazil


PS: I'm really sorry if there is any English error. That is not my native language.
_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

. . . . . . . . . . .  .  .   .    .      .         .              .                     .

Eli Cochran
user interaction developer
ETS, UC Berkeley



_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] Internet Explorer 8 - Javascript broking

by Mark Norton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The Sakai portal dynamically resizes tools present on a site page.  This
is done using the very Javascript code you are referring to.  If you
remove this code, the portal will display differently, depending on the
size of the tool.  Since content can impact the size of the tool,
screens would be erratic.

This is part of the Sakai portal.  Removing it is not advised.  That
said, does Sakai work in IE8?

- Mark

André Zanchetta wrote:

> Hi all.
>
> I've developed an small toll for sakai which is full of pure
> javascript and jquery code.
> It was developed with Firefox and worked well. Very well.
>
> However, when I tried to run it on Internet Explorer 8, some
> javascripts where broken.
> Following the I.E. 8 javascript debugger, it shows that the errors
> occurs during the "body onLoad". More precisely: on the
> "setMainFrameHeight('Main85ab...')" method. The error: "object
> Expected". Afther that error, another one happens on
> "setFocus(focus_path)": which says that 'focus_path' is not defined.
> As soon as the first error happens, all javascript code is stoped.
>
> I'm not sure, but this 'onload' code seems to be inserted by Sakai.
> Is there any way of removing these functions from the onLoad attribute?
> Or does someone know where can I find some way to fix this?
> Was I the first one who had this problem?
>
> Thanks,
> André Della Libera Zanchetta
> ReadInWeb - Unicamp - Brazil
>
>
> PS: I'm really sorry if there is any English error. That is not my
> native language.
> ------------------------------------------------------------------------
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev@...
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] Internet Explorer 8 - Javascript broking

by Noah Botimer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello André,

Typically, tools include portalscripts.js and headscript.js, where  
these functions are located. You should first verify if you are  
including them. If not, you can look at the other tools for example  
code.

It is also a good suggestion to have this code check if the objects  
or functions are available before calling them. We may want to  
consider this for the 2.7 release.

Thanks,
-Noah

On Nov 4, 2009, at 9:35 AM, André Zanchetta wrote:

> Hi all.
>
> I've developed an small toll for sakai which is full of pure  
> javascript and jquery code.
> It was developed with Firefox and worked well. Very well.
>
> However, when I tried to run it on Internet Explorer 8, some  
> javascripts where broken.
> Following the I.E. 8 javascript debugger, it shows that the errors  
> occurs during the "body onLoad". More precisely: on the  
> "setMainFrameHeight('Main85ab...')" method. The error: "object  
> Expected". Afther that error, another one happens on "setFocus
> (focus_path)": which says that 'focus_path' is not defined.
> As soon as the first error happens, all javascript code is stoped.
>
> I'm not sure, but this 'onload' code seems to be inserted by Sakai.
> Is there any way of removing these functions from the onLoad  
> attribute?
> Or does someone know where can I find some way to fix this?
> Was I the first one who had this problem?
>
> Thanks,
> André Della Libera Zanchetta
> ReadInWeb - Unicamp - Brazil
>
>
> PS: I'm really sorry if there is any English error. That is not my  
> native language.
> _______________________________________________
> sakai-dev mailing list
> sakai-dev@...
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-
> unsubscribe@... with a subject of "unsubscribe"

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"