[PHP] [ANNOUNCEMENT] Sparse 1.1b released - create Ajax forms!

2006-10-23 Thread Daniel Orner
	A big new update for Sparse, the HTML-based framework for writing 
MySQL-backed CGI applications easily and quickly. Now, the generated 
forms output in fully degradable Ajax, meaning that if a user doesn't 
have Javascript available or if an error occurs, the regular 
functionality will still work. Documentation has also had a significant 
overhaul. If you haven't tried Sparse yet, now's the time!


--Daniel

--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] [ANNOUNCEMENT] Sparse 1.1b released - create Ajax forms!

2006-10-23 Thread Daniel Orner
   No, not yet. I admit to being something of a novice when it comes to 
Ajax, and as has been stated, this is still in beta and I have yet to 
get any significant beta testers (most of the new versions are mainly 
new functionality rather than bugfixes, all of which I somehow 
discovered myself).
   On the PHP side I've tried to shield against SQL/PHP injection as 
best I could, but of course no one's perfect. It does still need to be 
destruct-tested.


--Daniel

Ed Lazor wrote:

Has anyone checked this for security?


On Oct 23, 2006, at 11:26 AM, Daniel Orner wrote:

A big new update for Sparse, the HTML-based framework for writing 
MySQL-backed CGI applications easily and quickly. Now, the generated 
forms output in fully degradable Ajax, meaning that if a user doesn't 
have Javascript available or if an error occurs, the regular 
functionality will still work. Documentation has also had a 
significant overhaul. If you haven't tried Sparse yet, now's the time!


--Daniel

--Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] [ANNOUNCEMENT] Sparse v1.06b released

2006-09-11 Thread Daniel Orner
	It's been a little while, but a new beta version of Sparse is out. This 
adds a warning log, a button to save either the current page or the 
whole dataset as a CSV file, a tag that turns into a form that allows 
the user to view specific rows, and a bunch of bugfixes. Take a look!


--Daniel
--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: XUL and PHP - what's your opinion?

2006-07-03 Thread Daniel Orner

Ray Hauge wrote:
I keep hearing about XUL, and I was wondering what the opinion of the masses 
was on this subject for an internal application where the browser is 
pre-determined.


From my point of view I, having only read about it and not used it, is that 
XUL would make your applications look more like a desktop application.  Some 
of the widgets they provide come in handy, like tables that can sort 
themselves instead of using AJAX/another page hit.  

The down sides that I see is there would be a 99.999% chance of a learning 
curve for any new developers that come into the company.  Also, I'm not sure 
if XUL would cause extra programming overhead than regular HTML/JS.


	XUL definitely contains a huge learning overhead plus a lot of getting 
used to. In Firefox, at least, XUL is very difficult to debug and has 
given me a lot of headaches. On the other hand, you can do far, FAR more 
with it than with Javascript, including reading and writing to local 
files and altering the browser itself. If you want to release an 
extension for Firefox, you'll have a lot more freedom with XUL if you 
can get over the initial hump and your program won't necessarily be 
*too* big.


--Daniel

--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] [Announcement] Sparse 1.05b Released

2006-07-03 Thread Daniel Orner
	Yep, another beta release of Sparse, my framework for MySQL-based 
programs without the programming.


	A significant new release, which introduces some changes that are not 
compatible with previous versions. Upgrading isn't hard, don't worry! 
New features include a support for sorting data and for printing out the 
number of results, further useful attributes for quick templates, and a 
tag referencing system which acts similar to CSS classes in that it 
allows you to reuse attributes from previous tags, or to import them 
entirely from a separate page. You can define default attributes for all 
tags as well as classes of attributes. As usual, testers are needed! 
Give it a whirl!


--Daniel

--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] [Announcement] Sparse 1.04b released

2006-06-12 Thread Daniel Orner
	A new version of Sparse, my framework for creating MySQL programs 
without all that programming, has been released. We're getting close to 
having all the features I really think it needs... after that it'd just 
be window dressing. Unless someone has some more suggestions!


--Daniel
--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] [ANNOUNCEMENT] Sparse 1.03b Released

2006-05-31 Thread Daniel Orner
	New beta release of Sparse, my framework for writing MySQL-based 
programs without any code. This release includes search capability and 
completely removes all external dependencies (also allowing for Sparse 
tags to be embedded in regular tags).

Try it out!
http://sparse-php.sourceforge.net/

--Daniel
--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sparse 1.02b released

2006-05-26 Thread Daniel Orner
	Yet another new release, this time with some great new features 
including a calendar widget and the ability to populate select boxes on 
the fly - all still without doing any programming!

You can see what's new here:
http://sparse-php.sourceforge.net/whatsnew.html
--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sparse 1.02b released

2006-05-26 Thread Daniel Orner

My apologies. I'll try and remember to do so in the future.

--Daniel

Jay Blanchard wrote:

[snip]
Yet another new release
[/snip]

Please place [ANNOUNCEMENT] in the subject line of your message when
making these announcements.



--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Wath´s wrong?

2006-05-26 Thread Daniel Orner

