NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ccordes on September 08, 2009, 04:05:29 PM

Title: p_web.message question
Post by: ccordes on September 08, 2009, 04:05:29 PM
I just updated to 4.37 from 4.30 so I made quite a jump.
Afterward I noticed some of my titles (MainHeadings) being pushed to the right and then wrapping to the next line.
I tried altering the css to float left which worked but also messed up the the sub-heading
I found the problem in the _busy and alert divs that are put in by the template. One or the other uses p_web.message() with no message. Which brings me to my question

The p_web.message method substitutes a line break <BR /> for the empty message. This seems to have the effect of filling in the alert div and pushing the header off  to the right.
I commented out the break and all is well.

So I have to ask  ??? - Is returning a BReak really valid if the message is blank or am I missing something?

Thanks,
chris
Title: Re: p_web.message question
Post by: Bruce on September 09, 2009, 10:01:04 PM
Hi Chris,

Can you duplicate the effect in an example - or is it interfering with Custom CSS of yours?

also - are you on a browse or a Form? If a Fom make sure the Form CSS div is set to 'fdiv' not 'adiv'.

The <br> for the blank message prevents the rest of the page from "jumping down" when a message appears.

Cheers
Bruce
Title: Re: p_web.message question
Post by: ccordes on September 10, 2009, 07:10:12 AM
 :-\ umm... fdiv? ... when did that show up?
I'm making some changes and will let you know what happens.
Title: Re: p_web.message question
Post by: Bruce on September 10, 2009, 09:29:35 PM
Somewhere between 4.30 and 4.37 I guess.

It's not usually crucial to change it - but I've changed the default for forms to fdiv now.
There are some minor style differences which may make a difference in your case.

Cheers
Bruce
Title: Re: p_web.message question
Post by: ccordes on September 11, 2009, 07:16:50 AM
fdiv was the answer! 
I went through with Firebug and found that the culprit was the Graphing Extension -  you had it set to adiv.
I have changed the extension so that it now allows the user to enter a class which defaults to fdiv
I wanted to allow the graph to be placed in a span or div too, but haven't gotten that far. The class name was all I needed to get the project out the door.

I have a couple of other minor template changes(fixes?) that I have found handy. I will send them along if you'd like.

chris
Title: Re: p_web.message question
Post by: Bruce on September 13, 2009, 10:00:04 PM
sure - send away...
Title: Re: p_web.message question
Post by: ccordes on September 14, 2009, 09:12:12 AM
Check your email.  Thanks