gnope php gtk gui gnope.org  

app doesnt work after update

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
stefan



Joined: 17 Apr 2006
Posts: 35
Location: Germany

PostPosted: Wed Sep 13, 2006 9:53 pm    Post subject: app doesnt work after update Reply with quote

hey gys i've update my gnope to v1.5.1. but somehow isn't my application working anymore...

for some reasons, i encounter a problem with DOM now. the method getElementById doesn't return the wanted element. with the former gnope it works???
any ideas??

also does the following:

Code:
$this->set_uposition(Gdk::screen_width() / 2, Gdk::screen_height() / 2);


doesnt work
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Sep 13, 2006 10:36 pm    Post subject: Reply with quote

what does the errors say? Gdk::screen_width() has been moved to GdkScreen::width(), the same with height
Back to top
stefan



Joined: 17 Apr 2006
Posts: 35
Location: Germany

PostPosted: Wed Sep 13, 2006 10:44 pm    Post subject: Reply with quote

yep, that works, but more urgent is my problem with getElementById()!
of course, i do validate the dom with schemavalidate('foo.xsd') and as said, with the former gnope it works.

are there any changes with dom in php5.1.4?? searching the net provided nothing.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Sep 13, 2006 10:57 pm    Post subject: Reply with quote

I would think there is a typo somewhere, but you probably checked that.

You could just swap the php versions and see if it makes a difference; gnope 1.0 used php 5.1.1 and gnope 1.5.1 uses php 5.1.4. php-gtk doesn't have any influence on the dom methods.
Back to top
stefan



Joined: 17 Apr 2006
Posts: 35
Location: Germany

PostPosted: Thu Sep 14, 2006 12:22 am    Post subject: Reply with quote

it can't be a typo, cos it works on gnope 1.0

i agree with you, that it depends on the php version, but i havent found anything on the net, where something like the change of some dom-functions was mentioned.
Back to top
stefan



Joined: 17 Apr 2006
Posts: 35
Location: Germany

PostPosted: Sun Dec 10, 2006 9:33 pm    Post subject: Reply with quote

just to let you know, if some encounters a similar problem:

if youre working with XMLDOM and getElementById, you need to set the parseOnValidate property of XMLDOM to true!!! dont ask why, but now it works!!! gosh am i happy Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.