Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread TServerRequest error in IE 8
Wed, May 9 2012 9:29 AMPermanent Link

Rick

Hi Tim.

I get an Object Expected error when using TServerRequest in IE 8. It seems
to work in Firefox.

The error occurs when running the application with a TServerRequest on the
form even if no properties or methods of the TServerRequest are used.

--
Rick

Fri, May 11 2012 12:42 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Rick,

<< I get an Object Expected error when using TServerRequest in IE 8. It
seems to work in Firefox.

The error occurs when running the application with a TServerRequest on the
form even if no properties or methods of the TServerRequest are used. >>

More than likely you've run into a security restriction/cross domain policy
issue.  If you want to send me an example of what you're trying to do, I can
confirm this for you.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, May 12 2012 8:05 AMPermanent Link

Rick

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:C282E7F4-670E-46BC-8A7C-F2C8D6CEC448@news.elevatesoft.com...
>
> << I get an Object Expected error when using TServerRequest in IE 8. It
> seems to work in Firefox.
>
> The error occurs when running the application with a TServerRequest on the
> form even if no properties or methods of the TServerRequest are used. >>
>
> More than likely you've run into a security restriction/cross domain
> policy
> issue.  If you want to send me an example of what you're trying to do, I
> can
> confirm this for you.
>
>

Hi Tim.

The problem occurs before any attempt is made to use the control.

I can consistently reproduce the problem as follows:

1. Create a new application.
2. Drop TServerRequest on the main form.
3. Press the run button.
4. "Object Expected" error occurs.

I use IE8 on my development machine so see this problem in both the IDE and
browser.

I also experience the problem if I remove the TServerRequest control and
instead dynamically create it via TServerRequest.Create in the form create
method.

If I run the application in Firefox the error does not occur.

The error is displayed even if nothing is done with the component ... just
creating it causes it to occur.

I also see the same error when navigating to the online CD collection
application you provided at
http://www.elevatesoft.com/cdcollector/cdcollector.html

Works fine in Firefox, fails for me in IE8.

--
Rick





Attachments: tserverrequest.jpg
Wed, May 16 2012 12:35 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Rick,

<< The problem occurs before any attempt is made to use the control.

I can consistently reproduce the problem as follows: >>

Something is wrong with your IE configuration/installation.  Simply using
the component should not cause an error, and if you're getting the error
with the CDCollector application that is running on our web site, then that
clinches it.  The CDCollector application hasn't been updated since I
originally put it up, so it was compiled using a version of EWB from quite a
while ago.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, May 16 2012 6:38 PMPermanent Link

Rick

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:7646497B-1073-4C46-B77C-DFB86734890F@news.elevatesoft.com...
>
> Something is wrong with your IE configuration/installation.  Simply using
> the component should not cause an error, and if you're getting the error
> with the CDCollector application that is running on our web site, then
> that clinches it.  The CDCollector application hasn't been updated since I
> originally put it up, so it was compiled using a version of EWB from quite
> a while ago.
>
>

Hi Tim.

I found the problem. I had to select the "Enable native XMLHTTP support"
check box under the Advanced tab in IE8 Internet Options. For some reason
this was unchecked. Now server requests work correctly for me in IE8.

--
Rick

Thu, May 17 2012 1:15 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Rick,

<< I found the problem. I had to select the "Enable native XMLHTTP support"
check box under the Advanced tab in IE8 Internet Options. For some reason
this was unchecked. Now server requests work correctly for me in IE8. >>

Thanks for the update - I didn't even know that option was there. Smile

Tim Young
Elevate Software
www.elevatesoft.com
Sun, May 20 2012 8:05 AMPermanent Link

Rick

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:EA6F81E6-4392-43D8-827B-04164E27280B@news.elevatesoft.com...
>
> << I found the problem. I had to select the "Enable native XMLHTTP
> support" check box under the Advanced tab in IE8 Internet Options. For
> some reason this was unchecked. Now server requests work correctly for me
> in IE8. >>
>
> Thanks for the update - I didn't even know that option was there. Smile
>
>

Tim, that's one of the problems with IE, lots of options in unknown states
across the user community.

A lot of my IE8 users wouldn't know about this option and may have it set
incorrectly (as I did) to properly support the native XMLHttpRequest call.
I'd rather try to support them automatically than have to somehow inform
them all to set IE options correctly.

Any chance you could "enhance" the XMLHttpRequest call to check for the
native object and if not found fall back to the IE supported ActiveX object?
If this is not found then perhaps an exception can be thrown.

I guess this is probably not something you would like to do especially as
ActiveX support can also be disabled in IE options, however I think it may
be worthwhile in an effort to minimize user effort as much as possible.

--
Rick

Mon, May 21 2012 8:57 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Rick,

<< Any chance you could "enhance" the XMLHttpRequest call to check for the
native object and if not found fall back to the IE supported ActiveX object?
If this is not found then perhaps an exception can be thrown. >>

I'll have to check to see about what the differences are that may affect the
functionality.  In general, however, there is always the possibility of this
type of error in many of the browsers, so I'm not sure how much extra
comfort you'll be buying. Smile

Tim Young
Elevate Software
www.elevatesoft.com
Image