Animate within a symbol using "named anchors"
hi everyone,
i would like to set up navigation of 3 colored buttons (red, blue & green) that will scroll on mouse down to the corresponding large colored rectangle.
https://www.yousendit.com/download/UVJnUGhlZ2owMEhFdzhUQw
in the below link, there is a file that i was able to make the blue & green buttons work if pressed from when the page first opens in the browser.
but how to get the buttons to work if you are on "green" and want to go to "blue" or "red"?
thank you all for your help
-sharon
ps- in Muse or Flash this is called "named anchors". I'm not sure what to call it in Edge
-s
hi everyone,
i just noticed that i was missing the EA file in the link. Below is a link with the native file included: (3_buttons_3-6-13a.zip)
https://www.yousendit.com/download/UVJnUGhTVnNCSnA4SjhUQw
i also tried another approach that seems like it should work, but doesn't. Below is the link: (v6_3-buttons_3-9-13.zip)
https://www.yousendit.com/download/UVJnUGhTVnNoMldybHNUQw
i would greatly appriciate your help getting either of these 2 versions to work
thank you very much-
sharon
Similar Messages
-
Hi everybody,
Let's say I have a two column layout with a series of links inside the left column (sidebar). Is it recommended to use named anchors to link text in one DIV to text inside another? Can I create a menu inside the sidebar and then target text inside the mainContent DIV? I've done a few tests and it seems to work well, but I'm not sure if this is the best way to do this. If not, can anybody recommend a better alternative?
Thanks so much.
Kind regards,
MarkI don't like 1 page web sites. I really think it's a missed opportunity. Search engines pay more attention to sites that are broken up into logical sections with unique page titles and plenty of relevant, keyword rich content.
index.html
<title>XYZ Company Home Page</title>
products.html
<title>XYZ Products</title>
services.html
<title>XYZ Services</title>
contact.html
<title>XYZ Contact Form</title>
testimonials.html
<title>XYZ Testimonials</title>
etc....
To give your site a uniform look & navigation, read about DW Templates.
http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Reating an HTML Table Contents using named Anchors
I have a on website:
http://www.vpea.org/Bylaws/Test/bylaws_toc.htm
a table of contents for our Association Bylaws. Just in case
I've created named anchors using titles such as article_I,
article_II, etc.
is there anyway to make when clicking on a given TOC entry
that it will go to that point perhaps highligting it, going to that
point the document?firstly, if you have multiple rows.. you need to start each row with <tr> and end with a </tr>. You just have one in the beginning and end,which will obivously give data in one row.
out.println("<tr>");
for (int a = 0 ; a < log.length; a++) {
for (int b = 0 ; b < 4; b++){
out.println("<td>" + (log[a]) +"</td>");
a++;
out.println("<td>" + (log[a]) +"</td>");
a++;
out.println("<td>" + (log[a]) +"</td>");
a++;
out.println("<td>" + (log[a]) +"</td>");
a++;
b++;
out.println("</tr>"); -
Using Named Anchors with Dynamic PHP Pages
I have a web app that uses PHP to generate pages out of a
MySWL database. The links to the page look something like:
www.domain.com/display.php?id=300.
On this page I'd like to include a link to an anchor towards
the bottom with a feedback form. I have a named anchor called
"add_rating". The link I'm using is
"www.domain.com/display.php?id=300#add_rating".
This link doesn't work in any browser/OS combination I've
tried and so it must be my code. Any help?"
http://www.domain.com/display.php#add_rating?id=300''
(that's double quotes around)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Elie Chocron" <[email protected]> wrote in
message
news:gq8rb3$pqk$[email protected]..
>I have a web app that uses PHP to generate pages out of a
MySQL database.
>The
> links to the page look something like:
www.domain.com/display.php?id=300.
>
> On this page I'd like to include a link to an anchor
towards the bottom
> with a
> feedback form. I have a named anchor called
"add_rating". The link I'm
> using is
> "www.domain.com/display.php?id=300#add_rating".
>
> This link doesn't work in any browser/OS combination
I've tried and so it
> must
> be my code. Any help?
> -
Html link to a named anchor within a PDF file?
So, I want a link on a web page to hop to a specific part of
a pdf file.
Same thing as using named anchors really. The issue I see
here is that the
web pag (link) has no real notion of pdf's implementation of
anchors, so how
could it know to utilise them?
I assume this is not possible, but need to make sure.
Thanks.It is possible. You can link to a page in any pdf document,
or link to a 'Named Destination'
http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf -
RE: Named anchored objects
Albert,
In my case I was using a named anchored object to get a handle to an actual
service object. My named object that I registered in the name service was
an intermediary to which I did not maintain a connection. So I have not
explicitly tested what you are asking.
However, I too was not using a hard coded reference to the SO, and fail over
and load balancing worked fine. The functions of fail over and load
balancing are not done by the service object but by the name service, proxy
and router. Since you are getting a proxy back any time you do a lookup in
the name service I would think that fail over should work with any anchored
object that is registered in the name service. When you do a RegisterObject
call you will notice that one of the arguments is the session duration,
which implies to me that fail over will be handled the same as for service
objects.
Load balancing adds another wrinkle. Load balancing is handled by a router.
You must get a proxy to the router and not a proxy to an instance of the
object that the router is doing the load balancing for. In the latter
scenario you will be bypassing the router. If you are creating, anchoring
and registering your objects dynamically you will not have a router so you
will not be able to load balance! This applies even if the objects are
instantiated within partitions that are load balanced because you will still
be getting proxies back to a particular instance of the anchored objects.
There are ways to accomplish load balancing between objects that you
register yourself. However, the best solution will vary depending on the
actual problem trying to be solved. If you would like to discuss this
further, include a little more detail about the scenario you need to
implement and I will give you what I know.
BTY what I have outlined above also applies to getting references via a
system agent.
Sean
Cornice Consulting, Inc.
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Albert Dijk
Sent: Friday, July 03, 1998 11:01 AM
To: [email protected]
Subject:
Alex, David, Jez, Sean,...
My question about both solutions (using Nameservice and agents) is:
If I reach a remote service object using either a BindObject or an agent, do
fail-over and load-balancing work the same way as they normally do when
using a hard coded reference to the SO.
Albert Dijk
From: Sean Brown[SMTP:[email protected]]
Reply To: [email protected]
Sent: Thursday, June 25, 1998 6:55 AM
To: Ananiev, Alex; [email protected]
Subject: RE: multiple named objects with the same name and
interface
Alexander,
I can not comment on the speed difference because I never tested it.
But, I
will say that we looked at the agent solution at a client sight
before. I
will give the same warning I gave them. If you go the agent direction
you
are now using agents for a purpose that they were not intended. Even
though
it technically works, as soon as you start using a piece of
functionality in
a way the developer did not intend it to be used you run the risk of
forward
compatibility problems. By this I mean, since agents were not
originally
intended to be used to look up service / anchored object references,
it may
not work in the future because it is not likely to be given
consideration in
any future design.
As we all know, programmers are always stretching the bounds of the
tools
they use and you may have a good reason (i.e. performance). I just
wanted to
let you know the possible risk.
One final note on a limitation of using system agents to obtain
references
to anchored objects. You can not access agents across environments.
So, if
you have connected environments and need to get references to services
in
another environment for fail-over or whatever, you will not be able to
do it
with agents.
Just some thoughts!
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of Ananiev, Alex
Sent: Wednesday, June 24, 1998 12:14 PM
To: '[email protected]'
Subject: RE: multiple named objects with the same name and interface
David,
The problem with dynamic binding is that in this case you have to keep
the reference to the service object somewhere. You don't want to call
"bindObject" every time you need to use this service object, "bind" is
a
time-consuming operation, even on the same partition. Keeping
reference
could be undesirable if your object could be moved across partitions
(e.g. business object).
The alternative solution is to use agents. You can create custom
agent,
make it a subagent of an active partition agent and use it as a
placeholder for whatever service you need. "FindSubAgent" works much
faster than "bindObject", we verified that and agent is "user-visible"
by its nature.
Alexander
From: "Sean Brown" <[email protected]>
Date: Wed, 24 Jun 1998 09:12:55 -0500
Subject: RE: multiple named objects with the same name and interface
David,
I actually determined it through testing. In my case I did not want
this to
happen and was trying to determine why it was happing. It makes sense
if
you think about it. Forte is trying to avoid making a remote method
invocation if it can.
Now, for anything more complex than looking locally first and if none
is
found give me any remote instance you can find, you will need to do
more
work. Using a naming scheme like Jez suggests below works well.
Sean
- -----Original Message-----
From: Jez Sygrove [<a href="mailto:[email protected]">mailto:[email protected]</a>]
Sent: Wednesday, June 24, 1998 4:34 AM
To: [email protected]; 'David Foote'
Cc: [email protected]
Subject: RE: multiple named objects with the same name and interface
David,
there's a mechanism used within SCAFFOLDS that allows the
location of the 'nearest' SO when more than one is available.
It involves registering each duplicated SO under three dynamically
built
names. The names include the partition, the node or the environment
name.
When wishing to locate the nearest SO the BO builds a SO name using
its
own partition and asks the name service for that.
If there is an SO registered under that name then it must be in the
same
partition and all is well. No cross partition calls.
If not, then the BO builds the name using its node and asks the name
service for that.
This means that if there is an SO outside the BO partition but still
on
the same node then this can be used. Again, relatively 'local'.
If neither of these work then the BO has to resort to an environment
wide search.
It may be that this approach could be adapted / adopted; I like it's
ingenuity.
Cheers,
Jez
From: David Foote[SMTP:[email protected]]
Reply To: David Foote
Sent: 24 June 1998 03:17
To: [email protected]
Cc: [email protected]
Subject: RE: multiple named objects with the same name and
interface
Sean,
First, thank you for your response. I have wondered about this fora
long time.
I looked at the documentation for ObjectLocationManager and on page
327
of the Framework Library and AppletSupport Library Guide indescribing
the BindObject method Forte says:
"The name service allows more than one anchored object (from
different
partitions) to be registered in the name service under the same
registration name. When you invoke the BindObject method with a
request
for a name that has duplicate registration entries, the BindObject
method finds an entry corresponding to an active partition, skipping
any
entries that do not. If no such active partition is found, or if the
requested name is not found in the name service registry, a
RemoteAccessException will be raised when the BindObject method is
invoked."
My question is: How did you discover that in the case of duplicate
registrations the naming service will return the local object if one
exists? This is not apparent from the documentation I have quoted.
Is
it documented elsewhere? Or did you determine it empirically?
David N. Foote,
Consultant
----Original Message Follows----
David,
First I will start by saying that this can be done by using named
anchored
objects and registering them yourself in the name service. There is
documentation on how to do this. And by default you will get mostof
the
behavior you desire. When you do a lookup in the name service
(BindObject
method) it will first look in the local partition and see if thereis
a
local copy and give you that copy. By anchoring the object and
manually
registering it in the name service you are programmatically creating
your
own SO without defining it as such in the development environment.
BTW
in
response to your item number 1. This should be the case there as
well.
If
your "mobile" object is in the same partition where the serviceobject
he is
calling resides, you should get a handle to the local instance ofthe
service object.
Here is the catch, if you make a bind object call and there is no
local
copy
you will get a handle to a remote copy but you can not be sure which
one!
It end ups as more or less a random selection. Off the top of myhead
and
without going to the doc, I am pretty sure that when you register an
anchored object you can not limit it's visibility to "User".
Sean
-----Original Message-----
From: [email protected]
[<a href=
"mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of David Foote
Sent: Monday, June 22, 1998 4:51 PM
To: [email protected]
Subject: multiple named objects with the same name and interface
All,
More than once, I have wished that Forte allowed you to place named
objects with the same name in more than one partition. There aretwo
situations in which this seems desirable:
1) Objects that are not distributed, but are mobile (passed by value
to
remote objects), cannot safely reference a Service Object unless it
has
environment visibility, but this forces the overhead of a remote
method
call when it might not otherwise be necessary. If it were possibleto
place a copy of the same Service Object (with user visibility) ineach
partition, the overhead of a remote method call could be avoided.
This
would only be useful for a service object whose state could besafely
replicated.
2) My second scenario also involves mobile objects referencing a
Service
Object, but this time I would like the behavior of the calledService
Object to differ with the partition from which it is called.
This could be accomplished by placing Service Objects with the same
name
and the same interface in each partition, but varying the
implementation
with the partition.
Does anyone have any thoughts about why this would be a good thingor
a
bad thing?
David N. Foote
Consultant
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:<a href="http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
>
>
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>Albert,
In my case I was using a named anchored object to get a handle to an actual
service object. My named object that I registered in the name service was
an intermediary to which I did not maintain a connection. So I have not
explicitly tested what you are asking.
However, I too was not using a hard coded reference to the SO, and fail over
and load balancing worked fine. The functions of fail over and load
balancing are not done by the service object but by the name service, proxy
and router. Since you are getting a proxy back any time you do a lookup in
the name service I would think that fail over should work with any anchored
object that is registered in the name service. When you do a RegisterObject
call you will notice that one of the arguments is the session duration,
which implies to me that fail over will be handled the same as for service
objects.
Load balancing adds another wrinkle. Load balancing is handled by a router.
You must get a proxy to the router and not a proxy to an instance of the
object that the router is doing the load balancing for. In the latter
scenario you will be bypassing the router. If you are creating, anchoring
and registering your objects dynamically you will not have a router so you
will not be able to load balance! This applies even if the objects are
instantiated within partitions that are load balanced because you will still
be getting proxies back to a particular instance of the anchored objects.
There are ways to accomplish load balancing between objects that you
register yourself. However, the best solution will vary depending on the
actual problem trying to be solved. If you would like to discuss this
further, include a little more detail about the scenario you need to
implement and I will give you what I know.
BTY what I have outlined above also applies to getting references via a
system agent.
Sean
Cornice Consulting, Inc.
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Albert Dijk
Sent: Friday, July 03, 1998 11:01 AM
To: [email protected]
Subject:
Alex, David, Jez, Sean,...
My question about both solutions (using Nameservice and agents) is:
If I reach a remote service object using either a BindObject or an agent, do
fail-over and load-balancing work the same way as they normally do when
using a hard coded reference to the SO.
Albert Dijk
From: Sean Brown[SMTP:[email protected]]
Reply To: [email protected]
Sent: Thursday, June 25, 1998 6:55 AM
To: Ananiev, Alex; [email protected]
Subject: RE: multiple named objects with the same name and
interface
Alexander,
I can not comment on the speed difference because I never tested it.
But, I
will say that we looked at the agent solution at a client sight
before. I
will give the same warning I gave them. If you go the agent direction
you
are now using agents for a purpose that they were not intended. Even
though
it technically works, as soon as you start using a piece of
functionality in
a way the developer did not intend it to be used you run the risk of
forward
compatibility problems. By this I mean, since agents were not
originally
intended to be used to look up service / anchored object references,
it may
not work in the future because it is not likely to be given
consideration in
any future design.
As we all know, programmers are always stretching the bounds of the
tools
they use and you may have a good reason (i.e. performance). I just
wanted to
let you know the possible risk.
One final note on a limitation of using system agents to obtain
references
to anchored objects. You can not access agents across environments.
So, if
you have connected environments and need to get references to services
in
another environment for fail-over or whatever, you will not be able to
do it
with agents.
Just some thoughts!
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of Ananiev, Alex
Sent: Wednesday, June 24, 1998 12:14 PM
To: '[email protected]'
Subject: RE: multiple named objects with the same name and interface
David,
The problem with dynamic binding is that in this case you have to keep
the reference to the service object somewhere. You don't want to call
"bindObject" every time you need to use this service object, "bind" is
a
time-consuming operation, even on the same partition. Keeping
reference
could be undesirable if your object could be moved across partitions
(e.g. business object).
The alternative solution is to use agents. You can create custom
agent,
make it a subagent of an active partition agent and use it as a
placeholder for whatever service you need. "FindSubAgent" works much
faster than "bindObject", we verified that and agent is "user-visible"
by its nature.
Alexander
From: "Sean Brown" <[email protected]>
Date: Wed, 24 Jun 1998 09:12:55 -0500
Subject: RE: multiple named objects with the same name and interface
David,
I actually determined it through testing. In my case I did not want
this to
happen and was trying to determine why it was happing. It makes sense
if
you think about it. Forte is trying to avoid making a remote method
invocation if it can.
Now, for anything more complex than looking locally first and if none
is
found give me any remote instance you can find, you will need to do
more
work. Using a naming scheme like Jez suggests below works well.
Sean
- -----Original Message-----
From: Jez Sygrove [<a href="mailto:[email protected]">mailto:[email protected]</a>]
Sent: Wednesday, June 24, 1998 4:34 AM
To: [email protected]; 'David Foote'
Cc: [email protected]
Subject: RE: multiple named objects with the same name and interface
David,
there's a mechanism used within SCAFFOLDS that allows the
location of the 'nearest' SO when more than one is available.
It involves registering each duplicated SO under three dynamically
built
names. The names include the partition, the node or the environment
name.
When wishing to locate the nearest SO the BO builds a SO name using
its
own partition and asks the name service for that.
If there is an SO registered under that name then it must be in the
same
partition and all is well. No cross partition calls.
If not, then the BO builds the name using its node and asks the name
service for that.
This means that if there is an SO outside the BO partition but still
on
the same node then this can be used. Again, relatively 'local'.
If neither of these work then the BO has to resort to an environment
wide search.
It may be that this approach could be adapted / adopted; I like it's
ingenuity.
Cheers,
Jez
From: David Foote[SMTP:[email protected]]
Reply To: David Foote
Sent: 24 June 1998 03:17
To: [email protected]
Cc: [email protected]
Subject: RE: multiple named objects with the same name and
interface
Sean,
First, thank you for your response. I have wondered about this fora
long time.
I looked at the documentation for ObjectLocationManager and on page
327
of the Framework Library and AppletSupport Library Guide indescribing
the BindObject method Forte says:
"The name service allows more than one anchored object (from
different
partitions) to be registered in the name service under the same
registration name. When you invoke the BindObject method with a
request
for a name that has duplicate registration entries, the BindObject
method finds an entry corresponding to an active partition, skipping
any
entries that do not. If no such active partition is found, or if the
requested name is not found in the name service registry, a
RemoteAccessException will be raised when the BindObject method is
invoked."
My question is: How did you discover that in the case of duplicate
registrations the naming service will return the local object if one
exists? This is not apparent from the documentation I have quoted.
Is
it documented elsewhere? Or did you determine it empirically?
David N. Foote,
Consultant
----Original Message Follows----
David,
First I will start by saying that this can be done by using named
anchored
objects and registering them yourself in the name service. There is
documentation on how to do this. And by default you will get mostof
the
behavior you desire. When you do a lookup in the name service
(BindObject
method) it will first look in the local partition and see if thereis
a
local copy and give you that copy. By anchoring the object and
manually
registering it in the name service you are programmatically creating
your
own SO without defining it as such in the development environment.
BTW
in
response to your item number 1. This should be the case there as
well.
If
your "mobile" object is in the same partition where the serviceobject
he is
calling resides, you should get a handle to the local instance ofthe
service object.
Here is the catch, if you make a bind object call and there is no
local
copy
you will get a handle to a remote copy but you can not be sure which
one!
It end ups as more or less a random selection. Off the top of myhead
and
without going to the doc, I am pretty sure that when you register an
anchored object you can not limit it's visibility to "User".
Sean
-----Original Message-----
From: [email protected]
[<a href=
"mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of David Foote
Sent: Monday, June 22, 1998 4:51 PM
To: [email protected]
Subject: multiple named objects with the same name and interface
All,
More than once, I have wished that Forte allowed you to place named
objects with the same name in more than one partition. There aretwo
situations in which this seems desirable:
1) Objects that are not distributed, but are mobile (passed by value
to
remote objects), cannot safely reference a Service Object unless it
has
environment visibility, but this forces the overhead of a remote
method
call when it might not otherwise be necessary. If it were possibleto
place a copy of the same Service Object (with user visibility) ineach
partition, the overhead of a remote method call could be avoided.
This
would only be useful for a service object whose state could besafely
replicated.
2) My second scenario also involves mobile objects referencing a
Service
Object, but this time I would like the behavior of the calledService
Object to differ with the partition from which it is called.
This could be accomplished by placing Service Objects with the same
name
and the same interface in each partition, but varying the
implementation
with the partition.
Does anyone have any thoughts about why this would be a good thingor
a
bad thing?
David N. Foote
Consultant
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:<a href="http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
>
>
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
I have used named anchors before when I am trying to link
something within that page but when I have something on a different
page and want to have a link take a person to a certain spot on a
different page, it doesn't seem to be working.
Are named anchors only relevant when on the same page? And if
so, does anyone know what options there are to linking to a certain
spot on a different page? Hope my question makes sense and is
clear.
Thank you!Just taking a guess here
try something like
<a href="page.html#namedanchor">
What I mean is put after the link path put # and then the
name of the anchor -
How to access a variable from within a symbol.
How do I access a variable set outside a symbol from within that symbol?
ThanksIf you set a variable on stage ,say
sym.setVariable("stageVariable", "I am stage variable");
You can access it from within a symbol using :
var myVariable = sym.getComposition().getStage().getVariable("stageVariable");
Basically you need to get handle to the symbol in which the variable is defined. -
Named Anchor Hyperlink Problem
Has anyone used "named anchor hyperlinks" or bookmarks to jump from one location to another on the same page? (Portal version 9.0.4)
Go There!
...jumps to....
<a name="gothere"></a>
There's a <base href="http://hostname:port/pls/portal"> tag in the head of every portal page which screws these links up. Any workarounds?
Thanks,
WayneI've used this method:
in edit page mode, reach your portlet, clink on edit defaultas link on its right and as display name use
<a name="xyz">Display_name</a>
Then take the address of the page
http://servername/servlet/page?_pageid=NNN,MMM,624&_dad=portal30&_schema=portla30#XYZ
adding #xyz at the end of the link.
This is my experience, it works.
marco -
Named Anchors and the HTML doc
Normally, when using the the default "Flash Only" setting in the HTML publish settings, you can set the dimensions to 100 x 100 percent. This will make the Flash movie fill the browser window and resize with the browser.
I'm using named anchors and am using the "Flash with Named Anchors" setting in the HTML publish settings. Everything else is the same as when I use the "Flash Only" template. However, when I publish this HTML document it is not filling the browser window correctly. Instead, the movie is being displayed as if I had set the movie size to 100 x 100 pixels instead of percent. In other words, the Flash movie is squeezed into a size of 100 x 100 pixels. Something is causing it to misinterpret percent as pixels.
I've looked at the HTML document and it correctly says width="100%" height="100%". This problem occurs in Firefox 3.6. Everything displays correctly in IE8 and Safari 5. Thank you in advance to anybody with advice or a solution.helpall wrote:
> I looked in my books and help but found nothing on
linking to anchors in Spry
> panels. I have this sinking feeling that DW doesn't let
you link to anchors in
> specific panels. Or am I wrong and just need to add
additional code to the link
> besides the url and the #anchor name?
It has nothing to do with what Dreamweaver will let you do
nor not do, it has to do with what you the panels are "told" to do
in certain situations. In this case you want to open a specific
panel, preferably based upon the anchor name that you're already
using. Take a look at the URL Utilities sample page, in particular
at the last example:
http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
This means you'd need to get the full Spry download:
http://labs.adobe.com/technologies/spry/home.html
If you wanted, you could add a query string parameter like
the above example does, but that might mean changing a lot of
links.
Or you could modify the example code above to "slice" out the
first letter of the anchor and figure out the index of the tab to
show (they use a 0 based index, so 'a' would 0 and 'z' would be 25.
Try the following:
<script type="text/javascript">
<!--
var hash = window.location.hash;
if(hash){
// get the character code of the upper case of the first
letter then subtract 65
// 'A' has a character code of 65, so the subtraction gets
our tab index from 0 to 25
var charCode = hash.toUpperCase().charCodeAt(0)-65;
if(charCode < 0 || charCode > 25){ // If not in A-Z
range, use default for 'a'
charCode = 0;
else{
// Default to tab 0, or 'a' when no hash present
var charCode = 0;
//The defaultTab value checks to see if the url param is
defined. If it is not, it sets it to 0.
var
var TabbedPanels1 = new
Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab: charCode });
//-->
</script>
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
Named anchor like link in textfield
I'm trying to get links in a textfield that link to
paragraphs in that textfield. The same as you would do in html
using named anchors.
For now I've an asfunction href in the text that searches the
textfields text for a certain substring using indexOf. This gives
me a position index of that substring in the text.
Then I use a search for "\r" to get the number of lines
before the position index is reached. I then use this number of
lines value as a scroll value for the textfield. This works but
since the textfield is textwrapped I never get the correct amount
of lines, because the textfield actually has more lines than it has
"\r" linebreaks.
Does anybody have an idea how to solve this issue?Instead of inserting an tag and style it so it looks
right. Then replace the z with a when you save it. -
Links to id's and named anchors within a page in an iframe do not open in firefox
In order to force layout of my liquid website, I use i-frames to display content . It is all on my sight www.rdelutherie.com, and I am not displaying pages from other sights. The links to sections of pages from within the same page do not work in firefox.
I have had this problem before with named anchors, and in moving up to html5 and in making my site accessible for people with dissabilities, I started using <nav> eliments... and changed from named anchors to links to ID's like this:
In an unordered list I have these:
<pre><nowiki> <li><a href="#s1">Subject 1:</a></li>
</nowiki></pre>
They link to sections of the same page like this one:
<pre><nowiki>
<section id=s1>
<h2>Subject 1:</h2>
<p>Blah blah blaaaaah, and bla bla!</p>
</section></nowiki></pre>
Last time I researched this problem (a year or more ago), I was told that it was because of a security risk (something about being able to count views...and other peoples proprietary and copyrighted material), but the vaguely described reasoning made little to no sense to me nor many others, who can not even link to our own stuff. The Mozilla developers were rather abrupt and some were even rude in telling us to live with it, instead of trying to come up with a solution or work around, and closed the post and disallowed further posting.
The problem still persists, and although I am not a programmer, I have a real hard time believing that it is impossible for Firefox to distinguish between links contained within a document and site, from those on different sights, domains and what have you.
As far as I know, no other browsers have this problem, so if it is such a big security risk, what is to stop someone with malicious intentions, from just using M$ IE, to bring their evil plan to fruition?
In keeping with "Making the web a better place": Please address this problem, and find a solution, workaround, or at least explain why it is impossible.
Bob EnglishThanks again jscher2000,
I know exactly what you mean, but I have had other page display problems with adjacent columns where one side does not display completely and seems to be conforming to the other ones height... hence the height settings and other tricks to force things to be acceptable.
I am far from understanding code, and most of the solutions, including the one in the link you posted do not have the information a novice like me would need to implement them successfully. Most of them are written for people much more advanced. Without it telling me where exactly to put the code, point to it, what I can (and should) change and remove elsewhere because of it... I am at a loss. I don't know the basics, and have tried hard to understand them, but it is not like electrical circuits, physics and other things that I can understand naturally and with ease.
I will look into it further in a few days, meanwhile I have to attend to my real work that doesn't even pay the bills completely: guitar building and repair, now that comes easy and naturally to me! -
Using Components within a Symbol
Project. To create a flash box that allows a visitor to enter 1) email 2) phone number 3) preferred method of contact. Then they can hit submit. That information is sent to a php which sends an email to the administrator letting them know to contact someone.
Reason it is done in flash. I have a "tab" graphic appear and in the tab is the entry form. When they hit submit the information is sent and the tab lowers out of site then raises back up with a confirmation message that the message was sent.
Problem: The tabs work in annimation. I know that the code works to send information to php and that the php works to send the email. But, my issue is with the GUI. When the flash is rendered, the field boxes do not show up. See image below.
Setup: To get the fields to move with the tab I have them as separate objects within the symbol of the tab that moves. Could this be the issue? If so, any ideas around this problem?
AS3 Code:
var request:URLRequest = new URLRequest( "http://mySiteName.com/phpCode.php" );
var variables:URLVariables = new URLVariables();
variables.email = emailAddress;
variables.phone = phoneNumber;
variables.contact = contactBest;
request.data = variables;
request.method = URLRequestMethod.POST;
sendToURL(request);
PHP Code:
<?php
$emailAddress = $_POST['email'];
if ($_POST['phone']){
$phoneNumber = $_POST['phone'];
$contactBest = $_POST['contact'];
$to = "[email protected]";
$subject = "You have a quote request";
if ($phoneNumber){
$body = "A visitor with email ".$emailAddress." submitted the form on your web site requesting a painting quote. Their phone number is: ".$phoneNumber.". They stated that the best way to contact them would be by ".$contactBest.".";
}else {
$body = "A visitor with email ".$emailAddress." submitted the form on your web site requesting a painting quote. They did not provide a phone number.";
if (mail($to, $subject, $body)) {
echo("Your message was sent");
} else {
echo("There was a problem.");
?>Thank you Ned for that information. I have finally got some time to get back to this project. Here is what I have found. I put a trace on those objects and they are defined as TextInputs and RadioButtons.
And here is what my Timeline looks like. They are on the form layer and as is shown they animate upward from frame 1 - frame 10. Then in frame 20 the actionscript is called that I have listed previously, as well as a stop(); command. Then when the form is submitted the player proceeds and there is an animation to drop the form layer down and raise a Thank You prompt verifying that the form was submitted. And then in frame 50 another stop(); is called.
I am just missing why these objects are invisible when the .fla is rendered. Any help is appreciated to get this problem solved.
I have done preliminary testing to have the form there (no animation in) and when the form is submitted the Thank You slide covers the form. This graphically works, I have not tested the code yet. So, I may have found a round about way to fix the problem. I would still like to know though why when the textInput and RadioButton elements are placed in a graphic to be animated, they disappear. -
Set image src within a symbol - How?
I have created a symbol in Edge Animate, which contains a rectangle as view area and an image and text as contents of that view area. I want to set text and image src before I start the animation of the symbol. I can set "Text" with
var thing = sym.getSymbol("mySymbol");thing.$("Text").html("I can set some text here to change the content of Text.");
and when I start the animation of that symbol, the new text is used. Question now is, how I can set the image source for the item "Image" within that symbol. I have looked into the files Edge Animate creates, and the text as shown above is in a field called "text", while the name of the image is contained with other information in a field called "fill". I don't have a clue how to set the image source. Any pointers?
I don't want to create 24 instances of something for an advent calender, I just want to have one, which I fill through JavaScript, before the animation is shown. All text and all images have almost the same size, so this should be doable somehow.
The follow on question would be, whether the preloader loads all 24 images, because they are not actually referenced in any EA object...
Thanks in advance!This tutorial (with sample file) should assist with what you are attempting to accomplish.
http://www.gotoandlearn.com/play.php?id=168
hth
Darrell -
Target Named Anchor in a Spry Collapsible Panel from a different page
Let me start by saying I have combed this forum (and others) looking for a resolution to this. I am familiar with David Powers solution on Foundationphp.com and am using that code in project to open the collapsible panel from a separate page and it works beautifullly. The problem I have is that I want the browser to move down to a specific named anchor inside that opened collapsible panel when clicked from a different page.
Snippets of my current code here.
Below is the code that I have on an image that when clicked goes to the correct page and opens Panel1. Works Perfectly!
<a href="bamboo-species.php?col1=open#CollapsiblePanel1"><img src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227" height="175" /></a>
Below is the link to the .js file and the script in the head of the target page
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
<script type="text/javascript">
// Grabs the values of the URL parameters for the current URL.
var params = Spry.Utils.getLocationParamsAsObject();
</script>
Below is the code that I have on the target page for Panel1
<script type="text/javascript">
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:params.col1 ? true : false},{duration: 1000});
</script>
If I have a named anchor say <a name="species1" id="species1"></a> down in the page, how do I target that named anchor from my link on the separate page. I have tried adding the #species1 to the end of the link on the link page (see below) but with no luck. I believe those were the instructions on foundationphp.com site.
<a href="bamboo-species.php?col1=open#CollapsiblePanel1#species1"><img src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227" height="175" /></a>
I hope (and suspect) that this is an easy fix, I just do not know what it is. Any help or direction where to look is greatly appreciated.I once had the same issue can created a small function that allows me to "jump" to a element.
function scrollTo( element ){
var stylize = function( element){ return !+"\v1" ? element.currentStyle : document.defaultView.getComputedStyle( element , null ) },
getPosition = function( element ){
// based on the SpryEffect's module:
var computedStyle, tryComputedStyle,
position = { x: 0, y: 0 };
if ( element.style.left && /px/i.test(element.style.left) ){
position.x = parseInt(element.style.left, 10); // without padding
} else {
computedStyle = stylize( element );
var tryComputedStyle = computedStyle && computedStyle.left && /px/i.test( computedStyle.left );
if (tryComputedStyle)
position.x = parseInt( computedStyle.left, 10 ); // without padding, includes css
if(!tryComputedStyle || position.x == 0) // otherwise we might run into problems on safari and opera (mac only)
position.x = element.offsetLeft; // includes padding
if ( element.style.top && /px/i.test(element.style.top) )
position.y = parseInt( element.style.top, 10); // without padding
else
if ( !computedStyle )
computedStyle = stylize( element );
var tryComputedStyle = computedStyle && computedStyle.top && /px/i.test( computedStyle.top );
if ( tryComputedStyle )
position.y = parseInt( computedStyle.top, 10 ); // without padding, includes css
if( !tryComputedStyle || position.y == 0 ) // otherwise we might run into problems on safari and opera (mac only)
position.y = element.offsetTop; // includes padding
return position;
scroll( 0, getPosition( element ).y );
So now we have a scrollTo function that accepts a pure HTML element as argument, all what is left to do is figure out if we have a hash, and if the anchor exits on the page.
( hopes this works, i wrote it without testing, but you get the general idea ):
if( window.location.hash ){
var hash = window.location.hash.substr(1), // remove the # from the hash
element;
// as anchors can also be used with id attributes, check that first,
element = document.getElementById( hash );
// maby we used name="" attribute
if( !element && ( element = document.getElementsByName( hash )) ){
element = element[0];
// if we have a match:
if( element ){
// give the collapsible panel some time to init and update the DOM;
setTimeout(function(){ scrollTo( element ) },0);
\o/
Maybe you are looking for
-
Photoshop CS4 file associations (Vista) - fix
--Only tried on Windows Vista - For those who upgraded from Photoshop CS3 to CS4 and lost the ability to associate Photoshop with specific file extensions (like .jpg) because it didn't show up in the "Openwith" list. You might want to try this fix:
-
Hi All, I am facing a strange issue with OpenJpa and HSQL while running the Junit Test case. For more details on the same please see. Facing issue with OpenJPA and HSQL...? Suggestions on the same would be very helpful. thanks
-
Can I get some help here? How to instantiate a bean and attach it to my h:outputLink? Let me put it like this, I would like to prepare a bean that is being used by target page of h:outputLink? Any suggestions? Thanks for your time.
-
Software update for mac mini (late 2006)
What software update do I need to buy for my mac mini (late 2006) so I can update itunes?)
-
Prime Fulfillment 6 AND LMS 4.2 on single Solaris 10 server?
Is it possible to easily operate both Prime Fulfillment 6 AND LMS 4 on single Solaris 10 server?