> -----Original Message-----
> From: Punit Pandey [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 22, 2003 6:22 AM
> To: portlets; [EMAIL PROTECTED]
> Subject: JavaScript id clashing
> 
> 
> Hi All,
> 
> What to do of JavaScript id clashing? Suppose two portlets 
> developed by two different developers have same id of some 
> DOM element. 

This should not happen, IDs are uniquely generated for PSML and you would
get registry conflicts if 2 portlets had the same name.  Actually one would
"hide" the other.

> If we will put both of the portlets on one page, 
> JavaScript will produce error and JavaScript for both the 
> controls will stop working. What is a workaround of this 
> problem? Also what does JSR 168 says on this matter?

Nothing, its up to the portal implementors to provide a "best practices"
when it comes to using client-side scripting within a portal.

Regards,
*================================* 
| Scott T Weaver                 |
| <[EMAIL PROTECTED]>            | 
| Apache Jetspeed Portal Project |
| Apache Pluto Portlet Container |
*================================*


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to