Possible Bug with Drag-and-Drop Being Published via HTML5 - Getting "Undefined" Error When Dragging Object
Hello,
I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities. Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format. Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction. I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
Drag the Yellow (or variable drag box) to the drag target.
Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
Move both draggable boxes to the drag target and use the undo and reset buttons...
Anyhow, I know you all are sharp and will run the demo through its paces.
I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request - save the darn "undefined" message that comes up!
Many thanks in advance for any help and/or direction that you all may be able to provide,
Paul
Hello,
I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
I did go ahead and submit this to Adobe as a possible bug today.
Thanks again for any help related to this issue. If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks!
Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
~ Paul
Similar Messages
-
How to add a code so my drag and drop movie clip will not stick once it is dragged to final place o
Hello all and kglad, I have to use the old drag and drop code on my movie clips, but the problem is when I drag the movieclip to the area on my .swf file once i release it, it sticks to the hand mover.
I am encloseing the action script I am using could someone or kglad tell me what is missing from the code so that once it is released it will not stick, see code below
circle.onPress = function(){
startDrag(this);
circle.onRelease = function(){
stopDrag();
I am desparate for help on this must get project ready for this afternoon
Seal55there's nothing wrong with that code but it would be better to use:
circle.onPress = function(){
this.startDrag();
circle.onRelease = function(){
this.stopDrag();
but that won't solve your problem. there must be something else going on like a depth issue. you may need to use swapDepths() to bring your circle under the mouse when releasing. -
Before the Yosemite update. I'm pretty sure I could just drag and drop documents in and out of folders. Now, I can't seem to do that, though the option still exists if i log into iCloud in my browser or even my iOS device. This seems odd to me. Am I missing something?
Where did you recall doing this?
Essentially all file movement is done in Finder, not Pages.
Peter -
Captivate 7 - Drag and Drop not exporting into HTML5
I have a drag and drop exercise that is stopping me from getting it to play in HTML5. It works fine as a SWF, but I can't even get it to open the player. It just shows a black screen. If I delete that slide, it works fine. Suggestions?
Hi Phil,
From the shared project, i can see that the 'On Drop' action is set as 'Continue' for both the targets. Please change it to 'No action ‘and see it resolves the issue or not. To change the action,
Select the target, Click on the 'Accept' button from the Drag and Drop Panel.
Change the 'On Drop' action as 'No action'.
Repeat the same steps for Targets2 as well.
Thanks,
Nimmy Sukumaran. -
Possible bug with TREAT and EXECUTE IMMEDIATE
Hello, i experienced a strange behavior which seems to be a bug.
Consider following definitions:
CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT (
DummyProperty NUMBER
) NOT FINAL;
CREATE OR REPLACE TYPE T_Child UNDER T_Base (
AnotherDummyProperty NUMBER
CREATE OR REPLACE FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER IS
BEGIN
-- some specific validation is done here, not important for the example
RETURN NULL;
END;
CREATE OR REPLACE PROCEDURE ValidateIt (iValue T_Child) IS
lResult NUMBER;
BEGIN
-- The principle used here is that each client can have its own implementation of validation function, and when it does not exist, we do not care.
-- In reality we put functions and procedures into packages, I narrowed it to a minimal working example.
BEGIN
EXECUTE IMMEDIATE 'BEGIN :lResult := SpecificValidation(:iValue); END;'
USING OUT lResult, IN iValue;
EXCEPTION WHEN OTHERS THEN
IF INSTR(SQLERRM, 'PLS-00201') = 0 THEN
RAISE;
END IF;
END;
END;
CREATE OR REPLACE PROCEDURE Process (iValue T_Base) IS
BEGIN
-- in fact we know that iValue must be of typ T_Child, it is checked using IS OF ( ) operator and exception is raised if this check fails
-- This does not work for some reason.
-- It fails in EXECUTE IMMEDIATE with PLS-00306. I don't really get why, because ValidateIt accepts a value of type T_Child and it passes it to the validation procedure, which also expects value of type T_Child.
ValidateIt(TREAT(iValue AS T_Child));
END;
CREATE OR REPLACE PROCEDURE Process2 (iValue T_Base) IS
lChild T_Child;
BEGIN
-- The only difference here is that result of TREAT is saved to a variable.
-- This works as expected.
lChild := TREAT(iValue AS T_Child);
ValidateIt(lChild);
END;
In reality it is much more complex, I narrowed it to a minimal working example.
Now when running this:
DECLARE
lItem T_Base := T_Child(5, 2);
BEGIN
BEGIN
-- This call will end up with PLS-00306 error.
Process(lItem);
dbms_output.put_line('Process completed successfully.');
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line('Exception when calling Process.');
dbms_output.put_line(SQLERRM);
dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
END;
BEGIN
Process2(lItem);
dbms_output.put_line('Process2 completed successfully.');
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line('Exception when calling Process2.');
dbms_output.put_line(SQLERRM);
dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
END;
END;
then call to Process fails with PLS-00306 on EXECUTE IMMEDIATE.
The only difference between Process and Process2 is that in Process2, result of TREAT is saved to a variable of type T_Child.
Is this behavior documented somwhere or is it a bug?That's interesting. I would say it is, or should be, a bug.
Also interesting is, when I re-write your example to eliminate dynamic SQL and instead rely on dynamic method dispatch, the problem goes away... first, the changes:
drop type T_Child;
drop type T_Base
CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT (
DummyProperty NUMBER
) NOT FINAL
CREATE OR REPLACE TYPE T_Child UNDER T_Base (
AnotherDummyProperty NUMBER
create or replace type T_Base_Processor as object (
dummyProperty number
, static FUNCTION GetClientProcessor(iClientId varchar2) RETURN T_Base_Processor
, member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
, member PROCEDURE ValidateIt (iValue T_Child)
, member PROCEDURE Process (iValue T_Base)
, member PROCEDURE Process2 (iValue T_Base)
) NOT FINAL
create or replace type T_Another_Processor under T_Base_Processor (
overriding member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
create or replace type body T_Base_Processor
is
static FUNCTION GetClientProcessor(iClientId varchar2) RETURN T_Base_Processor IS
BEGIN
return case
when upper(iClientId) = 'ADMINISTRATOR' then
new T_Another_Processor(null)
else
new T_Base_Processor(null)
end;
END;
member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER IS
BEGIN
-- some specific validation is done here, not important for the example
dbms_output.put_line('T_Base_Processor.SpecificValidation');
RETURN NULL;
END;
member PROCEDURE ValidateIt (iValue T_Child) IS
lResult NUMBER;
BEGIN
-- No more need for dynamic SQL, instead rely on dynamic dispatch
lResult := SpecificValidation(iValue);
END;
member PROCEDURE Process (iValue T_Base) IS
BEGIN
-- in fact we know that iValue must be of typ T_Child, it is checked using IS OF ( ) operator and exception is raised if this check fails
-- This does not work for some reason.
-- It fails in EXECUTE IMMEDIATE with PLS-00306. I don't really get why, because ValidateIt accepts a value of type T_Child and it passes it to the validation procedure, which also expects value of type T_Child.
ValidateIt(TREAT(iValue AS T_Child));
END;
member PROCEDURE Process2 (iValue T_Base) IS
lChild T_Child;
BEGIN
-- The only difference here is that result of TREAT is saved to a variable.
-- This works as expected.
lChild := TREAT(iValue AS T_Child);
ValidateIt(lChild);
END;
end;
create or replace type body T_Another_Processor
is
overriding member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
is
begin
-- some other specific validation is done here, not important for the example
-- You could even call the overridden method as well using
-- treat(self as T_Base_Processor).SpecificValidation(iValue)
dbms_output.put_line('T_Another_Processor.SpecificValidation');
RETURN NULL;
end;
end;
And again with slight modifications, your test block:
DECLARE
lProcessor T_Base_Processor := T_Base_Processor.getClientProcessor('JOE');
lItem T_Base := T_Child(5, 2);
BEGIN
BEGIN
-- This call no longer throws a PLS-00306 error.
lProcessor.Process(lItem);
dbms_output.put_line('Process completed successfully.');
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line('Exception when calling Process.');
dbms_output.put_line(SQLERRM);
dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
END;
-- Demonstrate dynamic dispatch by choosing a different processor
lProcessor := T_Base_Processor.getClientProcessor('ADMINISTRATOR');
BEGIN
lProcessor.Process2(lItem);
dbms_output.put_line('Process2 completed successfully.');
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line('Exception when calling Process2.');
dbms_output.put_line(SQLERRM);
dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
END;
END;
T_Base_Processor.SpecificValidation
Process completed successfully.
T_Another_Processor.SpecificValidation
Process2 completed successfully.
Gerard -
How to implement drag and drop functionality in a HTML5 webpage using touch events?
Hi all,
I need to create a webpage having two parts.One part is having set of SVG images into it and other part is having canvas.I need to drag those image onto the canvas allowing same image for multiple times and those images on the canvas are movable inside the canvas only. This webpage is only used in iphone or ipad like touching devices so I need to handle touch events.
There is already jQuery plugin for drag drop functionality but it is not supported for touch events.
It is only for desktop veriosns.So if you know about any jquery plugin let me know.
So please help me to carry out this task.I have tried using the same but still not working.
I have handled touch events like touchstart,touchend,touchmove.
But the problem is when I drag the image from upperbox onto canvas, the clone of that image is creating but the image which I dragged on canvas gets vanished.
I am creating clone because I want to add multiple images onto canvas.
Atik -
Help needed in drag and drop of Flex tree
Hi,
We have an application which allows drag and drop between
multiple
trees and lists.
Here are the steps I follow to refresh on drag and drop:
1. Dispatch a custom event which calls server.
2. On successful response from server I change the model
which is
data provider for the tree.
3. Then, set a flag which triggers 'invalidateDisplayList'
and 'invalidateList' for tree (and other listeners).
4. The tree refreshes fine. But as soon as I drag and drop
between
trees again, I get this error in Tree.as:
TypeError: Error #1010: A term is undefined and has no
properties.
at mx.controls::Tree/::updateDropData()
at mx.controls::Tree/calculateDropIndex()
at mx.controls.listClasses::ListBase/showDropFeedback()
at mx.controls::Tree/showDropFeedback()
The behaviour is weird, sometimes the browser hangs and stops
responding.
I am calling 'contentTree.showDropFeedback(event)' in my
dragOver
event listener which is triggering error.
My tree data provider is a custom class which has 'children'
array
collection attribute.
Any help on how to resolve this issue would be highly
appreciated.
Thanks in advance,
Sujathathe major restrictions in its implemented only in
jdk1.1.Why! -
HT4061 Drag and drop function in Windows 8 doesn't work with iTunes.
How to import music files from Windows 8 to iTunes 11.0.3 x64? Drag and drop function doesn't work. Thank you!
> Straight drag and drop to PS produced a warning message so, when I then tried to drag on to the PS task bar button, I got the Ø cursor but on moving into the PS window and releasing the mouse button there, the file opened.
That's the strangest behavior that I would imagine. Are you using the default vista aero theme or you have turned down or using custom theme and visual effects?
> it needs to be pointed out that this is a really bad habit that will smack you in the face one day...
I don't understand what you mean. If you are concerned about viruses, in my understanding copying and opening a file from the internet which is what "Save image as" does, is less safe than coping and pasting pixels. Copying and pasting pixels is the same as coping and pasting text from your web browser, it can't execute hidden code. If that was possible everybody will get viruses at the moment text or pixels are displayed on your browser.
By the way when you view a page from the internet, image files are already downloaded in the temp folder of your computer but only the browser uses them unless you open them from there and use in another program. So if you have a virus protection the images are already scanned. -
Drag and drop from Mozilla to PS doesn't work with Vista
On XP I can drag an image directly from Mozilla to Photoshop and it opens it in a new document. In Vista that doesn't work anymore.
Any ideas if this can be fixed> Straight drag and drop to PS produced a warning message so, when I then tried to drag on to the PS task bar button, I got the Ø cursor but on moving into the PS window and releasing the mouse button there, the file opened.
That's the strangest behavior that I would imagine. Are you using the default vista aero theme or you have turned down or using custom theme and visual effects?
> it needs to be pointed out that this is a really bad habit that will smack you in the face one day...
I don't understand what you mean. If you are concerned about viruses, in my understanding copying and opening a file from the internet which is what "Save image as" does, is less safe than coping and pasting pixels. Copying and pasting pixels is the same as coping and pasting text from your web browser, it can't execute hidden code. If that was possible everybody will get viruses at the moment text or pixels are displayed on your browser.
By the way when you view a page from the internet, image files are already downloaded in the temp folder of your computer but only the browser uses them unless you open them from there and use in another program. So if you have a virus protection the images are already scanned. -
I am no longer able to drag and drop my downloaded files
in yahoo. i, on a daily basis receive about 10 pdf documents and several .dxf files. also autocad .dwg files and jpg files. pretty much any file i have to work with comes to me in my email.
i used to be able to select the file, then download it. after i was done downloading it i could open my download library, and drag and drop the file onto my desktop or other open folder on my pc.
suddenly. i cannot.
i have changed browsers for the time being and will not be able to continue with firefox until this is solved.
i am running firefox 20.0.1 and windows vista sp1im glad that somebody is atleast trying. perhaps i need to be more clear.
i will step by step describe the issue in detail.
1) i open an email that contains an attachment .dxf or .pdf
2) i click on the attachment shown in the email and aprompt comes up asking if i want to open or save the attachment.
3) i select save. (by default it saves to a downloads folder. but i have also chosen to use other folders (when i did that it wouldnt save them)
4) i highlight the downloads arrow on the right top side of my browser and click it
5) it pulls down a list of the files that i USED to be able to click and drag onto my destop, or anyplace i chose
6) used to be when i clicked and held the left mouse button down on top of a file of my choosing it would highlight and as i began to drag, a ghost image would appear of the file i was dragging. showing a (/) symbol next to it showing i couldnt drop the file within the browser and a + simbol showing that i could drop the file when the file was hovering over a place where i could drop the file such as my desktop or other folder. now, when i click and hold on the file.... I DONT get anything. when i drag. nothing follows. while i am "dragging" in the area that is my browser, i get the pointy finger icon. as soon as i enter an area where i could have dropped the file as before, i get my standard cursor arrow.
its really as if the drag and drop feature just dosent work IN FIREFOX.
i can drag and drop files all day long everyplace else. -
Is it possible to make Java program whose icon on desktop can respond on drag and drop of specific files? For example, if I drag PDF file and drop it on Acrobat Reader icon, Reader will start with opened PDF file. I need to make something similar with my Java program. If anybody knows solution, please send it and maybe some short example. Thanks a lot!!!
The title says "libraries" but I means Playlists, of course.
-
Mackbook can't drag and drop after working in indesign CC for a while.
This has been going on for a while. I am working in Indesign then all of the sudden all my drag and drop cappabilities are gone. i have to restart my computer to fix the problem and being that the start up times for the cc software is outragous, this sucks for my workflow. I have seen Adobe techs say that there isn't a difference in the backend between 6 and cc for the whole suite but seeing is believing and I don't make things up.
hi Dustin, maybe with a bit more info someone will be able to help with this:
what Mac OS System version are you using?
what is it you are 'dragging and dropping'? : Is this drag and drop of text in InDesign? Or are you dragging and dropping from the Mac OS (e.g. a file from a folder) into InDesign?
If you are referring to drag and drop from OS into InDesign: I'm thinking this 'might' be a Mac OSX issue. If you look over at https://discussions.apple.com/index.jspa there seem to be plenty of issues with drag and drop across different OS versions.
Next time it stops working whilst you are in InDesign, does it still work in other programs? That is one way of determining if this is caused by InDesign or the operating system. If it is the OS, my guess is that it stops working in other applicaitons as well.
Hope this helps,
Cari
twitter: carijansen
facebook: carijansen.au -
Adding a target to 'drag and drop' code snippet
Hi,
I would imagine it's a simple enough bit of additional code, but I'm no programmer, and trawling the Web has proved fruitless to date...
Within Flash CS5 and using AS 3, I'm attempting to create a series of drag-and-drop interactions for a learning exercise where items must be dragged into the correct box with positive and negative feedback being generated as a result of where the learner drops the item. All I need is the code to link the drag and drop code snippet (which I have working) to a specific object/location on the stage (which I cannot find nor figure out for the life of me)!
I may be overcomplicating given that perhaps there is a CS5-compatible extension out there somewhere (whatever happened to all of the e-learning extensions and tools Flash once had if my memory serves?) which can provide me with an easily customizable template to achive what I need to do?
Many thanks in advance to whomever can offer and tips, tools or usable code for this task.
Galvoice.the easiest way to handle that would be to assign a transparent movieclip to the target position and use that movieclip as your droptarget.
-
I am trying to drag and drop one page of a .pdf into another .pdf in Acrobat Reader. I used to be able to drag and drop from one .pdf to another.
If you could drag and drop pages before, it wasn't in Reader. You no doubt had Adobe Acrobat (Pro or Standard) which shouldn't be confused with Adobe Acrobat Reader. They recently added Acrobat to the name of Adobe Reader so the confusion about which product you had and/or have is understandable.
-
Flash drag and drop not working on Firefox for android browser
Drag and drop functionality is not working using Firefox Browser for Android on tablet. We tested with flash action script 2.0 & 3.0 content, both have same issue. Specs of the tab and OS are as follows.
Android - Kitkat 4.4.2
Tab models - Lenovo A7600H and Samsung Tab4 T531
Please refer to a previous case raised on the same issue here at this link (Case 1029615) - https://support.mozilla.org/en-US/questions/1029615
Additionally, we observed that the object on which Drag and Drop event was triggered, is moving little bit when we double tap.
Does Firefox provide any libraries to support Drag and Drop functionality on Flash? We are using Geekoview api to execute flash content in our app. Will the same support be provided in Geekoview as well?
Are there other folks facing the same issue? Is there a solution or workaround to get this feature running?Flash on Android is no longer supported by Adobe. While Firefox does support basic functionality we mainly focus on legacy video applications. You may run into issues with Flash and Geckoview. I doubt we have any resources to support that configuration.
Maybe you are looking for
-
Is there a way to have 2 or more text boxes and not have them cancel each other out?
In the past you could overlap text boxes, but now when I place a text box to close to another it will completely make the other disappear. Is there something I need to change in my pages setting to allow this function, or do I just need to use the i
-
Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called? It's just annoying that I have to reach high for it!
-
How can I remove space in saved contact numbers
Does anyone have any idea how to remove the space created by the phone after the first 5 numbers in my contacts so that my phone works in my car. Thanks
-
Mac app atore isn't appearing when I update my mac!
Hi there, I have a Snow Leapord Mac OS X with version of 10.6.8 and even when I update my mac the mac app store won't show. How can I get the mac app store so that I can download apps for my mac? Thank you.
-
Hello, my iPad and my ipodtouch were stolen, how to declare it to APPLE to block(surround) them and erase my data