![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
My Pet Programmer wrote: My Pet Programmer took the time to say: I just replied to another message, and didn't realize the Java newsgroup was cc'd. Apologies, won't happen again. ~A! Lew took the time to say: Dr.Tulip took the time to say: Hi there, I tried to create a meaningful data structure in JavaScript, and I didn't seem to be able to find the right syntax or perhaps this is not supported: (top-posting corrected) My Pet Programmer wrote: Try this: Drop this function into your code somewhere. Array.prototype.MaxElm = function() { return this[this.length-1]; } Then do sqldata.MaxElm();, which will return the last element in the array. In fact, any array in any page where you have that code. Why did you post this to a Java newsgroup, let alone one that is nearly unused? Just one last reply to let everyone know I'm sorry about the top posting, haven't been here long. Apologies aren't needed. You just aren't going to get a lot of useful Javascript advice in a nearly-unused Java newsgroup. So no need to keep posting superfluous apologies to a Java newsgroup when no one is accusing you of doing anything wrong. Just go about getting the information you need from the Javascript newsgroups. Thanks for being so understanding, but I was the one giving the advice |
#12
| |||
| |||
|
|
And it appeared someone was using it, you did post back after all. |
#13
| |||
| |||
|
|
My Pet Programmer wrote: And it appeared someone was using it, you did post back after all. Indeed, but that says more about me, how I lurk in backwater groups, than it does about the group. :-) Anyway, I hope the original question got handled all right. Hell if know, hope he got through it all right. |
![]() |
| Thread Tools | |
| Display Modes | |
| |