ColdFusion.navigate and unvisited tabs

I have created a cflayout (type = border). Naturally, I have
a nifty left side menu, which outputs a query result as a text.
In the center layoutarea, I have a new layout of two tabs.
The tabs are named projectOverview and projectTickets
A link in the left navigation menu is like: <a
href="javascript:
ColdFusion.navigate('project.cfm?pid=#id#','projectOverview');
ColdFusion.navigate('tickets.cfm?pid=#id#','projectTickets')">#projectName#</a>
Now, when I click the link, the projectOverview tab updates
contents always, but projectTickets never updates, until I manually
visit that tab first once. Clicking the left link for the first
time, and then going to the Tickets tab doesn't show the changes.
The next clicking will update the tab, because now it was once
visited.
How could I get around this issue (a bug?) ?
Example cflayout that I use currently.
<cflayout type="border" align="justify">
<cflayoutarea position="left" name="projectDiv"
title="Projects" splitter="true"
collapsible="true" source="projectlist.cfm" size="170"
maxsize="350">
</cflayoutarea>
<cflayoutarea position="center" align="justify"
overflow="auto" >
<cflayout type="tab" name="mainarea">
<cflayoutarea name="projectOverview" title="Project
Overview" source="project.cfm" selected="true">
</cflayoutarea>
<cflayoutarea name="projectTickets" title="Tickets"
source="tickets.cfm">
</cflayoutarea>
</cflayout>
</cflayoutarea>
</cflayout>
And again: The projectTickets source doesn't update until I
visit that tab once. Then it updates on every click from within
projectDiv (projectlist.cfm)

After investigating a bit, it seems that if you don't specify
the source attribute for a tab, then the ColdFusion.navigate works
correctly even for an unvisited tab.However, normally a tab loads
its contents only when it's activated. Previous ColdFusion.navigate
referrals are overridden when the tab is activated, thus updating
the content with the original value of source attribute.
I think this is unwanted behaviour, right?

