[thelist] unsuscribe

Kathy Masterson kathy at howdyneighbor.biz
Thu May 18 12:45:04 CDT 2006



-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of
thelist-request at lists.evolt.org
Sent: Thursday, May 18, 2006 12:00 PM
To: thelist at lists.evolt.org
Subject: thelist Digest, Vol 39, Issue 27

Send thelist mailing list submissions to
	thelist at lists.evolt.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.evolt.org/mailman/listinfo/thelist
or, via email, send a message with subject or body 'help' to
	thelist-request at lists.evolt.org

You can reach the person managing the list at
	thelist-owner at lists.evolt.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of thelist digest..."


Today's Topics:

   1. iframe form calls to a parent (Daniel Kessler)
   2. UL Element, Bottom margin and links contained within...
      (Anthony Baratta)
   3. Re: iframe form calls to a parent ( VOLKAN ?Z?EL?K )
   4. Ereg (Chris Price)
   5. Re: Ereg (Matt Warden)
   6. Re: iframe form calls to a parent (John Hicks)
   7. Re: UL Element,	Bottom margin and links contained within...
      (John Hicks)
   8. Re: Ereg (John Hicks)
   9. Re: UL Element,	Bottom margin and links contained within...
      (Anthony Baratta)
  10. Re: Ereg (Matt Warden)
  11. Re: Search Function on Website (Jono)
  12. Re: Search Function on Website (Jeffrey Joslin)
  13. Re: Search Function on Website (Jeffrey Joslin)
  14. Re: Search Function on Website (ben morrison)


----------------------------------------------------------------------

Message: 1
Date: Wed, 17 May 2006 14:14:17 -0400
From: Daniel Kessler <danielk at umd.edu>
Subject: [thelist] iframe form calls to a parent
To: thelist at lists.evolt.org
Message-ID: <F20BEDE9-8361-4352-B840-D57E202A28B6 at umd.edu>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

I have an iframe with a form in it.  When the form submits, I want  
the parent of the iframe to go to the next page where I can use the  
form variables.  I do the submit through javascript using:
document.thinking.action="feedback.cfm";
document.thinking.submit();

But I'd like that action to target _parent.  I dunno how to do that.

thanks!
_____________________________

Daniel Kessler

College of Health and Human Performance
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
Phone: 301-405-2545
http://hhp.umd.edu





------------------------------

Message: 2
Date: Wed, 17 May 2006 06:53:23 -0700
From: "Anthony Baratta" <anthony at baratta.com>
Subject: [thelist] UL Element, Bottom margin and links contained
	within...
To: evolt <thelist at lists.evolt.org>
Message-ID: <f961edf833824efe26527d2f8a9113ac at baratta.com>
Content-Type: text/plain; charset="us-ascii"

Howdy...

I've been playing with making menus using UL and LI's. It's looking
"fabulous", but I have one last thing that is driving me bonkers. When I set
the bottom margin of the UL to be zero, the links "collapse" in IE. Mozilla
is fine.

To be more descriptive, as long as the margin for the UL element is default,
the links embeded in the LI elements work on any part of the text surrounded
by the A tag. When I remove the bottom margin, the "hoverable" area over the
text shrinks also, and is only about 2 pixel in height right at the very top
of the text.

There are two UL elements, a MainTab and a SubTab. Obviously MainTab "sits"
on top of SubTab. When I reverse the two elements and their children, so
SubTab is above MainTab, the hoverable area is not collapsed. Also, if I
remove the SubTab "group" everything is hunky-dory. So it appears that
SubTab is interfering with the MainTab in some way - but I'm not sure how.
SubTab's margins are also set to 0.

I can't figure out why. Anyone ever seen this before?? I can post code via
email, but I don't have FTP access here in the office to post it to the web.
(Stupid firewall.)

Thanks in advance.



------------------------------

Message: 3
Date: Thu, 18 May 2006 00:43:56 +0300
From: " VOLKAN ?Z?EL?K " <volkan.ozcelik at gmail.com>
Subject: Re: [thelist] iframe form calls to a parent
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID:
	<dfc81b090605171443t2bafa427r130bdec2b73bc279 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Daniel



> But I'd like that action to target _parent.  I dunno how to do that.


A quick google with keywords "form target" gave me this link as the first
result.

http://www.htmlcodetutorial.com/forms/_FORM_TARGET.html

And a quick google on "how to ask clever questions" gave me this link as the
first result.

