Linking from a html webpage to an image in a photoflow component
Hello,
I will apologise first as I am very new to the world of flash but am trying to do something that (to me) seems fairly complicated.
I am using the photoflow component in flash as an image viewer, I would like to link to individual images within the viewer from html webpages.
I have a link in a HTML page. The link goes to a .swf file that shows a gallery of images that are defined in an xml file.
Currently I can define the startposition of the .swf file in the xml file in a simple way (i.e. center). Can I define the start position in the HTML link to go to the desired image?
In other words
link 1 = Startposition Image 1
link 2 = Startposition image 2
link 3 .... etc.
Any help would be greatly appreciated.
Thanks
Hannah
Thanks again, Rick.
Either I am doing something wrong or the Shortcut Control is not an option for me. I want to just give up this as I have spent WAY too much time trying it over and over again. I deleted the spaces from the folder names, tried various versions of the relative link, and still cannot access these files from the chm directly in my working folder (not called from the application where it will eventually live). I know this solution worked for me before. I’m just not sure what is happening now. It seems that RH doesn’t recognize the path and file and, when I try to alter the reference, RH reverts to whatever I had originally specified in the “Program to open” field. ☹ The shortcut does work when I use an absolute path (file:///D:/RoboHelpProjects/help/HardwareTroubleshooting/index.php/Hardware_Guide.html<f ile:///D:\RoboHelpProjects\help\HardwareTroubleshooting\index.php\Hardware_Guide.html>) but I cannot do that since the app will not absolutely be stored in the same place for every customer. I have to find a way to use a relative path in which the ./help directory is located one level above the root directory (D:/pcs/help…).
You have been so helpful, but I really don’t want to keep bugging you. Do you know of any links to online tutprials for the JavaScript option you mentioned? I have never worked with that before.
Thanks again…Kim
Similar Messages
-
HTML link from external html page to link to a frame in swf
Hi
I am trying to set up something to should be fairly basic to
do .. but I cannot get it to work.
Need a link from another website to link to a frame label or
number in my flash movie.
Something like this ..
<a href="mySwfPage.php?label=labelnamehere&">Click
here</a>
My guess it will not work because I have several stop
functions and a preloader in the 1st frame not allowing the href
link to jump to the frame name I want.
Here is the page I am trying to apply this to -
http://www.mloudesign.net/tampico/index.html
We need for an external link to link to the espanol label so
that would start first, otherwise the english version plays 1st.
In case this helps this is the preloader I am using in frame
#1 ..
onClipEvent (load) {
total = _root.getBytesTotal();
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
Any help would be much appreciated.
Thanks!
~mlouhe! I'm not alone in my desperation. Take a look at my problem:
I've got a JEditorPane (not editable) inside a JFrame. The JEditorPane is loaded with the HTML text and all the links to anchors are working properly when I click on them.
BUT
If I try to go to an anchor from outside this JFrame I can see how the JEditorPane scrolls to the right anchor and suddenly it scrolls back to the place where the caret was located!!!
The "funny thing" is that my code is working in jdk1.3.1 but this is happening in jdk1.4.2. Is it a bug?!?!?!
How could I figure out what position I have to set the caret to for every anchor in order to get the scroll working correctly???
My implementation of hyperlinkUpdate (working properly, here isn't the problem):
jEditorPane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
MiEditorPane src = (MiEditorPane)e.getSource();
src.goToAnchor(e.getDescription().substring(1));
});My object jEditorPane is an instance of this class:
class MiEditorPane extends JEditorPane {
MiEditorPane() {
super();
public void goToAnchor(String anchor) {
super.scrollToReference(anchor);
}And this is the method I call from outside the JFrame containing the JEditorPane:
public void goToAnchor(String anchor) {
jEditorPane.goToAnchor(anchor);
}Any help greatly appreciated ... -
How to go to anchor html link from external html page in JEditorPane
Hi people,
I've been trying to jump to an anchor link from an external html page in JEditorPane, and I cannot get it working, I'm sure it can be done somehow...
The HTML page has a link like:
Hello
and this is loaded into JEditorPane ok.
The HyperlinkListener implementation:
public void hyperlinkUpdate( HyperlinkEvent e )
try {
if ( e.getEventType() == HyperlinkEvent.EventType.ACTIVATED )
editorPane_.setPage( getClass().getResource(
MyDialog.this.getBaseURL().concat( e.getURL().getFile().substring(
e.getURL().getFile().lastIndexOf( "/" ) + 1 ) ) ) );
if ( e.getURL().getRef() != null )
editorPane_.scrollToReference( e.getURL().getRef() );
else return;
} catch ( IOException ioe ) { ioe.printStackTrace(); }
This code loads the new html file ok, but it does not scroll to the anchor. The MyDialog.this.getBaseURL() just returns something like com.name.package, I construct the URL by using this base url and the name of the html file to open.
ANy help, thankshe! I'm not alone in my desperation. Take a look at my problem:
I've got a JEditorPane (not editable) inside a JFrame. The JEditorPane is loaded with the HTML text and all the links to anchors are working properly when I click on them.
BUT
If I try to go to an anchor from outside this JFrame I can see how the JEditorPane scrolls to the right anchor and suddenly it scrolls back to the place where the caret was located!!!
The "funny thing" is that my code is working in jdk1.3.1 but this is happening in jdk1.4.2. Is it a bug?!?!?!
How could I figure out what position I have to set the caret to for every anchor in order to get the scroll working correctly???
My implementation of hyperlinkUpdate (working properly, here isn't the problem):
jEditorPane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
MiEditorPane src = (MiEditorPane)e.getSource();
src.goToAnchor(e.getDescription().substring(1));
});My object jEditorPane is an instance of this class:
class MiEditorPane extends JEditorPane {
MiEditorPane() {
super();
public void goToAnchor(String anchor) {
super.scrollToReference(anchor);
}And this is the method I call from outside the JFrame containing the JEditorPane:
public void goToAnchor(String anchor) {
jEditorPane.goToAnchor(anchor);
}Any help greatly appreciated ... -
Linking from RH HTML topic to an .ASPX file
Does anyone know if I can link from a RoboHelp HTML topic to
an .aspx file? Quite a few of the pages that I need to link to on
our company's external site use .aspx, especially those that serve
as "wrappers" for flash files, but I haven't been able to link to
them.
I'm using RH X5.02 on this PC and RH 7 on my "lab" PC, but I
don't remember it working on RH 7 either.
Thanks,
JimThanks again, Rick.
Either I am doing something wrong or the Shortcut Control is not an option for me. I want to just give up this as I have spent WAY too much time trying it over and over again. I deleted the spaces from the folder names, tried various versions of the relative link, and still cannot access these files from the chm directly in my working folder (not called from the application where it will eventually live). I know this solution worked for me before. I’m just not sure what is happening now. It seems that RH doesn’t recognize the path and file and, when I try to alter the reference, RH reverts to whatever I had originally specified in the “Program to open” field. ☹ The shortcut does work when I use an absolute path (file:///D:/RoboHelpProjects/help/HardwareTroubleshooting/index.php/Hardware_Guide.html<f ile:///D:\RoboHelpProjects\help\HardwareTroubleshooting\index.php\Hardware_Guide.html>) but I cannot do that since the app will not absolutely be stored in the same place for every customer. I have to find a way to use a relative path in which the ./help directory is located one level above the root directory (D:/pcs/help…).
You have been so helpful, but I really don’t want to keep bugging you. Do you know of any links to online tutprials for the JavaScript option you mentioned? I have never worked with that before.
Thanks again…Kim -
Import Links from JavaDocs HTML Files
When I import HTML files from JavaDoc with internal links
into RoboHelp, they come in with broken links. Internal HTML links
have # signs in their bookmarks & Robo7 does not like them. How
can I get Robo to accept these internal embedded HTML links?See
here
for a duplicate thread. -
How to: Add Internal anchors to a PDF and then link from an external webpage?
Hi,
I work in email marketing and create html emails that we send through our own web based system. I am just wondering if it is possible at all to create internal anchors with unique urls that I can then link to from my html email as a hyperlink?
The client has created the PDF and I am wondering if I can create the anchors and when linking to these anchors from my email, it downloads the file and opens to that specific anchor location?
Thanks in advance.I seem to having a new issue with this task. Thanks to Bernd I have managed to create named destinations within the PDF document. From there I have then created the email and linked the pdf url with the destination tag to open to that location. However what we're finding now is that once the PDF has been downloaded once, if you go back to the email and select another link it opens the PDF in the last viewed state.
This client has created one PDF containing many different articles. In the email she has created a table of contents and wants to link from each listed article to that destination in the PDF. But once you have clicked on one link, shut down browser, go back to the email and select another link it just opens what you were viewing last. Is this a cache issues? Are we using the named destination method in the correct manner?
We tried suggesting, linking once to the PDF and then from the PDF creating a table of contents with internal anchors however the client doesn't want this.
Suggestions? -
How can i get all links from html file ?
I tried some code:
List<string> metas = new List<string>();
string text = "";
string mys = "";
public List<string> LockedThreads(string filename)
HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.Load(filename, Encoding.UTF8);
var metaTags = doc.DocumentNode.SelectNodes("//meta");
if (metaTags != null)
foreach (var tag in metaTags)
if (tag.Attributes["name"] != null && tag.Attributes["content"] != null)
text = tag.Attributes["name"].Value;
mys = tag.Attributes["content"].Value;
var linksOnPage = from lnks in doc.DocumentNode.Descendants()
where lnks.Name == "a" &&
lnks.Attributes["href"] != null &&
lnks.InnerText.Trim().Length > 0
select new
Url = lnks.Attributes["href"].Value,
Text = lnks.InnerText
foreach (HtmlNode node in doc.DocumentNode
.SelectNodes("//a/@href | //img/@src"))
metas.Add(node.Name);
In the var linksOnPage i'm getting all the links but some of them not only links for example the first item i see:
[0] = { Url = "/", Text = " " }
Then the second item:
[1] = { Url = "http://rotter.net/cgi-bin/forum/dcboard.cgi?az=login", Text = "התחבר" }
Next i want to add another loop or variable that will contain only the links after im src for example:
<img
src="http://mysite.com"
border="0"></a></TD><TD
ALIGN="right"
VALIGN="TOP"
WIDTH="55%">
So to get only http://mysite.com
So in the end i will have two Lists:
First List will contain all links from the html file.
Second List only links that are in img srcOk i'm using regex now and i can get the links i need:
List<string> metas = new List<string>();
List<string> metas1 = new List<string>();
string text = "";
string mys = "";
public List<string> LockedThreads(string filename)
string[] fall = File.ReadAllLines(filename);
foreach (string hh in fall)
if (hh.Contains("http://rotter.net") && hh.Contains("locked")||
hh.Contains("locked_icon_general") ||
hh.Contains("locked_icon_anchor") ||
hh.Contains("icon_anchor") ||
hh.Contains("locked_icon_fire") ||
hh.Contains("locked_icon_sport")||
hh.Contains("locked_icon_camera")||
hh.Contains("locked_icon_movie"))
Regex linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
foreach (Match m in linkParser.Matches(hh))
metas.Add(m.Value);
So now in the metas i have in this case two links.
For example the first link is from this block in the file:
The link i got is : http://rotter.net/forum/Images/hot_icon_anchor.gif
And this is the right link from this block but now how do i get the text from this block and how i connect how do i know that this text belong to the link ? I need to add this text from this block to a new List. Before all that i counted on my own lines
and got the text but that's a bad idea.
I need somehow to get: שרשור תשדירי בחירות מרוכז:
To get the text between the ToolTip',' and the second ',' but not from all the html file only in places of this two links i extracted.
<TD ALIGN="RIGHT"
VALIGN="TOP">
<body onmousemove="overhere()">
<a onmouseover="EnterContent('ToolTip','שרשור תשדירי בחירות מרוכז:','<u><span style=color:#000099;>כתב: menahem בתאריך: 03.03.15
שעה: 08:51</span></u><br>1.<br>http://youtu.be/utUaqyiRkJ8<br><br><br>...'); Activate();"
onmouseout="deActivate()"
href="javascript:void(0)">
<img src="http://rotter.net/forum/Images/hot_icon_anchor.gif"
border="0"></a></TD><TD
ALIGN="right"
VALIGN="TOP"
WIDTH="55%">
<FONT CLASS='text15bn'><FONT
FACE="Arial">
<a href="http://rotter.net/cgi-bin/forum/dcboard.cgi?az=read_count&om=187966&forum=scoops1"><b>
<font color="red">שרשור תשדירי בחירות מרוכז:</b>
</a></font></TD> -
Make the link from the single cell of Bex Report and the image of bill
Hi guys,
my client scan every bill and archive the image by File.net technology.
In our Bex Report we have the Bill number and we want to make the link from the single cell and the image of bill.
The possible paths to solve the problem are:
Replicate the image in BW and crate a link from the single cell and the image of document.
Create an URL link from the single cell and the image of document archived on File.net server.
In witch way we can to implement the two paths?
Thank you.
AlessandroHi Alessandro,
Have you seen "How To Enhance your Web Query with the Table Interface"?
You can find it in media library:
https://websmp105.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000194044
Best regards,
Eugene -
Accessing the links in a HTML component
hello.I'm using a HTML component in my application. I would like to drag and drop some links from the HTML component into a datagrid for instance. When I hold the mouse clic and move the cursor, theres a grey faded frame with the link inside, so there must be some way to access this information. Any idea how i could do that ? Thank you for any assistance.
Thanks Stephen,
In this case we want to use external links. For example we write a short headline and intro and then link to another page where you can read the rest.
I have a lot of customers who wants to edit this kind of links by themselves so I hope you will look into this as quickly as possible :-) -
Hyperlink from an HTML page directly to an artikle in a pdf document ?
Hi,
we would like to set a direct link from a HTML page to a special article in a pdf document. For the moment we could open the pdf document only at its first page.
Thank you for your help :-)Hi,
it's me again.
Well, with the PDF open parameters I am now able to open a pdf document via HTML on a specific page number.
(http://example.org/doc.pdf#page=10)
However page numbers are changing so I want do define a special Article using the following command:
http://example.org/doc.pdf#nameddest=Article16
but the pdf opens always at the first page. Is there something to do in the pdf document with Article 16 first ?
Regards Krokah -
Hello, I use WEBdb 2.2 and i have a question about Imagemaps. I build an Imagemap and i write the Html script. Now my problem is i don't know how i can link from the html script to a Webdb Folder, when i cut and paste the urls i have the problem that this works only in administrator status. Have anyone an Idee to fix this problem.
Best regards Ulrich KehderWebDB appends an "s" to your DAD when you are an authenticated user. So if your public URL is:
http://mysite.mydomain.com/mydad/mydad.home
the URL used by an authenticated user will be:
http://mysite.mydomain.com/mydads/mydad.home
When you cut and paste the URL to a folder, you simply have to remove the "s" from the DAD.
BTW, keep in mind that these hard-coded URLs will no longer work when you upgrade to Portal. You'll have to go back and change them after the upgrade.
Regards,
Jerry
null -
Recognize a link from an rss source?
Hi, I am now trying to improve my rss reader. Links from the html rss are being shown in brackets, but cannot be selected and forwarded to the standard windows program (http:// -> browser).
Is there a way to "recognize" a link from an rss source? I want my rss reader, which shows the content of this blog: "http://blog.fefe.de/rss.xml?html", to have an overview of sources he uses for each post with directlinks to the source.
Thanks for any adviceHi Hhamburger,
I pulled in your rss data source and noticed that the "(http://...)" format for your links comes from
ThisItem!description column. Therefore to achieve what you want, I recommend using the following rule for OnSelect on the visual that you are displaying the data in:
Launch(Left(Substitute(ThisItem!description!$text,"<a href=""",""),Find(">",Substitute(ThisItem!description!$text,"<a href=",""))-3))
Please let me know if this works for you or if you need more clarification ? -
Linking from outside of Captivate
The User Education team at our office uses Captivate for its training videos, and the question has come up about using absolute links from an HTML page to target and play a specific slide or frame of a Captivate movie. I realize this may be a simple question that's already been answered by the community, but I didn't have any luck searching for the topic within the forums.
Thanks in advance for any assistance!If you are using Captivate 4 it can be done through JavaScript and an advanced action. Not sure if this approach works in Captivate 5 but here it can be done by using a custom built widget and passing the slide number to the Captivate project / Widget using either Flash Vars or URL vars.
It's not fail proof though since you can run into problems with actually accessing a slide that is not loaded yet.
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets. -
How do i send an html file exported from muse as email blast with images and live links?
My question it:
How do i send an html file exported from muse as email blast with images and live links?
I have designed a "website" in adobe muse and exported it as an html file. I am not sure how to send my .html file in an email!
Best,
NicoleUnfortunately, the answer is, you don't. The requirements for HTML displayed in an e-mail reader are very different than those for HTML displayed in a browser. The output of Muse won't work as an HTML e-mail. You could upload the Muse site as a website and provide a link to it in an e-mail, but the HTML generated by Muse is not suitable for direct display by an e-mail program.
-
Extracting Image Links From HTML
Hi, at the moment am trying to extract image locations from the html files i.e. the "src" part of <img> tag. Have tried using HTMLParserCallback as I know this allow you to extract links from a page. However when I open a document I know to have <img> tags in it, handleStartTag() is not called, I only get all the other tags. Any idea how to solve this problem? Thanks very much,
RossHi,
Here's a portion of a class I wrote a while back....
Note the useMap variable I introduced in the constructor.
Some HTML files had the images in a "map" attribute, others in an "imgmap" attribute.
regards,
Owen
private class CallbackHandler extends HTMLEditorKit.ParserCallback
private HTML.Tag tag; // The most recently parsed tag
private HTML.Tag lastTag; // The last tag encountered
private int nested = 0;
private boolean useMap;
public CallbackHandler(boolean useMap)
super();
this.useMap = useMap;
public void handleText ( char[] data, int pos )
public void handleStartTag ( HTML.Tag t, MutableAttributeSet attSet, int pos )
public void handleSimpleTag ( HTML.Tag t, MutableAttributeSet attSet, int pos )
if ( t.toString().equalsIgnoreCase ( "input" ) )
boolean imagemap = false;
String name = null;
String src = null;
if ( attSet instanceof SimpleAttributeSet )
SimpleAttributeSet sattSet = (SimpleAttributeSet)attSet;
Enumeration atts = sattSet.getAttributeNames();
Object att;
while ( atts.hasMoreElements() )
att = atts.nextElement();
if ( att.toString().equalsIgnoreCase ( "name" ) )
name = (String)sattSet.getAttribute ( att );
// got the name of the attribute
// Note : useMap is a boolean flag for you to set.
// Some HTML pages used "map" attributes, others "imgmap" attributes
if ( useMap )
if ( name.equalsIgnoreCase ( "map" ) )
imagemap = true;
else
if ( name.equalsIgnoreCase ( "imgmap" ) )
imagemap = true;
if ( att.toString().equalsIgnoreCase ( "src" ) )
src = (String)sattSet.getAttribute ( att );
if ( imagemap )
try
imagemapURL = new URL ( src );
catch ( MalformedURLException malEx )
System.out.println ("Invalid Image Map URL : " + src );
public void handleEndTag ( HTML.Tag t, int pos )
}
Maybe you are looking for
-
CUCIMOC 8.0 Error "Start converstation capability is not available"
I've got a user that I'm trying to setup CUCIMOC 8.0 for. We're using the latest CUCIMOC client release, Office Communicator 2008 R2 at the latest CU level, and Call Manager 7.1. I've got everything setup for the user identically to how other (workin
-
I purchased a text tone from Itunes. It shows up in my library, but not as a text tone. Is there a way for me to set it as a text tone for all texts? Or I am stuck with factory settings?
-
HP Pavilion DV6z-2100 Windows 7 64-bit Short-DST failure error 1) I'm wondering if I can upgrade my hard drive to a 1TB and/or a 10,000rpm instead of the 500GB 7200rpm. Would there be any problems for either upgrade? What effect will the rpm's have
-
This problem occurred after the most recent update to firefox 8.0. After right clicking on the attached file, I click on save link as. The correct file type is recognized. However the file name is converted to "attachment.ashx". When I rename the fil
-
Imac crashes while downloading mountain lion
The first two times I downloaded Mountain Lion, the download was successful, but it would not install. I got the "lion application cannot be verified" message as the installer was loading. So, I went online and found someone suggested going into safe