Javascript of myportal is blocked

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Javascript of myportal is blocked

Santosh Malviya-3
Hello all,
When I try to create a new contact address for a portal then javascript is
blocked for all buttons on the page, here is code snippet for javascript of
form

<form method="post" action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
onSubmit="javascript:submitFormDisableSubmits(this)"
name="createPortalPortlet">
  <input name="portalPortletId" value="${portalPortlet.portalPortletId}"
type="hidden"/>
  <input name="portalPageId" value="${parameters.portalPageId}"
type="hidden"/>
  <input name="columnSeqId" value="${parameters.columnSeqId}"
type="hidden"/>
</form>
<a class="buttontext"
href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
${portalPortlet.portletName}</a>

In the above code javascript:document.createPortalPortlet.submit() is
blocked and shows error in firebug with this is not a function. I searched
with existing code of other files and found no difference and those codes
are working fine.

Thanks in advance.

Thanks and Regards
Santosh Chouhan
Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

David E Jones-3

It may be that the form name is not unique, ie there is something else  
on the page with that same name. If this is in a list of things then  
something needs to be done (a suffix to the name added) so that each  
form name is unique.

-David


On Apr 1, 2009, at 10:30 AM, santosh chouhan wrote:

> Hello all,
> When I try to create a new contact address for a portal then  
> javascript is
> blocked for all buttons on the page, here is code snippet for  
> javascript of
> form
>
> <form method="post" action="<@ofbizUrl>createPortalPagePortlet</
> @ofbizUrl>"
> onSubmit="javascript:submitFormDisableSubmits(this)"
> name="createPortalPortlet">
>  <input name="portalPortletId" value="$
> {portalPortlet.portalPortletId}"
> type="hidden"/>
>  <input name="portalPageId" value="${parameters.portalPageId}"
> type="hidden"/>
>  <input name="columnSeqId" value="${parameters.columnSeqId}"
> type="hidden"/>
> </form>
> <a class="buttontext"
> href="javascript:document.createPortalPortlet.submit()">$
> {uiLabelMap.CommonAdd}:
> ${portalPortlet.portletName}</a>
>
> In the above code javascript:document.createPortalPortlet.submit() is
> blocked and shows error in firebug with this is not a function. I  
> searched
> with existing code of other files and found no difference and those  
> codes
> are working fine.
>
> Thanks in advance.
>
> Thanks and Regards
> Santosh Chouhan

Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

hans_bakker
In reply to this post by Santosh Malviya-3
I am working on this....so it will be solved in a couple of days......

On Wed, 2009-04-01 at 22:00 +0530, santosh chouhan wrote:

> Hello all,
> When I try to create a new contact address for a portal then javascript is
> blocked for all buttons on the page, here is code snippet for javascript of
> form
>
> <form method="post" action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
> onSubmit="javascript:submitFormDisableSubmits(this)"
> name="createPortalPortlet">
>   <input name="portalPortletId" value="${portalPortlet.portalPortletId}"
> type="hidden"/>
>   <input name="portalPageId" value="${parameters.portalPageId}"
> type="hidden"/>
>   <input name="columnSeqId" value="${parameters.columnSeqId}"
> type="hidden"/>
> </form>
> <a class="buttontext"
> href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
> ${portalPortlet.portletName}</a>
>
> In the above code javascript:document.createPortalPortlet.submit() is
> blocked and shows error in firebug with this is not a function. I searched
> with existing code of other files and found no difference and those codes
> are working fine.
>
> Thanks in advance.
>
> Thanks and Regards
> Santosh Chouhan
--
Antwebsystems.com: Quality OFBiz services for competitive rates

Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

Santosh Malviya-3
In reply to this post by David E Jones-3
Hello David,
The form name i.e. createPortalPortlet is unique in ftl and there is no
other with same name.

Thanks and Regards
Santosh Chouhan

On Thu, Apr 2, 2009 at 1:16 AM, David E Jones
<[hidden email]>wrote:

>
> It may be that the form name is not unique, ie there is something else on
> the page with that same name. If this is in a list of things then something
> needs to be done (a suffix to the name added) so that each form name is
> unique.
>
> -David
>
>
>
> On Apr 1, 2009, at 10:30 AM, santosh chouhan wrote:
>
>  Hello all,
>> When I try to create a new contact address for a portal then javascript is
>> blocked for all buttons on the page, here is code snippet for javascript
>> of
>> form
>>
>> <form method="post"
>> action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
>> onSubmit="javascript:submitFormDisableSubmits(this)"
>> name="createPortalPortlet">
>>  <input name="portalPortletId" value="${portalPortlet.portalPortletId}"
>> type="hidden"/>
>>  <input name="portalPageId" value="${parameters.portalPageId}"
>> type="hidden"/>
>>  <input name="columnSeqId" value="${parameters.columnSeqId}"
>> type="hidden"/>
>> </form>
>> <a class="buttontext"
>>
>> href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
>> ${portalPortlet.portletName}</a>
>>
>> In the above code javascript:document.createPortalPortlet.submit() is
>> blocked and shows error in firebug with this is not a function. I searched
>> with existing code of other files and found no difference and those codes
>> are working fine.
>>
>> Thanks in advance.
>>
>> Thanks and Regards
>> Santosh Chouhan
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

