[jQuery] Re: Is it possible to auto increment an appended value?

2008-02-02 Thread Gorkfu
The reason why I don't want anyone adding more than 250 fields is because if they were to go over that amount, 251 and so on would not get entered into the mysql db. I know some people will probablly be thinking, why would I have such a large table? Well I don't really want to go into that and tha

[jQuery] Re: Is it possible to auto increment an appended value?

2008-01-31 Thread Gorkfu
How would I create a cap to put on the counter, so it doesn't go higher than 250? Thanks On Jan 28, 2:10 pm, Gorkfu <[EMAIL PROTECTED]> wrote: > Well the error had nothing to do with the javascript, I checked it in > the lint. The php was causing the problem... It seems to be an issue > with usin

[jQuery] Re: Is it possible to auto increment an appended value?

2008-01-28 Thread Gorkfu
Well the error had nothing to do with the javascript, I checked it in the lint. The php was causing the problem... It seems to be an issue with using OOP style php for what I wanted to do. I'll either have to recode that portion in procedural style or figure something else out. Thanks again, Charl

[jQuery] RE: Is it possible to auto increment an appended value?

2008-01-28 Thread Charles K. Clarkson
Gorkfu wrote: : Thanks, Charles this code helps a lot. I understand how it works. You're welcome. : However its giving me one parse error with the line with a single : double quote as showen below. Is it possible to combine the 2 lines : below or escape the double quote? : : --- Code ---

[jQuery] Re: Is it possible to auto increment an appended value?

2008-01-28 Thread Gorkfu
Thanks Charles, that code helps a lot. From reading it over I understand how it works, However, it's giving me one parse error on the line with a single double quote. Is it possible to combine the 2 lines below or escape the quote somehow... I'm not familiar with escaping javascript like in php.

[jQuery] Re: Is it possible to auto increment an appended value?

2008-01-27 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : Is it possible to auto increment the value on a variable that will be : appended? Yes. We would need to use a closure to preserve the value of the counter between clicks. The function in the $(document).ready section can act as the closure. : For example the bot