http://www.catb.org/~esr/faqs/smart-questions.html

I love google :)

Hope that helps,
-- 
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/


------------------------------

Message: 4
Date: Wed, 17 May 2006 22:52:35 +0100
From: Chris Price <chris.price at choctaw.co.uk>
Subject: [thelist] Ereg
To: the list <thelist at lists.evolt.org>
Message-ID: <C09159B3.E3DD%chris.price at choctaw.co.uk>
Content-Type: text/plain; charset="US-ASCII"

I am uploading a csv file to the server and then exploding it in php to give
me data in arrays.

When an entry in the csv file has a comma in it, that entry is surrounded by
double quotes which helps to differentiate a textual comma from a delimiting
comma.

I want to escape the textual commas and delete the quotes before exploding
the strings into arrays.

I figured I could find the occurrences of "foo,foo" using ereg and replace
them with foo&#44;foo but I'm not sure how I should do that or if there is a
much simpler solution anyway.

Any ideas?

-- 
Chris Price

Choctaw

chris.price at choctaw.co.uk
http://www.choctaw.co.uk

 




------------------------------

Message: 5
Date: Wed, 17 May 2006 18:08:53 -0400
From: Matt Warden <mwarden at gmail.com>
Subject: Re: [thelist] Ereg
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <446B9EF5.2060107 at gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Price wrote:
> I am uploading a csv file to the server and then exploding it in php to
give
> me data in arrays.
> 
> When an entry in the csv file has a comma in it, that entry is surrounded
by
> double quotes which helps to differentiate a textual comma from a
delimiting
> comma.
> 
> I want to escape the textual commas and delete the quotes before exploding
> the strings into arrays.
> 
> I figured I could find the occurrences of "foo,foo" using ereg and replace
> them with foo&#44;foo but I'm not sure how I should do that or if there is
a
> much simpler solution anyway.


Something like (for simplicity i'll assume you're just converting it
commas to \,):

$subject = 'HI, my name is, "Warden, Matt"';
$foo = preg_replace('/"([^",\]*),([^",]*)"/', '"${1}\,${2}"', $subject);

Should give you:

HI, my name is, "Warden\, Matt"

Untested. You may have to escape some of the things in the expression.
If you run the regex again on the resulting content, it shouldn't
re-escape the comma (that's what the slash in the first character class
is for).

hth,

- --
Matt Warden
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEa570rI3LObhzHRMRAoplAJ4sIpEVVnRrGCZDcJxveKaSI47i3wCgnZqf
KY2NJDSNF1naTRMQ8bXjnP4=
=gK9F
-----END PGP SIGNATURE-----


------------------------------

Message: 6
Date: Wed, 17 May 2006 18:15:22 -0400
From: John Hicks <johnlist at gulfbridge.net>
Subject: Re: [thelist] iframe form calls to a parent
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <446BA07A.2040302 at gulfbridge.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Daniel Kessler wrote:
> I have an iframe with a form in it.  When the form submits, I want  
> the parent of the iframe to go to the next page where I can use the  
> form variables.  I do the submit through javascript using:
> document.thinking.action="feedback.cfm";
> document.thinking.submit();
> 
> But I'd like that action to target _parent.  I dunno how to do that.
> 
> thanks!

The target attribute of the form tag is what you want to use:
http://www.w3.org/TR/html4/present/frames.html#adef-target

--J


------------------------------

Message: 7
Date: Wed, 17 May 2006 18:19:14 -0400
From: John Hicks <johnlist at gulfbridge.net>
Subject: Re: [thelist] UL Element,	Bottom margin and links contained
	within...
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <446BA162.3020406 at gulfbridge.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Anthony Baratta wrote:
> I can post code via email, but I don't have FTP access here in the office
to post it to the web. (Stupid firewall.)

View the source of your page from your browser, copy the relevant part, 
and post it here.

--J


------------------------------

Message: 8
Date: Wed, 17 May 2006 18:23:05 -0400
From: John Hicks <johnlist at gulfbridge.net>
Subject: Re: [thelist] Ereg
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <446BA249.5010707 at gulfbridge.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Matt Warden wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Chris Price wrote:
>> I am uploading a csv file to the server and then exploding it in php to
give
>> me data in arrays.
>>
>> When an entry in the csv file has a comma in it, that entry is surrounded
by
>> double quotes which helps to differentiate a textual comma from a
delimiting
>> comma.
>>
>> I want to escape the textual commas and delete the quotes before
exploding
>> the strings into arrays.
>>
>> I figured I could find the occurrences of "foo,foo" using ereg and
replace
>> them with foo&#44;foo but I'm not sure how I should do that or if there
is a
>> much simpler solution anyway.
> 
> 
> Something like (for simplicity i'll assume you're just converting it
> commas to \,):
> 
> $subject = 'HI, my name is, "Warden, Matt"';
> $foo = preg_replace('/"([^",\]*),([^",]*)"/', '"${1}\,${2}"', $subject);
> 

