europemap using raphael.js - raphael

I need to create a European map with raphael.js.When mouse over on it,it should display the country name.I don know whether raphael itself form a MAP with the points else do we have to have a map.I really dont have any idea,Please help me on this.I tried looking at the site http://playground.mobily.pl/tutorials/building-an-interactive-map-with-raphael/demo.html,it says something like SVG.Where should I declare that in javascript.
Can anyone help me with this how can i start up or some clear idea.

You do need the contour of every country in SVG format and all of those should be in the same coordinate system, of course.
If you check the source of the page you refer to, it references a javascript file that contains those paths.

Related

Is it possible to hyperlink text output using c++?

I want to output some hyperlinked text to a file using C++. I want the text to be "clickable" so that when a user clicks the "text" it'll take him to a specified, linked webpage. I was trying to make sense of libcurl, but from what I understand it doesn't allow you to output the links in the way i'm describing. For example, I want to output a list of separate links,
Cookie
Cake
Pie
that all go to different webpages. If i'm wrong, i'll do some more learning, but if not, i'd like to hear other suggestions.
Thanks

C++ HTML viewer for scanning?

I just need some help in pointing me in the right direction. I have no issue with research but I don't know where to start!!! I want to make a program that uses a websites search function, but doesn't display the page. It will save the page and scan the HTML for a specific string and display it.
Would it work better to display the page in the background and search it, this way I don't have to save anything??
Where do I start??
A web page is mostly simple text. You can download a page with cURL and search it pretty much like you would any other text. If you don't want to search the contents of the tags, you'd want to search after parsing.

Is there a way to format article layout on joomla?

How can I format article's layout...
For example I would like to display the first image on top under the title but, on the left of the text I would like a column with the date, hits, author name and pic, and any other stuff I like to have there...
Is it posible?
Thanks again for your time and help.
You could check out Joomla overrides. Here's one link to get you started:
http://bit.ly/Z97yls
Hope this helps!
For what I understood of your question, you can easily do this with CSS classes - use google chrome to inspect the code.
Also, there is a amazing component called Modules Anywhere that you can use to insert any module inside your articles page.

Convert url into clickable link

My assignment is to write a Wordpress plugin that converts every text URL [http://www.website.com] inside post content to a clickable link.
Now, I don't want you to give me a finished solution, I just need your direction towards it.
What to look for, what NOT to do and so on.
I know that regular expressions should be used, but I have zero experience with it and I'm not sure where to start altogether.
Thank you!

Create interactive cartesian grid in django

I have a question regarding a platform I'm developing called e-cidadania (GPL). One of the applications will be something like a blackboard where you can put messages. I've been requested to do it like a cartesian grid (p.e. x = good/bad, y = expensive/cheap). My question is, does anybody know about an application like that for django? Or in case that there isn't, how can I do it? I have no idea where to start.
I'll explain a use case, if someone didn't understand: You are in a classroom, the teacher draws on the blackboard the axis and tells the students to write a note. After that every student will put his note according to the axis.
I am not sure if I completely understand your question, but if I'm correct you want the user to input text (name of restaurant or something like that) and instead of showing 2 sliders or dropdown boxes for rating and price, you want to show a cartesian chart where the user can click somewhere, thus entering the 2 values with one click.
This has nothing to do with Django or Python, this is pure client side. Think javascript. One way is to show an image with the cartesian grid, set an onclick handler and see where in the image the click was made. Showing the selected point could be done simply by setting a colored div with an absolute position (relative on the position of the image).
I don't know any plug-and-play solutions, but building this shouldn't be too hard.
On a separate note: I doubt this will actually be more userfriendly for the user then simply using two sliders.
Update:
Or if you want to show a big cartesian chart where the user actually has to input the text on the correct position, this can be done with the same idea: create the text-input, but hide it (display:none). Then when the user clicks somewhere on the chart, move the text-input to the correct position and show it.
This may be a little far fetched, but instead of doing this with django alone, why dont u do this client side using javascript?
Hear me out here.
The highcharts graphing plugin has an option that allows u to add points on a (cartesian) graph. Check this example. The plugin also allows you to display custom messages when hovering on points, so you could use that to display the actual message, and you could handle the actual saving of the new message by submitting the newly added message via Ajax.