| Summary: | Using infobus results in invalid runtime code | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Brian Svihovec <svihovec> | ||||||
| Component: | EDT | Assignee: | Huang Ji Yong <hjiyong> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | critical | ||||||||
| Priority: | P3 | CC: | greer, hjiyong, jqian | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
(For what it's worth, I do run the infobus FVT tests regularly, and they run successfully, so I'm confident JS gen produces the correct code....thought I'd mention that given the potentially misleading abstract for the bug....) Created attachment 204147 [details]
Add support to include js file and css file
This is an HTML gen problem. Import the project /org.eclipse.edt.rui.samples_0.7.0 from Kan-Sav-CVS.
When opening the file gallery.contents.egl, firebug shows that a post is being sent to load the file OpenAjax.js, and it shows that a response is returned, but the following line of code is never being executed in the HTML file:
if (xmlhttp.readyState==4) {
runHandler(); // This is NOT run
}
If it matters, I'm using Firefox 3.6.23.
I am also seeing similar issues with the Dojo Samples gallery - org.eclipse.edt.rui.dojo.samples_0.7.0 in the same repository.
Created attachment 204921 [details]
Fix
This bug happens in Firefox of version below 4. The reason is that, firefox won't invoke onreadystatechange for synchronous ajax call. This high severity defect was fixed several weeks ago, so I am closing. |
Create a RUIHandler with the following content: function start() Infobus.subscribe("foo", sectionClicked); end function sectionClicked(eventName string in, data any in) end When the handler is run, the contents of OpenAjax.js is displayed in the browser window. It appears that the usage of Infobus is resulting in an additional AJAX POST being generated into the root HTML document, but the result of that POST is not being placed in a <script> tag.