Wrox Programmer Forums
|
BOOK: ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5 ISBN: 978-0-470-10998-4
This is the forum to discuss the Wrox book ASP.NET AJAX Programmer's Reference: with ASP.NET 2.0 or ASP.NET 3.5 by Dr. Shahram Khosravi ; ISBN: 978-0-470-10998-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5 ISBN: 978-0-470-10998-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2007, 08:20 AM
Registered User
 
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default DomEvent Example 6-15 Firefox Problem

This example doesn't work correctly in Firefox 2.0.0.4.

I thought the whole idea of the AJAX library was to deal with browser inconsistencies.

Even changing the code to use $addHandler and $removeHandler doesn't make it work properly.

Could somebody explain what the problem is?
 
Old October 18th, 2007, 04:29 PM
AGS AGS is offline
Wrox Technical Editor
 
Join Date: May 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Could you clarify the question a bit?

File Listing6_15.aspx from code download is not DomEvent example. Which example/listing do you mean?

Best regards
Alexei

 
Old October 19th, 2007, 03:07 AM
Registered User
 
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are correct. It is not a DomEvent example.

Listing 6-15 is an example of using getLocation and setLocation methods of the DomElement.

It works fine in IE7 but not in Firefox 2.0.4 and I just wanted to understand why.

Curiously, as the book develops the idea of using Delegates and introduces the Mover class in example 6-22 to do the same thing, this does work in Firefox as well as IE.

The code in the Delegates.js file to handle the mouse events looks the same as example 6-15 so i'm just trying to understand why one works and the other doesn't.

Thank you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with AJAX in Firefox geoko BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 June 27th, 2009 11:57 AM
Firefox vs. IE - Javascript problem VerbatimBOT ASP.NET 2.0 Professional 2 September 25th, 2008 03:28 AM
xpath problem in firefox 3 asadallahi BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 August 13th, 2008 01:07 AM
firefox problem axeman XSLT 0 November 21st, 2005 10:35 AM
firefox session problem fender79 Classic ASP Professional 0 April 12th, 2005 02:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.