Jump to content

jimfog

Members
  • Posts

    1,803
  • Joined

  • Last visited

Everything posted by jimfog

  1. I have these 2 tables avail_apps and store_open....http://pastebin.com/L5dHH6cK I want to select these rows in avail_apps that are the same with the rows in store_open...and obviously disregard the rest---from avail_apps. What kind of JOIN is this..left or right?
  2. thanks a lot...this what I tried and it did not worked. I did not use array_push...I simply did this: ... $timestamps=array(); whiile (date("H", $start_date) >= 10 && date("H", $start_date) < 15) { echo $start_date . ' = ' . date('D Y-m-d H:i', $start_date) . '<br>'; $timestamps= strtotime("+30 minutes", $start_date); ... why the above could not work? I just added to the timestamps array a timestamp on each iteration.
  3. I tried but I cannot...I am stuck...sometimes I even stuck at things I have done before.
  4. yes you are right...I could not see the rest cause the container div needed height adjustment.... And lastly I just want to pass all these into an array so that they can be returned from a within a function.
  5. this is what I want...yes. The only problem is that the last Monday of the month(30th November) is left out...I do not know why. I see the timestamps only for the 16th and 23th of November.
  6. Imagine now the following(what I am about to say I did not want to mention it from the beginning due to its complexity-I chose a step by step process here).... I want the timestamps from current Monday till last Monday...but only from 10:00 to 15:00 at half hour intervals (this is an example). Am I clear?
  7. here is the loop I wrote...based on strtotime: $start = strtotime("next Monday T14:00"); $end = strtotime("last Monday of this month T14:00"); $date = $start; while($date <= $end) { echo $date.'<br>'; $date = strtotime("+7 days", $date); } Some notes: Do you think mine or yours is better and why....I think yours does not produce UNIX tmestamps Do you think it is better to use +7 days or Next Monday(i am referring to the code with in the loop) Another think that I noticed is that you are using strtotime within strtotime...(I am again referring to the code inside the loop)..why that. I read in the manual why you might be doing that... Just say what comes to your mind when comparing the 2 different codes.
  8. I managed to get the last monday of the month. But how I am going to loop through them? So far we have to strtotime(next Monday, and last Monday). Should I use a method of the DateTime Class to achieve this?And if yes which? I found something...nonetheless you are still welcome to submit your opinion on how to solve this. I FINALLY SET UP THE LOOP.
  9. I did get Next Monday...and at the time I wanted. I used this: strtotime("next Monday T12:00");//16th November How am I going to get the Monday now of 23th of November. You say to add seven days at a time...how?
  10. I want to get the dates of specific weekdays of the current month...for example: today is Tuesday 10 November.... WHat will the date be in remaining Tuesday's of this month?
  11. I am building a frontend calendar (using this plugin https://github.com/kylestetz/CLNDR ).... This calendar is supposed to depict available time slots of a hair salon for example. The aim here is that it will be feeded with JSON from a db table.... this table will hold data such as: Monday 10:00-11:00 Tuesday 12:00-13:00 Wednesday 16:00- 18:00 I must somehow make available these to the frontend...I am stuck on how I could populate the calendar with it.
  12. Yes...this does what I want..thanks. But it would be good to explain how overflow:hidden helps in that direction. Am I correct to assume that this property dictates what will happen with the content of the container(the calendar in this case)when the content gets past the container?...in this case when that occurs the content will become hidden.
  13. I tried display:none but the problem with it is that the transition effect is gone https://jsfiddle.net/fiddlehunt/m4mdyjnr/63/ JS pane line 17
  14. there is one problem left though... when you click the X icon to hide the calendar- at which point the calendar div slides towards the right-the calendar is still there...the user just needs to scroll horizontally to see it. How am I going to preserve the sliding motion and the same time the calendar is "lost" totally-meaning the user cannot see it even by scrolling horizontally. https://jsfiddle.net/fiddlehunt/m4mdyjnr/
  15. nevermind...I solved it...
  16. I am trying to implement a transition...I want to bring into view(it is originally hidden)a div(it is a calendar). While I have managed bringing it into view I cannot hide it again.Take a look at it https://jsfiddle.net/fiddlehunt/m4mdyjnr/ Click the show calendar button to make the calendar appear and click the X icon(on top right)to make it go away...it does not. The class that tries to hide the calendar is outOfView(line 13...css pane)...the keyframe to accomplish that is directly below it....as I said though it does not work
  17. Ι understand...but why it would fail... I understand more or less what are you saying above... In order to explain what I want to achieve I can say this: Suppose the site has 5 pages....in one of them a button is clicked and the calendar appears(of course this calendar is created dynamically) Is it necessary for the calendar to know what page it relates to? I do not understand exactly what are you trying to say with this.
  18. sorry..but I am confused by your answer...can you restate/rephrase. What exactly I cannot do with partial loading of page? And I do not understand the rest also. Are you suggesting that I do not know where my calendar is?(that is even more confusing)
  19. there is one more detail....the new content being loaded to the div is just HTML.... The problem is that nothing is loaded if this HTML is created dunamically(with JS)... What can I do in such a case? You see...the final goal here is that to create a calendar(with JS) and have this displayed with transitions in front of the user.
  20. Yes that did it...thanks a lot....of course I am considering better ways for the original code to go away....but the transition worked.
  21. hmmm...show the code that hides the original content makes all the "damage here"... And as I understand using show() reverts this.... So.what can I do then...cause as already stated addclass() must replace show() so as to make transition possible... What do you suggest?
  22. first of all my intention is not to fill the whole screen...just a div....in the link about transitions I am just showcasing the how I would like to do it. Secondly I tried it and something weird happened...the div got an attribute display of none..here is the whole code $('a#app_btn').click(function(e){ e.preventDefault(); var toLoad = $(this).attr('href')+' #container_cal'; $('#container').hide('fast',loadContent) function loadContent() { $('#container').load(toLoad,'',showNewContent)} function showNewContent() { $('#container').addClass('pt-page-moveFromRight');}//trying to apply the transition here...for the css see #14// function hideLoader() { $('#loading').fadeOut('normal');}}); #container gets display none....why?
  23. It does my job though...till some point...there is the transitions issue that is unsolved yet. Did you mean something like this? function showNewContent() { $('#container').addClass('pt-page-moveFromRight');}//css.pt-page-moveFromRight { -webkit-animation: moveFromRight .6s ease both; animation: moveFromRight .6s ease both;}@keyframes moveFromRight { from { -webkit-transform: translateX(100%); transform: translateX(100%); }}
  24. You mean the link in tympanus?
  25. I was looking to implement some of these http://tympanus.net/Development/PageTransitions/. It uses CSS animations animation with keyframes...so I am trying to implement a CSS solution here,
×
×
  • Create New...