‏إظهار الرسائل ذات التسميات there. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات there. إظهار كافة الرسائل

الأحد، 5 يناير 2014

Is there a way to get a div to stretch to exactly the bottom of the screen?

We'r trying to get the top content of our website home page to fill the height of the screen, so that's all users see when they first pull up our site. Much like what Dropbox does. However, I've tried EVERYTHING, and can't seem to get it to work. You still see content below it.

Anyone have any advice? Our site is www.yourlifewall.com. Thank you!


View the original article here

الثلاثاء، 24 ديسمبر 2013

is there any shorthand method to handle loops if you know exactly how much times a loop needs to be executed

When the number of loops is known, the best option is the for loop. As your example shows, it will loop until the desired number of times, in your case 5 (the original loop and goes up 5 times for a total of 6, unless you have 7 entries in which case the 6 is your required value).

Foreach comes in handy particularly for arrays.

A while loop is used when calling information from a database.

@DigitalChris recommends str_repeat, but I think the for loop is clearer in terms of code. The best solution isn't always to be quick to do right away, it's often to be able to make quick changes if the need comes. Personal opinion, anyways.


View the original article here

Is there is conversion of tableRecord into Result<Record>?

Here there is a method

public void refreshPeopleDetail(@BindingParam("TableRecord") TableRecord tableRecord) { Result tableRecordResult = tableRecord; showListbox(initializePeopleList(tableRecordResult ));} private ListModelList initializeTableleList(Result result) { ListModelList tList = new ListModelList();...............return tList; }

How I convert this??


View the original article here