Why the page automatically scrolls to the cfgrid controls

I have a page that is large enough so that it scrolls vertically. When it finishes loading, the browser scrolls automatically to the bottom of the page where a cfgrid element. It happens in IE, Chrome, and Firefox.

I reduced the cause down to the JavaScript server ColdFusion 11 adds at the top of the page. If I disable scripts in the browser, the page does not automatically scroll down.

Addition of window.scrollTo (0,0) at the onload of the body does not work. What JS is scrolling down occurs after the onload event. I have not tried. ready() jQuery yet; in the hope there is a fix.

Has anyone else seen elsewhere and don't know a fix or a workaround?

I found that the solution is to add the attribute selectOnLoad = "false" to the cfgrid tag. Its default value in CF11 is 'true '. I'm not sure CF10, but in CF9 is seems to default to 'false '.

Tags: ColdFusion

Similar Questions

  • 11 ColdFusion Flash bashing is this used to replace the cfgrid controls?

    We have recently updated to CF8 CF11. Is about to create interfaces with several new databases. To do something like CFGRID controls in new forms, but given that it's a Flash form component and Flash forms are deprecated in CF11, what is the alternative to forms no Flash for those who need a sub-shape with add/CHANGE/REMOVE features such as controls CFGRID? Looks like that characteristic of the worksheets is just for output/display of the data, not data entry.

    Thank you, Carl. I noticed that jQuery seems to be the answer. I just wanted to check that I was not overlooking something in the new version.

  • Why web pages automatically opens?

    I hope it is easy. Don't know what happened, but when I select a Web site address in the browser, this page does not open automatically. I have to click the arrow on the far right of this field, then the page opens. How can I set this up so that pages open right now when I select a web address? Keep it simple please!

    An Add on AVG for Firefox is a known cause for this problem.

    Firefox button > Addons - > Extensions = disable AVG modules can be installed, restart Firefox

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

  • bind the cfgrid controls to an another cfgrid

    I have a cfgrid;

    < cfgrid name = "CompQry" format = "html" pagesize = "10" striperows = "Yes" height = "320" width = "580" font = "Verdana, Arial, Helvetica, sans" fontsize = "12" align = "left" bind="cfc:/components/tsiadmin.getCompanies ({cfgridpage}, {cfgridpagesize}, {cfgridsortcolu minutes}, {cfgridsortdirection}, cname # #)" selectmode = selectonload 'row' = "true" > "
    < name cfgridcolumn = "CompanyRecordNumber" header = "Number of Comp" select = "yes" >
    < cfgridcolumn name = 'Name' header 'Name' = >
    < name cfgridcolumn = 'City' header 'City' = >
    < name cfgridcolumn = 'State' header 'State' = >
    < / controls cfgrid >


    And I need to link the selected line to another grid;

    < cfgrid name = "IndivQry" format = "html" pagesize = "10" striperows = "Yes" height = "320" width = "580" do = "Verdana, Arial, Helvetica, sans-serif" fontsize = "12" align = "left" bind = "" selectmode = selectonload 'row' = "true" > "
    < name cfgridcolumn = "IndividualRecordNumber" header = "Number of single" select = "yes" >
    < name cfgridcolumn = "First name" header = "First name" >
    < cfgridcolumn name = "LastName" header = "Last Name" >

    < / controls cfgrid


    The first grid is a list of the companies and the grid secord is supposed to be a list of all the selected company. I see that I have a piece of code is missing. I don't see how I can bind to a cfc on the second grid which will be returen a query based on the selected line in the first grid.

    larksys wrote:
    > I don't see how I can bind to a cfc on the second grid which will be
    > returen a query based on the selected line in the first grid.
    >
    >
    >

    see if this helps:
    http://www.coldfusionjedi.com/index.cfm/2007/8/9/reacting-to-grid-row-selection

    --

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com

  • Sort of the cfgrid controls

    I am running a cfquery to a ms access database and display the results in a cfgrid.
    I want to display the "descending" sorting grid and don't want users to have the ability to change the type.
    Does anyone know how this can be done?

    used;
    order by date desc

  • Why the media control buttons do not work

    my computer is a toshiba M300 series

    Hi manumartinez,
     
    -The multimedia keys worked without any problems before?
    -If Yes, what is the recent change that was made on your computer after that this problem started to happen?
     
    Follow the suggestion given in the link below and check if it helps you to fix the problem:
     
    If this does not work, contact Toshiba support for assistance on this issue.
  • Using cffif in the cfgrid controls

    Is it possible to use cffif or any other conditional statement in cffgrid to dynamically display a column or not?

    Thanks to you two. Each of the provided solutions worked for what I needed.

    D

  • in the cfgrid controls text wrapping

    Is this possible? I can't find anything that says it is.

    wrap solved, used = "hard."

  • How can I activate the remote control of remote desktop?

    I'm trying to control my 10.4.11 Mac OS X 10.10.4 machine.  Remote Desktop is enabled, I have vnc into it and see the screen, but the options to activate the control grayed out on my window of the 10.4.11 machine.    I know that I could do it with iChat, but I would like to be able to do this with the Office remotely like I can with 10.6 and later.  Clues as to why the mouse control is grayed and what to do about it?

    In sharing office window remote access, which users are listed, & are checked?

    If no user you must add at least one, if the box IT didn't is not enabled for a user, then all options right will be grayed out.

  • Data binding conditional with cfgrid controls?

    I have the following:

    < action = "action.cfm cfform" format = "flash" method = "post" > "
    < cfformgroup type = "horizontal" >

    < cfformgroup type is "page" label is "Email" >
    < name cfgrid 'email' query = 'email' = >
    < name cfgridcolumn 'question' = >
    < / controls cfgrid >
    < / cfformgroup >

    < cfformgroup type is "page" label is "Paycheck" >
    < name cfgrid = 'paycheck' query = 'paycheck' >
    < name cfgridcolumn 'question' = >
    < / controls cfgrid >
    < / cfformgroup >

    < / cfformgroup >

    < cfformgroup type is "Panel" label is "Response" >

    < cfformitem type = bind "html" = "{((email.selectedItem.question == undefined)?": email.selectedItem.answer)} "
    (paycheck.selectedItem.question is undefined)? ('': Paycheck.SelectedItem.Answer)} "> < / cfformitem >"
    < / cfformgroup >

    < / cfformgroup >
    < / cfform >

    I assume that there is a syntax error in the value of the BINDING of the CFFORMITEM tag attribute. In plain English, I'm essentially looking to say (and I'm simply not enough experience with ActionScript for how to do this):

    If a line in the cfgrid controls named, 'email' is selected, make the value of the column in the query response to send the value of the CFFORMITEM tag. Otherwise, if there is a line in the named cfgrid controls, 'paycheck' that has been selected, make the colum on the wage response value query the value of the CFFORMITEM tag.

    TIA

    The way that you have written, undefined is a variable name. I think you meant the "undefined" value instead. Looking for something like this?

  • When I try to highlight text on any page why it automatically scrolls to the top? Very frustrating problem just occurred, was not there before.

    Curiously, an error just for me that was not there until tonight (I have nothing new installed on my firefox). When I try to highlight text on any page why it automatically scrolls to the top? Very frustrating problem, no matter whether on gmail on an email, facebook or a web page regular when I try to select my browser text is now scroll upward on its own literally as soon as I'm going to highlight, that means I end up selecting everything on the page when it scrolls upward. Can anyone shed some light on how I can solve this problem suddenly?

    Thank you

    I am pleased to learn that you have been able to solve your problem of Firefox.

    I reported this problem to the addon developer, in the hope that they will be able to patch the issue soon.

    Please use the Mozilla Support Forums. We hope that you will continue to sail with us.

  • On some files, such as Documents, when I open the file it automatically scrolls to the bottom of the page.

    I have problems with the scroll bar. On some files, such as Documents, when I open the file it automatically scrolls to the bottom of the page. I can scroll upward, but as soon as I let go of the mouse button it drops to the bottom of the page. On some windows so it both vertically and transversely sometimes scrolls upwards and downwards is OK but he pages all the way to the right. Also in IE, I can't click on the scroll bar and drag it, I have to the top or down of arrows or the wheel.

    Thank you; Brand:

    I found the problem. It was the mouse.

    I do not understand why it worked on some programs and others do not, but I guess until I found a solution, it is not matter. Brand:

  • No matter what page I click on the screen automatically scrolls to the bottom of the screen

    original title: any page I click on the screen automatically scrolls to the bottom of the screen so THST I'm unable to read whats above. I suspect a recent windows update caused this problem

    See above

    Hi centerZQ of windows media.

    Since it is a recent issue, use System Restore to restore your computer to a point before the issue. This allows you to uninstall the updates or programs that you installed after the date you have selected, then make sure you have a way to reinstall all the programs, if necessary.

    Then, check the updates on your computer. If you have several updates to install, install them in small groups, until the problem reoccur. Once you have identified the update at the origin of the problem, post in the forum.

  • I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    A Google search for "animated gifs arrows" returned hundreds of animated arrows.

  • Why the height of the page t automatically fill up to 100% in the browser?

    Anyone know why the page fills the height in the browser? I have both header and footer, and I want the height of the whole page to fit the contents of the body. But he keeps extending up to the page to full height even if the minimum height is set to 500 px and the content of the body is much less than that. The result is that the footer displays at the bottom and just above a large empty white I want to get rid of...


    I don't know about the option 'fill' (is that the right name for it? I use a Swedish version), but I Don t want to have a large area of below filling which makes the scroll bar appear.


    Any hint of what the cause? Help please!

    Hello

    Try to disable the sticky footer:

    Muse > file menu > Site Properties > Layout > Sticky Footer

    Hope this helps,

    Sonam