Jay Blanchard wrote:

[snip]
I have a var that gets the follow string:

$var=R$font 
color=\.GE_COR_VALOR.\.number_format($con-result['preco_v'],2,,,.)./font;


When a print it i receive the follow result:

R$nbsp;nbsp;font color=#FF150,00/font

Someone knows wath´s happening here?
[/snip]

Yes, you printed out your $var. Did you expect something else?
	I think he's referring to the two nbsp;s which magically appeared 
before the font tag.


--Daniel

--
Sparse - a new way to write MySQL-based programs with little to no 
actual programming. Save yourself time and effort!

http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sparse v1.01b released

2006-05-22 Thread Daniel Orner
	A slight bugfix/new feature release of Sparse. I'm still looking for 
beta testers and for more ideas of where to spread the word! 8-)


--Daniel

--
Sparse - a new way to write MySQL-based programs with no actual programming.
http://sparse-php.sourceforge.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP JavaScript

2006-05-19 Thread Daniel Orner

Jay Blanchard wrote:

Can they play nicely together?

For instance I have a small JavaScript sniplet that will check certain
checkboxes if a radio button is selected. Since I have a fair amount of
checkboxes I want to put them in an array all their own so I use the
XHTML syntax w/brackets;

input type=checkbox name=list37[] value=7 /

Suddenly JavaScript doesn't care for the object and throws an error
(take the brackets out and it works fine for JS, but PHP cannot see all
of the values). I have Googled for this but think that my search term(s)
are failing me because the condition is hard to describe.  Would someone
please point me in the right direction?

Thanks!


	What kind of error does it throw? What function are you using to access 
the object?


--Daniel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP JavaScript

2006-05-19 Thread Daniel Orner


function checkAll(field){
   for (i = 0; i  field.length; i++){
  field[i].checked = true;
   }
}

'length' is null or not an object

   Where is this being called from? Checkboxes don't have a length...

if u declare is like name=list37 doesnt PHP get that as an array 
even though it doesnt have the square brackets? 
   No, you need the square brackets to return an array of values. 
Otherwise you'll only get the first one.


--Daniel

Jay Blanchard wrote:

[el snipo]
  

For instance I have a small JavaScript sniplet that will check certain
checkboxes if a radio button is selected. Since I have a fair amount


of
  

checkboxes I want to put them in an array all their own so I use the
XHTML syntax w/brackets;

input type=checkbox name=list37[] value=7 /

Suddenly JavaScript doesn't care for the object and throws an error
(take the brackets out and it works fine for JS, but PHP cannot see


all
  

of the values). I have Googled for this but think that my search


term(s)
  

are failing me because the condition is hard to describe.  Would


someone
  

please point me in the right direction?

Thanks!



What kind of error does it throw? What function are you using to
access 
the object?

[/el snipo]

function checkAll(field){
   for (i = 0; i  field.length; i++){
  field[i].checked = true;
   }
}

'length' is null or not an object

  


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Sparse 1.0b - framework for MySQL programs

2006-05-19 Thread Daniel Orner
	So does anyone have any good ideas about other places for me to 
announce this? I'd like to get the good word out. 8-)


--Daniel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-19 Thread Daniel Orner

Kevin Waterson wrote:

This one time, at band camp, Jochem Maas [EMAIL PROTECTED] wrote:



does it run on php5?


does it run on php6-dev?

Kevin


I have no idea. I guess we won't know unless someone tries it out. 8-)

--Daniel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Object Array?

2006-05-18 Thread Daniel Orner
	Try using var_dump rather than print_r... maybe it'll give you more 
accurate data (e.g. to figure out if it's an object, as Rob said, or an 
array).


--Daniel

Jay Paulson wrote:

I tried with no success yesterday to get an answer to this question so I'll
try again.

I have an object from using simpleXML and inside that object is an array
holding even more objects.  However, it's not acting like an array and
therefore I can't go through it. (i.e. I can't use the count function to see
how big it is and loop through it)

This below should be an array:

$xml-RES-R

When I use print_r($xml-RES-R) I get $xml-RES-R[0] printed, which is
below:

SimpleXMLElement Object
(
[U] = http://.../benefits/
[UD] = http://.../benefits/
[UE] = http://.../benefits/
[T] = bBenefits/b

[RK] = 10
[CRAWLDATE] =  17 May 2006
[FS] = SimpleXMLElement Object
(
)

[S] = Home, bBenefits/b Forms Jobs Training Locations, Who We Are
E-Info Publications EVAbr Team Websites. b.../b 2006 bBenefits/b
Vote. bBenefits/b Links. bBenefits/b Websites. b.../b
[LANG] = en
[HAS] = SimpleXMLElement Object
(
[L] = SimpleXMLElement Object
(
)

[C] = SimpleXMLElement Object
(
)

)

)


When I use print_r($xml-RES) I get the below.  As you can see [R] = Array
but yet in the above example it is an object.  I'm so confused and lost.
Can anyone help?  PHP version 5.0.4