Similar Messages

  • ColdFusion.navigate and PIE.htc

    Hello, everyone.
    I'm not sure if PIE.htc is part of the problem; I am assuming.
    But most of the links that appear in Google when using "ColdFusion 9" +"'f' is null or not an object" as the keyword search are links related to PIE.htc.
    I have a list of links that load in a cfdiv when clicked.  [onClick = ColdFusion.navigate('doc.cfm?param=blah blah blah','div_name',myCallback,myErrorHandler)]
    The first time a link is clicked, no problems whatsoever.
    The second time a link is clicked (ANY link), I get the error message 'f' is null or not an object.
    Does ColdFusion.navigate clear/delete a JavaScript variable called 'f' when it kicks in?
    Any suggestions on what could be causing this?
    Thanks,
    ^_^

    The following code works.
    Here you go:
    I had to make a simple version. I am swamped today.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <cfajaximport tags="cfinput-autosuggest,cfinput-datefield,
    cfajaxproxy, cfpod, cftooltip, cfdiv, cfwindow, cflayout-tab,
    cfform,cftextarea">
    <script language="javascript">
    var orgcallBack = function(){
    document.getElementById("orgsection").innerHTML = "This
    Works";
    var salescallBack = function(){
    document.getElementById("").innerHTML = "";
    var oppscallBack = function(){
    document.getElementById("").innerHTML = "";
    <!--- The error handler pops an alert with the error code
    and message. --->
    var myerrorhandler = function(errorCode,errorMessage){
    alert("[In Error Handler]" + "\n\n" + "Error Code: " +
    errorCode + "\n\n" + "Error Message: " + errorMessage);
    </script>
    </head>
    <body>
    <cfform format="html" name="enterpartner" id="form1">
    <cfinput type="text"
    name="partnername"
    size="35"
    style="z-index:1000;"
    tabindex="0">
    <cfinput type="button" name="Submit" value="Go!"
    onClick="javascript:ColdFusion.navigate('testcfdiv.cfm','orgsection',orgcallBack,myerrorh andler,'POST','form1');"
    tabindex="1">
    <cfinput type="button" name="Print" value="Print"
    tabindex="2">
    </cfform>
    <cfdiv id="orgsection"/>
    </body>
    </html>
    Hope this helps!
    Ron

  • Issues with coldfusion.navigate (CF9) in Safari & Chrome

    I am using Coldfusion 9. I have a ColdFusion.navigate call in a cfdiv tag located within a Cflayout tag (type tab).
    The following piece of code is located in a file called "inc_shjobs.cfm" and is being called using the src attribute from a Cflayout tag on another page:
    <script>
            ColdFusion.navigate('inc_shjobs.cfm?morejobs','jobs1')
      </script>
    <cfdiv id="jobs1">
    <form name="ne">   
        <table width="98%" cellspacing="1" cellpadding="6" border="0" bgcolor="white" >
          <tr>
            <td colspan="1" align="center"><br />
    <input type="submit" name="morejobs" style="font-size:1.4em; font-style:bold " value="Expand Job Search" onClick="javaScript:ColdFusion.navigate('inc_shjobs.cfm?morejobs','jobs1');    "></td>
          </tr>
      </tr>
      <tr><td><br /><br /></td></tr>
           <tr><td valign="top">
                 <strong>Search Within</strong> <select name="radius" >
          <option value="0" <cfif session.trn.jsradius is 0> selected</cfif>>0 miles</option>
          <option value="5" <cfif session.trn.jsradius is 5> selected</cfif>>5 miles</option>     
          <option value="10" <cfif session.trn.jsradius is 10> selected</cfif>>10 miles</option>           
          <option value="25" <cfif session.trn.jsradius is 25> selected</cfif>>25 miles</option>                 
          <option value="50" <cfif session.trn.jsradius is 50> selected</cfif>>50 miles</option>                 
          <option value="100" <cfif session.trn.jsradius is 100> selected</cfif>>100 miles</option>                 
          <option value="-1" <cfif session.trn.jsradius is -1> selected</cfif>>Statewide</option>                 
          <option value="-2" <cfif session.trn.jsradius is -2> selected</cfif>>Nationally</option>                 
          </select>
        <input type="submit" name="rad" value="Go" onClick="javaScript:ColdFusion.navigate('inc_shjobs.cfm?radius='+ne1.radius.options[radiu s.selectedIndex].value,'jobs1')">  center of  <strong><cfoutput>#session.trn.city#</cfoutput></strong></td>
    <td  valign="top"><a href="dsp_jobresearch.cfm" ><img src="images/justjobs1.gif" alt="Just Job Search" border="0" /> </a></td>
             </tr>
        </table>
        </form>
        </cfdiv>
    In IE and FF, it behaves approriately by loading only the div. In Chrome and Safary, it reloads the entire page and ignores the parameters. When the same code was run under CF8, it also worked.
    Anyone got a clue as to why?
    Thanks!

    I just tested ColdFusion.navigate on Safari and Chrome (Win 7) and everything works fine.
    I recently ran into that same behavior and it had to do with submitting a form. I set an onSuccess or an onSubmit javascript function, which caused an exception and IE didn't handle it very well. It reloaded the entire page.
    I suspect it has to do with a javascript error. I would start by doing some simple js debugging.

  • Cfmenuitems no longer work after coldfusion.navigate

    There are times when you want to make slight changes to menus based on what a user does.  It would be nice to simply "refresh" the menu (likely a cfdiv containing a cfmenu) using ColdFusion.navigate(..).  However, if your menu contains cfmenuitems, they no longer appear ("drop down") after performing the navigate. If this is the intended behavior I think it is a major limitation.  (CF9 and CF8)
    code for my_test.cfm:
    <cfajaximport />
    <cfdiv id="myDiv">
    <cfmenu name="my_menu" type="horizontal">
    <cfmenuitem name="options" display="My Options">
    <cfmenuitem name="option1" display="Option 1" href="javascript:ColdFusion.navigate('my_test.cfm','myDiv')" />
    <cfmenuitem name="option2" display="Option 2" href="javascript:ColdFusion.navigate('my_test.cfm','myDiv')" />
    <cfmenuitem name="option3" display="Option 3" href="javascript:ColdFusion.navigate('my_test.cfm','myDiv')" />
    </cfmenuitem>
    </cfmenu>
    </cfdiv>

    It turns out that if you remove any one of the cfmenuitem elements prior to doing the navigate the cfmenuitems work correctly...
    <cfajaximport />
    <script type="text/javascript">
      function myNav() {
                removeElements();
                ColdFusion.navigate('my_test.cfm','myDiv');
      function removeElements() {
              var d = document.getElementById('myDiv');
              var e = document.getElementById('option1');
              d.removeChild(e);
    </script>
    <cfdiv id="myDiv">
      <cfmenu name="my_menu" type="horizontal">
      <cfmenuitem name="options" display="My Options">
      <cfmenuitem name="option1" display="Option 1" href="javascript:myNav();" />
      <cfmenuitem name="option2" display="Option 2" href="javascript:myNav();" />
      <cfmenuitem name="option3" display="Option 3" href="javascript:myNav();" />
      </cfmenuitem>
      </cfmenu>
    </cfdiv>

  • How to create and use tabs for WD views

    Hi,
    I have created two views. A button click  from onw view leads to the second view and vice versa.
    I would like to add tabs to the two views, in a way that when pressing the button on the first view - the second one will open, and the tabs of both views will be seen, in a way that will enable me to navigate between the views using the tabs.
    Is this possible to do? or must I implement one view with a tab strips? (whcih means - rewriting the secod view into the first...)
    Thanks,
    Oren.

    Hi
    There is no need to use inbound outbound plugs and navigation links when you use Tab Strip
    You have a tab strip control in which you inserted two tabs
    each tab contains transparent container which intern contains ViewContainerUIElement, so your Outline looks like this
    TabStrip[TabStrip - Child]
    --Tab[Tab - Child]
    Tab_Content[TransparentContainer - Child]
    viewContainerUIElement[ViewContainerUIElement - Child ]
    Tab_header
    --Tab1[Tab - Child]
    Tab1_Content[TransaparentContainer - Child]
    viewContainerUIElement[ViewContainerUIElement - Child]
    Tab1_header
    So you have two ViewContainerUIElements in Two Tabs, you need not write any code to navigate if you select second tab second view is displayed and if you select first tab first view is displayed.
    Regards
    Abhimanyu L

  • Navigate to a tab canvases programatically at runtime

    Hello everybody,
    Actually i am trying to build a form with a content canvas contain buttons ("NEXT" and "Back"), there is a stacked tab canvas in the content one.
    what i want to do is to navigate to the tab pages whenever the user press the buttons,as example if the cursor is on page_1 and the user pressed NEXT button the cursor should move to Page_2 and so on , is there any built in could help me in these, i tried to use go_block in trigger WHEN-TAB-PAGE-CHANGED to navigate to the block on a specific tab page but i noticed that the :system.tab_new_page dosn't changed to the new tab unless you click on the tab page.
    Many thanks for reading
    Muhammad Ghoneim

    Dear Marcos,
    Thanks for replying and help, it was much appreciated
    actually i solved these by setting a global variable and equivalent to the :system.tab_new_page value so when i navigate to each tab i setting the global variable by the new tab, so i don't need the :system.tab_new_page value any more, even the user didn't click the tab page.
    thanks again
    Muhammad Ghoneim

  • Can you toggle open/close javascript:ColdFusion.navigate?

    I'm looking for a way to toggle open/close a table row within a search query.  I have a table of results and a link to more detailed information. I would like that page to stay within the current page.  I have the ColdFusion.navigate working correctly but wondering if there is a way to close it?
    Here's some of the code I'm using...
    <td><a href="javascript:ColdFusion.navigate('details.cfm?ID=#ID#','detail#q.CurrentRow#')">#q.sl n#, #q.sfn#</a></td>
    <td><cfdiv id="detail#q.CurrentRow#"></cfdiv>
    Message was edited by: Catherine Lesniewski

    It is still unclear what you wish to toggle with what. There are a number of processes going on underneath: the open window, its original content, the content - within the window - coming from  detail.cfm, and the closed window. It may be impossible to toggle between them.
    ColdFusion.navigate() does not create the window. Neither can it open a window. It simply copies output from the page detail.cfm into the already opened window.
    You would therefore need, besides ColdFusion.navigate(), two further events. One to open or re-open the window and one to close it. That makes a total of at least 3 events.
    Here is an example toggling a shown and a hidden window:
    <table>
    <cfoutput query="q">
    <tr><td><a href="javascript:ColdFusion.navigate('details.cfm?ID=#ID#','detail#q.CurrentRow#')">#q.sl n#, #q.sfn#</a></td><td><a href="javascript:ColdFusion.Window.hide('detail#q.CurrentRow#');">Hide</a> | <a href="javascript:ColdFusion.Window.show('detail#q.CurrentRow#');">Show</a></tr>
    </cfoutput>
    </table>

  • I want to use Control-W and Control-T to close and open tabs in OS X

    On Windows, you can use Ctrl-W and Ctrl-T to close and open tabs. On OS X, you have to use Cmd-W and Cmd-T instead (this bothers me because it is asymmetric with using Ctrl-Tab and Shift-Ctrl-Tab to navigate between tabs). Ctrl-W and Ctrl-T don't seem to do anything by default, so it would be nice if both Cmd or Ctrl could be used as a modifier for closing and opening tabs. Is there a way to accomplish this?
    I tried using the System Preferences > Keyboard > Keyboard Shortcuts tab to set Ctrl-W and Ctrl-T to operate the Close Tab and New Tab menu options, but, this does not work; when I press those key combinations, the File menu briefly flashes, but nothing else seems to happen.
    Thanks in advance for your help!

    Try this addon: keyconfig
    http://forums.mozillazine.org/viewtopic.php?t=72994

  • Can't grasp the relation between tab set, parent tab, standard tab set and standard tab

    Very novice to apex application building, but after trying to figure the concepts behind the tab sets I'm getting more and more confused about it as I always get different behaviour when changing things.
    The documentation is not very clear on this.
    Is there someone who can explain this in a comprehensive way?
    It would be nice to have a view on the consequences of using these different levels of groupings.
    Any help will be dearly appreciated ;-)

    Jan
    One level tab application
    Tabsets are used to group standard tabs.
    Use full when splitting up the application in different sections. Much like how the apex is split up in the application builder, sql workshop, team developend and administration.
    Parent tabs aren't used. And a one level tab application can't be turned into a two level tab application.
    Two level tab application
    Parent tabs belong to only one tabset "main".
    The standard tabset is the connection between the parent tab and standerd tab.
    There is one standard tabset for every parent tab.
    The standard tabset in the two level application has the same function as the tabset in the one level application.
    The standard tabset also determines when a parent tab is current.
    When on the page the setting Standard Tab Set is set then the parent tab belonging to that standard tabset is current.
    This means that if you change a page form one parent tab to an other you not only need to change the tab settings. But also the settings on the page.
    If you still in the position to choose between list or tabs as your main form of navigation I would recommend using lists.
    The possibilities with the list templates are greater that with tabs.
    Tabs have a maximum of two levels. List don't have such a limit.
    If you created your application as a one level tab application you can't turn it in a second level application without some serious hacking.
    Clicking on a standard tab submits the page and branch after the computations. This could also be viewed as a pro for tabs because with list navigation your page needs to be accessible by url. Did isn't necessary with standard tabs making them more secure. Parent tabs also use an url to navigate.
    Only the standard tabs belonging to the current standard tabset are rendered making a drop down menu impossible.
    Hope this clears up some of your questions.
    Nicolette

  • Forms Configurator and Maintain Tabs

    Hi All,
    I am developing a custom Maintain Template; using Forms Configurator based on the PERWSQHM Form!!! which consists of 3 tabs. I have setup the following items Firstname, Lastname, Known as, Title, and DOB on all 3 tabs which works fine. I've also set the tabbing order for each item.
    My problem is if I go to the 3rd tab and try to start tabbing through these items it automatically takes me back to Tab 1; but if I navigate to each field using the mouse it stays in the current tab!!!!!
    (ie. if Im on the 3rd tab in the firstname field, and press tab it takes me to the lastname field under the 1st tab)
    Has anyone come across this before ? Would really appreciate help on this
    regards
    Brad

    Please refer to Note:130795.1, Note:206035.1 and Note:420523.1.
    Hope these Notes may help to resolve the issue.

  • "Copy to..." and Destination tab, whats the difference ?

    "Copy to..." and Destination tab, whats the difference ? Why asking 2 times the destination of my import in the import page ? that's not very clear to me.. how does that work ?
    Thanks
    btw I don't like that much all these import parameters around the desktop, difficult to check everything imho, a simple list with option would be more clear probably. I can't see the benefit in this new import UI layout.

    Ah, you're looking at the big To button?  They both do the same job and when you update one, it updates the other.  The Destination panel allows you more detailed settings, but the big button at the top (which is usually just used in the compact dialog) allows you to navigate using the OS dialog and shows a list of recent folders.  Use whichever suits you best.

  • How 2 navigate 2 other tab in paneltabbed in jdev 11G by click of button???

    Hi All,
    I am badly stuck here. Can anybody please help
    how 2 navigate 2 other tab in panel tabbed in jdeveloper 11G by click of button???
    there are 7-8 tabs in my panel tabbed I want to navigate to second tab from first by clicking button in first tab. the second tab should get
    highlighted and user should see all components in second tab
    thanks in advance,

    Hi,
    the ShowDetail item has a "Disclosed" property that you can set from Java or through a EL reference to a managed bean method. Once you e.g. set the managed bean method such that the item is set to disclosed you send a PPR request
    Frank

  • TS3697 My new iTunes does not show me a PHOTOS tab when syncing my iPad 3. It only shows Music, Films and Apps tabs on the top left menu.

    My new iTunes does not show me a PHOTOS tab when syncing my iPad 3. It only shows Music, Films and Apps tabs on the top left menu.
    What am I going to do?

    The Photos tab doesn't appear there. If you are on iTunes 11 on your computer then you may want to re-enable the left-hand sidebar via View > Show Sidebar (option-command-S on a Mac, control-S on a PC), which might make it easier to navigate and my instructions may make more sense.
    To sync photos, connect and select your iPad on the left-hand side of your computer's iTunes (if you've enabled the sidebar), and on the right-hand side there should be a series of tabs, one of which should be Photos e.g. :
    If you select that tab you can then select which photo folders to sync to the iPad. There is a bit more info on this page. You will need to sync all the photos that you want on the iPad together in one go as only the most recent photo sync remains on the iPad - synced photos can't be deleted directly on the iPad, instead they are deleted by not including them in the next photo sync.
    If you haven't enabled the sidebar, then from your library click 'iPad' at the top right of the screen and you should get a series of buttons along the top of the screen, including one for Photos

  • Cfgrid & coldfusion.navigate

    I am using a cfgrid and javascript to update a div container.
    I am binding the grid to the javascript with cfajaxproxy.
    When I click on the grid the appropriate record should show
    in the div contain and it does. The problem is that the div
    container flashes therefore it is not seamless. I am using
    Coldfusion.navigate to pass appropriate parms to the page that
    needs to load into the div container. Here is the code that I am
    using. I hope that someone has a clue how I can fix this because I
    apparently am clueless......
    Grid Code followed by the javascript code:

    oops, I had two arguments inverted..
    Should have been...
    ColdFusion.navigate('/cf8/text.cfm','myDiv',mycallBack,myerrorHandler,'POST','form1')

  • Coldfusion.navigate moving my browser scrollbar

    I have a little Ajax application to build a document a
    section at a time. It works great except whenever I use
    Coldfusion.navigate to reload my <cflayout type="vbox"> the
    whole page automatically scrolls to the top of the page. Is there
    any way to "lock" the scroll bar in position so it will not move
    when reloading a container? Alternatively is there a way to pass an
    anchor through this function? So far I can't get it to work.

    If you can't see half of your page, it's probably in your
    code. Sounds like
    a tag of somesort hasn't been closed.
    As Ade said, post a link to your page, or put the page
    through the validator
    http://validator.w3.org/ this
    may pick up your problem.
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    |Tutorials|SEO |CSS Templates
    http://www.csstemplates.com.au
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    > Hello, I was editing a new template and doing fine until
    SOMETHING in
    > dreamweaver altered my browser settings and now when you
    click on ' view
    > page"
    > in IE browser I have lost the scroll bar and can no
    longer access half of
    > my
    > page. ITS GONE. I have gone over the code dozens of
    times, I even
    > downloaded a
    > new template and still I cannot get the scrollbar to
    show.
    >
    > I have tried to work on this for a week contacting the
    template people and
    > my
    > hosting. While I was working on another page I put my
    cursor over an area
    > on
    > my page where some of the borders were.... just looking
    around at
    > different
    > areas but NOT altering ANYTHING. When I went to close
    that page a notice
    > came
    > up from DREAMWEAVER that ' Settings for the browser had
    been altered did
    > I
    > want to save them?" SEEING THIS ALARMED ME that this may
    be the problem
    > so I
    > said NO and the page was okay. However this may have
    been what happed on
    > my
    > index.html page. Even tho I didnt type or edit ANYTHING
    on the page at
    > the
    > time. I was moving the cursor around on the ' design"
    protion looking at
    > varioius areas on the template.
    >
    > THIS MAY HAVE BEEN WHAT ALTERED MY PAGE and now I cant
    see ' half of my
    > index.html page and there is no scroll bar.
    >
    >
    > PLEASE HELP I have gone everywhere to get some help
    >
    >

Maybe you are looking for

  • Creating a Simple Multi-image Layout

    I am working with Aperture and Keynote to present multiple images as a single "slide". At the present I'm not looking to create a fancy collage, just a simple layout. Imagine your high school or college yearbook with multiple portrait frames on one p

  • Dump IW31 after assigning several people to the work order

    I get the following dump when trying to add several people to a WO with IW31: Runtime Errors         RAISE_EXCEPTION Date and Time          24.04.2008 09:46:51 Short text Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised. What happened? The cu

  • Packages in JAXB

    Hi I am trying out JAXB and have been sucessful in my test :-)) One thing i observe is when to xjc i supply my xsd files it generates java files and by default it makes GENERATED as package and everything works fine Now i try to use my own packege by

  • E7 - screen unresponsive when charging

    The touchscreen on my E7 becomes unresponsive while charging. Essentially it seems to be losing it's accuracy. It stilll works somewhat but you have to tap all over the screen to get a response, and then it's not the one you want. I noticed the same

  • 10 G installation does not start on Windows 2000 SP 4

    Machine configuration: Pentium 4 2.8 GHz 496 MB RAM 120 GB HDD The temp folder log shows that all installer requirements are met. Still the OUI window does not show up. Any ideas?