mateuszmarkowski / jQuery-Seat-Charts

jQuery Seat Charts Plugin
MIT License
596 stars 209 forks source link

Difficulty setting up #1

Closed alanjdoolan closed 10 years ago

alanjdoolan commented 10 years ago

I'm attempting to test this code but I'm getting no result. Do you have an example of it working?

mateuszmarkowski commented 10 years ago

A page with examples is something I've been planning to do. I'll try to setup a basic demo within a few days.

mateuszmarkowski commented 10 years ago

A few days and commits later here comes a very basic demo page: http://mateuszmarkowski.github.io/jQuery-Seat-Charts/

It's pretty ugly but serves the purpose I believe.

alanjdoolan commented 10 years ago

That is awesome. Got me set up. I'm messing around with the styling and loving it but I did have a few questions.

  1. I'm trying to add a stage but having little luck. Any suggestions on how I can do this or is it possible to do already?
  2. I'm also looking to have it so that the seats start the other way around (bottom to top), how would I do that without manually writing in the seat locations?

Thanks again! Alan

On 22 February 2014 13:22, Mateusz notifications@github.com wrote:

A few days and commits later here comes a very basic demo page: http://mateuszmarkowski.github.io/jQuery-Seat-Charts/

It's pretty ugly but serves the purpose I believe.

Reply to this email directly or view it on GitHubhttps://github.com/mateuszmarkowski/jQuery-Seat-Charts/issues/1#issuecomment-35802403 .

alanjdoolan commented 10 years ago

Actually, I noticed that if I put an aile in the center of the seats the aile is being counted as a seat column and so there is a missing seat in the row (e.g. 1234_6789) any suggestion on how to overcome this?

On 24 February 2014 12:03, Alan Doolan alanjdoolan@gmail.com wrote:

That is awesome. Got me set up. I'm messing around with the styling and loving it but I did have a few questions.

  1. I'm trying to add a stage but having little luck. Any suggestions on how I can do this or is it possible to do already?
  2. I'm also looking to have it so that the seats start the other way around (bottom to top), how would I do that without manually writing in the seat locations?

Thanks again! Alan

On 22 February 2014 13:22, Mateusz notifications@github.com wrote:

A few days and commits later here comes a very basic demo page: http://mateuszmarkowski.github.io/jQuery-Seat-Charts/

It's pretty ugly but serves the purpose I believe.

Reply to this email directly or view it on GitHubhttps://github.com/mateuszmarkowski/jQuery-Seat-Charts/issues/1#issuecomment-35802403 .

mateuszmarkowski commented 10 years ago

I'll think about the stage, but the other two are fairly easy:

Bottom to top seats: You can write a small function that will simply create the rows array:

rows    : (function(length) {
    var rows = [];
    for (var i = length; i >= 1; i--) {
        rows.push(i);
    }
    return rows;
})(6)
//(6) causes the function to run immediately with 6 as length param

For the isle I think you could also write a function but passing a ready array will be easier:

columns : [1,2,3,4,5,'','','',6,7,8,9],
alanjdoolan commented 10 years ago

I've tried the columns before but the seats don't skip too

On 18 March 2014 07:54, Mateusz notifications@github.com wrote:

I'll think about the stage, but the other two are fairly easy:

Bottom to top seats: You can write a small function that will simply create the rows array:

rows : (function(length) { var rows = []; for (var i = length; i >= 1; i--) { rows.push(i); } return rows; })(6) //(6) causes the function to run immediately with 6 as length param

For the isle I think you could also write a function but passing a ready array will be easier: columns : [1,2,3,4,5,'','','',6,7,8,9],

Reply to this email directly or view it on GitHubhttps://github.com/mateuszmarkowski/jQuery-Seat-Charts/issues/1#issuecomment-37907026 .

mateuszmarkowski commented 10 years ago

Hmm, what do you mean by seats not skipping?

mateuszmarkowski commented 10 years ago

Alan, I spent some time on the project which resulted in a much better demo with a stage. Also it's now possible to override ids and labels per seat so you're not limited by getLabel/getId functions: https://github.com/mateuszmarkowski/jQuery-Seat-Charts/commit/6b181f16dd6e6ddd5b88215962f0ff6eade47eb5

alanjdoolan commented 10 years ago

excellent, I'll give it a go. Thanks for letting me know!

On 9 June 2014 21:20, Mateusz notifications@github.com wrote:

Alan, I spent some time on the project which resulted in a much better demo with a stage. Also it's now possible to override ids and labels per seat so you're not limited by getLabel/getId functions: 6b181f1 https://github.com/mateuszmarkowski/jQuery-Seat-Charts/commit/6b181f16dd6e6ddd5b88215962f0ff6eade47eb5

— Reply to this email directly or view it on GitHub https://github.com/mateuszmarkowski/jQuery-Seat-Charts/issues/1#issuecomment-45538998 .

alanjdoolan commented 10 years ago

I only noticed the life map update with sold seats. I'm not fully sure I get how the information is to be returned to function.

On 9 June 2014 22:17, Alan Doolan alanjdoolan@gmail.com wrote:

excellent, I'll give it a go. Thanks for letting me know!

On 9 June 2014 21:20, Mateusz notifications@github.com wrote:

Alan, I spent some time on the project which resulted in a much better demo with a stage. Also it's now possible to override ids and labels per seat so you're not limited by getLabel/getId functions: 6b181f1 https://github.com/mateuszmarkowski/jQuery-Seat-Charts/commit/6b181f16dd6e6ddd5b88215962f0ff6eade47eb5

— Reply to this email directly or view it on GitHub https://github.com/mateuszmarkowski/jQuery-Seat-Charts/issues/1#issuecomment-45538998 .

mateuszmarkowski commented 10 years ago

Btw, the demo url has changed.

What information do you mean and which function?