SimpleXMLElement Object
(
[M] = 2010
[FI] = SimpleXMLElement Object
(
)

[NB] = SimpleXMLElement Object
(
[NU] =
/search?q=benefitssite=default_collectionhl=enlr=ie=UTF-8output=xml_no_
dtdclient=default_frontendaccess=psort=date:D:L:d1start=10sa=N
)

[R] = Array
(
[0] = SimpleXMLElement Object
(
[U] = http://.../benefits/
[UD] = http://.../benefits/
[UE] = http://.../benefits/
[T] = bBenefits/b

[RK] = 10
[CRAWLDATE] =  17 May 2006
[FS] = SimpleXMLElement Object
(
)

[S] = Home, bBenefits/b Forms Jobs Training
Locations, Who We Are E-Info Publications EVAbr Team Websites. b.../b
2006 bBenefits/b Vote. bBenefits/b Links. bBenefits/b Websites.
b.../b  
[LANG] = en

[HAS] = SimpleXMLElement Object
(
[L] = SimpleXMLElement Object
(
)

[C] = SimpleXMLElement Object
(
)

)

)

[1] = SimpleXMLElement Object
(
[U] = http://.../benefits/benefits_websites.html
[UD] = http://.../benefits/benefits_websites.html
[UE] = http://.../benefits/benefits_websites.html
[T] = bBenefits/b

[RK] = 9
[CRAWLDATE] =  17 May 2006
[FS] = SimpleXMLElement Object
(
)

[S] = Home, bBenefits/b Forms Jobs Training
Locations, Who We Are E-Info Publicationsbr EVA Team Websites.
bBenefits/b Websites.  b.../b
[LANG] = en
[HAS] = SimpleXMLElement Object
(
[L] = SimpleXMLElement Object
(
)

[C] = SimpleXMLElement Object
(
)

)

[HN] = /benefits
)

[2] = SimpleXMLElement Object
(
[U] = http://www..com/jobs//benefits.html
[UD] = http://www..com/jobs//benefits.html
[UE] = http://www..com/jobs//benefits.html
[T] =  : Jobs :
[RK] = 10
[FS] = SimpleXMLElement Object
(
)

[S] = b.../b bBenefits/b Summary. b.../b
The bBenefits/b of a Unique Culture. Atbr  b.../b success. Medical
Care bBenefits/b. Available after b.../b
[LANG] = en
[HAS] = SimpleXMLElement Object
(
[L] = SimpleXMLElement Object
(
)

[C] = SimpleXMLElement Object
(
)

)

)

Etc..


--
PHP General 

[PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner

I apologize if this was already posted, but I didn't see it go through.

I'd like to announce the first release of Sparse, a new way to 
create MySQL programs without actually programming anything! Sparse 
takes care of handling the SQL data, navigation, displaying errors, 
input validation, and caching. Using a few extra HTML tags allows 
surprising power, yet remains easy to use and very customizable. It can 
save a lot of time and effort during development! It's especially 
well-suited for creating admin back-ends of sites that use MySQL.
This means that you can actually create entire MySQL-backed 
programs without using a single line of PHP code. However, more complex 
forms and queries can be easily integrated with PHP code as well.


The Sparse homepage is here: http://sparse-php.sourceforge.net/

Besides looking for beta testers, I'd also like to know the best 
way to spread the word about it, so if anyone has any comments or help 
they can offer, please do so!

Thanks!

--Daniel Orner

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner
	I haven't been able to install PHP5 on my own server, so I don't know 
for sure, but I can't think of any reason why it wouldn't. 8-) Part of 
why I need beta testers.


--Daniel


does it run on php5?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner
	Well... okay, I'll be honest, I never really *wanted* to install it. 
8-) And I'm not exactly a server guru (even updating PHP4 proved to be 
too much for me... for some reason a bunch of dependencies which were 
fine when I got the server no longer work).


er why not? just install a second copy of php into a custom (e.g. your 
homedir)
dir and use that - check the archives for Rasmus' quick guide to setting 
up a second

apache/php installation.

possible reason number 1: XML handling in php5 is rather different than 
in php4,

they offer different xml tools - chances are the exntesion you use

possible reason number 1-N: objects work differently in php5.


	Well, I don't use objects too extensively... I took a look at the 
migrating from PHP4 to PHP5 page on the manual and there didn't seem to 
be anything that would have messed it up. I wasn't aware of the XML 
differences, so yes, that may be a problem. I won't know until someone 
tries. 8-)

Thanks,

--Daniel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sparse 1.0b - framework for MySQL programs

2006-05-18 Thread Daniel Orner

Richard Lynch wrote:

On Thu, May 18, 2006 2:29 pm, Daniel Orner wrote:

 I'd like to announce the first release of Sparse, a new way to
create MySQL programs without actually programming anything! Sparse


LOL!

This is really nice -- though what I find amusing is that, in many
ways, it seems to me to reflect the ideas of what PHP set out to be,
oh so many years ago...

Maybe 15 years from now, you'll be taking Rasmus' job at Yahoo :-)


Heh, there's always time. 8-) Thanks for the feedback!

--Daniel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php