Santosh Malviya-3
In reply to this post by hans_bakker
Thanks Hans for clarifying this, I hope this would be fixed soon.

Thanks and Regards
Santosh Chouhan

On Thu, Apr 2, 2009 at 6:38 AM, Hans Bakker
<[hidden email]>wrote:

> I am working on this....so it will be solved in a couple of days......
>
> On Wed, 2009-04-01 at 22:00 +0530, santosh chouhan wrote:
> > Hello all,
> > When I try to create a new contact address for a portal then javascript
> is
> > blocked for all buttons on the page, here is code snippet for javascript
> of
> > form
> >
> > <form method="post"
> action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
> > onSubmit="javascript:submitFormDisableSubmits(this)"
> > name="createPortalPortlet">
> >   <input name="portalPortletId" value="${portalPortlet.portalPortletId}"
> > type="hidden"/>
> >   <input name="portalPageId" value="${parameters.portalPageId}"
> > type="hidden"/>
> >   <input name="columnSeqId" value="${parameters.columnSeqId}"
> > type="hidden"/>
> > </form>
> > <a class="buttontext"
> >
> href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
> > ${portalPortlet.portletName}</a>
> >
> > In the above code javascript:document.createPortalPortlet.submit() is
> > blocked and shows error in firebug with this is not a function. I
> searched
> > with existing code of other files and found no difference and those codes
> > are working fine.
> >
> > Thanks in advance.
> >
> > Thanks and Regards
> > Santosh Chouhan
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

hans_bakker
In reply to this post by Santosh Malviya-3
fixed in revision 761186.

Regards,
Hans

On Wed, 2009-04-01 at 22:00 +0530, santosh chouhan wrote:

> Hello all,
> When I try to create a new contact address for a portal then javascript is
> blocked for all buttons on the page, here is code snippet for javascript of
> form
>
> <form method="post" action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
> onSubmit="javascript:submitFormDisableSubmits(this)"
> name="createPortalPortlet">
>   <input name="portalPortletId" value="${portalPortlet.portalPortletId}"
> type="hidden"/>
>   <input name="portalPageId" value="${parameters.portalPageId}"
> type="hidden"/>
>   <input name="columnSeqId" value="${parameters.columnSeqId}"
> type="hidden"/>
> </form>
> <a class="buttontext"
> href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
> ${portalPortlet.portletName}</a>
>
> In the above code javascript:document.createPortalPortlet.submit() is
> blocked and shows error in firebug with this is not a function. I searched
> with existing code of other files and found no difference and those codes
> are working fine.
>
> Thanks in advance.
>
> Thanks and Regards
> Santosh Chouhan
--
Antwebsystems.com: Quality OFBiz services for competitive rates

Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

Santosh Malviya-3
Hello Hans,
Still getting same problem of javascript blocked, please could you see once
again into this.
Thanks in advance.

Thanks and Regards
Santosh Chouhan.

On Thu, Apr 2, 2009 at 12:28 PM, Hans Bakker
<[hidden email]>wrote:

> fixed in revision 761186.
>
> Regards,
> Hans
>
> On Wed, 2009-04-01 at 22:00 +0530, santosh chouhan wrote:
> > Hello all,
> > When I try to create a new contact address for a portal then javascript
> is
> > blocked for all buttons on the page, here is code snippet for javascript
> of
> > form
> >
> > <form method="post"
> action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
> > onSubmit="javascript:submitFormDisableSubmits(this)"
> > name="createPortalPortlet">
> >   <input name="portalPortletId" value="${portalPortlet.portalPortletId}"
> > type="hidden"/>
> >   <input name="portalPageId" value="${parameters.portalPageId}"
> > type="hidden"/>
> >   <input name="columnSeqId" value="${parameters.columnSeqId}"
> > type="hidden"/>
> > </form>
> > <a class="buttontext"
> >
> href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
> > ${portalPortlet.portletName}</a>
> >
> > In the above code javascript:document.createPortalPortlet.submit() is
> > blocked and shows error in firebug with this is not a function. I
> searched
> > with existing code of other files and found no difference and those codes
> > are working fine.
> >
> > Thanks in advance.
> >
> > Thanks and Regards
> > Santosh Chouhan
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

hans_bakker
sorry but cannot reproduce the error,

make sure you have the latest version from svn and provide us with more
detail like an url...

Regards,
Hans

On Thu, 2009-04-02 at 21:58 +0530, Santosh Chouhan wrote:

> Hello Hans,
> Still getting same problem of javascript blocked, please could you see once
> again into this.
> Thanks in advance.
>
> Thanks and Regards
> Santosh Chouhan.
>
> On Thu, Apr 2, 2009 at 12:28 PM, Hans Bakker
> <[hidden email]>wrote:
>
> > fixed in revision 761186.
> >
> > Regards,
> > Hans
> >
> > On Wed, 2009-04-01 at 22:00 +0530, santosh chouhan wrote:
> > > Hello all,
> > > When I try to create a new contact address for a portal then javascript
> > is
> > > blocked for all buttons on the page, here is code snippet for javascript
> > of
> > > form
> > >
> > > <form method="post"
> > action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
> > > onSubmit="javascript:submitFormDisableSubmits(this)"
> > > name="createPortalPortlet">
> > >   <input name="portalPortletId" value="${portalPortlet.portalPortletId}"
> > > type="hidden"/>
> > >   <input name="portalPageId" value="${parameters.portalPageId}"
> > > type="hidden"/>
> > >   <input name="columnSeqId" value="${parameters.columnSeqId}"
> > > type="hidden"/>
> > > </form>
> > > <a class="buttontext"
> > >
> > href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
> > > ${portalPortlet.portletName}</a>
> > >
> > > In the above code javascript:document.createPortalPortlet.submit() is
> > > blocked and shows error in firebug with this is not a function. I
> > searched
> > > with existing code of other files and found no difference and those codes
> > > are working fine.
> > >
> > > Thanks in advance.
> > >
> > > Thanks and Regards
> > > Santosh Chouhan
> > --
> > Antwebsystems.com: Quality OFBiz services for competitive rates
> >
> >
--
Antwebsystems.com: Quality OFBiz services for competitive rates

Reply | Threaded
Open this post in threaded view
|

Re: Javascript of myportal is blocked

Santosh Malviya-3
I am working on latest revision no. 761529, I explain what I did
(1) I went into my portal component,  clicked on "preferences" tab which is
at top most right.
(2) Added a new portal page with name ofbiz and clicked on create button.
(3) Now I clicked on "edit" profile of ofbiz and added a portlet by clicking
on Add a portle button.
(4) Then I clicked on "Profile" link which redirected to me for editing
profile.
(5) Now when I clicked on any button of the page,  say "Add : Contact" then
it shows error in firebug saying document.createPortalPortlet.submit is not
a function.

Link for it is here
https://localhost:8443/myportal/control/AddPortlet?portletCategoryId=PROFILE&portalPortletId=null&portalPageId=10000&columnSeqId=00001&parentPortalPageId=MYPORTAL_EMPLOYEE

Thanks and Regards
Santosh Chouhan

On Fri, Apr 3, 2009 at 11:03 AM, Hans Bakker
<[hidden email]>wrote:

> sorry but cannot reproduce the error,
>
> make sure you have the latest version from svn and provide us with more
> detail like an url...
>
> Regards,
> Hans
>
> On Thu, 2009-04-02 at 21:58 +0530, Santosh Chouhan wrote:
> > Hello Hans,
> > Still getting same problem of javascript blocked, please could you see
> once
> > again into this.
> > Thanks in advance.
> >
> > Thanks and Regards
> > Santosh Chouhan.
> >
> > On Thu, Apr 2, 2009 at 12:28 PM, Hans Bakker
> > <[hidden email]>wrote:
> >
> > > fixed in revision 761186.
> > >
> > > Regards,
> > > Hans
> > >
> > > On Wed, 2009-04-01 at 22:00 +0530, santosh chouhan wrote:
> > > > Hello all,
> > > > When I try to create a new contact address for a portal then
> javascript
> > > is
> > > > blocked for all buttons on the page, here is code snippet for
> javascript
> > > of
> > > > form
> > > >
> > > > <form method="post"
> > > action="<@ofbizUrl>createPortalPagePortlet</@ofbizUrl>"
> > > > onSubmit="javascript:submitFormDisableSubmits(this)"
> > > > name="createPortalPortlet">
> > > >   <input name="portalPortletId"
> value="${portalPortlet.portalPortletId}"
> > > > type="hidden"/>
> > > >   <input name="portalPageId" value="${parameters.portalPageId}"
> > > > type="hidden"/>
> > > >   <input name="columnSeqId" value="${parameters.columnSeqId}"
> > > > type="hidden"/>
> > > > </form>
> > > > <a class="buttontext"
> > > >
> > >
> href="javascript:document.createPortalPortlet.submit()">${uiLabelMap.CommonAdd}:
> > > > ${portalPortlet.portletName}</a>
> > > >
> > > > In the above code javascript:document.createPortalPortlet.submit() is
> > > > blocked and shows error in firebug with this is not a function. I
> > > searched
> > > > with existing code of other files and found no difference and those
> codes
> > > > are working fine.
> > > >
> > > > Thanks in advance.
> > > >
> > > > Thanks and Regards
> > > > Santosh Chouhan
> > > --
> > > Antwebsystems.com: Quality OFBiz services for competitive rates
> > >
> > >
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>