Frame Navigation Problems

I've got a navigation bar similar to progress bars you see in online applications, with 12 steps indicated by boxes.  The goal is as follows:
if you are on page N, then box N is Gold. Pages you are not on are labled by Grey Boxes. Pages you are not on But have completed/edited are labeled by Light Gold.
instead of working like I thought it ought have, the colors while beggining in grey (frame1)switch to gold when selected (that part works) or light gold when unselected. I tampered with the conditions of the first stage to try to get a third color to show up, but instead of seeing three colors, the "previously visited" page markers are all labled as "currently active"/gold.
I also get the feeling the code below is extremely redundant but my attempts at reducing it functions ended in total failure.
----- code -----
st1 = 0; //off; if st1 = 1, stage condition = complete,
st2 = 0;
st3 = 0;
st4 = 0;
st5 = 0;
st6 = 0;
st7 = 0;
st8 = 0;
st9 = 0;
st10 = 0;
st11 = 0;
st12 = 0; //last stage;
onEnterFrame = function(){
    if(1 == 0){st1 = 1;}else{st1 = 0;} //test
    if(textA1 != "" || TextA2 != ""){st2 = 1;}else{st2 = 0;}
    if(TextA3 != ""){st3 = 1;}else{st3 = 0;}
    if(TextA4 != ""){st4 = 1;}else{st4 = 0;}
    if(TextA5 != ""){st5 = 1;}else{st5 = 0;}
    if(TextA6 != ""){st6 = 1;}else{st6 = 0;}
    if(TextA7 != ""){st7 = 1;}else{st7 = 0;}
    if(TextA8 != ""){st8 = 1;}else{st8 = 0;}
    if(TextA9 != ""){st9 = 1;}else{st9 = 0;}
    if(TextA10 != "" ){st10 = 1;}else{st10 = 0;}
    if(TextA11 != "" ){st11 = 1;}else{st10 = 0;}
    if(TextA12 != "" ){st12 = 1;}else{st12 = 0;}  
navigation.stage1.onPress = function(){ navigation.gotoAndStop("frame1");
navigation.stage1.gotoAndStop("frame2");
if(st2 == 0){navigation.st2.gotoAndStop("frame1");}else{navigation.stage2.gotoAndStop("frame3");}    
if(st3 == 0){navigation.st3.gotoAndStop("frame1");}else{navigation.stage3.gotoAndStop("frame3");}    
if(st4 == 0){navigation.st4.gotoAndStop("frame1");}else{navigation.stage4.gotoAndStop("frame3");}    
if(st5 == 0){navigation.st5.gotoAndStop("frame1");}else{navigation.stage5.gotoAndStop("frame3");}    
if(st6 == 0){navigation.st6.gotoAndStop("frame1");}else{navigation.stage6.gotoAndStop("frame3");}    
if(st7 == 0){navigation.st7.gotoAndStop("frame1");}else{navigation.stage7.gotoAndStop("frame3");}    
if(st8 == 0){navigation.st8.gotoAndStop("frame1");}else{navigation.stage8.gotoAndStop("frame3");}    
if(st9 == 0){navigation.st9.gotoAndStop("frame1");}else{navigation.stage9.gotoAndStop("frame3");}    
if(st10 == 0){navigation.st10.gotoAndStop("frame1");}else{navigation.stage10.gotoAndStop("frame3");}    
if(st11 == 0){navigation.st11.gotoAndStop("frame1");}else{navigation.stage11.gotoAndStop("frame3");}    
if(st12 == 0){navigation.st12.gotoAndStop("frame1");}else{navigation.stage12.gotoAndStop("frame3");}    
navigation.stage2.onPress = function(){ navigation.gotoAndStop("frame2");
navigation.stage2.gotoAndStop("frame2");
if(st1 == 0){navigation.st1.gotoAndStop("frame1");}else{navigation.stage1.gotoAndStop("frame3");}    
if(st3 == 0){navigation.st3.gotoAndStop("frame1");}else{navigation.stage3.gotoAndStop("frame3");}    
if(st4 == 0){navigation.st4.gotoAndStop("frame1");}else{navigation.stage4.gotoAndStop("frame3");}    
if(st5 == 0){navigation.st5.gotoAndStop("frame1");}else{navigation.stage5.gotoAndStop("frame3");}    
if(st6 == 0){navigation.st6.gotoAndStop("frame1");}else{navigation.stage6.gotoAndStop("frame3");}    
if(st7 == 0){navigation.st7.gotoAndStop("frame1");}else{navigation.stage7.gotoAndStop("frame3");}    
if(st8 == 0){navigation.st8.gotoAndStop("frame1");}else{navigation.stage8.gotoAndStop("frame3");}    
if(st9 == 0){navigation.st9.gotoAndStop("frame1");}else{navigation.stage9.gotoAndStop("frame3");}    
if(st10 == 0){navigation.st10.gotoAndStop("frame1");}else{navigation.stage10.gotoAndStop("frame3");}    
if(st11 == 0){navigation.st11.gotoAndStop("frame1");}else{navigation.stage11.gotoAndStop("frame3");}    
if(st12 == 0){navigation.st12.gotoAndStop("frame1");}else{navigation.stage12.gotoAndStop("frame3");}    
navigation.stage3.onPress = function(){ navigation.gotoAndStop("frame3");
etc. (the pattern repeats for all 12)

fixed it:
function act(stageN){
stageN.gotoAndStop("frame2");
function fin(stageN){
stageN.gotoAndStop("frame3");
function rei(stageN){
stageN.gotoAndStop("frame1");
onEnterFrame = function(){
st1.onPress = function(){
    act(st1); navigation.gotoAndStop("frame1");
    if($t2 == 0){rei(st2);}else{fin(st2);}
    if($t3 == 0){rei(st3);}else{fin(st3);}
    if($t4 == 0){rei(st4);}else{fin(st4);}
    if($t5 == 0){rei(st5);}else{fin(st5);}
    if($t6 == 0){rei(st6);}else{fin(st6);}
    if($t7 == 0){rei(st7);}else{fin(st7);}
    if($t8 == 0){rei(st8);}else{fin(st8);}
    if($t9 == 0){rei(st9);}else{fin(st9);}
    if($t10 == 0){rei(st10);}else{fin(st10);}
    if($t11 == 0){rei(st11);}else{fin(st11);}
    if($t12 == 0){rei(st12);}else{fin(st12);}
st2.onPress = function(){
    act(st2); navigation.gotoAndStop("frame2");
etc. (pattern repeats 11 more times)
I admit it could be more condensed though.

Similar Messages

  • Still having navigation problems and need help with how to debug

    Hi,
    I've been porting over a servlet project to JSF and I'm still having navigation problems. I thought the problem might have been because the original project used HTML frames and so the "from-view-id" JSP defined the frame/framesets and the specific JSP that does the submit (and so is named in the "from-view-id" is never defined in a "to-view-id" attribute). I've now switched to using an IFRAME, and that resolves that problem. So now the JSP is defined in a "to-view-id" attribute and it includes an named IFRAME that can be used as a target. I press the submit button and I get not the JSP expected butinstead the same JSP displayed inside its own IFRAME.
    Here is the code for the submit. I've simplified it as much as possible with a static action (originally it was a call to a method) just to try and get things to work. This is the current version:
    <h:commandButton value="View Alias" action="foo" styleClass="select" type="submit" />Here is the navigation rule in faces-config.xml. Again, the problem is that SelectManager get redisplayed in the IFRAME instead of display.jsp.
    <navigation-rule>
       <from-view-id>/SelectManager.jsp</from-view-id>
       <navigation-case>
          <from-outcome>foo</from-outcome>
          <to-view-id>/display.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>I have also tried it without the "from-outcome-value" which I presume means that the "to-view-id" gets displayed unconditionally and it still fails. Any ideas on how I can debug this? (I'm using GlassFish if that's important to know)
    Rob Tanner
    Linfield College

    Raymond, The real trick is avoid doing technical things when coming down with the flu (I should also add that I'm a JSF newbie). Reading your original message this time I see what you're suggesting and found a conversion error although I don't understand it. Here's the code (including the <h:message/>):
                <h:selectOneMenu value="#{members.dcodes}"
                  style="color: #7f0000" id="selector">
                  <f:selectItems value="#{members.departmentList}" />
                </h:selectOneMenu> 
                <h:message for="selector" style="color:white"/>And here's a snippet of the generated HTML:
    <select id="j_id_id26:selector" name="j_id_id26:selector" size="1" style="color: #7f0000">
             <option value="aad" selected="selected">Academic Advising</option>
         <option value="aaf">Academic Affairs</option>
         <option value="adm">Admission</option>
         <option value="up">Upward Bound</option>
    </select>If I select "Admission" for example, the error I get is:
    Conversion Error setting value 'adm' for 'null Converter'.Since everything is a String value, I don't get the error. Could someone please enlighten me.
    Thanks.

  • Navigation Problem in OBIEE

    Hi,
    I have a strange navigation problem. I have the navigation setup from the 1st page of my dashboard to go to the second. When I first bring up the first page, and then click , nothing happens. Now if I refresh this page and then click again, I am able to navigate to the second page. I would to hear if anyone has seen similar issue. Any help is appreciated.
    Thanks,
    Bharat

    Still haven't found a solution to this problem.
    Even if I remove the form1.setTarget( null or other framename/windowname)
    I tried changing to using the onclick="from1.target='mywin';" and also onclick="form1.target='_self'; on the button. Does not work/ have the desired effect of controlling where the page is opened: in same window or in another frame or window.
    For some reason navigation also totally breaks, after a search, with a similar sql as in this message, and I get no error when I debug and step through the code.
    After doing one search, navigation seems to stop working and only the search.jsp page is the target.
    If I do a view first navigation works to new page/servlet output but still not in a new window/frame.
    This simple stuff in a normal simle html page, should not be so hard to accive with SJSC perhaps someone of you in the community or the developers at sun can give us insight into this simple problem.
    It must be fairly common that one likes to control where a page is opened, in the existing window/page/frame or in a new window/frame.
    Anybody else had any problems with navigation not working with similar code ??
    If I remove the do_search() call it works, the navigation continues to function, but still have no control of the destination window/frame.
    Kind Regards
    Roger

  • I want to play video on my computer to make some analysis to frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program

    HI All
    I want to play video on my computer to make some analysis to it's frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program .
    I used IMAQ AVI Read Frame VI
    for example I have avi video It's frame rate is 25 fbs ,my image processing code is very fast that can process more 25 fbs,so I want to accelerate video acquisition

    Hi abdelhady,
    I looked into this further, and reading an AVI file into LabVIEW faster than its frames per second won't be possible. LabVIEW could read in frames faster than 25fps, but because it will be pulling the available frame at that point in time this would just give you duplicate frames. If you want to be able to read in frames at faster than 25fps, you would need to speed up your AVI file before reading into LabVIEW.
    There's a good shipping example to show how to read in from an AVI file, "Read AVI File.vi". You'll notice that they add timing to make sure that the while loop runs at the right speed to match up with the frames per second of the file being read. This is to make sure you're not reading duplicate frames.
    Thank you,
    Emily C
    Applications Engineer
    National Instruments

  • RoadMap UI Navigation Problem

    I'm facing a navigation problem using the roadmap UI in WD4A.
    Let's say we have 5 views. The roadmap view is the default view, the other views will be embedded into a view container UI element on the roadmap view. The roadmap UI has 4 steps, one for each view.
    V_ROADMAP
    V_STEP_1
    V_STEP_2
    V_STEP_3
    V_STEP_4
    Now, I need to add navigation buttons (previous & next) to navigate between the roadmap steps.
    My question is where should I placed these navigation buttons? On each view or only on the roadmap view.
    Personnaly and it think it would make more sense to place them only on the roadmap view.
    My problem using this approach is has follow: When you are on v_roadmap on step 1 (V_STEP_1), you click on Next to go to the next view (V_STEP_2), actually the action is trigger in V_ROADMAP so I am not able to validate user input field or obligatory field in V_STEP_1. I would have to call an action from V_STEP_1 in V_ROADMAP so the event handler method WDDOBEFOREACTION will be called. I don't think it's possible. The problem here, is you can click on next and you can go to the next view without filling the obligatory fields.
    If I placed my navigation buttons on each view. The advantage is that before triggering an action, I can validate user input field, obligatory field in the method WDDOBEFOREACTION before going to the next step.
    The desadvantage is that I have to recreate them on each of my view.
    thanks
    Alex

    Just to close this thread, I will summarize the different possible options:
    Navigation buttons on each view: This is the easiest way to validate obligatory fields but for component reuse it's not good idea to have navigation buttons on individual views.
    Navigation buttons on main views: If we placed the navigation buttons on our main view, the validation is kind of painful, before firing an outbound plug from the main view and a corresponding inbound plug on the individual view, we will have to manually verify our obligatory fields from the context of the componenent controller or using cross-component data sharing.
    Navigation using GAF (Guided Activity Floorplan): I think this option is the way to go! The problem here is that's very difficult to find documentation on that subject, also, the tools from SP 15 is not as user friendly then the one that's coming in NW EhP1.
    Alex

  • Mouse navigations problem with Sun Java 1.5.0_*

    Hello gurus,
    We need to move from JInitiator to Sun Java Plugin; according to the Forms10g Client Platform Support (http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html) one of the certified version for Forms 10.1.2.0.2 of the the Sun Java Plugin is 1.5.0_06 and Internet Explorer 6.0, we have tested also SJPI 1.5.0_09 and we get the same mouse navigation problem reported in the following Oracle Forum threads.
    Mouse navigation don't work with Java Plugin.
    Mouse navigation don't work with Java Plugin.
    Forms 10gR2, Sun Java 1.5.0_06 gives mouse problems
    Forms 10gR2, Sun Java 1.5.0_06 gives mouse problems
    Does anybody know a solution to this problem?
    Any help will be really appreciated.
    Regards,
    Victor.

    You need to use 1.5.0_12 or newer. The client SOD is not up-to-date on this specific point. A lot of navigation problems was fixed in this very release.
    The Management team should change this in the client SOD, wonder why they still refer to 1.5.0_06. For Applications, the first 1.5.0 to be certified was _12.
    Also make sure, that you are using the latest Patch 3 for 10.1.2 (10.1.2.3). This patch also contains fixes for a lot of these wellknown issues.
    Hope this helps,
    Jacob

  • Navigation Problem in Next/Previous Record

    Hi,
    I have a Master (have 20 fields) and Four its Detail block visible on same screen but each block have its own Canvas and Window. Now master table have 1700 records with its detail tables. So after Query when I press the Next_Record button it will no response some time I have to press it twice or thrice then it will respond and some time on fist click it gives the response.
    So I want to navigate through Next Records or Previous Record buttons on single click.??????????
    Kindly send me the solution of this problem on urgently basis.
    Best Regard,

    Hi,
    It's very difficult to suggest something by readingyour post. There are many reasones for navigation problem. Validation is one of them. Be sure that validation triggers written on any level are working properly. What code you have written on the buttons that you are using for navigation. In which blocks you have put your buttons. It is recommended that you put all your non-database items in a non-database block. Check this also.......

  • Sync and frame rate problems importing video to Flash CS3

    Just like the subject states, I am indeed having frame rate problems importing video to Flash CS3.
    When I export a video from Premiere with the settings:
    1280x720
    frame rate of 23.976
    using H264 or Animation (basically every codec produces the same results),
    "embed video on SWF and play in timeline"
    When I do this the file exports fine. Playing it in Quicktime works fine and the audio syncs up no problem. But when I import it into Flash using the same settings, for some reason the movie clip is now too fast in that the video does not match the audio and seems to be at more like 12 fps now (just a guestimate). The action of the video is over long before the audio even comes in.I have verified that the frame rate is correct in Flash so it's not that.
    I've done this literally hundreds of times in the past and suddenly it does not work and I can not figure out why. I'm not even really using video, but actually artwork that I am putting together as an animatic for an animated piece so the video could not have been imported incorrectly or digitized wrong either. Can someone out there please tell me how to make this work? Any help would be GREATLY appreciated!
    -Mike

    Thanks for you quick response however it really doesn't apply to what I am doing in any way. I will not be uploading the video to a server. I am using the imbed function so I can use it as a layer and then animate over it. It is just reference and will ultimately be deleted. The Fla file does indeed carry the same specs as I stated in my first post. I have done it this way dozens of times and I am trying to figure out why it suddenly will not work.
    ~Mike

  • Installing ios8.2 does not resolve Google map navigation problem or gps tracking!

    Installing ios 8.2 does not resolve Google map navigation problem.

    I have tried to install both of them lots of times but in each case I receive the same in my XE.bat file:
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1387) Unable to add or remove a member from the local group because this member does not exist.
    Have checked OS 1387 error at Microsoft Support and as possible cause of the problem they give as follows:
    This issue can occur if the environment has a disjointed namespace (i.e. the domain has different NetBIOS and DNS names). For example, assume that the domain has a NetBIOS name of "domain.com" and a DNS name of "domain-old.com." When users are added in the Windows UI, they are displayed in the format of domain\ComputerName. However, you notice in the error log that there was an attempt to add a computer account in the format of domain-old\ComputerName. (System Center 2012 R2 Data Protection Manager install fails and generates ID: 4323: "A member could not be added")
    Tried to find out my DNS name, but it is impossible because I don't have any domain installed and my machine is not connected to it. Some other blog (Install Oracle 11gR2 on Windows) advices to work with adding my computer account to some non-real windows domain (just for the purpose of resolving the network) as well and reinstall the database then. If I undestand it right I need minimum 2 machines for this. But I own just one, where the server is based and thought that is enough to run the database... no idea ..

  • Ghosting effect - Is it a frame rate problem?

    I've just made a music video lyric video (I'm still really new to movie editing) and there's this ghosting effect. Does anyone know what may cause it? Is it a frame rate problem, or the frame blend thing?
    Here's the cliup on YouTube: (You can really see the ghosting when you watch it in HD.)
    I'm using Adobe Premiere Pro CS4 on Windows 7 (32 bit)

    hmm, looks like you need to read a few things maybe...to understand some stuff.
    Here's some links I got from google for you
    NTSC
    Short for National Television System Committee. The NTSC is responsible for setting television and video standards in the United States (in Europe and the rest of the world, the dominant television standards are PAL and SECAM). The NTSC standard for television defines a composite video signal with a refresh rate of 60 half-frames (interlaced) per second. Each frame contains 525 lines and can contain 16 million different colors.
    The NTSC standard is incompatible with most computer video standards, which generally use RGB video signals
    ============
    info about aspect ratios... and better to scale down than up...or just stay the same as source.
    http://www.techsmith.com/tutorial-camtasia-understanding-dimensions-prior.html
    ================
    Soooo, you didnt export ntsc and it looks like you upscaled to 1080p but a different fps than original also.
    In gereral if you start at say 24fps and make it 30fps, your editor has to "make" new frames ( add 6 per second ) and it does that by creating new frames out of what you have on timeline. Sometimes a VBR 2 pass will give you better results than 1 pass, but you have to experiment a bit ( just export small section of timeline for tests...and try to use area where you see your "ghosting" ).
    good luck

  • Database navigation problems

    I have a problem with displaying records from my database where I wish to navigate through the records.
    I use a framset where I gather the search data in a form on the left side of the page and display the database results in a frame on the right hand side of the page.
    The website I have displays 1 record at a time in a table format. There's no problem getting records from the database - if I try to display 1 record on the page its Ok, if I disply X records on the page its fine - the problem comes where I display 1 record and then use hyperlinks to move to the next record in data set.
    The code is set so the navigation links only appear where there is more than 1 matching record so I know I'm not trying to call records that do not exist.
    The error only appears when I try to navigate through the records to display te 2nd record returned by any search, it appears to be something to do with the RecordCount.
    Any help appreciated.
    For Reference the next/prev record is adapated from here - http://tutorial20.easycfm.com/#
    The error is:
    [quote]
    Element RECORDCOUNT is undefined in GETDATABASESEARCHRESULT.
    The error occurred in *****/testquery.cfm: line 36
    34 : 
    35 : <CFSET end=Start + disp>
    36 : <CFIF start + disp GREATER THAN GetDatabaseSearchResult.RecordCount>
    37 :      <CFSET end=999>
    38 : <CFELSE>
    [/quote]
    The website code is:
    [quote]
    <!--- Start is the default starting row for the output.
          Disp determines how many records to display at a time --->
    <!--- Start displaying with record 1 if not specified via url --->
    <CFPARAM name="start" default="1" />
             <!--- Number of records to display on a page --->
    <CFPARAM name="disp" default="1" />
    <!--- Holds variables passed from form on prev page when this page is called.--->
    <CFPARAM Name="Form.Forename" Default="">
    <CFPARAM Name="Form.Surname" Default="">
    <CFPARAM Name="Form.Battalion" Default="">
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <!--- query the database table. Cache the result set for 15 minutes. --->
    <CFIF #Form.Battalion# IS "Sixth" >
    <CFQUERY NAME="GetDatabaseSearchResult" DATASOURCE="durhamli_durhamli"
             CACHEDWITHIN="#CreateTimeSpan(0,0,15,0)#">
        SELECT Surname,Forename, Pre1917ServiceNumber, Post1917ServiceNumber, Battalion, YearOfBirth, DateEnlisted, PlaceEnlisted,     DateOverseas, Notes
        FROM SixthDLI
    WHERE Forename LIKE '%#Form.Forename#%' AND Surname LIKE '%#Form.Surname#%'
    </CFQUERY>
    </CFIF>
    <CFSET end=Start + disp>
    <CFIF start + disp GREATER THAN GetDatabaseSearchResult.RecordCount>
         <CFSET end=999>
    <CFELSE>
        <CFSET end=disp>
    </CFIF>
    <!--- Output the range of records displayed on the page as well as the total
          number of records in the result set --->
    <CFOUTPUT query="GetDatabaseSearchResult" startrow="#start#" maxrows="#end#">
    <table border="2" cellpadding="5" cellspacing="2" width="90%" cols="5">
    <th>Surname</th>
    <th>Forename</th>
    <th>Pre1917 No.</th>
    <th>Post1917 No.</th>
    <th>Battalion</th>
    <tr>
    <td>
    #GetDatabaseSearchResult.Surname#
    </td>
    <td>
    #GetDatabaseSearchResult.Forename#
    </td>
    <td>
    #GetDatabaseSearchResult.Pre1917ServiceNumber#
    </td>
    <td>
    #GetDatabaseSearchResult.Post1917ServiceNumber#
    </td>
    <td>
    #GetDatabaseSearchResult.Battalion#   Battalion
    </td>
    </tr>
    <th>Year Born</th>
    <th>Date Enlisted</th>
    <th colspan="2">Place</th>
    <th>Posted Overseas</th>
    <tr>
    <td>
    #GetDatabaseSearchResult.YearOfBirth#
    </td>
    <td>
    #GetDatabaseSearchResult.DateEnlisted#
    </td>
    <td colspan="2">
    #GetDatabaseSearchResult.PlaceEnlisted#
    </td>
    <td>
    #GetDatabaseSearchResult.DateOverseas#
    </td>
    </tr>
    <th colspan="5" align="left">Notes</th>
    <tr>
    <td colspan="5">
    #GetDatabaseSearchResult.Notes#
    </td>
    <tr>
    </table>
    Record Number   :      #CurrentRow#   of   #GetDatabaseSearchResult.RecordCount#
    </CFOUTPUT>
    <!--- displays the navigation hyperlinks for the required recordset --->
    <CFOUTPUT>
        <table border="0" cellpadding="10">
            <tr>
                <!--- Display prev link --->
                    <CFIF start NOT EQUAL 1>
                        <CFIF start GTE disp>
                            <CFSET prev=disp />
                            <CFSET prevrec=start - disp />
                        <CFELSE>
                            <CFSET prev=start - 1 />
                            <CFSET prevrec=1 />
                        </CFIF>
                        <!--- only displays link if more than 1 record returned--->
                        <CFIF #GetDatabaseSearchResult.RecordCount# GT 1>
                        <td><font face="wingdings">ç</font> <a href="testquery.cfm?start=#prevrec#"> Previous #prev# record</a></td>
                        <CFELSE>
                        </CFIF>
                    </CFIF>
                    <!--- Display next link --->
                    <CFIF end LT GetDatabaseSearchResult.RecordCount>
                        <CFIF start + disp * 2 GTE GetDatabaseSearchResult.RecordCount>
                            <CFSET next=GetDatabaseSearchResult.RecordCount - start - disp + 1 />
                        <CFELSE>
                            <CFSET next=disp />
                        </CFIF>
                        <!--- only displays link if more than 1 record returned--->
                        <CFIF #GetDatabaseSearchResult.RecordCount# GT 1>
                        <a href="testquery.cfm?start=#Evaluate("start + disp")#">Next record</a> <font face="wingdings"></td>
                        <CFELSE>
                        </CFIF>
                   </cfif>
               </tr>
           </table>
        </CFOUTPUT>
    </BODY>
    </HTML>
    [/quote]

    Thanks, you've nailed it.
    I hadn't set a default parameter for form.battalion (although I presumed it would retain the parameter passed from the form to the query when I initially create the datbase query) and it now seems to work for now. It must clear the form variables every tim the page refreshes as it changes record.
    I'm not sure how it'll work when I add the 4 extra tables - 'Fifth', 'Seventh', 'Eigth' and 'Ninth' if it clears the value passed from the form each time the page refreshes I suspect it's going to default to the value set on the CFPARAM tag each time but I'll deal with that at the time.

  • OAAdvancedTableBean navigation problem.

    I have 2 advanced table with 11 rows each.
    Both have 'records displayed' property of 10.
    when I click 'previous' link on either table, the data disappears so
    I invoked appModule.clearAllVOCaches(null, false) on processFormRequest.
            } else if (GOTO_EVENT.equals(pageContext.getParameter(EVENT_PARAM)) &&
                CALLINGMODE_VIEW.equals(pageContext.getParameter(PA_CALLINGMODE))) {
                final String source = pageContext.getParameter(SOURCE_PARAM);
                final OAAdvancedTableBean sourceBean = (OAAdvancedTableBean)webBean.findChildRecursive(source);
                final String voName = sourceBean.getViewUsageName();
                final Map<String, Integer> rangeStartMap = new HashMap<String, Integer>();
                final Map<String, Integer> rangeSizeMap = new HashMap<String, Integer>();
                final ApplicationModule appModule = pageContext.getApplicationModule(webBean);
                for (String nextVoName: appModule.getViewObjectNames()) {
                    if (!nextVoName.equals(voName)) {
                        rangeStartMap.put(nextVoName, appModule.findViewObject(nextVoName).getRangeStart());
                        rangeSizeMap.put(nextVoName, appModule.findViewObject(nextVoName).getRangeSize());
                appModule.clearVOCaches(null, false);
                for (String nextVoName: rangeStartMap.keySet()) {
                    final int start = rangeStartMap.get(nextVoName);
                    final int size = rangeSizeMap.get(nextVoName);
                    if (start > 0) {
                        ViewObject viewObject = appModule.findViewObject(nextVoName);
                        viewObject.setRangeStart(start);
                        viewObject.setRangeSize(size);
            }Now the problem is when table 1 is on 2nd page and I click 'next' on table 2,
    table 1's navigation controls will change to
    "Previous 10 10-20 Next 10 >(enabled)".
    It should be just like before I clicked "next" on table 2.
    "Previous 10 10-11 Next >(disabled)".

    Still haven't found a solution to this problem.
    Even if I remove the form1.setTarget( null or other framename/windowname)
    I tried changing to using the onclick="from1.target='mywin';" and also onclick="form1.target='_self'; on the button. Does not work/ have the desired effect of controlling where the page is opened: in same window or in another frame or window.
    For some reason navigation also totally breaks, after a search, with a similar sql as in this message, and I get no error when I debug and step through the code.
    After doing one search, navigation seems to stop working and only the search.jsp page is the target.
    If I do a view first navigation works to new page/servlet output but still not in a new window/frame.
    This simple stuff in a normal simle html page, should not be so hard to accive with SJSC perhaps someone of you in the community or the developers at sun can give us insight into this simple problem.
    It must be fairly common that one likes to control where a page is opened, in the existing window/page/frame or in a new window/frame.
    Anybody else had any problems with navigation not working with similar code ??
    If I remove the do_search() call it works, the navigation continues to function, but still have no control of the destination window/frame.
    Kind Regards
    Roger

  • ELearning Template Navigation Problem

    Has anyone used a Flash eLearning template and found an
    intermittent problem with advancing from frame to frame using the
    control button? Basically when you click on the next button on the
    first frame of the movie, the control shows it advancing to frame 2
    but the movie doesn't go the the next frame. But this problem only
    shows intermittently and does not occur every time you open the
    movie. Could it be a RAM issue? The problem occurs when you open
    the SWF file by itself, but never occurs when you play the movie in
    a web browser.

    I believe the problem you are having can be simplified if you
    consider this
    example -
    Put a 2 row by 2 column table on the page. Merge the two
    right hand cells
    into a single column. Put an image into each left cell, and
    you will see
    that they merge vertically seamlessly. Now begin to add
    content to the
    merged cell on the right and you will see that at some point
    you will have
    forced the two left cells to begin to split apart vertically.
    The more
    content you add to the right, the further apart the two left
    cells will get.
    See what I mean?
    To solve the problem, instead of making your page sit in a
    single table,
    have it in several nested tables. You should be able to put a
    two column
    table on the page with a nested table in each column. Put
    your navigation
    in the left nested table, and the
    content in the right nested table. Now, changes to either of
    the inner
    table's
    structure will not affect either of the inner nested tables.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "eman203" <[email protected]> wrote in
    message
    news:ekkmur$bet$[email protected]..
    >
    http://www.thornviewcustomcabinets.com/index3.html
    >
    > as you can see as info is added below navigational
    buttons, they begin to
    > spread out. I am tyring to lock them at the top left of
    the page, next to
    > the
    > picture of the hutch.
    >
    > Thanks for looking at it.
    >
    >
    >

  • Infobus Navigator Problem

    Hi All,
    I have a problem with the infobus NavigationBar. I have made a
    template UI frame with the navigationbar attached to it. For all
    my regular forms I am trying to inherit from the templateframe
    and add the other required code. I am making a connection and
    session in the inherited frame and attaching the session info to
    the navigation bar in the parent. When I run the form, I am
    able to query the data. But no button in the navigation bar
    is getting enabled. This is the part of the code
    super.navigationBar.setDataItemName("infobus:/oracle/SessionInfo1
    /rowSetInfo1");
    super.navigationBar.setHasInsertButton(true);
    super.navigationBar.setHasFindButton(true);
    super.navigationBar.setHasNavigationButtons(true);
    super.navigationBar.setHasTransactionButtons(false);
    super.navigationBar.setHasDeleteButton(true);
    super.statusBar.setText(super.navigationBar.getDataItemName());
    As I have disabled transaction buttons they does not appear in
    the navigation bar. The last line gives the positive reply with
    the same DataItemName as set in the first line. But no button in
    the navigation bar is getting enabled. So I cannot navigate using
    the navigationbar.
    Can anyone tell where I am making the mistake?
    Thanks
    --Gopal
    null

    Hi,
    Thanx for the reply. In the meantime I could solve it. Now
    another small issue. The add button on the navigation bar adds a
    new row before the current row. Is there a way to add the row
    after the current row. So that in a data entry application, I can
    bind the down arrow key to the add button, so that the form
    operators can use it easily.
    Thanx once again
    --gopal
    Jdev (guest) wrote:
    : Gopal,
    : It is possible that the rowset to which the nav bar is bound
    has
    : zero rows. Nav bar disables/enables buttons depending on the
    : number of rows the rowset has.
    : Thnx.
    : Gopal (guest) wrote:
    : : Hi All,
    : : I have a problem with the infobus NavigationBar. I have made
    a
    : : template UI frame with the navigationbar attached to it. For
    : all
    : : my regular forms I am trying to inherit from the
    templateframe
    : : and add the other required code. I am making a connection and
    : : session in the inherited frame and attaching the session info
    : to
    : : the navigation bar in the parent. When I run the form, I am
    : : able to query the data. But no button in the navigation bar
    : : is getting enabled. This is the part of the code
    super.navigationBar.setDataItemName("infobus:/oracle/SessionInfo1
    : : /rowSetInfo1");
    : : super.navigationBar.setHasInsertButton(true);
    : : super.navigationBar.setHasFindButton(true);
    : : super.navigationBar.setHasNavigationButtons(true);
    : : super.navigationBar.setHasTransactionButtons(false);
    : : super.navigationBar.setHasDeleteButton(true);
    super.statusBar.setText(super.navigationBar.getDataItemName());
    : : As I have disabled transaction buttons they does not appear
    in
    : : the navigation bar. The last line gives the positive reply
    with
    : : the same DataItemName as set in the first line. But no button
    : in
    : : the navigation bar is getting enabled. So I cannot navigate
    : using
    : : the navigationbar.
    : : Can anyone tell where I am making the mistake?
    : : Thanks
    : : --Gopal
    null

  • Dreamweaver Flash Buttons / Frame Navigation in VISTA

    Hey, I use some standard flash buttons from Dreamweaver to
    navigate. I have two frames in this web. The buttons are in frame
    "A" and refer to a target in frame "B". This worked perfectly fine,
    even with IE 7 in Windows XP it still works. But in Windows VISTA
    every button opens a new browser windows.
    Windows VISTA, IE 7, Dreamweaver 8, running the web on my HD
    Thanks in advance.
    Sky

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Adding in frames makes it even worse - you are in the deep
    stuff here. Why
    are you using frames?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "LeichterLernen" <[email protected]> wrote
    in message
    news:er5fua$3am$[email protected]..
    > Hey, I use some standard flash buttons from Dreamweaver
    to navigate. I
    > have two
    > frames in this web. The buttons are in frame "A" and
    refer to a target in
    > frame
    > "B". This worked perfectly fine, even with IE 7 in
    Windows XP it still
    > works.
    > But in Windows VISTA every button opens a new browser
    windows.
    >
    > Windows VISTA, IE 7, Dreamweaver 8, running the web on
    my HD
    >
    > Thanks in advance.
    >
    > Sky
    >

Maybe you are looking for

  • Notes not showing up

    I looked for a topic about this, but couldn't find it. I just bought a 3rd gen iPod nano and I'm very satisfied with it (even with the "exceptable tilt"). But I can't get the notes to work. I've got Disk Use enabled, so I can see my Notes folder. The

  • PDF Shrinkage When Printing

    Hello!    I work at a print shop, and we're having problems printing from our PDFs to the size of the document.  For instance, we'll get an 8.5 x 11 file and even though it appears correct on the screen, the art work will shrink when printed directly

  • What does * stand for

    Hi, Can some one please help me understand what * stands for in the below code. I tried F1 help on it but, it didnot give me any answer. data: begin of marc* occurs 10.         include structure marc. data: end of marc*. Thanks.

  • Can't update add-ons, install toolbars or new add-ons, get desktop shortcut icons to work, delete desktop shortcut icons, or uninstall Firefox! Help!

    I have Firefox 3.6.3 running on a Toshiba Satellit laptop with Windows XP. I can't update add-ons, install google and yahoo toolbars, get any of the 3 desktop shortcuts to work or delete them, nor uninstall Firefox to try and start over. What a piece

  • Is there a limit to how many pages my form can be?

    Im at 6 so far and I just started. it is very dynamic and there is a lot of show/hide fields. It is basically 6 forms in one. I am worried that by the time i finish itll be too big.