Re: dom manipulation works in IE but not in FF

2009-07-06 Thread bhomass

having some text nodes aren't so bad. the thing is after reading two
text nodes, it does not see the table node at all. why should that be?

for supplementary information, this is GWT 1.5.3 and I am talking
about deployed mode.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: dom manipulation works in IE but not in FF

2009-07-03 Thread waf


For me it looks like you are not creating this form using GWT,
because if you did and because FormPanel is a SimplePanel you will
end up with a single panel/table inside Form without any text nodes.
That's the way it looks like in my example.
But if you are creating this form some other way I would say
it is normal that you will have extra text nodes,
because any whitespace will result in a text node.
As far as I know you shouldn't have those text nodes
if form/table opening and closing tags are written like this


...


--
waf

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: dom manipulation works in IE but not in FF

2009-07-03 Thread bhomass

it fails for both of the form nodes in this doc. will you mind try it
out in FF like you did before? you get two #text nodes when you do
formelement.getChildNodes(), where the right answer is one table
element.










 

 

 

 

 

 

 

 

 

 
sales
 
number:
 

 

 

 

 




 

 

 

 

 

 

 
Seq NumberĀ 
 

 

 
Serial Number
 

 

 
Created On
 

 

 
Client
 

 

 
Created By
 

 

 
Spec
 

 

 
Total Units
 

 

 
Apparent Total
 

 

 
Grand Total
 

 

 

 

 
1
 

 

 
NP98787
 

 

 
Nicole Kidman
 

 

 
04-09-2008
 

 

 
Good
 

 

 
65
 

 

 
$89.00
 

 

 
$4,800.00
 

 

 
$9,000.00
 

 

 

 

 
2
 

 

 
HY90s
 

 

 
Woody Allen
 

 

 
3-23-2009
 

 

 
Great
 

 

 
87
 

 

 
$29.00
 

 

 
$1,300.00
 

 

 
$4,030.00
 

 

 

 

 
3
 

 

 
LO98d
 

 

 
Russell Crow
 

 

 
1-21-2004
 

 

 
Nice
 

 

 
76
 

 

 
$32.00
 

 

 
$3,100.00
 

 

 
$6,120.00
 

 

 

 

 








--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: dom manipulation works in IE but not in FF

2009-07-03 Thread waf

Hi,

I've checked this and it seems to work fine (as expected)
in web mode (IE7, Chrome, FF 3.0.11/3.5) but it breaks in
hosted mode on linux/firefox with the following exception

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
this.removeChild is not a function
 fileName: jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/dom/client/Node.java
 lineNumber: 285
 stack: ([object
HTMLFormElement])@jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/dom/client/Node.java:285
static void com.google.gwt.user.client.DOM.dispatchEvent
(com.google.gwt.user.client.Event,com.google.gwt.user.client.Element,com.google.gwt.user.client.EventListener)
([object
Event],[object HTMLButtonElement],[object gwt_nativewrapper_class])@:0
([object Event])@jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/user/client/impl/
DOMImplStandard.java:169
@:0

   at com.google.gwt.dom.client.Node$.removeChild$(Native Method)
   at pl.waf.test.client.Form.removeForm(Form.java:59)
   at pl.waf.test.client.Form.access$0(Form.java:50)
   at pl.waf.test.client.Form$1.onClick(Form.java:44)
   at com.google.gwt.event.dom.client.ClickEvent.dispatch
(ClickEvent.java:54)
   at com.google.gwt.event.dom.client.ClickEvent.dispatch
(ClickEvent.java:1)
   at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.fireEvent(HandlerManager.java:65)
   at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.access$1(HandlerManager.java:53)
   at com.google.gwt.event.shared.HandlerManager.fireEvent
(HandlerManager.java:178)
   at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:
52)
   at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent
(DomEvent.java:116)
   at com.google.gwt.user.client.ui.Widget.onBrowserEvent
(Widget.java:90)
   at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:
1320)
   at com.google.gwt.user.client.DOM.dispatchEventAndCatch
(DOM.java:1299)
   at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)

--
waf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: dom manipulation works in IE but not in FF

2009-07-03 Thread waf

Hi,

I've checked this and it seems to work fine (as expected)
in web mode (IE7, Chrome, FF 3.0.11/3.5) but it breaks in
hosted mode on linux/firefox with the following exception

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
this.removeChild is not a function
 fileName: jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/dom/client/Node.java
 lineNumber: 285
 stack: ([object
HTMLFormElement])@jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/dom/client/Node.java:285
static void com.google.gwt.user.client.DOM.dispatchEvent
(com.google.gwt.user.client.Event,com.google.gwt.user.client.Element,com.google.gwt.user.client.EventListener)
([object
Event],[object HTMLButtonElement],[object gwt_nativewrapper_class])@:0
([object Event])@jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/user/client/impl/
DOMImplStandard.java:169
@:0

   at com.google.gwt.dom.client.Node$.removeChild$(Native Method)
   at pl.waf.test.client.Form.removeForm(Form.java:59)
   at pl.waf.test.client.Form.access$0(Form.java:50)
   at pl.waf.test.client.Form$1.onClick(Form.java:44)
   at com.google.gwt.event.dom.client.ClickEvent.dispatch
(ClickEvent.java:54)
   at com.google.gwt.event.dom.client.ClickEvent.dispatch
(ClickEvent.java:1)
   at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.fireEvent(HandlerManager.java:65)
   at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.access$1(HandlerManager.java:53)
   at com.google.gwt.event.shared.HandlerManager.fireEvent
(HandlerManager.java:178)
   at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:
52)
   at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent
(DomEvent.java:116)
   at com.google.gwt.user.client.ui.Widget.onBrowserEvent
(Widget.java:90)
   at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:
1320)
   at com.google.gwt.user.client.DOM.dispatchEventAndCatch
(DOM.java:1299)
   at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)

--
waf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: dom manipulation works in IE but not in FF

2009-07-02 Thread bhomass

this is one serious bug. no one knows anything about it?

I checked it out using gwt-log. in FF, even though
currentForm.getInnerHTML() returns the right element,
currentForm.getChildNodes() returns two non-existent #text.

is this a known problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



dom manipulation works in IE but not in FF

2009-06-23 Thread bhomass

I am doing an operation in which I remove a  but keep all its
children.

Element parent = (Element) currentForm.getParentElement();

NodeList formChildren = currentForm.getChildNodes(); //
for (int i = 0; i < formChildren.getLength(); i++) {
parent.insertBefore(formChildren.getItem(i), 
currentForm);
}
parent.removeChild(currentForm);

this code works in hosted browser. it works after compilation in IE,
but failes in FF.
FF removes the whole thing. there is nothing left after removing the
form.

how would one go about debugging something like this?

is this a known cross browser problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---