Playing a symbol timeline in Edge from Javascript function in an exteranl web page
All-
I have a javascript function in an external web page. i want to use this function to call a symbol timeline inside an edge file.
i've read about bootstrapping but i'm unsure how to use it in my project
any ideas?
Z
Hi again Elaine,
I actually had some success after many attempts with using your code. I can control the .stop() and .play() of the "NamePlate_sym" symbol. Yet, I am still having trouble doing anything else with it. I cannot .hide() it, nor use .html("Change text") on another element on the stage called"Rectangle". If I can accomplish that and all a global function on the stage, I'm in good shape.
I placed the following script in the header of the .html file that gets loaded into the iFrame within the Edge composition:
<script type="text/javascript">
window.parent.AdobeEdge.bootstrapCallback(function(compId) {
comp = window.parent.AdobeEdge.getComposition(compId).getStage();
alert("CompID is "+compId);
var symbol = document.createElement('div');
symbol.innerHTML = 'Rotate';
symbol.style.cssText = 'background-color:#fea; width: 50px; text-align: center;';
symbol.style.cursor = 'pointer';
symbol.onclick = function() {
if (comp.getSymbol("NamePlate_sym").isPlaying()) {
comp.getSymbol("NamePlate_sym").stop();
else {
comp.getSymbol("NamePlate_sym").play();
window.parent.document.body.appendChild(symbol);
</script>
Once I put window.parent. in the first two lines of code and the last, my test worked. As I mentioned earlier though, I still can't get the syntax correct to .hide() an element (i.e. comp.getSymbol("NamePlate_sym").hide(); does not work), or more importantly, change the innerHTML value of an element on the stage. The code either does nothing or freezes.
Thanks... Tommy
Similar Messages
-
How do I play a symbol timeline from the main timeline
Ive created a box, turned it into a symbol called box,
Inside box i have a left to right animation with auto play turned off.
I then went back to the main stage, clicked the box, added action, on click to play, yet it does nothing.
How do i Play the symbols timeline?On click handler for the symbol use
sym.getComposition().getStage().getSymbol("nameofsymbol").play();
or
sym.getSymbol("nameofsymbol").play();
replace the italics with the literal name of the symbol as it appears in the Elements panel.
Some API details found here (http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html) in the Work With Symbols section.
Darrell -
Passing value from javascript function to servlet
Hello everybody,
i need to pass parameter from javascript function to servlet.
what i wrote is :
function callPopulateServlet(t)
var h =document.NewRequest.services;
var y = t.selectedIndex;
alert(h.options[y].value);
var id=h.options[y].value;
<%session.setAttribute("id",id);%> // am getting error at this point
document.NewRequest.submit();
with this id am quering values from database through servlet.
any body knows plz help me.
thanks,
anil.this is the error am getting
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -
Call .xhtml file from javascript function
Hi,
Is there a way to call .xhtml page from javascript function???BalusC wrote:
Yes there are some ways. But this question has nothing to do with JSF and certainly not with Java at all. Javascript is an entirely different language, although it has a similar syntax as Java (and unforunately also a similar name, they should never have renamed it from ECMAScript).I think ECMAScript is a renaming from JavaScript. The originally JavaScript was called LiveScript by Netscape. I've heard that the ECMAScript name was deliberately chosen to be unsexy. -
How to execute FM from Javascript function?
Hi All,
I have a requirement to execute ABAP FM from Javascript function in BSP Application.
How do I implement this?
Is there any document/link in SDN?
Thanks
Thruna ShanmugaHi,
When button is clicked capture the event in OnInPutProcessing and call the function module.
In layout mention the java code
Here is a sample code:
Layout Code:
< script >
document.on keydown=function( )
if (event.key Code==13)
htmlb SL(this,2,'get') Mention the button ID
< /script >
<htmlb:button id = "get"
text = "Execute"
width = "35%"
on Click = "On InputProcessing()" />
OnInPutProcessing Code:
data:
w_event type ref to cl_htmlb_event,
call method cl_htmlb_manager=>get_event
exporting
request = runtime->server->request
receiving
event = w_event.
case w_event->id.(To capture the event)
when 'get'.
<<Call the function module>>
endcase.
Hope this solves the issue, Let me know if any queries.
Regards,
Rajani -
Calling jsp file from javascript function
How can i call a jsp file itself from javascript function written in it?
I do not think you can invoke the current jsp directly using javascript.
If the effect you are trying to achieve is to reload the page, then you could execute the servlet / code which called the current jsp. -
Problem creating a PDF from the "print view" of a web page
When creating a PDF from the "print view" of a web page, the features in the print dialog box overlap. When the PDF is created, the words are garbled. e.g. words apppear as jzhhhxxf or zxihcj.
Use a job settings that embeds the fonts. If you look at the PDF, the font properties probably do not look correct and don't include embedded fonts. Also, set the printer to Adobe PDF before you try to do a print, so that the web page can try to properly adjust to the printer.
Why not just try opening the web site directly in Acrobat? -
I have problems uploading a journal from iPhoto in my iPad, the web page online works on the iPad but I can't open the link on my computer
What did you rent the film on, your iPad or your Mac ? If you rented it on your iPad then it should have downloaded into the Videos app on it (you should get a rentals tab in the app). If you rented it on your Mac then it should be in the Movies part of your Mac's iTunes library, you will have to connect your iPad to your Mac's iTunes and move it from your Mac to your iPad (I think that it should show on the iPad's Movies tab for moving)
-
How to pass value from Javascript function to a Java class method
Hi All,
I want to pass a value, which I catch in a Javascript function to a method in a Java class. I have tried many combinations but it gives me error.
This is the way I am doing
function assignBill() {
proj = projPh.substring(0,indSlash);
<% myproject.getProj(" project_cd = '" + proj + "'");%>
proj is the variable which I want to pass to getProj methods.
If any one has done this, please let me know. Thanks for your help.
Ritesh MehtaThe only way to receive something from clients page is to submit it somehow: through a form or link, but the info has to make it back to the server obviously. I dont know how your app works, but you can use the the javascript -location.href- function(i think) to submit the var to the server and process it there.
-
Hello
I will explain the scenario:
In our java web page, we are using three text boxes to enter "Part number,Description and Aircraft type". Every time the user no need to enter all these data. The person can enter any combination of data or only one text box. Actually the output data corresponding to this input entries is from five Oracle table. If we are using a single query to take data from all the five tables, the database will hang. So I written a procedure "SEARCH1",this will accept any combination of values (for empty values we need to pass NULL to this procedure) and output data from all the five tables. When I executing this procedure in SQL editor, the execution is very fast and giving exact result. I used "dbms_output.put_line" clause for outputing multiple records in my procedure. The output variables are "Serial No, part Number, Description, Aircraft type,Part No1,Part No2,Part No3,Part No4". I want to use the same procedure "SEARCH1" for outputing data in java web page.The passing argument I can take from the text box provided in java web page. I am using jdbc thin driver to connect our java web page to Oracle 9i database.
Note1 : If any combination of search item not available, in procedure itself I am outputing a message like "Part Number not found". Here I am using four words ("Part" is the first word,"Number" is the second,"Not" s the third, and "found" is the fourth) for outputing this message.Is it necessary to equalise number of words I am using here to the record outputing eight variable?
Our current development work is stopped because of this issue. So any one familier in this field,plese help me to solve our issue by giving the sample code for the same scenario.
My Email-id is : [email protected]
I will expect yor early mail.
With thanks
Pramod kumar.Hello Avi,
I am trying to solve this issue by using objects. But the following part of code also throwing some warning like "PLS-00302: component must be declared". Plese cross check my code and help me to solve this issue.
drop type rectab;
create or replace type rectype as object(PartNo varchar2(30),Description varchar2(150),AIrcraft_type varchar2(15),status_IPC varchar2(30),status_ELOG varchar2(30),status_SUPCAT varchar2(30),status_AIRODWH varchar2(30));
create or replace type rectab as table of rectype;
create or replace package ioStructArray as
procedure testsch2(pno in varchar2,pdes in varchar2,air in varchar2,orec in out rectab);
end ioStructArray;
create or replace package body ioStructArray as
procedure testsch2(pno in varchar2,pdes in varchar2,air in varchar2,orec in out rectab) is
mdescription varchar2(150);
mpartnum varchar2(30);
mpno varchar2(30);
mdes varchar2(150);
mair varchar2(15);
mstat varchar2(1);
cursor c1 is select partnum,description,aircraft_type from master_catalog where partnum=mpno and aircraft_type=mair and description like ltrim(rtrim(mdes))||'%';
cursor c2 is select partnum from ipc_master where partnum=mpartnum;
cursor c3 is select partnum from fedlog_data where partnum=mpartnum;
cursor c4 is select partnum from superparts where partnum=mpartnum;
cursor c5 is select part_no from supplier_catalog where part_no=mpartnum;
mpno1 varchar2(30);
mpno2 varchar2(30);
mpno3 varchar2(30);
mpno4 varchar2(30);
mpno5 varchar2(30);
maircraft_type varchar2(15);
mstat1 varchar2(30);
mstat2 varchar2(30);
mstat3 varchar2(30);
mstat4 varchar2(30);
begin
mstat:='N';
mpno:=pno;
mdes:=pdes;
mair:=air;
if mpno is not null and mdes is not null and mair is not null then
begin
mstat:='N';
mpno:=pno;
mdes:=pdes;
mair:=air;
for i in c1 loop
mstat:='N';
mstat1:='N';
mstat2:='N';
mstat3:='N';
mstat4:='N';
mpno1:=i.partnum;
mpartnum:=i.partnum;
mdescription:=i.description;
maircraft_type:=i.aircraft_type;
for j in c2 loop
mpno2:=j.partnum;
end loop;
for k in c3 loop
mpno3:=k.partnum;
end loop;
for l in c4 loop
mpno4:=l.partnum;
end loop;
for m in c5 loop
mpno5:=m.part_no;
end loop;
if mpno2=mpartnum then
mstat1:=mpno2;
end if;
if mpno3=mpartnum then
mstat2:=mpno3;
end if;
if mpno4=mpartnum then
mstat3:=mpno4;
end if;
if mpno5=mpartnum then
mstat4:=mpno5;
end if;
if mpno1=mpartnum then
mstat:='Y';
orec.PartNo:=mpno1;
orec.Description:=mdescription;
orec.AIrcraft_type:=maircraft_type;
orec.status_IPC:=mstat1;
orec.status_ELOG:=mstat2;
orec.status_SUPCAT:=mstat3;
orec.STATUS_AIRODWH:=status_AIRODWH;
end if;
end loop;
end;
end if;
end testsch2;
end ioStructArray;
Expecting your early reply.
With thanks
Pramod kumar. -
Need to play actions in PSE 9.0 from JavaScript
Hi All,
I have been facing this problem now for three days ..!!! I have just switched to PSE 9.0 from PS CS 5... In the past, i had success in playing actions through javascript in Photoshop... But the same is giving me a dead end with Photoshop Elements in the picture ... Any help or guidance regarding this is highly appreciable..!! Pls guide me fellas..!!!
Thanks..!Your code for the PQR action should look like this:
It doesn't matter where the actions are on your computer as long the path in the script
points to the action and then you tell elements which action to play.
In other words you don't have to put the actions in actions player folder.
If you want to run actions in the Full Edit Mode, you can install the actions into the effects panel.
By installing them in the effects panel, you have access to all the menu commands that are
normally greyed out in the guided edit mode. Also some functions that work in the full editor
will not work in the guided edit mode, so your actions may give errors.
Installing in effects panel:
http://www.texaschicksblogsandpics.com/photography-page/installing-actions-in-photoshop-el ements/
Also you can place your scripts in the Automation Tools menu by putting a
javascript resource code at the top of your script, but the automation tools menu is greyed
out in the guided edit mode.
Then you would place the script in the pse 9 presets>scripts folder and after restarting
or starting pse 9 there on the menu.
C:\Program Files\Adobe\Photoshop Elements 9\Presets\Scripts
MTSTUNER
Message was edited by: MTSTUNER -
How to pass value from Javascript function to JSP ?
hi,
hello i have 2 jsp page and one external javascript page.
from page 1.jsp
i am calling a fuction named fun(1).and i am passing that value to external
javascript page
from external javascript.js
i am getting this value in the fun(w) and sending this Page2.jsp like this
var url = "page2.jsp?id ="+w;
http.open("get","page2.jsp?id ="+w );
and in page2.jsp
i am getting that value like
String k = request.getParameter("w");
but this is showing error. how cloud i get that value on this page2.jsp ?
plz any one help me to study this
regards
Vishnu Sankar Shello sir
thank u very much..i got the output
Message was edited by:
vishnu_shankar -
Call Java Method From JavaScript Function
hi everyone
i need a help in calling Java method from a javaScript method
ex:
function confirmAddRecord() {
cHours =document.getElementById('frmP:ChargeHours').value;
cSTime =document.getElementById('frmP:ChargeStartTime').value;
var answer = confirm("Are you sure you want to add Record?")
if (answer){
here i want to call the Java Method that is located in session bean that takes the upper params cHours & cSTime
else{
return false;
i know i can do it as an action button but it is required me to be in that way can any one help plz
Message was edited by:
casper77That depends on the nature of your parameters. I guess you calculate the params on client and then want to submit them. In this case and if you don't want to use Ajax simple add some <input type="hidden"> elements (of course there correspondend components dependent of your framework) and store the params there. If the javascript isn't invoked by a button click, you can use a button nevertheless. Set visible="false" and call
document.getElementById('client_id_of_my_hidden_button').click();
(or maybe doClick() dependent on your framework). -
I am communicating serially with a chilled mirror device and the input string syntax contains this text: "%RH=<input value>"
I have not been able to figure out how to tell the function that the percent here is not a format specifier. Is this possible, or should I just try to use a different function?
Thanks.
Mitch
Solved!
Go to Solution.Use %% in your format string so that it knows to use the percent literally. So %%RH=%f
EDIT: Darin got one in there ahead of me. It looks like either \% and %% both work.
Attachments:
Example_VI.png 10 KB -
How do I download a folder from a directory display on a web page?
I have been sent a link in order to download a program which has been sent to me in a possibly corrupt form. The link opens as a directory viewer, from which I can open sub-directories. But how can I download these files?
Just a guess, but is it possible that the link opened a ZIP archive and Firefox downloaded and launched it from a temp folder? In that case, you might be able to drag and drop or use the Extract command to move the desired files to a more convenient location.
On the other hand, if you are still viewing the files on the web server and there are no hyperlinks or buttons associated with the individual files, you may need to check with the person who sent you the link.
Maybe you are looking for
-
Please help new (senior) convert to Mac Pro (OS X). Am following the 'switching to a Mac' portable genius 2nd ed, and as it advised, I bought an external hard drive (a Mac My Word) and partitioned it with one partition for a secondary boot device an
-
Using lightroom 5.6 and Photoshop elements 12
When I am using Lightroom 5.6 and want to Edit In Photoshop the picture transfers over to PS but it won't allow me to use layers. How can I fix this?
-
Ok, here is my story... I bought a 60 Gig iPod Photo in June of 2005, thus the two year warrentee has now expired. I now have about my 7th or 8th iPod, because I have sent mine away soo many time for service. What is up with that? And now, out of now
-
Creating first custom tag, problems importing in WebSphere studio...
I'm trying to write a tag handler for my .tld file, but WebSphere won't recognize the following import statements: import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; TLD file: <?xml version = "1.0" encoding = "ISO-8859-1"?> <!DOCTYPE tagl
-
Well, hello everybody! I'm not a first day in javax.swing, but now I have an issue. I have to proccess ResultSet. I have to know IDs (primary key) of some records, but I don't like to display this info in my JTable. So the issue is to make one column