But that only transforms quoted strings containing only one comma.

What about quoted strings containing more than one comma?

--J


------------------------------

Message: 9
Date: Wed, 17 May 2006 10:29:54 -0700
From: "Anthony Baratta" <anthony at baratta.com>
Subject: Re: [thelist] UL Element,	Bottom margin and links contained
	within...
To: thelist at lists.evolt.org <thelist at lists.evolt.org>
Message-ID: <27b8bee0299f96990d56720c1ab2d2a5 at baratta.com>
Content-Type: text/plain; charset="us-ascii"

----Original message-----
From: John Hicks johnlist at gulfbridge.net
Date: Wed, 17 May 2006 14:19:43 -0700
To: "thelist at lists.evolt.org" thelist at lists.evolt.org
Subject: [SPAM] Re: [thelist] UL Element,Bottom margin and links contained
within...

> Anthony Baratta wrote:
> > I can post code via email, but I don't have FTP access here in the
office to post it to the web. (Stupid firewall.)
> 
> View the source of your page from your browser, copy the relevant part, 
> and post it here.
> 

I've tried that before and one of the mail servers between here and evolt
eats the email. ;-P So I was thinking if necessary I could munge the HTML by
replacing angle brackets with square brackets.

I just solved it; however. ;-)

I added a position: relative to the SubTab UL and that seemed to stop the
infrigement of the MainTab "air space".

Really strange.



------------------------------

Message: 10
Date: Wed, 17 May 2006 20:54:13 -0400
From: Matt Warden <mwarden at gmail.com>
Subject: Re: [thelist] Ereg
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <446BC5B5.3000101 at gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Hicks wrote:
> Matt Warden wrote:
>>$subject = 'HI, my name is, "Warden, Matt"';
>>$foo = preg_replace('/"([^",\]*),([^",]*)"/', '"${1}\,${2}"', $subject);
>>
> 
> 
> But that only transforms quoted strings containing only one comma.
> 
> What about quoted strings containing more than one comma?

Right you are.

The regex allows you to run multiple passes, but obviously that is not
ideal.

My regex also has a bug where it won't match this:

"hel\lo, my friend"

because it fails to match at \.

Interesting problem. Maybe something like...

$count=0;
$results = array();
$atoms = explode(',', $subject);
for ($i=0; $i<count($atoms); $i++) {
	$results[$count] = $atoms[$i];
	$quotepos = strpos($atoms[$i], '"');
	// if quote found but no second quote found...
	if ($quotepos !== FALSE
		&& strpos($atoms[$i], '"', $quotepos) === FALSE) {
		// then there was at least 1 split within an atom.
		// append the next atoms, moving the pointer along
		// with us, until the matching " is found
		for ($i=$i+1; true; $i++) {
			// repair the false split
			$results[$count] .= '\,' . $atoms[$i];
			// i would put this in the loop condition,
			// but i'm not sure whether the condition
			// is tested with type-equality or not
			if (strpos($atoms[$i], '"') !== FALSE) break;
		} // end inner for
	}
	$count++;
} // end outer for

echo implode(',', $results);

Not a regex, I know. And, again, not tested. But hopefully this helps
the OP.

- --
Matt Warden
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEa8W0rI3LObhzHRMRApQnAKDKwRlXVIpFh2jFVfzEFGb8wT5jywCfTGVx
BCAucAYgvI+IrIjORBQaSvQ=
=CR00
-----END PGP SIGNATURE-----


------------------------------

Message: 11
Date: Wed, 17 May 2006 23:47:14 -0400
From: Jono <jono at charlestonwebsolutions.com>
Subject: Re: [thelist] Search Function on Website
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <C0916682.6365%jono at charlestonwebsolutions.com>
Content-Type: text/plain;	charset="US-ASCII"

