I am having a flex table in my application. One of the cell of this
table contains an audio component.
Here is the audio component :

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
type="audio/wav" id="file_path" height="45" width="200">
        <param name="src" id="param_file_path" value="" + filepath + "">
                <param name="autostart" value="false">
</object>

Now there is a back button on this page, whenever one clicks on this
back button we just hide/destroy the flex table and create a new one
with new data. At this moment i want that the audio present on the
previous page should get stop but it does not get stop.

I tried following things but nothing worked :

1. Destroy the parent component of the flex table.

2. Made a native function :
native void stopRecording() /*-{
try{
    var temp = document.getElementById("file_path");
    temp.Stop();
}
catch(e){alert("exception = "+e.message);}
}-*/;

In this above function i get temp as NULL.


3. I made a method in a file common.js but i am unable to make a call
to this method from my native method in the java file.

Code in java file :
native void stopRecording() /*-{
try{
      endRecording();
}
catch(e){alert("exception = "+e.message);}
}-*/;

Code in JS file :
function endRecording(){
    var temp = document.getElementById("file_path");
    temp.Stop();
}

--

You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en.


Reply via email to