How to tell when selection is made in Wordpress 3.5 Media Editor - media

I am trying to bind to the 'selection:single' trigger that occurs when an item is selected in the new Wordpress media uploader.
I can see that at line 895 of media models.js there is this trigger
this._single.trigger( 'selection:single', this._single, this );
But I cannot work out what I should bind the listener to so that I can get the data that is sent when that happens.
I am just using the default deployment of the media editor created in the front end by wp.media.editor.open()...
Have been searching for a day now and cannot find a solution :(

Related

Dynamics CRM Error : The object cannot be updated because it is read-only when closing a Phone Call

User closes an active/open phone call and gets the error on the image.
The error message: Cannot Update Closed or Cancelled Activity is expected when some script or code piece trying to update the activity (phonecall, task, etc) but the record is marked already as completed/closed/cancelled status.
Check if any javascript is triggered on onSave, onChange, onLoad events
Check if any custom action, plugin, Workflow triggers
From the screenshot the record has unsaved changes and showing still "open" in bottom right/left corners. Quite not sure if any other pre-update plugins triggering or some other operation trying to update another activity record (which is different from this current record).

Using IBM Connections 5.5 - Unable to display Widgets in Community Detail Page and My Page

We are using IBM Connections 5.5. SSO has been done with IBM TAM environment.
Until some time back the application was working fine. However, now after creating a community, system is unable to load Widget details. Only the heading is shown with an option to Move Up / Down etc.
Bookmarks work fine as expected. No other widget like Status Updates, Forums, Members are shown
'My Page' is also unable to load any of the widget.
Upon doing F12 and viewing browser console it says:
Unable to Load data and Malformed json returned by processWidget call.
System.out log says:
Failed to generate process widget json. Unexpected character < on line1, column 1

Strapi GET request to /upload/files throws ERROR

Reacreation
I should start by explaining what I've done to trigger this error:
1. Create a new Strapi App.
2. Create a Collection-Type with a Media Field.
3. Create a new Entry from this Collection-Type with a File uploaded.
4. Delete the Media Field from the Collection-Type.
5. Finally going to the Media Library (GET request to /upload/files) will result in an ERROR.
see steps here
FIX
I did find a fix to this situation, just Add the Media field back to the Collection-Type.
If you want to remove the Media field from the collection-type, remove it manually from its Entries first and then delete the Media field.
I can confirm your issue.
Can you please open a GitHub issue there - https://github.com/strapi/strapi/issues/new/choose
If you already have a fix, can you also submit a PR to fix it.
Thank you.

CKEditor Error on Image Upload

I receive the following message when I select an image to upload and then click "send it to the Server":
Unable to get property 'setCustomData' of undefined or null reference.
I searched for CKEditor setcustomdata but came up with nothing...
Making an assumption that you are using the CKSource Image plugin. I received this error when I used the advice from this post about setting the default open tab to the Upload tab. I moved the this.selectPage('Upload'); into the onLoad event and no longer receive the error but it doesn't default the selected tab to upload on subsequent show events.
I hope this helps or at least gives you a direction to look.

AJAX not getting invoked through QTP

I am working on QTP 11. I my current project I am trying to automate a website with AJAX fields. I my project I have a text field on which if we try to enter characters then AJAX table appears and we have select a suitable value from the below table. I am able to check the existence of AJAX table.
The problem is to set the text field through QTP, AJAX is not getting invoked. But manually it is working properly. Also, if I first try manually and then I try to enter any through the script, then also it is working properly. It is not possible for me to check each field manually then enter it through script. So can any body tell how AJAX can be invoked on first try without any manual intervention?
I have tried to Set property, Keyboard events like WScript.shell, Mercury.DeviceReplay and AutoIt, however none of them are working. Are there any keyboard input methods that I have missed out?
Can somebody please help me out?
Try performing a WebEdit.Click on the text field in question. If this doesn't work it means that the web page is expecting some events that QTP didn't fire in this case you should change to device replay mode
Setting.WebPackage("ReplayType") = 2
Browser(...).Page(...).WebEdit(...).Click
Setting.WebPackage("ReplayType") = 1
I had the same issue, not recognizing the web list (not selecting the item from list). Using QTP 11.5 loaded with web toolkit 2.0, ASPAjax, DOJO, JQuery add-ins. Still showing the same behavior.
However there is nothing wrong with the code, if I give some wait the code is working OK.

Resources