> Surely if you want decent search functionality these days you buy a 3rd
party
> product that supports stemming (and other lexicography terms I don't even
> know), so that searches for "swim" would also returns pages that have
"swum",
> but would possibly return "swan" but at a much lower rating. Simply
matching,
> or catering for "mis-spellings" via simple algorithms is surely so "1990s"
> search technology?
> 
> Cheers

Anyone recommend a 3rd party search that is reasonable priced with the
features mentioned above?  Preferably PHP based and customizable with out
programming experience.  What is the "Industry Standard" 3rd party search
tool?  Is there one?

I have been tinkering with Gr0w Search, which is easy to set up, and
customize through CSS, and also has a Sitemap feature that is pretty nifty.
The best part about Gr0w Search is that it is VERY easy to set up...although
I did have some trouble that I eventually resolved.

Gr0w Search costs 1 pound - $1.83 (I think) - when I purchased it a month or
two ago.  For that price is is great, and I suspect that anyone with a good
PHP background could really improve upon it.  If nothing else it is a great
base to work from.

IF there is anyone who uses Gr0w Search and has customized it/improved it,
I would love to hear about that, as I am not much of a PHP programmer...yet.
I tried to post to the  Gr0w site but they deleted the post?

Gr0w Search:
http://tinyurl.com/s3mf2

  -- AND --

http://tinyurl.com/rm3xz



-- 
Jono Young
Designer | Developer | Illustrator
Charleston Web Solutions
"Bringing Higher Standards to the Lowcountry"
http://www.charlestonwebsolutions.com/





------------------------------

Message: 12
Date: Thu, 18 May 2006 00:09:06 -0400
From: Jeffrey Joslin <lists at joslins.net>
Subject: Re: [thelist] Search Function on Website
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <446BF362.6040208 at joslins.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jono wrote:
>> Surely if you want decent search functionality these days you buy a 3rd
party
>> product that supports stemming (and other lexicography terms I don't even
>> know), so that searches for "swim" would also returns pages that have
"swum",
>> but would possibly return "swan" but at a much lower rating. Simply
matching,
>> or catering for "mis-spellings" via simple algorithms is surely so
"1990s"
>> search technology?
>>
>> Cheers
> 
> Anyone recommend a 3rd party search that is reasonable priced with the
> features mentioned above?  Preferably PHP based and customizable with out
> programming experience.

Have you looked at the open-source Xapian search libraries?

http://www.xapian.org

Specific features:
(quite flexible and fast)
http://www.xapian.org/features.php


Other relevant schpeel (from their home page):
"If you're after a packaged search engine for your website, you should 
take a look at Omega, which is an application we supply built upon 
Xapian. But unlike most other website search solutions, Xapian's 
versatility allows you to extend Omega to meet your needs as they grow."

Email list thread specifically about
"Using Omega and/or Xapian and how to get started"
in a PHP/MySQL environment as you propose
(be sure to follow "Next Message" links for answers)

hth,

jj


------------------------------

Message: 13
Date: Thu, 18 May 2006 00:11:18 -0400
From: Jeffrey Joslin <lists at joslins.net>
Subject: Re: [thelist] Search Function on Website
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID: <446BF3E6.6060104 at joslins.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jeffrey Joslin wrote:
> Email list thread specifically about
> "Using Omega and/or Xapian and how to get started"
> in a PHP/MySQL environment as you propose
> (be sure to follow "Next Message" links for answers)

Whoops.  Forgot to make linky:
http://lists.tartarus.org/pipermail/xapian-discuss/2005-August/001034.html

> hth,
> 
> jj



------------------------------

Message: 14
Date: Thu, 18 May 2006 09:50:09 +0100
From: "ben morrison" <morrison.ben at gmail.com>
Subject: Re: [thelist] Search Function on Website
To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
Message-ID:
	<6073aef90605180150o45776533r142af57915b5b92f at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 5/18/06, Jono <jono at charlestonwebsolutions.com> wrote:

> Anyone recommend a 3rd party search that is reasonable priced with the
> features mentioned above?  Preferably PHP based and customizable with out
> programming experience.  What is the "Industry Standard" 3rd party search
> tool?  Is there one?

We've been using Ht.dig[0] (open source C++) for the last year with
good results[1]

[0] http://www.htdig.org/
[1] http://tinyurl.com/q933t

ben


------------------------------

_______________________________________________
Help: http://lists.evolt.org/mailman/listinfo/thelist

Archives: http://lists.evolt.org

End of thelist Digest, Vol 39, Issue 27
***************************************





More information about the thelist mailing list