Page 1 of 1

Second line in header

Posted: Wed Feb 01, 2012 4:14 pm
by Frank

Hi there,

I want to add a second line to the header with the jQuery command

$('h1').first().append('h3SubTitle/h3');

This line is executed with the screen load event, but nothing happens...

BTW:

$('h1').first().text('Title').append('h3SubTitle/h3');

will change the header caption to title, so the first part must be correct.

Thx for your support

Regards
Frank


Second line in header

Posted: Wed Feb 01, 2012 4:16 pm
by Frank

ok - the h3's are removed while uploading in the subtitle ;-)


Second line in header

Posted: Wed Feb 01, 2012 7:53 pm
by maxkatz

Both ways worked for me. Did you get it working?


Second line in header

Posted: Wed Feb 01, 2012 9:56 pm
by Frank

no - I shared the project 25910 with you...

Sample that's not working is on first screen "scrArbeitsplatz" (load event).
Caption is changed, but no second line is appended...


Second line in header

Posted: Wed Feb 01, 2012 10:39 pm
by maxkatz

code
$('h1').first().text('Title').append('
SubTitle
');
/code
this replaces the entire caption because of text('..'). It replaces the current value and then sub title is appended.

code
$('h1').first().append('
SubTitle
');
/code
in this case, it's only appended.


Second line in header

Posted: Thu Feb 02, 2012 6:32 am
by Frank

$('h1').first().append('SubTitle');

works, but what I want is a second line with a smaller font (see my first reply)
This was my initial question:

$('h1').first().append('<h3>SubTitle</h3>');

and

$('h1').first().append('<br>SubTitle');

also works.

My suggestion is, that the default padding/margin for the h-tags is too big so that the second h-line will shown outside the header...


Second line in header

Posted: Thu Feb 02, 2012 4:59 pm
by maxkatz

We are going to make it possible to place any components inside the header/footer so you will get a lot more control over it.