hey folks,
i have just added jquery calender in my pages. but there is a problem. when the page loads. it doesn’t sit like it should. but when i click the calender button and when calender open. the page settles down like it should. what could be the reason? here is my code
Your input has an id:
<input type=“text” name=“txtInstallation” id=“txtInstallation”…
and the div has the same id:
<div id=“txtInstallation”></div>
And if your Javascript is looking for ElementById I can imagine it may get choose the wrong one.
Unless you told your coworkers that you are some JS SuperNinja, it’s not bad to be seen asking for help with work stuff. Relax a bit, or you’ll lose hair. : )
If you have that, you can right click on a page, choose Web Developer and somewhere in there is the option “View Generated Source”. This will show you HTML that the browser “sees” on the page, but isn’t in source (meaning you can see HTML built by Javascript).
Does this happen in all browsers or just one particular browser?
If the table is a set width try using table{table-layout:fixed}.
Does the div that holds the calendar have a fixed height and width and if so can it be specified in the css in case the js is populating too slowly for it to be recognised on page load.
As I said the JS placed code at the end of the page which caused a gap in the page. Even though the element was already absolutely positioned the browser was still making room for it. I just moved it upwards and out of the way so it would not interfere with the footer.
The table is of 100% which is wrapped around a div class with width of 500px; and float:left, the table as i said is in 100%, i see some folks r not getting my question. what happen is when page loads, the footer doesn’t touch base (whereas it should) but when u open calender (click on) the layout fall into place (the footer sits at base)