473,395 Members | 2,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

where can we find a function like imagecreatefromdiv()

hello

how to store the contents from existing
[HTML]<div id="map_canvas">contents</div>[/HTML]
http://a6000000.kilu.de/tmp/gmstore.php
as a image,
maybe in javascript or AJAX_PHP
where can we find a function like imagecreatefromdiv() ?
// http://www.php.net/manual/en/functio...fromstring.php

thanks , andreas.


----------------------
// de:
imagecreatefromdiv=Wie getElementById() <div id="map_canvas"..> in image.jpg speichern

hallo

wie speicher ich den inhalt eines <div id="map_canvas" .. /div> ein image.jpg,

In:
http://a6000000.kilu.de/tmp/gmstore.php
[HTML]<div id="map_canvas"
style="border: 1px solid #557797; background-color: #e5e3df;
margin-top:0px; margin-left:3px;
width:272px; height: 319px; ">
[/HTML]
lasse ich mit javascript
var map = new GMap2(document.getElementById("map_canvas"));
eine GoogleMaps anzeigen. Den Inhalt des <div id="map_canvas" .. /div>
moechte ich in eine Datei , in ein image.jpg , speichern, dass koennte ich
function imagecreatefromdiv() nennen , als cache sozusagen , damit nicht mehrmals das gleiche geladen wird.
// http://www.php.net/manual/en/functio...fromstring.php

danke

Andreas
Nov 22 '07 #1
3 1247
acoder
16,027 Expert Mod 8TB
This is not possible with JavaScript as far as I'm aware.

You could use Ajax to do this where the string is passed to a PHP script which generates the image and passes back the location of the created image.
Nov 22 '07 #2
I am happy to read it is possible with php,

@acoder: ..where the string..
but if you klick on the link:
http://a6000000.kilu.de/tmp/gmstore.php
you see it is not a string in the <div> it is a google-map
do you have any example, to store a pice/or element/or <div> in a image-file , please ?

but I am confused, because on server, where php works, the webside isnt build, the client-browser build the site , I think so.

but if you have any example , thanks

php or AJAX or javascript welcome 8-)

Andreas
Nov 22 '07 #3
acoder
16,027 Expert Mod 8TB
The Google Map is a set of images.

If you go 4-5 divs deep from the main canvas div, you'll find img tags. These are probably what you need.
Nov 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Christian | last post by:
HI, I have a function that is used to constrain a query: Select COl1, Col2 From MyTable WHERE col1 = ... AND col2 = ... And MyFunction(col1) = ... My problem is that MyFunction is executed...
15
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
14
by: Stegano | last post by:
I am learning C Programming after working with Java for 5 years. I want to know where can I find the source files for C language itself. For example strcat is a function, which concatenates two...
22
by: Christopher Nelson | last post by:
I have a little menu system which essentially takes HTML like: <div id='foo'></div> and retrieves foo.shtml from the server and inserts it inside the <div>. But sometimes I'd like foo.shtml...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.