Dec 02, 2008, 10:14 PM
[FIXED] [V0.7] Bug with adding script 'Ext.getDom(...' during ajaxevent
On button AjaxEvent click, I want to set the value of a hiddenfield on the page. I simply did the following:
Dim template As String = "Ext.getDom('{0}').value='{1}';"
Me.btnTest.AddScript(String.Format(template, "HiddenFieldClientID", "SomeValue"))
This threw a javascript error. The actual script set to the client has '<raw>' prepended plus the last 2 characters are swapped. Looks like TokenUtils.ParseTokens thinks my script is a function because it starts with 'Ext.get'. Not a big deal. I changed the script to something else that works. Just wanted to point this out in case someone is running into a similar issue.