Flash button: Jump to anchor tag in iframe.
Hi there...
I have a problem with flash button when linking to named anchor in html - iframe. I used the code below:
on (release) {
getURL ("calculator.html#goldvalue", "main");
"main" is name of an iframe in index.html, that opens with calculator.html.
<iframe id="main" src="calculator.html" width="1024" height="500" frameborder="0" scrolling="no" name="main"><p>Your browser doesn't support iframes.</p></iframe>
Any idea how to fix this?
Tnx, A.
"goldvalue" is na anchor name in calculator.html, it's not a function or anything... I'd like flash button to scroll or in another words to jump to middle of the html page. All links do work - except the ones with anchor names. As the matter of fact even calculator.html#goldvalue works as a link, it just doesn't jumps to the #goldvalue.
Similar Messages
-
Hyperlink set to open new window & jump to anchor tag, doesn't jump
I am generating Flash Help output in RH7.
We have content hyperlinks that are set to open in a new window (target="_blank") and jump to an anchor tag in the destination topic (a href="newwindowtopic.htm#anchor")
This works fine if I compile the file as is.
However, we edit the whtopic.js topic in order to remove the "Show" link that appears when you open context sensitive topics. We do this by adding the following code at the end or the addShowButton function:
setRelStartPage("ourstartpage.htm");
show();
Replacing the Show link worked fine in RH5 and it works fine in RH7. However, in RH7 when we replace the "show" link to have the TOC load when all topics are called (not just the start page), the ability to open a new window AND jump to the anchor tag is no longer working. When you click the hyperlink the new page opens, but only to the top of the page, not to the bookmark (anchor). The anchor jump does work if the hyperlink is set to open in the current window in RH7.
The issue exists in IE7 and Firefox.
Any ideas?Hi there
Why are you editing the JavaScript file? Did you know that when generating FlashHelp you have an option to turn off the Show link?
Additionally there are ways to link to topics so the TOC is visible and synchronized. These are described at this link right here.
Cheers... Rick
Begin learning RoboHelp HTML 7 within the day - $24.95!
Click here for Adobe Authorized Captivate and RoboHelp HTML Training
Click here for the SorcerStone Blog
Click here for RoboHelp and Captivate eBooks -
Click attribute in textFlow anchor tag in Flash Builder 4
Hi folks,
At first congratulation to you, Adobe and Flex team for Adobe Flash Builder 4 & flex 4 SDK final release...
then, I have a click attribute in my textFlow anchor tag, just like this:
<fx:Script>
<![CDATA[
import mx.controls.Alert;
public function func():void{
Alert.show("hello!");
]]>
</fx:Script>
<s:RichEditableText x="50" y="50" editable="false" id="RET" >
<s:TextFlow>
<s:a href='http://www.adobe.com' click='func()'>
<s:img source='adobe.jpg' width='50' height='50' />
</s:a>
</s:TextFlow>
</s:RichEditableText>
When I run the project, everything's allright; and after click on my image, I have adobe site in new window, and also have my popup alert window with "Hello!" text...
But the Problem is another thing. I want to give this textFlow content from one webservice and put it in a string var then bind it to my RichEditableText. I receive it from webservice, put it in the string, and then bind this string to textFlow attribute of my RichEditableText obj with simple function... after running my project, I can see the content, and when I click on my image, I have adobe site in new window, again. but my function does not call!
What is the problem?! the code is something like this (of course without webservice codes!):
<fx:Script>
<![CDATA[
import flashx.textLayout.conversion.TextConverter;
import mx.controls.Alert;
public function func():void{
Alert.show("hello!");
internal var str:String;
public function func2():void{
str = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008' paddingRight='5'>"+
"<a href='http://www.adobe.com' click='func();'><img source='adobe.jpg' width='50' height='50' /></a>"+
"</TextFlow>";
RET.textFlow= TextConverter.importToFlow(str, TextConverter.TEXT_LAYOUT_FORMAT);
]]>
</fx:Script>
<s:RichEditableText x="50" y="50" editable="false" id="RET" />Listening for a FlowElementMouseEvent.CLICK event will be beneficial.
In your webservice feed (Textflow), have a tag such as:
<a href="event:adobe.jpg">Click here to view Adobe's logo!</a>
Then in your ActionScript code, listen for any FlowElementMouseEvent.CLICK events from your textFlow instance.
textFlow.addEventListener(FlowElementMouseEvent.CLICK,
onLinkHandler);
Next, declare onLinkHandler:
* In the XML there are href tag which has 'event:' prefix to the value. This prefix
* allows method calls.
private function onLinkHandler(event:FlowElementMouseEvent):void
//extract the number value from the string.
var uri:String = LinkElement(event.flowElement).href.split(":")[1];
trace(uri);//outputs: adobe.jpg -
Intrapage anchor tags not working within an iFrame
Intrapage anchor tags are no longer within an iFrame in Firefox 4.0. It works on all the other major browsers. Is there a workaround for this bug?
See:
*[https://bugzilla.mozilla.org/show_bug.cgi?id=638598 Bug 638598] - Iframe parent window page does not scroll to # anchor by user interaction
''(please do not comment in bug reports; you can vote instead)'' -
Need to and same-page anchor tags for a long FAQ. This is STANDAND rudimentary web design basics....HOW is this not built-in to iWEB???????????? Come on apple!!!!!!!! FFS!
Something like :
ex. Jump to Bottom
You're at the bottom!
Anyone know how to do that withint iweb without having to handedit the page (which totally screws up the smooth and convenient "Publish on MobileMe niftiness".
ThanksJohn:
iWeb doesn't support anchors. If you're good at javascript you can add anchors but it's not for the feint of heart. Peter Berglund devised a somewhat crude method of making anchors and widgets. You can read about it at his blog: http://web.me.com/petber/iWebtips/iWeb_Tips/Entries/2009/2/22_How_to_use_Anchors_iniWeb.html.
The green link in my Contents page for my demo sites are created that way. When you have other widgets in a page it's trial and error to find which widget number (they are numbered in the order they were created). To see how they work go to one of the pages via a green link, go to the top and change the number at the end of the URL and hit enter. You add "#widget1" or #widget2", etc. at the end of the URL till you get the one that takes you to the location of the page you want. The bottom of the widget in the URL is about where the top of the window will end up. As I said it's a crude method but can work.
If you need additional widgets add them with the following code: and then place it with the bottom of the snippet is where you'd like the window to be. As I said if you have other widgets on the page it's a trial and error process to find the right one. You'll have to publish the site first in order to do that.
To go to the top you can make a hyperlink, text or button, linking back to the page. But that requires a reloading of the page. I've only used this method in linking from my Contents page to a location of another page. Going from bottom to top or top down to Point B might cause a reload also. I've never tired it in the same page.
OT -
Hey Everyone
So i have these Flash buttons on my website(which is done in
Dreamweaver), and when i go to 'test' the site... the buttons will
work when the page first loads(Home)... but if i go to click on a
link, lets say "Contact", the buttons aren't there anymore! And if
i go back to "Home" they arent there either!!
Does anyone have any suggestions or solutions to this
problem?!
Thanxs much in advance!!
-Liz>>actually, i do have the OBJECT tags...
>> but if i go to click on a link, lets say "Contact",
the buttons aren't
>> there anymore!
Do you have the Flash buttons on all web pages was my point.
In other words,
did you have the same Flash buttons on the Contact page?
>>Can someone take a look at my code and see whats
wrong with it?
/intro_buttons.swf
Is the intro_buttons.swf in the web site root folder -- what
/ means? On the
local drive the / could mean the root folder of the computer
if you are not
testing under
http://.
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"EBTurner" <[email protected]> wrote in
message
news:e3bdng$2df$[email protected]..
actually, i do have the OBJECT tags...
Can someone take a look at my code and see whats wrong with
it?
Thanxs!
<tr>
<td colspan="14">
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,29,0" width="422" height="25">
<param name="movie" value="/intro_buttons.swf" />
<param name="quality" value="high" />
<embed src="/intro_buttons.swf" quality="high"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="422"
height="25"></embed></object>
</td>
</tr> -
on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help"
but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL
Configuration List has 2 columns Title and URLValue
Title UrlValue
HelpNewPage
http://url1
HelpEditPage http://url2
so script should read Title and display "Help"--->1st part on NewForm.aspx/EditForm
Script should read UrlValue column and on click of help-(display link) the respective url should be open in new window.-->second part
Please let me know reference code for adding anchor tag dynamically by reading from list
Help/Reference
http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=5
I can see hyperlink near cancel button-
//This block is just placing help link near cancel button-
$(document).ready(function() {
GetHelpLinkFromConfigList();
var HelpLinkhtml ='<a href="#" text="Help">Help</a>';
var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
var HelpLinkhtml ='<a href="#" text="Help" onclick="GetHelpLinkFromConfigList();">Help</a>';
var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
var HelpLinkimageButton ='<IMG SRC="../../Style Library/Help.bmp" style="width:35px;"/>';
var position1 =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkimageButton );
//Rest script
function GetHelpLinkFromConfigList()
//The Web Service method we are calling, to read list items we use 'GetListItems'
var method = "GetListItems";
//The display name of the list we are reading data from
var list = "configurationList";
//We need to identify the fields we want to return. In this instance, we want the Title,Value fields
//from the Configuration List. You can see here that we are using the internal field names.
var fieldsToRead = "<ViewFields>"+"<FieldRef Name='Title' />"+"<FieldRef Name='Value' />"+"</ViewFields>";
//comment
var query = "<Query>" +
"<Where>" +
"<Neq>" +
"<FieldRef Name='Title'/><Value Type='Text'>Help</Value>"
+
"</Neq>" +
"</Where>" +
"<OrderBy>" +
"<FieldRef Name='Title'/>" +
"</OrderBy>" +
"</Query>";
$().SPServices(
operation: method,
async: false,
listName: list,
CAMLViewFields: fieldsToRead,
CAMLQuery: query,
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var displayname = ($(this).attr("ows_Title"));
var UrlValue = ($(this).attr("ows_Value")).split(",")[0];
AddRowToSharepointTable(displayname,UrlValue)
function AddRowToSharepointTable(displayname,UrlValue)
$("#NDRTable").append("<tr align='Middle'>" +
"<td><a href='" +UrlValue+ "'>+displayname+</a></td>"
+
"</tr>");
<table id="NDRTable"></table>
sudhanshu sharma Do good and cast it into river :)Hi,
From your description, you want to add a help link(read data from other list) into new form page.
The following code for your reference:
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(AddHelpLink, "sp.js");
function AddHelpLink() {
var context = new SP.ClientContext.get_current();
var list= context.get_web().get_lists().getByTitle("configurationList");
var camlQuery= new SP.CamlQuery();
camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>Help</Value></Eq></Where></Query></View>");
this.listItems = list.getItems(camlQuery);
context.load(this.listItems,'Include(Title,URL)');
context.executeQueryAsync(function(){
var ListEnumerator = listItems.getEnumerator();
while(ListEnumerator.moveNext())
var currentItem = ListEnumerator.get_current();
var title=currentItem.get_item("Title");
var url=currentItem.get_item("URL").get_url();
var HelpLinkhtml ='<a href="'+url+'">'+title+'</a>';
$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
},function(sender,args){
alert(args.get_message());
</script>
Result:
Best Regards
Dennis Guo
TechNet Community Support -
Hey, I have Dreamweaver MX2004 and Flash MX2004 normally
installed on my computer. Although my edit-flash button is grayed
out when i'm in the properties panel of the .swf document (who i
added to my document with Insert >> Media >> Flash)
http://img524.imageshack.us/img524/8024/helplr4.jpg
I searched alot for this, but it does not seem to happen to
anyone. Can somebody help me? Thanks.No, PSE 6 and later never displays an icon for a sub-category. If you accidentally created a sub-category where a leaf keyword tag will do, change the sub-category to a keyword tag by right-clicking it, and then you'll be able to assign an icon. But if you change the keyword tag back to a sub-category, the icon will disappear.
None of that design seems very well thought out. -
Flash button problem when scrolling
Hello.
I posted this in Dreamweaver forum as well....just in case.
I am using flash buttons for email links in my web site
rather than html email links to help with spamming.
They work great except for one thing. In my site I have a
fixed Div on the left of my pages. The content scrolls sideways
underneath the fixed div. However....the flash buttons scroll over
the TOP of the fixed div while the rest of the content goes under
as it is supposed to. I have the fixed div set at z-index of 2.
This isn't an issue in Firefox, only IE7, so far.
Any one know of an easy fix for this rather than creating a
new div for each of the buttons?
Here is the link to the problem page - its the email link in
red towards the end of the page. Watch the link go OVER the drums
as you scroll. (it should go under)
http://dev.informarch.com/wm/article3/flashBtnScrollexample.html
Thanks in advance for any help.
KenHello,
Try this and see if it works
In your HTML go to where the <object> tag is that loads
your flash button.
Add this parameter within it.
<param name="wmode" value="transparent">
Then add the following inside the <embed> tag
wmode="transparent"
This is taken from an article from this site
http://www.bigismore.com/flash-related/flash-zorder-always-on-top/ -
Netui: anchor tag with target attribute.
I am using the netui:anchor tag inside an iframe to post to an action. But the
resulting page is displayed within the iframe. Will the target attribute of the
netui:anchor tag help solve the problem. What is a valid value of the target
attribute.
thanks,
Shankardoes the action have a formSubmit = true? If not then your modal dialog should be shown via the onclick and you have to javascript the link click (based on your modal dialog options)
If you do have a formSubmit=true, then you'd have the onclick show the modal dialog and you would have to write additional javascript to submit the form (Along with setting its action)
regards
deepak -
I am just getting back into using Captivate 2.0 to create
some online training and I need some assistance using
JavaScript/ActionScript in Flash buttons. I created a series of
buttons that are part of a single Flash .swf file. I'm using these
buttons as kind of a "main menu" and I would like each of the
individual buttons in the exported Flash .swf file to perform one
of the following functions:
- Open another Captivate project in the same (parent) browser
window, or...
- Jump to a specific slide in the current project
I layed out all the buttons in a single .swf file so I
wouldn't have to import individual buttons into my Captivate
project. So how do I define the ActionScript for each button in
Flash to achieve these functions?
Any help is greatly appreciated.
BrianHey Brian,
You can easily open another .HTM file using Javascript, but
doing so generally won't allow you to do any tracking of results.
Successful results tracking pretty much requires that an LMS is
launching each file. That said, opening a new file requires only
the following line of Javascript, where the path can be either
relative or absolute:
window.location.href = "<path to new file>";
As for jumping to a specific slide in a given file, Adobe
Community Expert Paul Dewhurst contributed to a discussion topic in
these forums that references using an undocumented internal
Captivate array to navigate to a specific slide via Actionscript.
You can check it out here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=464&threadid =1149498&highlight_key=y&keyword1=variable -
Anchor tags are not working on internet explorer when using touch devices
Hi,
I have a simple anchor tag like <a href=http://www.google.com></a>
Using a mouse there is no problem but when I use a touch device (windows 8.1/windows Phone 8.1), all that will happen when people touch it is that the link will be highlighted.
I don't want to highlight it, I just want the link to open.
Double clicking the link will zoom in the page. It takes several attempts tapping the link to actually open it... this is VERY frustrating.
How can I remove this highlighting non-sense?
I found an article that seems to indicate this was done on purpose:
http://blogs.msdn.com/b/ie/archive/2013/07/31/ie11-touch-browsing-for-today-s-web-and-beyond.aspx
It's a total failure if you ask me and it is very frustrating to use my site on a touch device.
Anyone has any idea on how to make links behave normally?
Best Regards,
Peterseems that it is something in SharePoint that is causing this behavior
So you would probably be better off posting in a Sharepoint forum. They would be more familiar with all the products involved. This is an example where newsgroup cross-posting would be useful but it does not exist in forums.
Otherwise, sounds like you are going to have to find the implementation involved and then devise a workaround for it. Is there a publicly accessible example of the coding used for what you are seeing? You could use the Developer Tools (or View
Source) to try to look at it yourself.
For a guess it may involve Active Scripting. If the link can be used even if Active Scripting is disabled you could achieve that result simply by changing the security level or zone that the site is regarded with.
BTW with your example link above I have the opposite problem. I can't touch it to try to select it without launching it. Here's a workaround for that: select a word before the link, use the selection's wheels to extend it to include
the link, then reduce it to include only the link, then, I can use press and old on the selection without launching the link. (In fact since I always leave press and hold disabled I used my pen with its right-click barrel button to see the selection's
menu though if I use my pen's barrel button, I don't need to make the selection to see just a reduced menu which would be sufficient to use the link.) In any case, I imagine that just as I can do a press and hold on the selected text of
the link without launching it you may just as easily be able to do a press and hold to see the selection's menu to allow you to launch its link.
HTH
Robert Aldwinckle -
Error in form submit through netui:anchor tag onClick event
Hello,
I am working on a portal application. Below is my jsp code of a simple search screen. The search parameter is customername.
<netui:form action="searchCustomer" style="form" tagId="myForm">
<netui:textBox dataSource="{actionForm.customerName}"></netui:textBox>
<netui:anchor onClick="sayHello(); return false;" styleClass="button" action="searchCustomer" formSubmit="true"> Search</netui:anchor>
</netui:form>
I have an onClick event as I want to implement some customer logic on click of the anchor tag.
function sayHello(){
// customer implementation here
document.forms[getNetuiTagName("myForm",this)].method="POST";
document.forms[getNetuiTagName("myForm",this)].action="/searchCustomer.do";
document.forms[getNetuiTagName("myForm",this)].submit();
In the searchCustomer method of the controller, the form has zero parameters. The customerName has null value.
Can anyone tell me what am I doing wrong here.
Any help is appreciated.
Thanks
ManjuI also want to add a confirm() dialog before submitting. However, setting the onClick handler overrides the one generated when formSubmit="true". I worked around this by calling the generated function directly:
<... onClick="if (confirm('[msg]')) { anchor_submit_form(getNetuiTagName('[formName]'), this.href) } return false;">
Where [msg] is the message to display and [formName] is the name of the form containing the anchor.
Hope this helps someone. -
How can I change the function of a flash button?
Hello,
Not sure if this should go in the Flash forum or Captivate forum, but does anyone know how where to find ActionScript 3 commands for Captivate?
I downloaded a pre-made Flash button (source file) for Adobe Captivate that was originally made to make a video go to the next slide, when pressed. It does that fine, but I wanted to know how to use the ActionScript code in Flash Professional CS5 to have the button JUMP to a specific slide in Captivate, instead of just go to the NEXT slide. I know generally how code works, but have never really used it, and don’t know the specific command to make that happen. Currently the relevant part of the code in the Flash button reads:
function clicked(e:MouseEvent):void{
var myRoot:MovieClip = MovieClip(root);
var mainmov:MovieClip = MovieClip(myRoot.parent.root);
mainmov.rdcmndNextSlide = 1;
I suspect that I just have to change the last line to something else and it should work, but I would need the command. Can anyone tell me what needs to be changed in the above code to make that happen?
The full code is below. Thanks.You are awesome. Thank you. That was extremely helpful. Michael also gave me a list of variables to use. However, when I use:
cpCmndGotoSlide = 5
It always jumps to slide 9, regardless of the value I put in the place of the '5'. So it does jump to a slide, but I can't yet get it to jump to the slide I want. In other words,
cpCmndGotoSlide = 7
or
cpCmndGotoSlide = 13
or
cpCmndGotoSlide = 44
etc,
produces the same result: jump to slide 9. I followed the same format... Any idea why it wouldn't be working?
Here is the full script:
this.stop();
// Set up event listeners
main.btn2_mc.addEventListener (MouseEvent.MOUSE_OVER, over);
main.btn2_mc.addEventListener (MouseEvent.MOUSE_OUT, out);
main.btn2_mc.addEventListener (MouseEvent.MOUSE_DOWN, clicked);
// functions for eventlisteners
function over(e:MouseEvent):void{
main.button1_mc.gotoAndPlay("s1");
function out(e:MouseEvent):void{
main.button1_mc.gotoAndPlay("s2");
function clicked(e:MouseEvent):void{
var myRoot:MovieClip = MovieClip(root);
var mainmov:MovieClip = MovieClip(myRoot.parent.root);
mainmov.cpCmndGotoSlide = 5; -
is there any way that i could include a link that has
punctuation characters inside of an anchor tag of an externally
loaded txt file. something like this <a href='
http://www.dailymotion.com/relevance/search/leah%2Bdizon/video/x18dj1_leah-dizon'>click</a >.
i noticed that txt files loaded into flash seem to break at any
point where more unusual punctuation characters are
included.This is such a great solution--thanks so much for sharing. I'm having a problem with the name of my collapsible panels (which operate similarly to Tabbed Panels, as far as I understand). Basically I am trying to use anchor tags and my goal is to create a hyperlink on page 1 that points to content within a spry widget on page 2 of my webpage. I obviously want the spry widget on page 2 to open up on click and the user to be taken to where my anchor tag is located. In this thread (http://forums.adobe.com/message/209107#209107), Mr. Celic seems to indicate using something like this:
<a href="#anchorname" onclick="TabbedPanels1.showPanel(2);">
My exact code is like this: <a href="pagetwo.html#myanchortag" onclick="CollapsiblePanel1.open();">content here</a>
The good news is that this works, but my problem is that page 1 of my website also has a CollapsiblePanel1 so when I click on the link above, CollapsiblePanel1 on page 1 opens, not the CollapsiblePanel1 on page 2 of my site. I went into page 2 and clicked on "CollapsiblePanel1" and in the "Properties" panel renamed it to "CollapsiblePanel11" then changed my code to
<a href="pagetwo.html#myanchortag" onclick="CollapsiblePanel11.open();">content here</a>
but that didn't do a thing! I'm super stuck and don't know how else to rename the collapsible panels or how to get it to work.
One thing I can't figure out from the original solution (<a href="#" onclick="TabbedPanels1.showPanel(2);">) is what is "showPanel(2)"? Where did she get this from/where can I find the equivalent for my collapsible panel spry? This could be where I'm going wrong.
Any thoughts would be greatly appreciated.
Thanks so much! Catherine
Maybe you are looking for
-
Report Builder 11g on Windows 7(64bit)?
Hi Oracle Guys I know that Report Builder 11g is not certified on Windows 7 (64Bit) Knows someone if release 2 it is planned ? Or knows someone for when the releases 2 or a patch is planned? We want to install next year new Developer-Clients and we w
-
Why is iTunes for Windows 8 (8.1) taking so long to boot up, not recognizing an apple device and freezing after a proper uninstall and reinstall?
-
Current version of iPad or newer one on the horizon
I currently have a 4th generation iPad (regular size - not mini). What is the most current version of iPad on the market, and/or is there any talk of a newer version being released soon? Thanks
-
IPod full but now won't recognize any files; how to fix without "restore"?
My iPod mini suddenly won't recognize any of my files or extensive playlists. I just uploaded several songs to it, and when I disconnected and tried to play it, it suddenly showed as completely empty, like I'd deleted everything. I plugged it back in
-
Which is fast / Smooth performing?
I have 10 circles on the stage, animated on the time line, simple animation like scale, rotation and size changes. Which will give me best performance in terms of browser load and smoothness of animation? Ellipse or Svg file What if it is 100 objects