Maybe you are looking for

  • How to set up AirPort Express as a receiver only?

    My Wi - Fi Terminal is a tower of ac AirPort Extreme. I use my old AirPort Express only n to provide the Internet connection for my TV. All he needs to do is to receive the signal Wi - Fi base station. When I check the Wi - Fi traffic, however, it se

  • Compaq Elite 8300 CMT PC ALL (win7 64 bit)

    I can't find this drivere, pleas help me PCI\VEN_8086 & DEV_1502 & SUBSYS_3396103C & REV_04PCI\VEN_8086 & DEV_1502 & SUBSYS_3396103CPCI\VEN_8086 & DEV_1502 & CC_020000PCI\VEN_8086 & DEV_1502 & CC_0200

  • Well, I'm stupid. How to post photos?

    I give up. I can't understand how to insert an image in my response messages. I tried the Insert/edit image, paste from Word button button and just copy and paste. I get the "your message was changed because the incorrect HTML code was found in the b

  • Wrong thumbnail / preview

    Sometimes a thumbnail / preview image is not going to an image file. When I use 'zoom' to force the hole image load, the thumbnail / preview will be updated. The correct/thumbnail image Preview will disappear after awhile (for example when I go to ma

  • Where to print Code is printed from a saved PDF?

    It is very nice to work with Dreamweaver, but I need to print the code to make diagnoses and to print to a PDF file which is easy enough, but where it is saved? I've been in Preferences, searched my records, can't find it. The print dialog box does n