From nicolas.drosson at students.jku.at Tue Jun 5 04:18:23 2007 From: nicolas.drosson at students.jku.at (Nicolas Drosson) Date: Tue, 05 Jun 2007 12:18:23 +0200 Subject: [elinks-users] elinks -dump and image maps Message-ID: <20070605121823.tajave5wpcccksks@pop.uni-linz.ac.at> Hi, I'm looking for a way to read all the links in an imagemap using elinks -dump. It seems elinks can read them in browser mode but in dump mode, I get only [USEMAP] in text part and the link to the photo in references part. Is it possible to make all links of an image map visible in the references with all other links of the page? I've tried a lot using different parameters, but still did not find the way to do this. Maybe someone can help me. Thx in advance. Nico ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From Rgaudreau at manh.com Wed Jun 6 05:30:21 2007 From: Rgaudreau at manh.com (Roger Alix-Gaudreau) Date: Wed, 6 Jun 2007 07:30:21 -0400 Subject: [elinks-users] Javascript event support in eLinks? Message-ID: Good morning, I am running eLinks with the SpiderMonkey engine compiled in, and I am having some trouble using the onkeypress event, when it's registered for the document as a whole. That is, I have a piece of script at the bottom of the page that registers the onkeypress event for the document: document.onkeypress=evalKey; Earlier in the document is a script defining the evalKey function, which takes the keyboard event and analyzes it, to determine if a certain key was pressed and take some action: function evalKey(e) { //do some analysis } This works just fine in Firefox/Mozilla, and I can trigger the function in eLinks with an onclick event registered to a key, but it doesn't work in eLinks with the onkeypress event registered to the document. Is this due to a limitation in eLinks's document support, or a problem in the code supporting the onkeypress event, or a limitation in eLinks's support of the event model? My next step is to try registering the onkeypress event with the text field, but that's less than ideal -- I'd like to be able to capture and analyze the user's keystrokes whether the text field has focus or not. Thanks in advance for any help or advice you can offer, Roger Alix-Gaudreau -------------- next part -------------- An HTML attachment was scrubbed... URL: http://linuxfromscratch.org/pipermail/elinks-users/attachments/20070606/f9b0ce1a/attachment.html From Rgaudreau at manh.com Wed Jun 6 08:32:19 2007 From: Rgaudreau at manh.com (Roger Alix-Gaudreau) Date: Wed, 6 Jun 2007 10:32:19 -0400 Subject: [elinks-users] Javascript event support in eLinks? In-Reply-To: Message-ID: Some further detail... Rather than registering the onkeypress event with the document object, I have also tried registering it as part of the body tag, and as part of the text field. So, for example: References: Message-ID: <20070608044434.GA3426@diku.dk> Roger Alix-Gaudreau wrote Wed, Jun 06, 2007: > Do I need to approach this in a different way in eLinks? Is this a > problem with the onkeypress event in eLinks? First a caveat: I am not very familiar with the JavaScript support in ELinks, however, since nobody else answered I will give you the usual rant about the state of JavaScript support. JavaScript support is pretty much still experimental for ELinks. It may crash, corrupt your data, and otherwise lead to interesting unknown scenarios. Furthermore, the support is nowhere near complete, which is probably why you have problems getting this specific feature working. > Should I register a bug, and if so, what priority would its resolution > have? You are welcome to file a bug to raise the developers awareness of your problem. I would say this is a feature request and as such should have low priority. -- Jonas Fonseca From ant at zimage.com Sat Jun 30 12:03:44 2007 From: ant at zimage.com (Phillip Pi) Date: Sat, 30 Jun 2007 11:03:44 -0700 Subject: [elinks-users] renderer.c:1685: error: 'struct cache_entry' has no member named 'cache_mode' when compiling eLinks v0.11.3 in Debian (PowerPC) Message-ID: <20070630180344.GC15941@alpha.zimage.com> Hello, I am having problems compiling eLinks v0.11.3 in Debian (PowerPC). Here is the ending of the log: In file included from ../../.././src/cache/cache.h:6, from renderer.c:13: ../../.././src/util/time.h:47: error: expected ')' before 'n' In file included from renderer.c:13: ../../.././src/cache/cache.h:47: error: expected specifier-qualifier-list before 'off_t' ../../.././src/cache/cache.h:71: error: expected specifier-qualifier-list before 'off_t' ../../.././src/cache/cache.h:106: error: expected declaration specifiers or '...' before 'off_t' ../../.././src/cache/cache.h:107: error: expected declaration specifiers or '...' before 'ssize_t' ../../.././src/cache/cache.h:116: error: expected declaration specifiers or '...' before 'off_t' ../../.././src/cache/cache.h:118: error: expected declaration specifiers or '...' before 'off_t' renderer.c: In function 'html_special': renderer.c:1685: error: 'struct cache_entry' has no member named 'cache_mode' renderer.c:1686: error: 'struct cache_entry' has no member named 'expire' renderer.c:1694: error: 'struct cache_entry' has no member named 'cache_mode' renderer.c:1697: error: 'struct cache_entry' has no member named 'max_age' renderer.c:1698: error: 'struct cache_entry' has no member named 'expire' make[3]: *** [renderer.o] Error 1 make[3]: Leaving directory `/u00/home/ant/download/elinks-0.11.3/src/document/html' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/u00/home/ant/download/elinks-0.11.3/src/document' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/u00/home/ant/download/elinks-0.11.3/src' make: *** [all-recursive] Error 1 The rest of the log can be found here: http://pastebin.ca/597412 ... What's up? I think v0.11.2 compilation was fine. Thank you in advance. :) -- "It is not enough to be industrious; so are the ants. What are you industrious about?" --Henry David Thoreau /\___/\ / /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site) | |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net \ _ / E-mail: philpi at earthlink.net or ant at zimage.com ( ) From kon at iki.fi Sat Jun 30 18:40:29 2007 From: kon at iki.fi (Kalle Olavi Niemitalo) Date: Sun, 01 Jul 2007 03:40:29 +0300 Subject: [elinks-users] renderer.c:1685: error: 'struct cache_entry' has no member named 'cache_mode' when compiling eLinks v0.11.3 in Debian (PowerPC) In-Reply-To: <20070630180344.GC15941@alpha.zimage.com> References: <20070630180344.GC15941@alpha.zimage.com> Message-ID: <87y7i1c5xe.fsf@Astalo.kon.iki.fi> Phillip Pi writes: > In file included from ../../.././src/cache/cache.h:6, > from renderer.c:13: > ../../.././src/util/time.h:47: error: expected ')' before 'n' > In file included from renderer.c:13: > ../../.././src/cache/cache.h:47: error: expected > specifier-qualifier-list before 'off_t' This looks like ELinks bug 936: off_t is not defined. http://bugzilla.elinks.cz/show_bug.cgi?id=936 However, elinks-0.11.3/src/util/time.h contains: #ifdef HAVE_SYS_TYPES_H #include #endif And should define off_t. So presumably something went wrong in configure and made it not define HAVE_SYS_TYPES_H. > The rest of the log can be found here: http://pastebin.ca/597412 ... 42. checking for sys/types.h... yes I don't know what happened. Please post your config.log and config.h, or attach them to bug 936. And please try compiling this test program: #include int main(void) { return (off_t) 0; } Just to see whether is defining off_t as expected. From ant at zimage.com Sat Jun 30 20:48:13 2007 From: ant at zimage.com (Phillip Pi) Date: Sat, 30 Jun 2007 19:48:13 -0700 Subject: [elinks-users] renderer.c:1685: error: 'struct cache_entry' has no member named 'cache_mode' when compiling eLinks v0.11.3 in Debian (PowerPC) In-Reply-To: <87y7i1c5xe.fsf@Astalo.kon.iki.fi> References: <20070630180344.GC15941@alpha.zimage.com> <87y7i1c5xe.fsf@Astalo.kon.iki.fi> Message-ID: <20070701024813.GA32053@alpha.zimage.com> > > In file included from ../../.././src/cache/cache.h:6, > > from renderer.c:13: > > ../../.././src/util/time.h:47: error: expected ')' before 'n' > > In file included from renderer.c:13: > > ../../.././src/cache/cache.h:47: error: expected > > specifier-qualifier-list before 'off_t' > > This looks like ELinks bug 936: off_t is not defined. > http://bugzilla.elinks.cz/show_bug.cgi?id=936 > > However, elinks-0.11.3/src/util/time.h contains: > > #ifdef HAVE_SYS_TYPES_H > #include > #endif > > And should define off_t. So presumably something > went wrong in configure and made it not define HAVE_SYS_TYPES_H. > > > The rest of the log can be found here: http://pastebin.ca/597412 ... > > 42. checking for sys/types.h... yes > > I don't know what happened. Please post your config.log and config.h, I don't want to get an account for eLink's bugzilla but I did post the two config files in a zip file: http://www.savefile.com/files/854658 ... > or attach them to bug 936. And please try compiling this test program: > > #include > int main(void) > { > return (off_t) 0; > } > > Just to see whether is defining off_t as expected. I edited my elinks-0.11.3/src/util/time.h file with the above suggestion. The beginning of the file looks like this: #ifndef EL__UTIL_TIME_H #define EL__UTIL_TIME_H #ifdef HAVE_SYS_TYPES_H #include int main(void) { return (off_t) 0; } #endif #ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_TIME_H #include #endif typedef long milliseconds_T; ... I hope that was correct. However, I got errors again: http://pastebin.ca/598156 ... Again, config files as a zip file if you need them: http://www.savefile.com/files/854708 ... I hope they helped. :) P.S. I hope I can compile this version on my old MacOS X 10.2.8 on an old PowerBook G4. [grin] -- "It is not enough to be industrious; so are the ants. What are you industrious about?" --Henry David Thoreau /\___/\ / /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site) | |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net \ _ / E-mail: philpi at earthlink.net or ant at zimage.com ( )