Forum Replies Created
- AuthorPosts
- SatishKeymaster
“No matter how great the talent or efforts, some things just take time. You can’t produce a baby in one month by making nine women pregnant.” – Warren Buffet
SatishKeymasterThe Best Quote from Anthony Robbins aka Tony Robbins!
“If we surround ourselves with people who are successful, who are forward-moving, who are positive, who are focused on producing results, who support us, it will challenge us to be more and do more and share more. If you can surround yourself with people who will never let you settle for less than you can be, you have the greatest gift that anyone can hope for.”
— Anthony Robbins, Unlimited Power, p. 408
SatishKeymasterReal-time Example: Fetching My latest Tweets from Twitter
Getting latest Tweets: APISatishKeymasterExample
If your callback URL is present here
http:// localhost:8080/restws/json/product/get?callback=process
should output:process({Company: “Technotip”, reg_id: 15})
$.ajax({ type: "GET", dataType: "jsonp", url: "http:// localhost:8080/restws/json/product/get?callback=process ", success: function(data){ alert(data); } });
SatishKeymasterYet another one from Snap deal, but this time, it also has arrows in it..
SatishKeymasterIt’s an ad from Myntra(online shopping site), selling Fastrack Men Grey Dial Watch. It usually sells for 2495 Rs, but this ad is providing some discount and offering the same Fastrack Men Grey Dail Watch for Rs. 2246
Advertisement
–>SatishKeymasterCharlie Chaplin Quotes:
SatishKeymasterI checked the above link.. they’ve a search form: go there and make a quick search for some relevant keyword. They’ll show you search results with links to the individual articles. Once you click on those individual article, they’ve the article there with a pdf attached, using simple anchor tag.
SatishKeymasterIn the website you’ve liked: They’ve attached the pdf file in the individual pages and not in search result page. If you ought to build a site exactly like that; include the pdf file inside the article body with it’s nice little image.
If you’ve a table called university, with column names collage and class`
SELECT * FROM university
WHERE ( collage LIKE ‘%New%’ OR class LIKE ‘%new%’ )
and ( collage LIKE ‘%York%’ OR class LIKE ‘%York%’ )
`take the search term New convert it to lower cases or all other combination.
If the user enters two word string like ‘New York‘, then split it and try matching it separately with your table contents.Hope that helps..
SatishKeymasterAre you talking about search result page ? or just the search form?
What you’re telling is so confusing.Which CMS are you using ? Custom built ?
For adding different pdf file for different pages:
Instead of pages, you replace it with pdf files.
Hope this article may also help you for handling images(if any):
SatishKeymaster5 success and life lessons I’ve learnt over the years:
1. Very few people actually love you, and you can count them on your fingers. Hold on to them.
2. Many people will love you if you’re successful. They’ll stop when you’re not. They love success, not you. Don’t take them seriously.
3. When you are not successful, few will believe your dreams. You are one of them who do. Sometimes, you’ll be the only one.
4. Despite having dreams, will and focus, sometimes your motivation will drop. Lift yourself back up to fight again. It isn’t easy. That is why so few make it.
5. People who come first in class don’t do the best in life.
People who understand people, their field and themselves do.– Cheta Bhagat
SatishKeymasterwherever you want to include those pages use include_once() method.
If your search page is search.php and login form is login.php and your main page is index.phpThen inside index.php
<div id="header"><?php include_once('search.php'); ?></div> <div id="login"><?php include_once('login.php'); ?></div>
use css to position these elements later on.
SatishKeymasterAdding menu items is easy, just add the anchor links inside the list item tags.
For search bar:
Create a form using form tag, use a text input field and a submit button.
Once the user submits, take the string entered by the user and compare it with the data present in your database. Using MySQL %like% variable search for the similar words, fetch them and display it on a page.SatishKeymasterJiah Khan’s Interview
SatishKeymaster“You will find true success and happiness if you have only one goal: To fulfill the highest, most truthful expression of yourself as a human being. You want to max out your humanity by using your energy to lift yourself up, your family, and the people around you.” – Oprah Winfrey, Harvard Commencement Speech
- AuthorPosts