Hello guys, I'm new in Adobe Community. I have to make a jsx file for graduation.
To complete this file, it needs to perform an operation like the html file posted below:
<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title></title><script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
function Repeat(source,target){
source.form[target].value=source.value;
}
/*]]>*/</script></head><body><form ><input type="text" onkeyup="Repeat(this,'fred');" onblur="Repeat(this,'fred');" /><input name="fred" type="text" /></form></body></html>
With two text boxes in a jsx file, as follows, for Illustrator CS5:
#target illustrator//#targetengine session
var ppage= app.documents.add(DocumentColorSpace.RGB,600,300);
var area_1 = ppage.pathItems.rectangle( 250, 10, 200, 100);
var content_1= ppage.textFrames.areaText(area_1);
content_1.paragraphs.add("first");
var area_2 = ppage.pathItems.rectangle( 250, 300, 200, 100);
var content_2= ppage.textFrames.areaText(area_2);
content_2.paragraphs.add("second");
Can someone / knows to help me?
Thanks to all!!
Any suggestion will be appreciated!!!
(SORRY FOR BAD ENGLISH, I'M ITALIAN)
Salve, devo realizzare un file jsx, per la laurea.
Per completare questo file, esso deve eseguire un'operazione simile al file html postato sotto:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
function Repeat(source,target){
source.form[target].value=source.value;
}
/*]]>*/
</script></head>
<body>
<form >
<input type="text" onkeyup="Repeat(this,'fred');" onblur="Repeat(this,'fred');" />
<input name="fred" type="text" />
</form>
</body>
</html>
Con due caselle di testo, come segue, per Illustrator CS5:
#target illustrator
//#targetengine session
var ppage= app.documents.add(DocumentColorSpace.RGB,600,300);
var area_1 = ppage.pathItems.rectangle( 250, 10, 200, 100);
var content_1= ppage.textFrames.areaText(area_1);
content_1.paragraphs.add("first");
var area_2 = ppage.pathItems.rectangle( 250, 300, 200, 100);
var content_2= ppage.textFrames.areaText(area_2);
content_2.paragraphs.add("second");
Qualcuno può/ sa aiutarmi?
Grazie infinite a tutti!!!