Jump to a Named Anchor when loading an HTML doc

I have a CollapsiblePanel with a Content Link to a Named
Anchor in info.html and I thought I could use loadURL() to load the
page into the Div "thetext" but it does not work. Can Spry Jump to
a Named Anchor when it loads an HTML doc?
onClick:
Spry.Utils.updateContent('thetext',
'/information2.php#Insurance')
And I also tried:
Spry.Utils.loadURL('thetext', '/information2.php#Insurance')
The Head:
<script src="SpryAssets/SpryCollapsiblePanel.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryCollapsiblePanel.css"
rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript"
src="Spry_P1_6_10-01/includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript"
src="Spry_P1_6_10-01/includes/SpryEffects.js"></script>

On 08 Oct 2007 in macromedia.dreamweaver, antonioconte wrote:
> Does anyone know if and how its possible to jump to a
named anchor?
> I need to use the behavior panel to call a page into a
pop up and
> jump to an anchor too - is this possible?
Sure - just make the link to the anchor:
<a
href="page.php#anchor"
onclick="popupscript('page.php#anchor');return false;">
Open my popup window</a>
Making the link attribute (href=) the same as the popup
window means that
people who are visiting your site with javascript turned off
will also
get the information from the page. The 'return false' in the
onclick
event means that the href won't fire if javascript is turned
on.
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php

