Home Search Member List Faq Register Login  
UltimateSpell
scrolling divs, any solutions?

Thread Starter: troops12   Started: 12-17-2007 1:15 PM   Replies: 3
 Karamasoft Support Forums » General Discussions » UltimateSpell » scrolling divs, any solutions?
 Printable Version    « Previous Thread   Next Thread »
  17 Dec 2007, 1:15 PM
troops12 is not online. Last active: 12/17/2007 3:10:14 PM troops12

Top 10 Posts
Joined on 11-19-2007
Posts 9
scrolling divs, any solutions?
Are there any plans to support inline checking on floating divs in the future? I have text areas on tabs on some of my pages. The body of the tab scrolls, and your iframe floats over the tab, doesn't track the scroll, and extends below the body of the tab. Is there a workaround for this, or a fix planned in the future?

Thanks 

  
  17 Dec 2007, 2:59 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: scrolling divs, any solutions?
It is extremely hard and inefficient for UltimateSpell control to check page layout changes after the page is loaded. However, there is a client-side API method Position() as can be seen at http://www.karamasoft.com/UltimateSpell/ClientAPI.htm to programmatically reposition the spell as you type textboxes on the client-side in cases where the page layout changes on the client-side after the page is loaded and you can use it as follows:

UltimateSpellAsYouTypes['TextBox1'].Position();

You should pass the client-side id of your textbox controls in the above code instead of TextBox1.

  
  01 Feb 2008, 3:06 PM
gotProblems is not online. Last active: 6/27/2008 2:30:16 PM gotProblems



Top 10 Posts
Joined on 12-10-2007
Virginia
Posts 26
Re: scrolling divs, any solutions?
I have a similar problem where I have a Datagrid with a large number of columns and it resides in a DIV that is a fixed size with Overflow-X equal to auto.  When a row in the Datagrid is changed to edit mode some of the fields change to textboxes that I want to perform spellcheck (and have SpellAsYouType) on them.  Some of these fields, the ones that would have to be scrolled to view in the DIV, end up having their SpellAsYouType field outside of the DIV way on the right side of the Webform.  I have been able to get to the SpellAsYouType fields by scrolling the IE window to have the entire Webform pulled to a negative ScrollLeft value (including the DIV and its contents).

I have tried using the position() function of the SpellAsYouType objects by looping through them as suggested in a number of other posts.  I have called the function containing this code from the [ultimateSpellId]_OnLoad() (adding setTimeout and setInterval to try and get it to happen when the actual Textbox in the Table has changed location inside of the DIV.  I have also tried calling this function from the DIV onscroll event and the SpellAsYouType fields still don't move.  I know the containing function is being called because I have done both an alert of a value and set window.status to a value inside the function.

Please tell me that there may be a solution.  Either now, or on the way.

Another thing I noticed is when the value in the Textbox (a single line regular input type=text) is really long then the SpellAsYouType field that is off the screen has a horizontal scrollbar as explained in a number of other posts.  This behavior would not be acceptable either even once the positioning issue is resolved.

  
  01 Feb 2008, 5:27 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: scrolling divs, any solutions?
If you have very complex page structure such that divs inside other divs containing tables, etc and if you have style position set to relative, SpellAsYouType might not find the exact location of the textbox. If you can simplify your page structure by removing those styles and add them again one by one, you can find which style attribute might be causing the positioning issue.

We are aware of the textbox issue and we are currently working on a solution. One possibility is that we will dynamically increase the height of the spell as you type textbox in case it is for a single-line textbox when the focus is inside that textbox and change the height back to the original value when the focus moves away.

Sorry for the inconvenience.

  
 Page 1 of 1 (4 items)
Karamasoft Support Forums » General Discussions » UltimateSpell » scrolling divs, any solutions?

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.