Invoking external javascript file from xdp source
Is it possible to invoke an external javascript file from within the xdp source? I know it is possible to embed the javascript in the form.
If this is possible, would I be correct in assuming that this is also possible from pdf source?
Basically I am looking to show / hide buttons based on the status associated with a form at a given time in the flow. My understanding of PDFs is that the source cannot be edited once it has been created? If this is the case I was hoping that there could be code embedded that would call on the external file which would return the status of the letter. Based on the response buttons / fragments etc could be shown / hidden as required.
Feedback required asap please!
Thanks in advance.
You cannot call outside of the rendered form. So you have a couple of means to get information into the form. Merge dat aonto the form (in your case you can use a field as a flag and key off of that),or use Web Service call to check the status.
Hope that helps
Paul
Similar Messages
-
Call External Javascript file in Custom Visual WebPart
Hi..
How to call external javascript file in Custom Visual WebPart in sharepoint 2010
RavindranathHello,
Download that script and save in layout folder or within a site. Then use below script tag in webpart:
<SharePoint:ScriptLink ID="ScriptLink2" Name="location/jquery-1.5.min.js" runat="server" OnDemand="false" Localizable="false" />
http://stackoverflow.com/questions/5068663/how-to-call-an-external-javascript-file-from-a-webpart
http://stackoverflow.com/questions/5243821/external-javascript-file-in-sharepoint-web-part
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Targeting Edge from external javascript file
Is it possible to target adobe edge build from an external Javascript file? For instance, I click a button outside of the edge animate project and javascript tells Edge animate to "play()". What would that syntax be?
Yes, it is. Read this post for some background information and a sample.
http://forums.adobe.com/message/5289458#5289458
-Elaine -
Jspx and external javascript file (display empty page ?!?!)
I have created a JSPX file...
Now I want to add a javascript control to verify that only numbers are pressed from keyboard..
This is a simple javascript function:
function isNumberKey(evt)
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
When I add a function directly to jspx I get error in phase of compile of the page...
So I tryed to write an external javascript file with function above...
In My jspx page i have put <script src="functions.js"></script> the tag has a reference to external javascript file...
When I run the page I get "blank" page.. (it's like that all html code is a comment)..
If I remove the script tag the page will display correctly...
Is there any example how to include an external javascript file inside jspx?
this is a piece of jspx:
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>
<title></title>
<link href="css/oracle.css" rel="stylesheet" media="screen"/>
<script src="functions.js" type="text/javascript"></script>
</head>
..Hi,
you should not add
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>
<title></title>
<link href="css/oracle.css" rel="stylesheet" media="screen"/>
<script src="functions.js" type="text/javascript"></script>
</head>
to f:view. There are JavaScript equivalents to this. Alternatively use
<f:verbatim>
<script src="functions.js" type="text/javascript"></script>
</f:verbatim>
I assume you use JDeveloper 10.1.3 because in JDeveloper 11 there are other options
Frank -
when I open a music file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?
If you use iTunes' default settings then when you add a file to iTunes it places a copy of the file in the iTunes media folder and it leaves the original in place. The exception is when you drag it to the Automatically Add To iTunes folder.
It does not convert the file. You can delete the original if you wish. -
How to include external javascript file in an html
hello
i've an html file placed in apache/webapps/test folder this html file includes an external javascript file placed at same level
i'm includind the file as
<script src="file1.js"></script>but the file does not gets included
but when the sam folder "test" is paste outside apache the html file including the external file runs properly.
Thank Youflounder wrote:
cotton.m wrote:
What's really pathetic is that this is your third cross post on this same stupid off topic topic.
You are really a dumb fuck you know that?If they knew that they were a dumb fuck then they wouldn't be a dumb fuck!That's a logical and reasonable conclusion. Therefore I very much doubt that the OP is capable of it.
Hmmm this is interesting. It now shows the entity escapes rather than their values when you quote. -
How can I include a javaScript files from within jsf component
Is there any way using which I can include javascript files from my jsf component. Because otherwise I have to write all the javascript commands using writer.write which is very tedious rather than this I just want to include the javascript file which contains all the functions required. Also I want that this file should be included only once irrespective of the number of components included.
Thanx in advanceThis doesn't depend on JSF. You need to include a script tag, like:
<script src="/path/script.js"
language="JavaScript" type="text/javascript"></script>
If you want to include this only once, make a file included into every page, into which you can put other resources to be included along with this script.
HTH,
rs. -
Opening external pdf file from director
i'm a newby to director - is there an easy way to open an
external pdf file from director. just need it to open in another
window
cheers ssimon way wrote:
> i'm a newby to director - is there an easy way to open
an external pdf file from director. just need it to open in another
window
> cheers s
Hi Simon,
This is very much a FAQ. I have an answer to it at:
http://www.fbe.unsw.edu.au/learning/director/resources/FAQ/pdf.asp
As Sean suggested, it's worth searching the group as often
questions have been covered before, and in this case, many times
before.
You can use Google to search through forums at:
http://groups.google.com/advanced_group_search
Or simply from the Adobe site at:
http://www.adobe.com/cfusion/webforums/forum/search.cfm
regards
Dean
Director Lecturer / Consultant
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au -
How to run an external .exe file from an indesign pluging
Hi,
Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
Thanks,I'm actully writing data in PMString to a external txt file.
another question..
if i want to execute an action when the ok button is cliked how can i do it?
whe i add a button(widget) i know how to handle it. please see my code.
// Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
do
InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
ASSERT(controlView);
if(!controlView) {
break;
// Get the button ID from the view.
WidgetID theSelectedWidget = controlView->GetWidgetID();
if (theChange == kTrueStateMessage)
//if (theSelectedWidget == kEXTCODGoButtonWidgetID
switch(theSelectedWidget.Get())
case kEXTCODGoButtonWidgetID:
this->ViewOutput();
break;
case kEXTCODFindButtonWidgetID:
this->SaveLog();
break;
// TODO: process this
} while (kFalse);
I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked... -
Can not load an external swf file from my site
Hi ...
I have a fla file which is loading external swf files from my local folders.
I inserted some of the swf files to a web site and tried to load them from the site, not from my local folder...
So it gave me a security error like below:
*** Güvenlik Sanal Alanı İhlali ***security domain-area violation
http://www.celiktek.com.tr/KIRIL.swf' SecurityDomain öğesi -- security domain element, 'file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf' uyumsuz bağlamına erişmeye çalıştı - tried to reach this incompatible url
SecurityError: Error #2070: Güvenlik sanal alan ihlali -- security area violation: http://www.celiktek.com.tr/KIRIL.swf arayanı - searcher of this can not reach stage in file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf içindeki Stage'e erişemiyor. -
at flash.display::Stage/requireOwnerPermissions()
at flash.display::Stage/get numChildren()
at KIRIL_fla::MainTimeline/frame1()
so in my computer, I can load this swf , but how from a website ?
thnx ...Thnaks ...
I tried to use the securiyt panel that is openede and I added there my site
www.celiktek.com.tr/KIRIL.swf
but I still take the error
*** Güvenlik Sanal Alanı İhlali ***
http://www.celiktek.com.tr/KIRIL.swf' SecurityDomain öğesi, 'file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf' uyumsuz bağlamına erişmeye çalıştı
SecurityError: Error #2070: Güvenlik sanal alan ihlali: http://www.celiktek.com.tr/KIRIL.swf arayanı file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf içindeki Stage'e erişemiyor.
at flash.display::Stage/requireOwnerPermissions()
at flash.display::Stage/get numChildren()
at KIRIL_fla::MainTimeline/frame1()
from my code
var req:URLRequest=new URLRequest("http://www.celiktek.com.tr/KIRIL.swf");
var lod:Loader=new Loader();
lod.load(req);
addChild(lod);
lod.x=0;
does this code works on your computer ... I know it is a weird question ... you dont have to try ... -
Changing .css property through external Javascript file?
Hi,
I'm trying to create all kinds of functions on an external .js file, so I can just call them in Edge multiple times with less coding. The thing is, after importing jQuery and my external Javascript file, some code works, but I get stuck at this part: changing the .css property of a symbol, more specifically, the "font-size" property. My current function is:
function setFont(textid,fontsize,originalWinWidth){ //textid: symbol's name; fontsize: current font size of this symbol; originalWinWidth: window size at the start of the animation
console.log("Set Font:");
//set the original font size
var originalFontSize = Math.round(originalWinWidth/fontsize);
console.log("Original Font Size: " + originalFontSize);
console.log("Text ID: " + textid);
//set the font size using jquery
sym.$(textid).css("font-size", originalFontSize); }
I get an error at the last line, all other parts of the code works. Any idea what this could be?
Thanks,
Rafael CarignatoHave you tried sending textid to the console.log to make sure you're sending the actual name of the symbol and not a pointer to the symbol itself?
-Elaine -
Use function from external Javascript file
Hi All,
Is it possible to use function from other javascript file. If possible then please post some example.
ShonkyAs Harbs mentioned, you can use doScript().
Maybe you can do something like this:
First I created simple function in separate file and exported it JSXBIN
function myAlert(myString){
alert(myString);
Then, I copied contents of that JSXBIN and put it into variable
var securedFUNCTION = app.doScript("@JSXBIN@ES@[email protected]AffABC40BhAB0AzHjNjZiBjMjFjSjUDAC0EzAEByB");
or
var securedFUNC = eval("@JSXBIN@ES@[email protected]AffABC40BhAB0AzHjNjZiBjMjFjSjUDAC0EzAEByB");
And simply called function
myAlert('My test String');
Also, you can use include external script with #include to call JSXBIN, but you need to wrap contents of JSXBIN file into doScript or eval().
tomaxxi
http://indisnip.wordpress.com/ -
I want to Pick the Single file from The source Directory
Hi,
My Scenario is File to RFC .. I'm getting the files in the source Directory.. File names are SENDER_(TIMESTAP).XML .. but the problem is... When ever Files are available in the Source Directory Immediately XI was picking all the files at a time.. But I want to to Pick a single file at a time..
for Making this what we have to do.. After Processing the first file then only my Sender adapter should pick the next file... (even though Multiple files are available in my Source Directory)
Regards
JainHi,
the other option was use Adapter specific attributes in the Sender Communication channel..
or
while droping the files ask them to drop using time stamp in another directory and an external validation is required .. and after validation push single file to Source directory using batch file..
i.e use a batch file using run time operating system or make that batch file to run at OS level ..
where the batch files needs to validate the time interval of the file and needs to push a single file to the source directory.. where from there we can directly pick a single file and process..
regards,
Kishore -
How to add external css file from _edge.js file
I have tried to add in html page, but when I save edge project it removes it.
I am able to add external js file in scripts:[] in _edge.js file
What we can add inside resources:[] ?
And is there any way to add external css in edge files except in html page and through javascript?...and which kind of files can be included under
resources: [] ??
I have a .json file that I need to be included in a template (and also included in projects created from that template).
The only way I found to do this is to add it as a script. The problem then is that all included "scripts" will be evaluated when the page is loaded, which will fail since it's a json file. External dependencies makes it impossible for me to change the format of the json file... -
Error while calling an external javascript file
Hi,
I have added a javascript file into the public_html folder, i have named it main.js.
I have a html file in which i am referring to the javascript externally , this too is in my public_html folder. But the HTML page does not seem to be able to invoke the javascript.It does not even enter the method.
My code is as follows
html file
<head>
<title>untitled1</title>
<script language="Javascript" src=\"\main.js\" type=\"text/javascript\"></SCRIPT>
</head>
<body>
<form name="test" method="POST" action="test">
<input type="button" value="submit" name="submit" onclick="analyze_page()">
</form>
</body>
</head>
main.js
<script language="Javascript">
function analyze_page(){
alert("testing if it works");
</script>
(2)
Secondly, I also have a servlet in a package com.oracle.prod, what is the path I should give in the servlet <SCRIPT> tag so that the javascript is accessible while the page gets renderedHi Kart,
Try to do:
<script language="Javascript" src="<c:out value="${pageContext.request.contextPath}"/>main.js" type="text/javascript"></SCRIPT>
In that way you can access the context path of your application.
So, another thing that I noted is \" it's unecessary if you are editing directly a jsp/html file.
Afonso
Maybe you are looking for
-
Upgrade and plug ins migration ? speed changes and transitions to motion 3
I have the FCS2 upgrade on its way soon i hope.. will my natress plug ins and others migrate when i go from FCS1 to 2? I am mid project - have done all my captures but havent got into the nitty gritty of the edit yet - you reckon its a bit risky to u
-
Web Service Client: Project Additional Classpath contributor not working?
I've created a simple web service client/proxy and it works when debugging and running in JDeveloper 10.1.3.3 I created a deployment profile that includes "Project Additional Classpath". The preview does not show any of the jar dependencies being inc
-
My account stopped working a week ago. I can't find any information about this on the internet anywhere. What's going on?
-
MaxAcknowledgementDelay 'DelayedAck',Expired;Timeout
Hi, I was experiencing very slow smtp mail delivery from application servers in my Exchange 2010 environment. I traced this back to the MaxAcknowledgementDelay setting on my Receive Connector and have now reduced this (thinking about disabling) and a
-
Hi, We're planning to automatically add/remove/modify accounts (with passwords) in OD using our identity management system. What is the options regarding managing accounts by ldap (ldif), command line, file import? Frode