Yawatide's Posts
Nairaland Forum › Yawatide's Profile › Yawatide's Posts
1 2 3 4 5 6 7 8 ... 118 119 120 121 122 123 124 125 126 (of 160 pages)
This picks up from where I left off at one of my posts, "Quick Question 2 - https://www.nairaland.com/nigeria/topic-239471.0.html - you might want to read up on that post b4 continuing. You read it? Yes? Good. In the words of 9ice, "letz go there" ![]() Given: <a href="#" onclick="doStuff(); return false;">Click me</a> As I mentioned in the post above, it is bulletproof but again, if javascript is turned off or you are on a phone which will not open popups, you are screwed. So how do you get around this? Read on: I discovered long time ago that if you did something like this, you are good to go: <a href="page.php" onclick="doStuff(); return false;">Click me</a>, where doStuff() is a function that calls the javascript open() function, that would open page.php. Note: This applies to opening popups. If the browser has javascript enabled, it goes for doStuff() otherwise, it goes by what is in the HREF ![]() For the students in the house (including myself), 'hope you learned something! ![]() |
Answer: <a href="#" onclick="doStuff(); return false;">Click me</a> - try it out in a multitude of browsers. Sure, javascript:void() will work, but only on certain browsers. Also, if on devices that disable javascript by default (think cell phones), such a link would not even work in the first place. Of course, you coud resort to using NOSCRIPT but why? I do have a question though: Why even bother having a "#" in the HREF to begin with? I mean, if you have no link, why put crap in there? Interesting question for which I have what I think is a good answer. See my next post coming soon, "Letz Learn Something: Graceful Degradation" ![]() |
hmmm, so dhtml, u dont c urself as a student? Interesting. Anyways, I await an answer. |
dhtml, so which is it? ![]() I don't recall saying my question was mutliple choice, he he. @all: If you don't understand the question, copy my code and paste it in a file of yours with a lot of content, such that it is at the bottom, then click the link. There is a solution, trust me. I will post it soon ![]() |
So I have some time and have decided to post again, woohoo! ![]() So I am sure many of you are used to writing somethign like so: <a href="#" onclick="doStuff();">Click me</a> The problem is, in some browsers, clicking the link, even though it runs the javascript, causes the page to "jump" to the top, as though it were a "back to top" intra-link. Why? because it is trying to find the link and finding none, it resorts to the top. For me and perhaps you, I find this annoying. Question: how can you rewrite the code such that clicking the link will not only run the script but cause the page to stay where it is (and is supposed to be) without "jumping"? Responses are welcome ![]() |
I think you are missing a function to be wrapped around your dates: strtotime() So it would be something like this (pseudocode): start date = strtotime(start date); end date = strtotime(end date); today = strtotime(today); Then you do your comparisons (again, pseudocoe): if (end date <= today) then do stuff else if (start date < today) then do stuff else do stuff Note: 1) You can't compare dates directly in "Y-m-d" format (or maybe you can but I just don't know ) because of the "-". At the very least, you would need to apply "explode". Having said that, I think my approach works better and is more straightforward. The strtotime() will convert to a unix timestamp which looks like an actual number that makes checking easier2) you will still need the $todays_date = date("Y-m-d" ; part above. of course the assumption is the dates you are getting from ur dates columns r in the same format. if not, you will need to convert them such that strtotime() can take and convert them.Finally, thanks to actually searching the archives for this instead of writing a new post. Reading this from top to bottom actually made it easier for me to follow and appreciate. Good luck! |
Guardian, They are there but you probably aren't searching in the right places/locales. For instance, have you considered making an advert requesting applicants to show up at a certain location for them to show you their stuff? If you go this route, just make sure you have police back up sha so that what happened when whatever phone company it was that had over 1000 people show up at the same time won't happen to you ![]() Again, the people you need are there but like the bigger fish in a river, they most likely won't be swimming towards the top but rather, deep down and in b/w the tree roots at that ![]() |
hmm, they didn't give you the mysql? As in they don't support it or it is there but they haven't set it up? If the latter, I think you can go in and create the db/tables yourself. It should be under phpMyAdmin. Good luck! |
Probably there has been improvement in the background, but in the front, I still see animations and the green background I think is overkill, you could still keep the background of the column white and say, use a 1px black border to denote boundaries. Contact page still doesn't exist. Good luck! |
zstyle, Because they are professional ![]() Why pay "a fortune" for a professional when you can get one of these much cheaper? https://www.nairaland.com/nigeria/topic-235101.0.html Seems like a legitimate question to ask, to me ![]() |
Interestingly, I am reading a Joomla 1.5 book, authored by Barrie North, one of the creators of Joomla 1.5, "Joomla! A user's guide: Building a successful joomla! powered website (2008)" ![]() You might be out of luck. Here is what he has to say on the matter of upgrading (I will try to type as much as I can. Where I Can't, it will be abridged such that you get the point, so bear with me please): You can't upgrade from 1.0 to 1.5. There are significant enough changes in the code that simply over writing files would break your site. Joomla 1.5 doesn't provide an upgrade path from earlier versions. Converting an older site to 1.5 requires populating the new site with the content from the old site. This migration of content is not a 1-to-1 process and involves conversions and modifications to the content dump.As if this isn't frustrating enough, I just checked www.compassdesigns.net/ and 1.6 might be out as early as august (http://www.compassdesigns.net/joomla-blog/tags/joomla-1.6/) Other possible solutions, based on experience: 1) Ensure that all the necessary folders are writeable in which case, atimes as you may know, tis best to go with FTP. 2) (This doesn't have to do with migration but might help nonetheless) One time, I installed joomla and had to run the install again as somethig went wrong in the process. For some reason, the 2nd time around, it didn't like the fact that I gave it the name of the db I created, even though it was the only one there and I created it specifically for joomla. I ended up having to drop the db and recreating it. Again, Joomla didn't like that so in the end, I dumped it again, created a brand new db, gave it the name of the new one and everything worked like a charm. I hope this helps with your issue. |
hanen, It definitely sucks, you bet ![]() |
Interesting analysis ![]() |
u r asking the wrong persons the right question brother ![]() |
Keyword: Assumption - Never assume: you make an ASS out of U and ME. Another assumption: You assume that many on here are aware of what it used to look/function like before. It would be nice for you to perhaps specify 1 or 2 changes that you have noticed to help ppl like me who are clueless. Take note. |
paule, YIM me ![]() |
Oga cactus, thanks for your post. From the links at the top of this post, you know who the moderators are. So why not just pose the question directly? ![]() Like you, I used to get very frustrated with such posts. That is why, in a way, I am happy to be a moderator. There are 2 of us. I live in the western hemisphere. The other, the eastern hemisphere. I bring this up because: 1) I am not paid to do this. Having said that, within my hours of operation, I visit this board at least once an hour. This doesn't mean that I have this board on beeper and anytime it goes off, even at 2am, I will wake up to monitor the board. By the way, I last monitored this board, other than right now, at 11am GMT ![]() 2) I can't speak for the other moderator on this issue but chances are that when you visit, it is at a time when I am off and he is on (hopefully). As moderators, we can only delete posts but not threads. Also, if the thread has only one post, we can't delete the thread. Only Seun can do that. He also is the only one with rights to block IP addresses and users. In the spirit of "okay, now you have laid out your complaint, what is the solution?", I would suggest to you and others to utilize the "report to the moderator" button. If it is something we can't handle, we will send it to Seun for review. Rest assured, I hate such spam as much as you do and unless you want to kid yourself, I am sure you will agree that compared to this time a year ago, spam has been much more reduced. Believe me, I monitor as I said, during the day, at least once an hour. I will confess though that since I am not paid, I am not motivated to do it more often and for free work, once per hour is even more than what would be required for such "pay". Thanks for your post and thanks for airing your issue in a mature manner. |
Pls post the link here for convenience. THanks, |
If all you need is to generate RSS feeds, I don't think you need php per se. Head over to w3schools for a tutorial on how to create RSS feeds. Hopefully, that helps. That is where I went for my tutorial anyways ![]() |
I don't know of any and to be frank I would do what nitation has said. You should focus more on what you can offer the clients and on what they want from you. Besides, even if it is 100K a month, you can always transfer that cost to the client. They don't have to know ![]() Good luck! |
Because for me, it is a way to get poster to realize that there is a "preview" button. If poster is like me, he/she will learn next time. Is it a lame way of doing so? sure. but that is how I was raised and that is how I raise others. Besides, I didn't turn out too badly myself ![]() |
thou still a dummyDon't call yourself that ![]() You can always use one of the many javascript libraries (YUI, jquery, mootools, etc) to generate a flash-like animation. You could even do what I used to do for a while - create an array, populate it with images and on each page load, randomly generate an array index and display the corresponding image. The latter approach, though not as "cool" still gives the user the impression that if he clicks more pages (something good for your ad campaigns ), he has something more to look forward to, with respect to what image you will be displaying next.good luck! |
Tell whoever is going to teach you to NOT include the part where you hear the "ding dong" on every single page as you click through. It might sound cool after the home page but after that, it gets plain annoying. It gets me thinking someone is at my door quite frankly. |
LOL It shouldn't be. What I am saying, and this has happened to me before is, back up your files, delete them off the server. Make sure that when you refresh your browser, after deletion,that nothing shows up, then re-upload same files. That should ensure that you are serving up nothing but the latest files. Still confused? |
I would say nothing less than 100K each. This assumes a strict informational website. If they want something with a database, nothing less than 200K each. This price excludes any maintenance for which I would probably charge at the very least 5K a month for once-a-month updates. Good luck! |
Either you aren't uploading to the right place OR you are but as you stated, cache isn't clearing. One guaranteed solution, if the latter. Delete *everything* from wherever you are storing your files. Then refresh your browser. The point is to get the browser to display, "this site does not exist" or whatever verbiage shows up. Next, re-upload your files and you should be good to go. On the part of your visitors, I am afraid they are SOL with respect to seeing cached content. Good luck! |
yeah, i can see a huge SLOT right below your post Good job! ![]() |
1 2 3 4 5 6 7 8 ... 118 119 120 121 122 123 124 125 126 (of 160 pages)





