Link to local function?
In earlier versions of Flash, it was possible to link to a
local function. In the htmlText of a text area, you could link to
event:functionName instead of a website. Is that possible in the
text layout framework? If so, can someone post an example?
Im having a very similar problem. I have a script which feeds
a dynamic text field named t_txt, I would like to use the
textlayout component instead of the regular dynamic text field.
currently the script informing t_txt looks like this:
import net.slideshowpro.slideshowpro.*;
function onImageData(event:SSPDataEvent) {
if (event.type=="imageData") {
t_txt.htmlText=event.data.caption;
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA,
onImageData);
Im using the slideshowpro component which is hooked up to an
external database which provides captions, pictures and titles.
What href would i supply to the textlayout component? and are there
any changes i need to make to the above script? thx, Yasha
Similar Messages
-
Correct link to local folder in excel
I have a datebase of materials in excel document with cells that have paths to folders where the materials are stored
I want to link my local folders from my network to these certain cells in Excel so that my friends both from PC and Mac could quickly access them.
Unfortunately, when I add folder address from my local network that starts from smb:// - the system doesn't understand that and turns it to local.
What is the right thing to do?As far as I know it is not possible directly. I made a workaround though which implies making a webpage that does the trick (you'd need access to some webserver).
Make a simple webpage, eg http://www.yourdomain.com/excel2path.htm with this source code:
<html>
<head>
<script language="javascript" type="text/javascript">
var OpenPath=parent.location.search.substring(1) // retrieves smb-path from URL (all after the ?-mark)
location.href=OpenPath
</script>
</head>
<body>
</body>
</html>
Then in excel the formula for the hyperlink should be something like:
=HYPERLINK("http://www.yourdomain.com/excel2path.htm?smb://serverx/folderx/filex", "friendly name to click on")
(with the CONCATENATE function you could dynamically build the smb-path)
Done. If you now click on the hyperlink in excel, the webpage should load which takes the smb-path from the URL and automatically redirects to that path... -
Local function calling remote function - error
Dear All
i have following remote function wich return some value from both methods ie.
1) select func1(variable, varialbe) from dual@remoteDB; working
2) select func1(variable, varialbe) from dual; -- by making a synonym at local
Now i create a local function funclocal calling remote functino i.e. func1 in this example as:
CREATE OR REPLACE FUNCTION funclocal(locc varchar2, artnoo number)
RETURN NUMBER IS
query_str VARCHAR2(1000);
STKQTYY NUMBER;
artno number(10);
loc varchar2(80);
BEGIN
artno := artnoo;
loc := locc;
query_str := 'select func1(loc, artno) from dual ';
EXECUTE IMMEDIATE query_str
INTO STKQTYY;
RETURN STKQTYY;
END;
compiled successfully.
But when i run as:
SQL> select funclocal('abc', 469183) from dual;
select funclocal('@st3', 469183) from dual
ERROR at line 1:
ORA-00904: "ARTNO": invalid identifier
ORA-06512: at "funclocal", line 11
Please guide me.
Regards
SaeedEXECUTE IMMEDIATE query_strAs Andreas states: Why are you using dynamic sql?
From what I see all you need is sth like
create or replace function funclocal (locc varchar2, artnoo number)
return number
is
begin
return func1 (locc, artnoo);
end funclocal ;
/even the whole concept of a »local« function seems suspicious. Why do you need that one? -
ALV-Grid: Is it possible to catch "LOCAL Function Codes" in any Event ??
Hi,
is it possible that i can catch a "Local Function Code" in ALV Grid with an Event??
For example if you click to an Grid Button on the toolbar than it must call an Event!
..........BUTTON: Local APPEND (existing in ALV Toolbar)
Function Code: '&LOCAL&APPEND'
My Idea is:
--- IF i click to the Button "Local APPEND" in the ALV toolbar, than it must after this command give me an Message( "It was Successfull" ).
But the "Local Function Codes" dont called the Event "User_command" OR "After_user_command" is there any other Event for this "Local Function Codes"???
Have anyone an idea?
Thanks in forward.
ErsinHi,
See following thread.
http://scn.sap.com/thread/715996
Thanks
Santosh -
Using local functions in compound triggers
Hi anybody,
I'm using ora11gR2. Tried the new compound trigger feature. I define a before each row and an after statement section. Additionally I define several local functions in top of trigger body. In local procedure ( insdelupd within this example ) I get data of old-buffer, but not data of new-buffer. After execution of assignments in insdelupd the variable ParentKeyListOld is filled with actual value of ID1, while ParentKeyListNew is just filled with delimiter ':'. I got the idea, a local procedure outside the specialized trigger sections ( statement or row level ) could be called from both types, but :new and :old-buffers only make sense within row-level section and therefore ther could'nt be access to these buffers. But as debugger shows: the :old-buffer is filled with data.
Has anybody an idea ?
thanks in advance
Wilko Helms
CREATE OR REPLACE TRIGGER BTK."tcm_testtable_1_hp"
for delete or insert or update on BTK.TESTTABLE_1
compound trigger
ParentKeyListNew varchar2(4096);
ParentKeyListOld varchar2(4096);
procedure InsDelUpd as
begin
if updating then
ParentKeyListNew := ParentKeyListNew || :new.ID1 || ':';
ParentKeyListOld := ParentKeyListOld || :old.ID1 || ':';
end if;
end;
before each row is
begin
InsDelUpd;
end before each row;
after statement is
begin
end after statement;
end;
[Code]Hi
I only use function returning select when I have a strong reason to do so, because it is so much more difficult to test and maintain. Not sure about performance, but I think it is not that much worse.
If you simply want to reuse SELECT statements, you could use views instead.
Anyway, if you decide to use the package solution, at least you can make it much simpler -- just code like this in the page:
return package.function;
I hope this helps.
Luis -
Equium A100 - s video link has not functioned
Dear Forum Members
I have an Equium A100 running Vista (home edition).
In the past I have happily had my PC linked to a TV using an S video lead to view TV programmes, dvds etc.
However recently my computer had to be reset to the original factory settings and since that time the s video link has not functioned - the PC wallpaper shows on the TV but nothing else.
I have loaded what I hope are the appropriate latest drivers (perhaps source of problem) and the display settings appear to be correct.
Any help with this problem would be greatly appreciated.
Ron>... the PC wallpaper shows on the TV but nothing else.
This happen when option Extend the desktop onto this monitor is enabled.
Please enter display settings/properties and be sure this option is disabled. -
Dblink + local function: INDEX RANGE SCAN not used
Hi All,
I have an sql query to remote database:
SELECT N FROM [email protected] WHERE cd_n = 60
It works with INDEX RANGE SCAN for "N" field of table "tab", it's ok.
Now I'm replacing the constant value with the local database function:
SELECT N FROM [email protected] WHERE cd_n = dannis.foo()
Then 'INDEX RANGE SCAN' is removed out from query execution plan :-(
I've tried some tricks as
/*+ rule index(user.tab TAB$PK) */,
driving_site(tab),
to_number(dannis.foo()),
(select dannis.foo from [email protected])
and so on...
but INDEX RANGE SCAN wasn't appear while using the local function.
Is it true when dblink is used in combination with local function then INDEX RANGE SCAN will never used?
/Oracle 9.0.1.2/
Thanx,
dannis.See Optimizer not taking the hint
-
Unable to call local function in select statement.
Hi all,
I am unable to call the local function in select statement in below scenario.
DECLARE
l_cnt NUMBER;
FUNCTION FUN1 RETURN NUMBER
AS
BEGIN RETURN 2;
END;
BEGIN
SELECT FUN1 INTO l_cnt FROM DUAL;
DBMS_OUTPUT.PUT_LINE(l_cnt );
END;
/Any alternate way to call local function in select statement?
Thanks
Ram.Hi,
Sorry, you can't call a locally defined function in a SQL statement, even if that SQL statement is in a PL/SQL block where the function is in scope.
This applies to packages, also. If a function is not declared in the package spec, but only in the package body, then you can't call it from SQL statements in the package body.
Why do you want a locally defined function? Why not a function defined outside the procedure? -
To include a new link in the function area?
Hi all,
I need to include a new link in the function area of the masthead. Could any of you please explain me how to do this?
Also after clicking on this new link on the fucntion area of the masthead, the iview needs to be displayed in the innerpage or the content area of the portal...
thank you
regards
LukeHi Luke
Hi
You can modify the par file <b>com.sap.portal.navigation.masthead</b> to achieve this.
Copy the
com.sap.portal.navigation.masthead.par.bak file from
<local_drive>usrsap<instance>JC00j2eecluster server0appssap.comirjservlet_jspirj
ootWEB-INF deploymentpcd to a temporary folder.
Rename the par file to some other namespace and import the new par file into your NWDS.
you have 3 main files in the masthead namely HeaderiView.jsp, LogInRedirect.jsp, LogOffConfirmMsg.jsp.
change the corresponding jsp file to make the changes as per your requirements.Upload and deploy the par file to the Enterprise Portal.
Also go through these links.
Customizing masthead in theme editor
Removing Masthead Function Area
Adding a background picture to masthead
hope this helps.
Regards
Yoga -
Acrobat 8.1- links to local files
Hello,
I'm having several MS-Word-files, which have to be converted to PDF. All files contain hyperlinks to web sites as well as links to files on our local file-server.
Conversion works fine out of MS Word 2003, but links to local files do only work, if I open the created file on the file server. If I up load it to our web server and open it with a browser, the local files can not be found (links to Internet do work).
If I edit the link properties within the created file by changing the performed action from 'open a file' to 'open a web link', starting the URL with 'file://...', the links work correct.
Is there any possibility to tell Acrobat, that this has do be done while converting MS-Word-files?
I even tried to change the absolute address within MS-Word, e.g. adding http:\\ to the link, but Word didn't allow this...Thank so much.
But in other PCs the link works fine. It only happens in my Acrobat 9 Pro. In my mates PC the links works perfect.
Any suggestions? Maybe this is a windows problem?
Thanks! -
Link to local PDF-file / or html (not web-view)
Hi,
i posted this in the prerelease-forum and got no answear so i thought i give it a try and post here.
i see it is possible to link to a local pdf file with the webview function.
but i want to show a local pdf-file in the app-browser. the one in which linked websites are shown and where i can click "done" to close the window.
i've seen it f.e. in the "new yorker" app where f.e. the cartoon gallery is shown in this browser, so it has to be possible.
does anybody know how this could work?
tyvm
davidYour code is a mess:
** there is no apparent reason for the span:
<td><span class="style1"
onfocus="MM_openBrWindow('pdf/PR_launch.pdf','','')">Milford, OH
So change that line to:
<td>Milford, OH
** here you have two double quotes before This.
<a title="This" class="pdfFile"
onclick="MM_openBrWindow('pdf/PR_Launch.pdf','','')"
Change it to this, (with some other improvements):
<a title="This" class="pdfFile"
onclick="MM_openBrWindow(this.href,'','');return false"
** This is code salad:
href="PR_Launch.pdf" link="" will="" open="" a=""
.pdf=""
file.="">More (PR_Launch.pdf,
230kb)</a></span></td>
Change it to:
href="pdf/PR_Launch.pdf">More (PR_Launch.pdf,
230kb)</a></td>
If you continue to have trouble, you might find my divaPOP
Extension
easier, and far more powerful. It automat6ically opens pdf
files and
links to all external files in a popup window without your
needing to
code each link:
http://www.divahtml.com/products/divaPOP/open_popup_windows.php
E. Michael Brandt
www.divaHTML.com
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia -
I want to link to a url that will be local on the CD. I am
using toToNetPage "myUrl", "_new"
but when clicked for the first time if the browser is not
already running I get a blank untitled page or tab. Click it again
and I get the page OK but this will likely be confusing for users.
Anyone come across this or have fix
ThanksI have seen that before, and I have never found an adequate
solution.
Instead, I have begun using BuddyAPI for this function. You
can use the
command:
baOpenURL(myURL,"normal")
And it works much better and more consistently. You can use
up to 2
functions of BuddyAPI for free. You can download it from
www.mods.com.au/budapi -
URL won't link to local file on disk
I want to make an object link to a html file on the local disk (I can't be sure I'll have internet access when I'm presenting).
Keynote '08 seems to reject everything I've tried to do this; it doesn't accept "file://...." URLs. It seems to only accept "http://..." URLs. Hare-brain design aside, is there a way to do this?Ironically I noticed the same problem today, too. My hack is to open the link in the background and then switch between the programs with Exposé or command-tab.
-
New From Template Changes Relative Links to Local Root?
Thank you for taking the time to read and understand my plight with Dreamweaver CS3 for Mac. I apologize for the lengthy question, but in the effort to provide detail I shall go. First the background:
I'm updating, editing, and appending an existing site that was previously created with Dreamweaver.
I'm new to Dreamweaver but have a pretty good understanding of things
I created a new site on the local drive on my MacBook Pro and then downloaded the entire site via FTP (live site: domain.com)
I then replicated the site and exact file structure using FTP to a staging server (staging.domain.com)
There are three existing .dwt templates. I've successfully updated the template file and auto updated all other pages that were based on this template.
But my problem comes from creating new pages FROM the template. It appears that while the .dwt template file shows relative links (../xxxx) in the code, when create a new file from the template the url of these links is replaced by the path to the file on my local drive... I want non of this (.../xxxx) is fine.
What is happening is that a javascript drop down menu is disappearing when I create new from template. I am assuming it's because of the path changes.
This is the ORIGINAL (good) code from the .dwt:
<!-- Top Navigation -->
<tr>
<td height="31">
<table width="718" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="24"><img src="../images/L-Header-Corner.gif" width="30" height="50" border="0"></td>
<td width="342" style="background-image: url(../images/Header-BG.gif);"><img src="../images/spacer.gif" alt="" width="337" height="1" border="0"> </td>
But when I create a NEW page from the above template the code is changed to the local path:
<!-- Top Navigation -->
<tr>
<td height="31">
<table width="718" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="24"><img src="file:///Grasshopper/Users/allan/Documents/clients/site/site staging master/images/L-Header-Corner.gif" width="30" height="50" border="0"></td>
<td width="342" style="background-image: url(file:///Grasshopper/Users/allan/Documents/clients/site/site staging master/images/Header-BG.gif);"><img src="file:///Grasshopper/Users/allan/Documents/clients/site/site staging master/images/spacer.gif" alt="" width="337" height="1" border="0"> </td>
To be sure all links in the template file are changed too.
This is the .dwt file itself
This is a random page created from the above template.
And this page was created by simply altering the .dwt template file linked above and then SAVING AS. You can see the relative links remained and the navigation bar looks and operates as normal.
To provide easier visual reference I offer the following:
This is the .dwt file when opened in dreamweaver:
Note the black area where the javascript drop down menu is in the top navigation when the page is correct:
But when I create a NEW page from template this is what I get in the top navigation bar:
And then this is what it looks like when posted:
Ultimately what I'm trying to do is:
1) work on site files on my local drive
2) sync the local drive with staging.domain.com so my client can proof and approve
3) sync to the actual live site at domain.com
I assume I could simply do this by changing the ftp info and given the site structure and all files are same and ideally all links are relative this should be accomplished easily.
Though perhaps my problem stems from the fact my local site is buried several layers deep on my local drive Local Drive/Users/Me/Clients/Client.... etc... but I haven't checked this yet.Great... Thanks for your patience....
Here are links to all questioned files on the staging server:
This is the .dwt file itself
This is a random page created from the above template that shows the image/navigation incorrect.
And this page was created by simply altering the .dwt template file linked above and then SAVING AS. You can see the relative links remained and the navigation bar looks and operates as normal. (obviously the wrong thing to do.
And this page is one that was created prior to my working on the site and was based on the subpage template and displays correctly.
Now bear with me here as I notice this behavour too.
In the code snipped taken directly from the DW .dwt template (linked above)
<td width="24"><img src="../images/L-Header-Corner.gif" width="30" height="50" border="0"></td>
<td width="342" style="background-image: url(../images/Header-BG.gif);"><img src="../images/spacer.gif" alt="" width="337" height="1" border="0"> </td>
you'll notice there are two images L-Header-Corner.gif and one that is Header.BG.gif.
The difference here is that the BG gif has a style attributed to it "Background-Image) which is followed by some strange code that says (url)../
Opening that file Background Image and it's a tiny slice of what I think is part of the entire missing gray bar:
In a page that displays correctly the code looks like this:
<td width="24"><img src="../images/L-Header-Corner.gif" width="30" height="50" border="0"></td>
<td width="342" style="background-image: url(../images/Header-BG.gif);"><img src="../images/spacer.gif" alt="" width="337" height="1" border="0"> </td>
And in a page that is displaying incorrectly the code appears like this:
<td width="24"><img src="../images/L-Header-Corner.gif" width="30" height="50" border="0"></td>
<td width="342" style="background-image: url(file:///Grasshopper/Users/allan/Documents/clients/koolfog/koolfog website staging/images/Header-BG.gif);"><img src="../images/spacer.gif" alt="" width="337" height="1" border="0"> </td>
So you can see that the link in this case (with the URL and style) has actually been converted to a site (my hard drive) relative link when saving.
So the pressing question stands: Why doesn't dreamweaver convert that URL link when saving a page created from a template back to the same directory?
Also, it appears that in that .DWT all the links have the leading periods and therefore are document relative... since I didn't set this up, how do you think this happened? -
Links to AS functions in text?
Is there a way to create hyperlinks to AS functions within
text that is imported from an XML file without having to call out
to JavaScript and back?
In other words, I'd like to have a way to put a link in the
middle of a line of text and have it call an ActionScript function
when clicked.
Thanks for any help!lectro,
> Is there a way to create hyperlinks to AS functions
within
> text that is imported from an XML file without having to
> call out to JavaScript and back?
I think the answer is yes. It is possible to create
hyperlinks (<a>
tags) in HTML-formatted text in a Flash text field. It is
possible to have
that hyperlink trigger ActionScript, rather then open a URL.
The
HTML-formatted text can indeed be loaded from an XML
document. Because none
of this involves anything outside of the SWF file itself
(besides the XML
document), no JavaScript is required.
> In other words, I'd like to have a way to put a link in
the
> middle of a line of text and have it call an
ActionScript
> function when clicked.
Assuming you're using HTML-formatted text, it's as easy as
using the
asfunction pseudo protocol, instead of the http protocol. For
example:
var tf:TextField = this.createTextField("sampleTF", 0, 0, 0,
0, 0);
tf.autoSize = "left";
tf.html = true;
tf.htmlText = "<p>Lorem ipsum dolor <a
href='asfunction:myFunction'>sit
amet</a>.</p>";
function myFunction():Void {
trace("I've been clicked!");
If your function accepts parameters, send those in as a
string, like
this:
tf.htmlText = "<p>Lorem ipsum dolor <a
href='asfunction:myFunction,param'>sit
amet</a>.</p>";
function myFunction(msg:String):Void {
trace(msg);
In the above example, the parameter's value is "param", so
that string
gets passed into the function, where it is intercepted as the
variable msg.
The line trace(msg) will trace "param" to the Output panel.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."
Maybe you are looking for
-
dear sir i can't sing in to my icloud. showing the message as above cannot sign in the operation couldn't becompleted.(com.apple.appleaccount error 403) i need a sloution fo it as soon as i am waiting to you ar replay thank you mohamed haseef
-
Substitute fields in table BSEC
Hello to you all, Does anyone know of an option to substitute fields in table BSEC while posting FI doc? Using FM SAMPLE_PROCESS_00001120 (of course, a local Z version of the FM), is not relevant as mentioned in NOTE 996552 The rest of the FM in the
-
Hello, I have 3d objects in .3ds, .obj, and .blend. They are the same object. What i am trying to do is import that object into after effects using any of the 3 files. I tried putting it in Photoshop and hen going into after effects but the texture c
-
Do you have to upload photos to iPads or can you just stream them
Do you have to upload your photos to the ipad or can you just stream them? hoping they can be streamed ..... if so what is the best way to do this ? can this be done through my time capsule?
-
my iPad has been stuck on the apple loge for almost 10 hrs after trying to update, how can this be fixed?