Similar Messages

  • ORA-00911:invalid character when loading an XML doc to the XMLType column

    We have followed this code snippet: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/Example_Code.html#createclob
    using the CLOB object to load an XML Document which has more 4000 characters to the XMLType column, we got the error -- ORA-00911:invalid character.
    Sound likes an encoding issue? any suggestions would be appreciated.
    BTW, we're able to use the TopLink's mapping -- Direct-to-Field to insert an XML String (<4000 characters) to the XMLType column.
    Thanks!

    Try removing the semi-colon at the end of your statement. That is the cause of ORA-911 with DBMS_SQL.PARSE and EXECUTE IMMEDIATE, I don't see why ADO should be any different.
    Cheers, APC

  • When FTPing an HTML doc up to a site it becomes scrambled using Adobe Dreamweaver v11

    I have two systems and while one works fine, the other corrupts my html documents that I upload to the site. I have searched all over and made sure that my configurations are identical and that I am FTP'ing using ASCII.  When using my laptop running Windows 7 32bit the entire HTML file uploaded ends up looking like this:  "x Ü[ksâ8 ýÌTÍ&#127;¸ãÔ·©v È›@ªòêéNw²Tšíljj> [`-"
    What am I doing wrong?
    Thanks...Art 

    From my laptop I have been using a Sprint Smartview 3G mobile access card to connect to the internet.  I went under <Tools> to the <Acceleration> tab and turned of "Acceleration".  Ran another test and bada bing! It works.  I was concentrating so much on FTp that I never thought about my Wireless access card.  Thanks so much.
    Art

  • Dreamweaver CS5.5 - Header, Named Anchor and Hidden text

    Hello,
    I am a relative novice when using dreamweaver. I don't use it in an official capacity, rather than as a Hobby.
    I have created a webpage with a position fixed header, displaying a Jump Menu/Drop Down Menu linking to named anchors on the page. I have a css linked to the page using:
    #header {
        text-align: center;
        width: 100%;
        background-color: #CFC;
        position:fixed;
        top:0;
        left:0;
        z-index:1000;
    When I use the menu to jump to the named anchor (#a04x01), the page will display the text, but the "Chapter One" text is hidden behind the header.
    My question is how to either offset the named anchor so when it is jumped to, it appears 200px above where it is meant to (So displaying "Chapter One")?, or to alter the header so it is in a solid state so the text cannot scroll "beneath" it, rather the page considers the bottom on the header the top of the page?.
    Any suggestion or solves would be gratefully accepted.
    PS: If needed, I can supply the .html page, & .css
    Thank you
    Regards
    TjStorm

    Remove position:fixed from your <header> and you won't have that problem.  Fixed positioned elements are not part of the normal document flow as they are at fixed coordinates at all times.
    This example uses fixed elements with ample top- and bottom-padding between sections.  View source to see the code.
    jQuery Smooth Scrolling with Fixed Layout
    Nancy O.

  • Named Anchor Problem

    Hi folks.
    The problem I have is that after a few years of running my
    band's website (basic HTML using Dreamweaver) we decided to get a
    'pro' to build us a new one. Well they did and now it's impossible
    for me to do anything with it apart from very basic text updates
    etc.
    The first problem is that the site is PHP?? and also all the
    page layouts are determined by CSS and any page content is a basic
    file that loads into the pages, if you see what I mean.
    I am ok with basic editing, updating the news adding shop
    items etc but I have now hit a brick wall and the 'pro' is now
    unavailable!
    What I am trying to do is put a link in the main menu on the
    left of the front page that jumps to a named anchor on the shop
    page to take you directly to the 'Downloads' section at the bottom.
    I can get it to either just jump to the shop page (but at the top)
    as normal, or to jump to the anchor as I want, but with the shop
    page outside the page/frame it sits in.
    How do I do this?
    Troublesome Site

    http://www.midcoast.com.au/~christo2/byf_site/teachers_amanda.html
    The links are from the teacher names in the right hand column. The named anchor sits between the masthead image and the navigation menu.

  • 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 anchors in (i)frames aren't jumped to

    When a website contains named anchors and that site is loaded in an (i)frame (only tested in iframe) FireFox 4 denies to jump to the content if a link inside that frame links to the named part.

    That is this bug
    [https://bugzilla.mozilla.org/show_bug.cgi?id=638598 Bug 638598] - Iframe parent window page does not scroll to # anchor by user interaction

  • Retreive named anchor from On Load page process

    I am trying to utilize named anchors on a page and need to access the named anchor from a PL/SQL page process of type: On Load - Before Header.
    I first tried owa_util.get_cgi_env ('QUERY_STRING') which has been helpful in retrieving GET params, but for a URL like:
    http://host:port/pls/apex/f?p=121:75:3747918990426914:::75:P75_ID:25769#asdf
    it returns:
    http://host:port/pls/apex/f?p=121:75:3747918990426914:::75:P75_ID:25769
    What I actually need is everything else ... in this case: #asdf (or just asdf).
    I don't see anything relevant here either:
    owa_util.print_cgi_env();
    I'm punting now, assuming that there is no way to retrieve these hash url parameters. If somebody has any insight into this, I would greatly appreciate your direction!
    Thanks,
    John

    Could you use location.href in javascript to stuff the URL value into a page ITEM and then substr/instr it out?
    Just a thought.
    Jeff

  • 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/

  • 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>>

  • Named Anchor in JEditorPane HTML

    I am loading an HTML string into a JEditorPane.
    The string has some named anchors (<A NAME="blah">) that reference other locations in the HTML string.
    Because I am loading the HTML string by using JEditorPane.setText, the named anchors do not work. This seems to be a problem when my HyperLinkListener tries to find the target URL.
    Does anyone know how to solve this problem?

    Did you find a solution for this problem in the meantime? I'd like to implement an online help feature in my newest program. I wrote a HTML text with anchors/links and the program loads this text to an JEditorPAne witch HTMLEditorKit by using the EditorPanes 'read' method. But all I got are HyperLinkExceptions from the HyperlinEventListener.
    regards, hgw2

  • Dreamweaver Lightbox exclude a named anchor

    I'm working on a non-flash backup for my baby hats catalog.  I use Dreamweaver CS5.5 and a lightbox that I downloaded from the widgets to display the images.  However, my first image and then two inbetween each hat are other <a></a> tags.  The first serves as a named anchor for the navigation and the second opens a .pdf. When you view the lightbox images these two appear as the "waist lightbox is loading" circle image.  You have to click "next" twice to get to the next actual image.  Is there a way to exclude these two instances? I'm afraid my end users won't know to click "next" twice to see the next image.
    Thanks.
    My code is on this page:
    http://www.ecochicknits.com/Babyold.html

    Use 'data-lightbox' attribute to combine each set of hats into its specific gallery, thereby restricting each lightbox instance to only show 4 or 5 of those hat images and not all images available on page. Read http://lokeshdhakar.com/projects/lightbox2/ (How to Use) section for more details on how you can do this
    On a sidenote, why are you including the jquery.js and lightbox.js 3 times each on your page? Your HTML page, Lines 159-167:
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    You can remove the lines I've struck off here. You're already calling these scripts in the first 2 lines.

  • Help!! Why are of my sitemap links not landing on their named anchors?

    I've just manually completed a sitemap for my dreamweaver 8 website: http://www.ggordontowerofbabel.co.cc  The first 2 pages are fine, with all the links landing just at the spot I want them to.
    However, on the 3rd page, they land on the spot, but as soon as the page is fully loaded, it jumps off indiscriminately to another part of the page? This is only a problem once it is loaded onto the server for anyone to access. However, all is fine locally, where only, "MyMediaPage.htm#MyFilm" is applied to the link, but once on the server, I add the full url http://www.ggordontowerofbabel.co.cc//MyMediaPage.htm#MyFilm
    Again, all is fine on the first 2 pages on the server, and I'm using the same method.
    After removing code from the body tag, it helped only partially. However, now the link lands on the next named anchor instead, almost as catch-up. So, while it may briefly land on its target, it still shoots onto the previous or next one. Please help!!

    Hi
    Thank you for your help. Since you didn't experience the same problem, I checked the page in IE. It was fine. So, it seems that it is only a Mozilla Freezefox problem, and will need to figure out how to fix that.
    I'm gratefull too for your additional information, as all constructive criticism is very welcome, so I will now change the red font colour as you suggested. If you thought it was bad then, I had just changed the font itself from TN Roman to Ariel, so think yourself lucky your eyes were spared that
    I've also considered your excellent advice on running the page throught the validator. I've done that. However, reading and understanding html coding is torture for me, as simple, plain English would help me better.
    Truly grateful.

  • Preloader doesn't work with named anchor links

    I have a swf with a simple preloader embedded in an html
    page. Everything works fine when the link to the html page does not
    include a named anchor:
    http://www.danielohlsen.com/fgw_site/the_ads/the_ads_header.htm
    However, the preloader in the swf does not work when the link
    to the same html page includes a named anchor:
    http://www.danielohlsen.com/fgw_site/the_ads/the_ads_header.htm#header_ad
    The rest of the movie will still play after loading, but for
    some reason not the preloader. I am on a mac using Firefox and
    Safari, and they both act the same. Perhaps its a browser issue. Is
    this a known issue?

    Works fine here if I click that link in your above post.<br />
    <pre><nowiki> <a id="jelentkezes">&nbsp;</a></nowiki></pre>
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • JSF Pages are not rendering correctly when  loaded using Non JSF actions

    Hi All,
    This problem is irritating me and I am posting the same query for the third time here.
    When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
    In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
    But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
    How to resolve this issue?
    or
    Is this Bug of Sun's Implementation of JSF Framework.
    Thanks,
    Sudhakar

    Hi Sudhakar,
    There is a discussion about refreshing a page, Take a look at the below thread
    http://swforum.sun.com/jive/thread.jspa?threadID=55660
    Hope this what you are looking for
    MJ

Maybe you are looking for

  • Stock Mac Pro 2.66 Quad Nehalem + new memory

    Hi, Probably this was covered but I can't find it. I'm waiting for my brand new Mac Pro 2.66 with the stock configuration of 3GB of memory. I know it's not enough because some of my projects use more (Logic Pro + Kontakt 3.5 and a Play library) and I

  • How do i set up family sharing?

    My phone isn't allowing me to set up a family sharing account with my family. The message keeps popping up saying that "only an adult with a valid iTunes & App Store payment method can set up Family Sharing. Ask a parent to set up Family Sharing from

  • MacBook Pro and FlatOut2 issue

    I have the MacBook pro 13 inch core i7 early 2011 model. Upgraded the ram to 8 gigs a few weeks ago. Bought the game FlatOut2 from the Mac App store a while ago and loved playing it. Now it has been giving me some annoying glitches. After I finish a 

  • Need help finding the correct replacemen​t monitor for a T400 laptop

    I have a T400 that came with a monitor with these specs:  14.1 WXGA TFT, w/LED backlight.  The monitor was damaged and must be replaced.  The closest replacement monitor I can find online has these specs:  LENOVO THINKPAD T400 LP141WX3(TL)(R1​) LAPTO

  • HOW TO AUTOMATICALLY RECEIVE LAST DAY DATABASE ERRORS I.E FROM 7AM T0 6PM

    HOW TO AUTOMATICALLY RECEIVE LAST DAY DATABASE ERRORS I.E FROM 7AM T0 6PM