FullCalendar2 calling Popup on OnNotify Action.

FullCalendar2 calling Popup on OnNotify Action.

  

Hi ,

Im trying to call the Popup by adding hidden link onto the screen and by writing Javascript on OnNotify action of FullCalendar2. Here is my JavaScript. Im placing it on RunJavaScript Action.

SyntaxEditor Code Snippet

"$('#" + Popup.Id + "').click();"

this java script is working everywhere except the page where my FullCalendar2 web block is placed.
Please someone help me its urgent.
every time I post the question, I get no Solution. Hopefully this time will get success.



Screenshot is attached.


Regards

Ali

Hi Ali,

What's the error that you get?

By running the JavaScript directly on the browser's console, do you have success?

You might be passing wrong id values, because it should work with no problems.

Daniel Martins wrote:

Thanks for quick reply.

No error I'm getting. Javascript Action running but nothing happends.
also I'm passing correct Id.
I have test the same thing on other page and it showing popup.
but only on the page where I put the FullCalendar2 webblock, not working.

seems like javascript is conflicting with FullCalendar2 Javascript, but I couldn't figure out.


Ali

Hi Ali,

What's the error that you get?

By running the JavaScript directly on the browser's console, do you have success?

You might be passing wrong id values, because it should work with no problems.



Hi Ali,

It's very difficult to troubleshoot this way, sorry.

If you click manually in the element with the Id that you are passing it goes ok? I can't figure it out what might be wrong, it's very awkward to have conflicts in such core actions like:

"$('#" + Popup.Id + "').click();"


Hello Ali,

In order to us to be able to help you, probably the better is to put a small working module that can reproduce the problem, so we can take a look.

But for now, are you sure the OnNotify action is being called?

Cheers.

Eduardo Jauch wrote:

Hello Ali,

In order to us to be able to help you, probably the better is to put a small working module that can reproduce the problem, so we can take a look.

But for now, are you sure the OnNotify action is being called?

Cheers.


Hi Eduardo,
                       The OnNotify action is calling but nothing happens. I've attached a sample oml please have a look at this. Your quick reply will highly be appreciated.


Thanks & Best Regards

Ali

Hello Ali,

Here everything is working.
I click in the event and I am redirected to my google calendar...

Was this what was expected?

Cheers

Eduardo Jauch wrote:

Hello Ali,

Here everything is working.
I click in the event and I am redirected to my google calendar...

Was this what was expected?

Cheers

You have to Click on Calendar Resources and then click on any date. It should show the popup. but its not showing.
or you can click on Ok button to view Popup but its not showing any popup.
its only showing popup when you directly click on the link of popup. but through javascript its not click on hidden link.



Thanks for quick reply.



Ali

Solution

Hello Hassan.


As a workaround you can use this way: 

"document.getElementById('" + Popup.Id + "').click();


Solution

Eduardo Jauch wrote:

Hello Hassan.


As a workaround you can use this way: 

"document.getElementById('" + Popup.Id + "').click();



Thanks a lot Eduardo it solved my problem.