products forums blog support careers about
  History | Log In     View a printable version of the current page.  
PRO USERS, to ensure 'PRIORITY SUPPORT' make sure that your ASAP account is "tagged" when you file the request. Click here for instructions on how to tag your account.
Issue Details (XML | Word | Printable)

Key: JXR-383
Type: Bug Bug
Status: Reviewed Reviewed
Priority: Unprioritized Unprioritized
Assignee: Kevin Lindsey
Reporter: James Burke
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Aptana Jaxer

getComputedStyle does not work in runat=server onserverload callback

Created: 02/Oct/08 12:21 AM   Updated: 02/Oct/08 01:35 PM
Component/s: JavaScript, Parsing, runat
Affects Version/s: 1.0.0
Fix Version/s: 1.x

File Attachments: 1. HTML File jaxerSimple2.html (0.6 kb)


Importance: Average
Specific Build Number: 1.0.0.3674_RC_B
Studio Install Type: N/A
Operating System: Mac OS X
Relevant Browser: Firefox
Participants: James Burke and Kevin Lindsey


 Description  « Hide
In a runat=server script in a onserverload callback, asking for:

node.ownerDocument.defaultView.getComputedStyle(node, null);

returns null, but the expected behavior is to receive an object of style properties.

The attached file demonstrates the bug. You can uncomment out the commented lines to see how it would work in a browser (Firefox) instead of a runat=server section.

This bug currently prevents the Dojo Toolkit from working in Aptana:
http://www.dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/running-dojo-1-2-aptana-jaxer



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Kevin Lindsey - 02/Oct/08 01:34 PM
Hi James,

As things are now, we don't do any rendering within Jaxer, which in turns means we won't have style information, unfortunately. I'm moving this to 1.x since we're about to release 1.0. Aptana can revisit this ticket after that release to determine the feasibility and extend of supporting this feature.

Thanks,
Kevin