Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 A Testing Area
 Testing Forums
 Testing caretPos
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SiSL
Average Member

Turkey
671 Posts

Posted - 08 February 2011 :  21:27:06  Show Profile  Visit SiSL's Homepage  Reply with Quote
This is a caretPos testing for IE9

Edit: Hmm... Guess no way of testing that here... :(

Seems to be something wrong with "DOCTYPE html" and IE9 Documents Mode because of IE9. Hope to be fixed in IE9 RC at Feb 28th

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 08 February 2011 23:37:58

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 February 2011 :  04:55:35  Show Profile  Visit HuwR's Homepage  Reply with Quote
what problem are you trying to test?

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 09 February 2011 :  07:34:25  Show Profile  Visit SiSL's Homepage  Reply with Quote
I don't know how to describe... This is about editor, I think with html5 doctype and IE9 (I'm using, post-beta leak, not RC yet) (at least at my test build) for instance, "selecting a text range" like "text" word and pressing bold makes it like "[b]tex[/b]ext" not taking entire word or adding extras... (with Quirks mode like here, it works okay, so one side is related to DOCTYPE)

Not quite sure problem. It does not have problems in IE8 mode or any other browsers, so will watch out for real RC...

Other issue is sadly javascript "prompt" command asking a security question in IE9 on Prompt mode... Trying to find an alternative for that, but no thirdparty javascript halts and wait for responses like prompt...

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 09 February 2011 08:24:42
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 February 2011 :  08:39:45  Show Profile  Visit HuwR's Homepage  Reply with Quote
Ok, I too have noticed issues with IE9 and the caretpos, just not had chance to play with the code to see if I can fix it. (you can try it's effect on snitz.reddiweb.com (it has doctype set)

The prompt issue is because it basically opens a window which is why security asks for confirmation, this is probably a setting in IE9 that needs adjusting.

The problem is that the more security features that they introduce to protect idiot users, the more annoying it gets for ordinary users who know what they are doing.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 09 February 2011 :  12:18:31  Show Profile  Visit SiSL's Homepage  Reply with Quote
Thanks, will try asap...

Seems only way to find out is to wait for next release and see if it is fixed (if bug --which is most likely)

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 February 2011 :  13:25:35  Show Profile  Visit HuwR's Homepage  Reply with Quote
it could be that the javascript in the forum just needs updating

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 10 February 2011 :  00:00:48  Show Profile  Visit SiSL's Homepage  Reply with Quote
quote:
Originally posted by HuwR

it could be that the javascript in the forum just needs updating



might be, but then again, this happens not only on Snitz also Discuz!, vBulletin as far as I tried. Well, will look for solutions meanwhile...

Edit: OKAY, seems problem is selection moves exactly as count of "\r" characters which IE9 also supports \n only are carriages. Problem does not occur at first line, but following lines after enter/returns (which might mean IE9 returns character count wrong or misinterpreted also)

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 10 February 2011 01:45:07
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 February 2011 :  02:41:51  Show Profile  Visit HuwR's Homepage  Reply with Quote
I did find a site where it worked ok, will try and remember the link and compare the code to ours

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 February 2011 :  02:48:00  Show Profile  Visit HuwR's Homepage  Reply with Quote
ok found it, demo here http://demo.vishalon.net/getset.htm (sets and returns correct caretpos in IE9

code here http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea/

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 10 February 2011 :  08:27:21  Show Profile  Visit SiSL's Homepage  Reply with Quote
Any luck out there?

I will try to check when back home, if you did not already tested it yet on Snitz.

PS: It seems IE9 RC will be out today if not tonight (Feb 10th) so might check before doing anything else too...

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 10 February 2011 08:28:36
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 10 February 2011 :  13:22:35  Show Profile  Visit SiSL's Homepage  Reply with Quote
IE9 RC is out and yes, as I expected, they have fixed that problem it seems :) So no need to modify any code unless if you think it would be improvement....

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 February 2011 :  17:11:11  Show Profile  Visit HuwR's Homepage  Reply with Quote
that's good to know

I wonder if it also fixes the problem I have when debugging web applications in Visual studio 2010, will have to download the RC tomorrow and try it out.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 10 February 2011 :  18:32:50  Show Profile  Visit SiSL's Homepage  Reply with Quote
But I need advice on that tho;

I personally think, it might be good idea to change "selection" after addText still pointing original text, like when you press bold, it selects entire "[b]text[/b]" rather than text now, how may I modify so that it still selects original text rather than addition? well, it is personal choice ofcourse...

edit: oops, I think it is not possible with current setup, seems have to change entire functions for that, so nevermind...

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 10 February 2011 18:34:55
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07