Discussion Forums  >  Uncategorized

Replies: 6    Views: 221

basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
11/17/11 02:20 PM (14 years ago)

corruption in custom html screens page (iOS)

There seems to be some corruption in the custom HTML screens page again. I pasted in some html code and after previewing it, I looked at the code again and it was very strange. It added code at the top of the page before the main content - see below: <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd> <p> <html> <head> </head> <body></body> </html> </p> <p> <title></title> </p> <p>
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/17/11 03:27 PM (14 years ago)
Yep...nothing, from an HTML perspective, should come after the closing HTML tag. All that other stuff should go above...the Title tag goes between the head tags!
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
11/17/11 03:31 PM (14 years ago)
exactly. No matter how I correct it or paste back in the original HTML (from dreamweaver), next time I look, It's gone back to that weird format again.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/17/11 11:26 PM (14 years ago)
@basement: We're happy to look into this for you with your permission. Post... a) It's OK for buzztouch to download my source-code for testing. b) The name of the app in question, exactly as it appears in your control panel c) The nickname of the screen (assuming v1.5) thats funky. d) Instructions on how to find the screen if it's buried in sub-menu's
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
11/18/11 05:25 AM (14 years ago)
thanks David.... a) It's OK for buzztouch to download my source-code for testing. b) bridgedutyfree c) US Allowances & Canadian Allowances screens d) they're #2 & 3 if you list the screens under most recently modified. much appreciated. I just looked and they're both odd again. I pasted back the correct US Allowances code, but immediately the preview doesn't look right. they should look like this: http://bwbdfs.com/test2/usexemptions.html
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/18/11 01:32 PM (14 years ago)
OK...keep this while you understand what's happening here: US Citizens: http://www.buzztouch.com/applications/EAE6B7FAE2A137C00B90188D5/customHTML-9690ED51DBDF3289DB4AAFB.html Canadien: http://www.buzztouch.com/applications/EAE6B7FAE2A137C00B90188D5/customHTML-EC22A98267670818A2ABCC3.html Those are the URL's for both screens. These are the URL's that the device requests. If you load both of those in your browser, then 'view source' you'll see the HTML is OK. However, if you visit these screens in the control panel, click Save, then refresh your browser to view the page again, it's VERY BROKEN. You can see this when you manage the screen. When the screen first loads, it looks fine the editor. But, if you click the Source Code link to view the raw HTML in the editor, it's super funky, like you discovered. If you DON'T save, all will be well. But, as soon as you click SAVE, it saves this broken HTML to our backend systems. Another way to say it - don't click save after the first time! Funny. I did a little probing around and can't figure out why the HTML Editor (CKEditor) is not understanding the HTML. It's for sure what's happening here. Dunno why but do know that no special or secret logic is going on with the backend. When you load this screen, we simply read the previously saved file and give that data to the CKEditor. CKEditor maybe does some processing on the HTML when you click Code? Dunno. I'll keep looking because it's important that we understand this. Oh, did I mention, I hate online editors!!! LOL. Don't save, all will be well. If you mess up, erase the box completely, re-paste your HTML, then save. It's only broken when you reload then re-save.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
11/18/11 01:39 PM (14 years ago)
thanks so much for taking the time to check this out to thoroughly! Now it's perfect!
 

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.