I´m searching a solution for this:
I want to have a series of pages where the information is provided on a single page like you see it here: http://www.wowhead.com/quest=12141
I want to have the information, which is on the page I've made, in a tooltip. Wowhead does it like this: http://www.wowhead.com/tooltips
I've tried the following:
I've made a MySQL database with my information in it and I'm able to print them out on the site.
Here is my problem. How do I get the informations inside of a tooltip. I can print them out with "php echo", but this would be a bit too complicated for general users to click on and wait for a page load to see them.
Summary: I need an easy solution to print out the information on a web site inside of a tooltip.
I hope you have any tips for me...
You can print all the content at once and show the tooltips using js without ajax requests.
I might misunderstood you and if yes - you should take some ajax tutorial
Related
I am new to PHP, and i'm trying to get myself some data from a google groups page.
My goal is to get only the time, when was latest post released, but for testing here i'm trying at least get some data (posts). But when i launch my program, i won't get anything useful (just header file and saying i need to enable javascript, then reload the page, but i don't know how to deal with this)
$input_group = file_get_html('https://groups.google.com/forum/#!forum/comp.lang.php');
echo $input_group;
Then, if this will somehow work, i plan to use something like this for getting teh data. Maybye not the best solution tho. This worked for other pages, but for some reason not here.
foreach($input_group->find("someTagHere") as $a){
echo $a->plaintext;
}
Thanks.
What I am trying to do is to make something similar to what I see all the time on almost any website. The button that says Share to facebook. The goal for me is to let my guests share the item they are viewing in my store (Ran on prestashop) on their blog I run (Running on Oxwall).
The goal is for the button to not only link to a blog post submission webpage but to already have the subject line filled out with the item they are sharing's name and the blog post to display the information about the item. I would like to try and do all this using PHP. I am not sure how to go about doing it but I am sure that I could pass the value. Please note that I can mod BOTH the blog site and the shop as I run both and want to connect them.
As an extra bonus I am also running a forum using phpbb3 if I could do the same thing but onto that as well I would greatly thank you. I am trying to interlink everything into one big network. I know its not an easy task but I am sure there is an easy way to pass data onto the other site so that this can be done.
Facebook a 2 tools to get items informations in the page, it parses the page looking for the most common tags and it uses OpenGraph.
You can also provide product informations in the head of your page (between head tags), then blog side, you retrieve only the contents and parse it as XML.
I advise you to cache this data to avoid useless connections between websites and awful overloads while parsing.
You can use your own specifications, Open Graph or another standard, but i advise to use a standard.
I want to reach a function like twitter. When people add a comment in my site anywhere. The newest information will display in one part of my home page. And upload the information without refresh the home page. I think it could be done by ajax, but I am a newbie, can anyone give me a live demo? or introduce me some plugin?
This is a good start for jquery: http://jqueryfordesigners.com/simple-jquery-spy-effect/
Then your ajax call will simply need to get the latest comments from your database. Probably by timestamp or datetime
There is a good example and study material for ajax
http://www.w3schools.com/Ajax/ajax_example.asp
for one project, i need to get the facebook source page (html one) via a php application.
i try lot of method like curl, file_get_content, change my ini_set, etc.... but facebook never let me get the html result file.
Does anyone can help ?
for example this page :
ini_set('user_agent', $_SERVER['HTTP_USER_AGENT']);
$data = file_get_contents("http://apps.facebook.com/is_cool/?cafe_action=album&view=scroll",0);
Print strip_tags($data,"");
Thanks a lot.
Damien
Comment 1 :
- I need to create 2 application. I want to parse the html code to get some information from one to the other. I don't want to duplicate or take the facebook code. I just want to make a "view source" (like IE or firefox) and put it on a file, without ask my users. When my user is logged in my first application, i just want to is is credential to get the other content.
The reason you're having problems is that the majority of the facebook homepage content is loaded via AJAX. The data is not hardcoded into what your browser renders.
You should think of a different way to accomplish your goals. If you tell us a little more about what you're trying to do, we can probably help you find an alternate method.
I've a php file which'll run a SQL script and fetch information about users.
Some user's information may span 2 or 3 pages while some might end in just 1.
I want to print the beginning of ever user's report in a new page. All these process has to be automated because there are some 400 users, and the client can't select page layout for every user or print them individually.
How can i achieve this? using PHP or Javascript?
Is there any library to do this?
Thanks :)
Your question was a little confusing, but now I think you're talking about doing page breaks in a print.css? If so you can use: page-break-before and page-break-after in your CSS.
So using CSS you would do something like:
div.pagecontainer { page-break-after:always; }
Where your page was contained in:
<div class="pagecontainer">page content here</div>
If you're just trying to figure out pagination. Take a look at this php solution.
You can also do completely client side pagination as mentioned in this question and this question.