From webguync at gmail.com Mon Jun 9 16:46:09 2008
From: webguync at gmail.com (Bruce Gilbert)
Date: Mon, 9 Jun 2008 17:46:09 -0400
Subject: [thelist] help with JS highlighting of
onclick
Message-ID: <463b785d0806091446j629ca20fged51a7ca818960b0@mail.gmail.com>
Can anyone help me with some JS. I have an input select checkbox
within a
Tag and I want the whole cell to highlight when you
click the checkbox, and remain highlighted throughout the process.
There should be the ability for the user to higlight for than one box
of course. The form has to be named since there are more than one form
on the page.
the HTML code is pulling results from a MySQL table is looks like this:
echo '
I haven't been able to come up with anything by googling yet :-)
--
::Bruce::
From land at aol.com Mon Jun 9 18:41:58 2008
From: land at aol.com (Dave Land)
Date: Mon, 9 Jun 2008 16:41:58 -0700
Subject: [thelist] help with JS highlighting of
onclick
In-Reply-To: <463b785d0806091446j629ca20fged51a7ca818960b0@mail.gmail.com>
References: <463b785d0806091446j629ca20fged51a7ca818960b0@mail.gmail.com>
Message-ID:
On Jun 9, 2008, at 2:46 PM, Bruce Gilbert wrote:
> Can anyone help me with some JS. I have an input select checkbox
> within a
Tag and I want the whole cell to highlight when you
> click the checkbox, and remain highlighted throughout the process.
> There should be the ability for the user to higlight for than one box
> of course. The form has to be named since there are more than one form
> on the page.
>
> the HTML code is pulling results from a MySQL table is looks like
> this:
>
> echo '
'.$chk.' />
Here's a really simplistic sample that I _think_ does what you want:
When the checkbox in any of the three cells is checked, its cell
background is set to yellow; otherwise, it is set to transparent.
Obviously, you wouldn't want to repeat the same darn code in every
cell (but would move it up into a function in the head), and nobody
who has the slightest love for people who might have to update his
code later would use style attributes (but would instead use classes
and CSS declarations), but I hope this steers you in the right
direction...
test
From mark.macinnes at gmail.com Tue Jun 10 10:47:47 2008
From: mark.macinnes at gmail.com (Mark MacInnes)
Date: Tue, 10 Jun 2008 16:47:47 +0100
Subject: [thelist] Protect PHP Application
Message-ID: <78ade31a0806100847j1ee7a1d2h8fc68514b4dae123@mail.gmail.com>
Hello,
Recently, one of my clients has employed an in-house web developer. Whilst I
am (relatively) happy to deal with this guy, he has been asking a huge
number of questions about how the site operates as well as questioning my
abilities (which blatantly being very inexperience himself). I amalso
concerned with this individual taking my application and selling it off as
his own work.
So I have two main issues. How would you/your company deal with this
situation? Would you answer every question in detail, thus effectively
training up this guy and giving work away that strictly should be ours? Or
would you politely state that it is not in your interests to train this
individual and that whilst you offer support to the client in terms of
running the site and any bugs that appear, you do not in terms of how it is
coded?
Secondly, how would you protect your application? Obviously copyright grants
me protection, but this is only effective when you know the product has been
stolen. I have come up with having a small function that checks the server
ip and e-mails back if it does not match authorised IPs, however this could
be easily disabled if removed. I also have come up with moving some core
files to another location on the server (the client is hosted on my own
server) and not giving the developer access to these files, thus if the
application is stolen the developer wouldn't be able to run the application
without lots of effort, however this still means that he would have access
to a lot of code. I realise there is only so much that can be done to
protect my work in this environment, however I want to employ at least a few
tactics.
Cheers,
Mark
From eccentric.one at gmail.com Tue Jun 10 21:13:29 2008
From: eccentric.one at gmail.com (Jeremy Weiss)
Date: Tue, 10 Jun 2008 21:13:29 -0500
Subject: [thelist] Protect PHP Application
In-Reply-To: <78ade31a0806100847j1ee7a1d2h8fc68514b4dae123@mail.gmail.com>
References: <78ade31a0806100847j1ee7a1d2h8fc68514b4dae123@mail.gmail.com>
Message-ID:
Assuming you're app is coded in PHP, I'd recommend Zend Optimizer. Just
encrypt the code with your ip check function in it.
If it were me, I'd go with the option of sending the new guy an email
politely explaining that you don't provide training, just support and that
he should look elsewhere for help learning... maybe even throw him a link to
a for dummies book at amazon. But that's just me, because I enjoy messing
with folks. :)
-jeremy
On Tue, Jun 10, 2008 at 10:47 AM, Mark MacInnes
wrote:
> Hello,
>
> Recently, one of my clients has employed an in-house web developer. Whilst
> I
> am (relatively) happy to deal with this guy, he has been asking a huge
> number of questions about how the site operates as well as questioning my
> abilities (which blatantly being very inexperience himself). I amalso
> concerned with this individual taking my application and selling it off as
> his own work.
>
> So I have two main issues. How would you/your company deal with this
> situation? Would you answer every question in detail, thus effectively
> training up this guy and giving work away that strictly should be ours? Or
> would you politely state that it is not in your interests to train this
> individual and that whilst you offer support to the client in terms of
> running the site and any bugs that appear, you do not in terms of how it is
> coded?
>
> Secondly, how would you protect your application? Obviously copyright
> grants
> me protection, but this is only effective when you know the product has
> been
> stolen. I have come up with having a small function that checks the server
> ip and e-mails back if it does not match authorised IPs, however this could
> be easily disabled if removed. I also have come up with moving some core
> files to another location on the server (the client is hosted on my own
> server) and not giving the developer access to these files, thus if the
> application is stolen the developer wouldn't be able to run the application
> without lots of effort, however this still means that he would have access
> to a lot of code. I realise there is only so much that can be done to
> protect my work in this environment, however I want to employ at least a
> few
> tactics.
>
> Cheers,
> Mark
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
--
--
Internet Consultant | Blue Phoenix Consulting, LLC
Online Lead Generation & Internet Consulting
http://www.BluePhoenixConsulting.com
From fredthejonester at gmail.com Wed Jun 11 02:55:21 2008
From: fredthejonester at gmail.com (Fred Jones)
Date: Wed, 11 Jun 2008 09:55:21 +0200
Subject: [thelist] Protect PHP Application
In-Reply-To: <78ade31a0806100847j1ee7a1d2h8fc68514b4dae123@mail.gmail.com>
References: <78ade31a0806100847j1ee7a1d2h8fc68514b4dae123@mail.gmail.com>
Message-ID: <177c0a10806110055m1cf3f2f5hfb44d07127403232@mail.gmail.com>
> So I have two main issues. How would you/your company deal with this
> situation? Would you answer every question in detail, thus effectively
> training up this guy and giving work away that strictly should be ours?
Is there any reason you would do that? Your question seems to beg its
own answer, no?
> Or
> would you politely state that it is not in your interests to train this
> individual and that whilst you offer support to the client in terms of
> running the site and any bugs that appear, you do not in terms of how it is
> coded?
Same (well converse technically) answer here. :)
> Secondly, how would you protect your application? Obviously copyright grants
> me protection, but this is only effective when you know the product has been
> stolen. I have come up with having a small function that checks the server
> ip and e-mails back if it does not match authorised IPs, however this could
> be easily disabled if removed. I also have come up with moving some core
> files to another location on the server (the client is hosted on my own
> server) and not giving the developer access to these files, thus if the
> application is stolen the developer wouldn't be able to run the application
> without lots of effort, however this still means that he would have access
> to a lot of code. I realise there is only so much that can be done to
> protect my work in this environment, however I want to employ at least a few
> tactics.
Why does he need any access whatsoever? Move all the files away! Give
him access to templates or whatever files he NEEDS to access.
Why give them anything that's not theirs?
Fred
From btesanovic at gmail.com Wed Jun 11 10:46:42 2008
From: btesanovic at gmail.com (Bojan Tesanovic)
Date: Wed, 11 Jun 2008 17:46:42 +0200
Subject: [thelist] Protect PHP Application
In-Reply-To: <78ade31a0806100847j1ee7a1d2h8fc68514b4dae123@mail.gmail.com>
References: <78ade31a0806100847j1ee7a1d2h8fc68514b4dae123@mail.gmail.com>
Message-ID: <039A26D7-3EF2-44F3-8292-80AC5CF4D3FE@gmail.com>
Hey there
my opinion on code obfuscating encoding just for somebody not to
steal it
is not worth the effort, let them take it sell it whatever
they wont go further up the life ;) , on the other side
you have you skills brain to make even better application another one
and N-th one don't even bother with those guys.
Help? I would give him one email on guidelines and overview of app
and thats all, you don't need to prove yourself to another programmer
and have long discussions explaining details ... if he is better let
him
make brand new one ....
On Jun 10, 2008, at 5:47 PM, Mark MacInnes wrote:
> Hello,
>
> Recently, one of my clients has employed an in-house web developer.
> Whilst I
> am (relatively) happy to deal with this guy, he has been asking a huge
> number of questions about how the site operates as well as
> questioning my
> abilities (which blatantly being very inexperience himself). I amalso
> concerned with this individual taking my application and selling it
> off as
> his own work.
>
> So I have two main issues. How would you/your company deal with this
> situation? Would you answer every question in detail, thus effectively
> training up this guy and giving work away that strictly should be
> ours? Or
> would you politely state that it is not in your interests to train
> this
> individual and that whilst you offer support to the client in terms of
> running the site and any bugs that appear, you do not in terms of
> how it is
> coded?
>
> Secondly, how would you protect your application? Obviously
> copyright grants
> me protection, but this is only effective when you know the product
> has been
> stolen. I have come up with having a small function that checks the
> server
> ip and e-mails back if it does not match authorised IPs, however
> this could
> be easily disabled if removed. I also have come up with moving some
> core
> files to another location on the server (the client is hosted on my
> own
> server) and not giving the developer access to these files, thus if
> the
> application is stolen the developer wouldn't be able to run the
> application
> without lots of effort, however this still means that he would have
> access
> to a lot of code. I realise there is only so much that can be done to
> protect my work in this environment, however I want to employ at
> least a few
> tactics.
>
> Cheers,
> Mark
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
Bojan Tesanovic
http://www.carster.us/
From aaronvegh at gmail.com Wed Jun 11 11:00:31 2008
From: aaronvegh at gmail.com (Aaron Vegh)
Date: Wed, 11 Jun 2008 12:00:31 -0400
Subject: [thelist] Filtering an array in PHP for multiple criteria
Message-ID: <4386c5b20806110900k7289d12dwbbe7da50ab0edc19@mail.gmail.com>
Hi all,
I've been breaking my brain on this problem for a while now, so I'm
hoping there's some smarter PHP devs on this list than myself! That
shouldn't be too hard. :-P
Assuming an array like this:
Array {
[0] Object {
category => "Workboot"
toe => "Steel"
}
[1] Object {
category => "Workboot"
toe => "Aluminum"
}
[2] Object {
category => "Athletic"
toe => "Steel"
}
The user has to choose from a number of criteria. If they choose the
Workboot category and Steel toe, then the result array should contain
only the first object in the array above. How the heck do you write a
function that would do that??? Owing to the way the database and
application are set up, I can't pull the results from the database
using SQL; I have to get the entire catalogue out of the database, and
then filter the results as they appear in this array. Any thoughts or
pointers would be received gratefully. :-)
Thanks!
Aaron.
--
Aaron Vegh, Principal
Innoveghtive Inc.
P: (647) 477-2690
C: (905) 924-1220
www.innoveghtive.com
www.website-in-a-day.com
From matt at camadro.com Wed Jun 11 11:49:05 2008
From: matt at camadro.com (Matt McKeon)
Date: Wed, 11 Jun 2008 12:49:05 -0400
Subject: [thelist] Filtering an array in PHP for multiple criteria
In-Reply-To: <4386c5b20806110900k7289d12dwbbe7da50ab0edc19@mail.gmail.com>
References: <4386c5b20806110900k7289d12dwbbe7da50ab0edc19@mail.gmail.com>
Message-ID: <48500201.8050008@camadro.com>
Aaron Vegh wrote:
> Hi all,
> I've been breaking my brain on this problem for a while now, so I'm
> hoping there's some smarter PHP devs on this list than myself! That
> shouldn't be too hard. :-P
>
> Assuming an array like this:
>
> Array {
> [0] Object {
> category => "Workboot"
> toe => "Steel"
> }
>
> [1] Object {
> category => "Workboot"
> toe => "Aluminum"
> }
>
> [2] Object {
> category => "Athletic"
> toe => "Steel"
> }
>
> The user has to choose from a number of criteria. If they choose the
> Workboot category and Steel toe, then the result array should contain
> only the first object in the array above. How the heck do you write a
> function that would do that??? Owing to the way the database and
> application are set up, I can't pull the results from the database
> using SQL; I have to get the entire catalogue out of the database, and
> then filter the results as they appear in this array. Any thoughts or
> pointers would be received gratefully. :-)
>
> Thanks!
> Aaron.
>
>
Have you tried just looping through that array and doing a test on
category and toe values? ie)
$usersCat = SOME_VALUE;
$usersToe = SOME_VALUE;
$resuls = array();
for($i = 0, $c = count($catalog); $i < $c; $i++) {
if($catalog[$i]['category'] == $usersCat && $catalog[$i]['toe'] ==
$usersToe) {
$results = $catalog[$i];
}
}
I don't know the size of your data set, but that could be an option (not
tested). There are plenty of helpful array functions too
.
HTH
Matt
From EvoltList at no-pun.com Wed Jun 11 11:56:48 2008
From: EvoltList at no-pun.com (EvoltList at no-pun.com)
Date: Wed, 11 Jun 2008 12:56:48 -0400
Subject: [thelist] javascript form validation help
Message-ID: <7BCAC1C31A024354BC192D75F81E05EE@TymeToshiba>
Okay, I suck at javascript (VB script, no problem). Apparently, of the many
times I've written form validation, I never had to deal with radio buttons
as conditionals. Could use some code help here. Form ref:
https://shop.wamalaw.com/Inc_Form.asp
I have a couple radio button groups wherein if one button is checked,
validation then is required for associated form fields. I have included my
_incorrect_ approach within, just so you see what I am trying to accomplish.
Merci beaucoup!
Greta
From rewdand at yahoo.com Wed Jun 11 12:14:23 2008
From: rewdand at yahoo.com (Andrew Kuhry-Haeuser)
Date: Wed, 11 Jun 2008 10:14:23 -0700 (PDT)
Subject: [thelist] Question about web conferencing software for web site.
Message-ID: <498140.97758.qm@web57302.mail.re1.yahoo.com>
To anyone out there who can help,
I'm in the very beginning processes of creating a web site that will host a class I will teach. The class will be taught through a webconference that people can access through their personal computers. I don't have any experience in building web sites or in creating this sort of setup, but I'm figuring it out.
The webconference must have audio and video of me that the students will hear and see as well as audio for each of the students so that I can hear each of them and each of them can hear all the others. If I were able to provide a video picture of any student who wants to provide one, that would be even better. I would like the students and myself to access the webconference through the web site.
I'm trying to do all this as cheaply as possible. What software or hardware would be best? I would like it to be inexpensive, but in the end, reliability is most important.
The audio and video also need to be able to work well on just about anyone's computer. And I would like it to be as easy to use for the students as possible.
I would also like to have the ability to run the class from various computers and locations. What webcam could I easily attach to any computer?
If anyone can answer any of these questions or can send me to a place where I can get them answered, I'd very much appreciate it.
Thanks.
--T
From cmzente at yahoo.com Wed Jun 11 12:20:10 2008
From: cmzente at yahoo.com (Carlos Zenteno)
Date: Wed, 11 Jun 2008 10:20:10 -0700 (PDT)
Subject: [thelist] Protect PHP Application
Message-ID: <69491.10335.qm@web32908.mail.mud.yahoo.com>
Encrypt the code with Ioncube. You can have part of the code encrypted and part of it not encrypted. This way he can work in the parts that he is involved in without knowing what is in the rest of the application.
From aaronvegh at gmail.com Wed Jun 11 12:59:26 2008
From: aaronvegh at gmail.com (Aaron Vegh)
Date: Wed, 11 Jun 2008 13:59:26 -0400
Subject: [thelist] Filtering an array in PHP for multiple criteria
In-Reply-To: <48500201.8050008@camadro.com>
References: <4386c5b20806110900k7289d12dwbbe7da50ab0edc19@mail.gmail.com>
<48500201.8050008@camadro.com>
Message-ID: <4386c5b20806111059l63865298u8b69d500901b1437@mail.gmail.com>
Hi Matt,
> Have you tried just looping through that array and doing a test on
> category and toe values?
Thanks for writing. Unfortunately that technique -- while brutishly
simple :-) -- doesn't account for one thing I didn't mention: the
search criteria are optional. So there may not be a value for toe
type, for example, in which case the if statement would always fail.
Neat thought, though; I hadn't considered it myself!
Cheers,
Aaron.
From aaronvegh at gmail.com Wed Jun 11 13:00:56 2008
From: aaronvegh at gmail.com (Aaron Vegh)
Date: Wed, 11 Jun 2008 14:00:56 -0400
Subject: [thelist] Protect PHP Application
In-Reply-To: <69491.10335.qm@web32908.mail.mud.yahoo.com>
References: <69491.10335.qm@web32908.mail.mud.yahoo.com>
Message-ID: <4386c5b20806111100o426766a2s4c1ea7ba43296c9c@mail.gmail.com>
Both Ioncube and Zend Encoder sound interesting, but they're pretty
expensive items of commercial software. Is there an open source
solution that does this? I'd be more inclined to trust it, as well...
Cheers,
Aaron.
On Wed, Jun 11, 2008 at 1:20 PM, Carlos Zenteno wrote:
>
> Encrypt the code with Ioncube. You can have part of the code encrypted and part of it not encrypted. This way he can work in the parts that he is involved in without knowing what is in the rest of the application.
>
>
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
--
Aaron Vegh, Principal
Innoveghtive Inc.
P: (647) 477-2690
C: (905) 924-1220
www.innoveghtive.com
www.website-in-a-day.com
From kendsnyder at gmail.com Wed Jun 11 13:08:12 2008
From: kendsnyder at gmail.com (Ken Snyder)
Date: Wed, 11 Jun 2008 12:08:12 -0600
Subject: [thelist] javascript form validation help
In-Reply-To: <7BCAC1C31A024354BC192D75F81E05EE@TymeToshiba>
References: <7BCAC1C31A024354BC192D75F81E05EE@TymeToshiba>
Message-ID: <4850148C.8050505@gmail.com>
EvoltList at no-pun.com wrote:
> ...
>
> I have a couple radio button groups wherein if one button is checked,
> validation then is required for associated form fields. I have included my
> _incorrect_ approach within, just so you see what I am trying to accomplish.
>
>