Question : perl OpenOffice::OODoc need to get and add tekst into a given frame

hI
I need to add text into a frame of a OpenOffice document
to get the frame i use following code :

gives error: Undefined subroutine &main::getFrameElement called at C:\scripts\test1.pl line 10.
what is wrong ?
when i change my $element = getFrameElement('frame_name'); to
my $element = OpenOffice::OODoc::XPath::getFrameElement('frame_name');
I get a undefined
in XPath.pm i need to give something as my $self what is that ?
sub      getFrameElement
      {
      my $self      = shift;
      my $frame      = shift;
      return undef unless defined $frame;
      my $tag            = shift || 'draw:frame';
thks
for your reply
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
use strict;
use OpenOffice::OODoc;
use OpenOffice::OODoc::Meta;
use OpenOffice::OODoc::XPath ;
use OpenOffice::OODoc::Image;
&test;
sub test {
my $doc = ooDocument(file =>  "C:\\macros\\OOSjablonen\\test.odt") ;
my $element = getFrameElement('frame_name');
print "el: $element text:\n";
}

Answer : perl OpenOffice::OODoc need to get and add tekst into a given frame

Sure try this
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
$.ajax({ 
                        type: "POST", 
                        url: "root/to/file.php", 
                        data: dataString, 
                        success: function(data) 
                        { 
                            alert(data);
                            $('#addshipping').hide(); 
                            $('#success').fadeIn(1000,function() 
                            { 
                                parent.$.fancybox.close(); 
                            }); 
                        } 
                    })
Random Solutions  
 
programming4us programming4us