Discussion Forums  >  Uncategorized

Replies: 9    Views: 274

Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
02/13/11 03:27 PM (15 years ago)

Is there a certain number of lines of code allowed?

I am trying to do a custom search function on the old 1.4 and have hit a problem. It seems to cut my code off at the 1500 line or so and the html I am using has about 1917 lines so it chopped the last 400 or so lines of code off and then it doesn't work. I think it may be something with your system being I tried around half a dozen times and it always cut it off on the same line. Any help would be appreciated.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/13/11 11:00 PM (15 years ago)
What is getting cut-off? Are you talking about something your posting in a web-form in the control panel or something else?
 
Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
like
02/13/11 11:24 PM (15 years ago)
No I am trying to do a custom html screen in one of my apps. I got it working on my server but when I copy the code and put it into the custom html screen and save it around the last 400 lines of code disappear. I have done it several times and it is always at the same spot that it stops saving, so that is why I was wondering if there was a line limit or something.
 
Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
like
02/13/11 11:27 PM (15 years ago)
If it is a line limit I could eliminate some spacing on it, but would rather not if I did not have to being that is kind of a pain. I am going to email you a txt file of what it is that I am talking about so you will understand better. Mike
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/13/11 11:38 PM (15 years ago)
This makes sense. I don't quite understand why this is happening but I do undersand what you mean now. The HTML form doesn't have any set limitation that I know of? In v1.4, the text that you post is saved in the database in a HUGE column that should also not have a limitation. In v1.5 it's not saved this way, it's saved to the file system instead (for a few reasons). So... not sure why this is happening. I'de be happy to just park the html on the server in your apps directory if you want. a) Create a CustomURL menu item (put a random URL for now) b) Send me the html, I'll put it on the server . c) I'll enter the URL in the menu item you created in step a. You could also just put the file on a website right? Maybe you don't have anywhere to put it - no worrires.
 
Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
like
02/13/11 11:43 PM (15 years ago)
I sent u the html in a text format. I did get it to work by having it on my server and doing a custom url but I really just wanted to embed it to the app so the page wouldnt be indexed on my site. I will play around with it tomorrow though and see if it is the length or what. What confused me though is that it always cut it off at the same point so that is why I thought that maybe there was a limit of like 1500 lines or something. Thanks for your help...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/13/11 11:48 PM (15 years ago)
The 1500 cut-off is a bit strange and it does seem like that would be realted. I just can't think of anything that would cause that. I do see why you want to keep it off your site - makes sense. Another idea; It's super-easy to re-create the v1.4 layout in a v1.5 app. If you did this, you could easily drag the HTML into the Xcode project. But, you wouldn't have Android support if thats' important? Re-post what you come up with tomm.
 
Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
like
02/14/11 12:39 AM (15 years ago)
well for now I am just working in android, getting parts ordered tomorrow so I can go over to the dark side though. This has to be about the strangest thing that I have found on here to date. It had nothing about the number of lines of code but had more to do with the actual number of characters that were being used. like there is a binary limit or something. For me to get it to work I had to cut half of the formatting out of the html so it went from roughly 1900 lines to just over 600. and it was just in eliminating spaces from it. This was weird and I had to chop it up a little but it is working now. It is funny the computer can read it now but I can't...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/14/11 01:45 AM (15 years ago)
Removing white-space from html data is a good idea, especially when it's stored in a database. White space is for humans ;-) Still not sure why you couldn't get it save, strange. Just saw your email - cool.
 
Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
like
02/14/11 01:48 AM (15 years ago)
Yea I got it to save fully now. That white space might just be for us humans but I hate to have to change anything when it is gone. Oh well, at least it is working that is the big one. Thanks for your help David. Mike
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.