Playing with Beagle webinterface: "XML Parsing Error..."

2008-10-12 Thread Marco
Hi,

I'm trying to change the webinterface home page.
I'd like to have a form similar to the one of google advanced search:
http://www.google.com/advanced_search

Being a total newbie at all this, I've made a copy of all the files from
/usr/share/beagle/webinterface/ to
/usr/share/beagle/webinterface/advancedsearch/
to start playing around without breaking Beagle.

I've changed the "Advance search" link to point to
the new ./advancedsearch/index.xml.

In firefox 3.0.3, if I point to
http://localhost:4000/
the original page works flawlessly.
Once I click on "advance search" I move to
http://localhost:4000/advancedsearch/index.xml
but I have this error:

XML Parsing Error: no element found
Location: http://localhost:4000/advancedsearch/index.xml
Line Number 1, Column 1:
^

It works if I use the address
file:///usr/share/beagle/webinterface/advancedsearch/index.xml
but then even the normal search stops working, with firefox saying
"...can't find the file at
/usr/share/beagle/webinterface/POST?querytext=whatever&qyerysubmit=Search..."

Any clue? I've put a copy of my current
/usr/share/beagle/webinterface/ folder here:
https://rottame.dyndns.org/webinterface.tar.gz .
The two index.xsl pages are still identical except for the logo and
the "advanced search" link.

Thanks for any clue! Marco

-- 




___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Playing with Beagle webinterface: "XML Parsing Error..."

2008-10-12 Thread Marco
Marco, in data 10/12/2008 04:05 PM, ha scritto:

> It works if I use the address 
> file:///usr/share/beagle/webinterface/advancedsearch/index.xml 
> but then even the normal search stops working, with firefox
> saying "...can't find the file at 
> /usr/share/beagle/webinterface/POST?querytext=whatever&qyerysubmit=Search..."
> 
Ok on this one, now working with the "file:///" address. Had to
correct a line on "default.js", putting "index.xml" instead of "/"
in "xmlhttp.open". I told you I was a newbie! :-)

> Any clue? I've put a copy of my current 
> /usr/share/beagle/webinterface/ folder here: 
> https://rottame.dyndns.org/webinterface.tar.gz .

Even better: https://rottame.dyndns.org/webinterface/

Bye, Marco

-- 
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Playing with Beagle webinterface: "XML Parsing Error..."

2008-10-12 Thread D Bera
Hi Marco,

On Sun, Oct 12, 2008 at 10:05 AM, Marco <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to change the webinterface home page.
> I'd like to have a form similar to the one of google advanced search:
> http://www.google.com/advanced_search
>
> Being a total newbie at all this, I've made a copy of all the files from
> /usr/share/beagle/webinterface/ to
> /usr/share/beagle/webinterface/advancedsearch/
> to start playing around without breaking Beagle.

I am not sure I understand what all is going on. But as a caution,
copying files to a different location and creating new files will not
always work (security related precaution). To use files from a
different location, start beagled with the environment variable
BEAGLE_WEBSERVER_DIR (*) set to the directory; then beagled will serve
pages from the new directory.

Accessing a new file e.g. http://localhost:4000/foobar.xml is a
different story altogether and will not work without adding a line to
the source :-(

- dBera

(*) http://beagle-project.org/Environment_Variables

-- 
-
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Playing with Beagle webinterface: "XML Parsing Error..."

2008-10-13 Thread Marco
D Bera, in data 10/13/2008 01:02 AM, ha scritto:

> I am not sure I understand what all is going on.

Hi Debajyoti,

Just a newbie trying some "learning by doing"! :-)

> But as a caution, copying files to a different location and
> creating new files will not always work (security related
> precaution). To use files from a different location, start
> beagled with the environment variable BEAGLE_WEBSERVER_DIR (*)
> set to the directory; then beagled will serve pages from the new
> directory.

Thanks a lot! I'll try this.

> Accessing a new file e.g. http://localhost:4000/foobar.xml is a 
> different story altogether and will not work without adding a
> line to the source :-(

Ouch! No way I'm going anywhere near the source. I hope I'll be able
to do something playing with the contents of ./webinterface.

Thanks again!

Marco

-- 
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers