Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

html component

Hi Eric,

Please give us some screen shots and code that's you want to implement and not work.

Regards.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

html component

Hi Yurii,
sorry I hv been busy with several other things and haven't got time to come back to you guys with materials.
here att'd you shall find an example of both:
. not centralized table header over 2 colums,
. not indented number to aline units.
could you advice how it doesn't work pls ?

Image

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

html component

Hi EJLD,

Okay this time it's clear what you want to do .. It should be easy. Please give us your app public link and describe steps how we can rich this page. Will take a look.

Regards.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

html component

Hi Yurii, thks for your prompt reply.
it is on share already.
name is o2o4pw.
on startscreen, press button FindOutMore
then top banknote, and button "general" in the slideDown
you'll find the table further below.
thk you
Eric

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

html component

Hi EJLD,

You have wrong attribute values.

Here is a details: http://prntscr.com/556cjk/direct

I don't know how do you populate these tables but you should do it correctly. Please use browser debugger to see what exactly in your HTML.

Regards.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

html component

Hi Yurii,

thks for your reply on the point a/ = center over 2 columns.

since you hv got the app shared you must have seen that the html component is populated via call to DB and replace the .innerHTML code .
in the DB the text and attr are without the double \ but it appears when downloaded into the component. it is also the case time to time on other places. it is very much unstable this HTML component. I am tempted to say "it is so since the upgrade" but I am not sure of this one. I would rather ask you : what would be the correct way then ?

as for point b/ = the indent; it worked before but not anymore. it didn't work on your screenshot either. any idea ?

thk you in advance,
Eric

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

html component

Hi again,

in fact, I hv placed the HTML code string copied from the DB to a text.html file and edit on browser. the result is great as expected. text centralized over 2 columns, indent making the unit digit alined on right. pls see att'd.

however, when same string is placed into html component of the Appery builder those 2 things don't work.

also, the \\ seem to be generated by the DB field.
I made the following:
. copied the string from the DB field,
. pasted into a text file,
. remove the \,
. replaced the string into the DB field,

and again the \ appears when edited in a browser.

may the DB field react correctly ? :-)

looking forward to reading soon,
Eric

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

html component

oops ! the att'd file

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

html component

Hi EJLD,

I tried to find where you populate this HTML but no success.

Please show us with screen shots in what service datasource and in what event you do it.

Regards.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

html component

Hi Yurii,

it's not complicate at all.

on page load (this page as show on screenShot above),
1/ it triggers the service quering the mybnoteDB's table named FOMtexts, the contents is stringyfied into a localStorage.
2/ on completion that service runs a JS function which the code is located in the sheet named FOM120_blockText_code.
3/ the JS code walks through the localStorage data and extract each html component's text to place using .innerHTML.

the strings of texts stored in the table fields are already enriched of HTML markers like , , ...

hope it is clearer for you,

looking forward to reading you,
BR,
Eric

Return to “Issues”