CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 6/22/2005 4:16:03 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
jukes1
Asp.Net User
TreeView renders non-standard (W3C DOM) javasript in cases, causing Mozilla incompatibility.6/22/2005 4:16:03 PM

0/0

Example app: I have an xml file that contains the data for a books index (ie, words grouped alphabetically). I am using a TreeView to navigate the list.

The list has 26 letter nodes, and about 300 word nodes total. I have the TreeView bound to an XmlDataSource. The PopulateOnDemand="True" for the letters is set because otherwise, .net embeds the whole 326 nodes into the html. This results in a file that is about 150K which is way to big, particularly if it is posting back.

There is also a DropDownList on the form for navigating into chapters directly.

The PopulateOnDemand="True" generates a bunch of Callback script. The function that causes the problem is:
function WebForm_InitCallback() {
    var count = theForm.elements.length;
    var element;
    for (var i = 0; i < count; i++) {
        element = theForm.elementsIdea [I];
        var tagName = element.tagName.toLowerCase();
        if (tagName == "input") {
            var type = element.type;
            if (type == "text" || type == "hidden" || type == "password" ||
                ((type == "checkbox" || type == "radio") && element.checked)) {
                __theFormPostData += element.name + "=" + WebForm_EncodeCallback(element.value) + "&";
            }
        }
        else if (tagName == "select") {
            var selectCount = element.children.length;
            for (var j = 0; j < selectCount; j++) {
                var selectChild = element.children[j];
                if ((selectChild.tagName.toLowerCase() == "option") && (selectChild.selected == true)) {
                    __theFormPostData += element.name + "=" + WebForm_EncodeCallback(selectChild.value) + "&";
                }
            }
        }
        else if (tagName == "textarea") {
            __theFormPostData += element.name + "=" + WebForm_EncodeCallback(element.value) + "&";
        }
    }
}
The element.children object doesn't exist in the W3C DOM, it is IE specific. Mozilla fails to run this function which fails to initialize the Callback functionality on the page. This means that Mozilla isn't able to populate nodes on demand. Note that this only becomes a problem when a TreeView and a DropDownList coexist on the same form. The offending code exists within the else if (tagName == "select") {...} block.

I posted this a .Net framework compatibility bug, but I'm looking for a workaround. I don't know anything about the WebResource.axd functionality. Is this something that I can customize, or am I stuck with Microsoft's offering?

Luke
jdixon
Asp.Net User
Re: TreeView renders non-standard (W3C DOM) javasript in cases, causing Mozilla incompatibility.6/23/2005 4:18:57 PM

0/0

This is fixed (a while back). Beta2 does not contain the fix though. No workaround AFAIK.

JD
This posting is provided "AS IS" with no warranties, and confers no rights.
We Are Hiring
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
pages render browser Content at ZDNet UK W3C Marks 'milestone' In DOM Protocol ... News Using non-standard HTML means pages are less likely to render consistently across different platforms, ...
Firefox, bah humbug: Insight - Security - ZDNet Australia The second trick does work because it's right there in the DOM standards. The Firefox coders have been very reluctant to port non-standard items, ...
O'Reilly Network: Mozilla DevCenter XML Transformations with CSS and DOM Mozilla permits XML to be rendered in the ... how to render XML in the browser with a minimum of CSS and JavaScript. ...
Mozilla 1.7 Changelog 132762 -, mozilla 0.9.8 doesn't render on linux for some pixel formats ...... 235930 -, Javascript (Switch+)|Case:| handling issues a false "function does ...
ICEfaces™ v1.6.0 Release Notes Jul 5, 2007 ... For this reason, application-initiated renders will apply only to the .... You must configure a non-standard web.xml file (not the one ...
ASP.NET UI Control Set Release History: Grid, Editor, Menu, Ajax ... RadAjax Validation issue -- non-ajaxified elements that cause no ..... GroupingSettings JavaScript error in case of Grid Client GroupBy with custom paging ...
ASP.NET and XHTML XHTML is a World Wide Web Consortium (W3C) standard that defines HTML as an XML ... will render a language attribute (for example, language="javascript"). ...
Planet Mozilla The most obvious reason is it would cause a massive bruised ego. It would be an undeniable ..... We are a non-profit hybrid. We aren’t trying to make money. ...
XUL - [/] LiNKMATRiX.de Open Education Search XMLHTTPRequest is not a standard part of Javascript or the DOM. The fact that this object ..... Also uses Gecko to render its entire user interface via XUL. ...
Ajaxian » Microsoft, Canvas, and the WHATWG Any filter/Active-X/IE only that has a W3C standard that is the same thing ... 7 ) Fix the bugs with DOM manipulation (such as pasting nodes) that cause the ...




Search This Site:










getting a control ready to be programmed during postback event

making a menu navigator dynamicly

newbie ? re: c# and vs

custom cotrol is so oddball

webhosting to run asp, asp.net 1.x -2.0

which host offers the most disk space? (i need a lot!)

will asp.net work in apache server

children show up after getdesigntimehtml()

connecting to outlook

cs1518 error in user control

microsoft visual web developer hosting and themes !?!

1&1 ms hosting

required field validator in control wrongfully triggering

how to create a checkboxlist with cs?

<summary> in vb.net?

need some help

getchildcontroltype method

property grid verb triggers windows form

change value of newline in datalist

why is processpostdata called twice?

reg "registerclientscriptblock"

designtimehtml - embedded resource

automatically inserting into initializecomponent()

hosting discount

search engine friendly user controls?

namevaluecollection for a checkbox

custom controls question#1

objects and viewstate

home server setup, server behind router issue

composition vs. rendering - best approach

  Privacy | Contact Us
All Times Are GMT