473,396 Members | 1,760 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,396 software developers and data experts.

Mixing 3 xml-files together showing maps

How can I mix this to one file showing all the markers on Sjælland

var xmlfile = [];
//Sjælland
xmlfile[1] = "map_data_xml.php?category=sh";
xmlfile[2] = "map_data_xml.php?category=sf";
xmlfile[3] = "map_data_xml.php?category=sb";
http://www.tinemuller.dk/alle_folkeb...downmenu/PVII/
--
M.v.h.
Tine Müller

homepage: http://tine_muller.homepage.dk/
Dec 30 '07 #1
4 1838
Tine Müller wrote:
How can I mix this to one file showing all the markers on Sjælland

var xmlfile = [];
//Sjælland
xmlfile[1] = "map_data_xml.php?category=sh";
xmlfile[2] = "map_data_xml.php?category=sf";
xmlfile[3] = "map_data_xml.php?category=sb";
http://www.tinemuller.dk/alle_folkeb...downmenu/PVII/
Well it looks like the easiest approach is to change that
map_data_xml.php code to allow you to fetch marker data for different
categories e.g. to allow
map_data_xml.php?category=sh&category=sf&category= sb
then you can simply pass that URL to your readMap function and it should
parse out the markers and display them.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 30 '07 #2
Tine Müller wrote:
I have made your changes but it doesn't work. Do you have other suggestions?
As I haven't seen much of your server-side code I am more or less
guessing what your server-side code might do and how it can be changed
to produce marker data for several categories.
When you say "it doesn't work" what does that mean exactly? Do you get
errors, if so which exactly?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 31 '07 #3
"Martin Honnen" wrote
As I haven't seen much of your server-side code I am more or less guessing
what your server-side code might do and how it can be changed to produce
marker data for several categories.
When you say "it doesn't work" what does that mean exactly? Do you get
errors, if so which exactly?
I'm not sure what happend the first time but after deleting the new code and
afterwards today after your message pasted it again it looks like it's
functioning.:-)

Now I will make it also for the other parts of the country.

Thanks so much for your help.

/Tine
Dec 31 '07 #4
I was too quick to say it's functioning. Now it's only ALLE there is
functioning and not all the others.

I get this message when loading this
http://www.tinemuller.dk/alle_folkeb...hp?category=sh

Warning: implode() [function.implode]: Invalid arguments passed in
/home/www/tinemuller.dk/alle_folkebiblioteker/dropdownmenu/PVII/map_data_xml.php
on line 11

Warning: Cannot modify header information - headers already sent by (output
started at
/home/www/tinemuller.dk/alle_folkebiblioteker/dropdownmenu/PVII/map_data_xml.php:11)
in
/home/www/tinemuller.dk/alle_folkebiblioteker/dropdownmenu/PVII/map_data_xml.php
on line 25

Hope it's ok that I send you my map_data_xml.php to your private
mailaddress?

/Tine

"Tine Müller" <ti***@email.dkskrev i en meddelelse
news:Tf************@news.get2net.dk...
"Martin Honnen" wrote
>As I haven't seen much of your server-side code I am more or less
guessing what your server-side code might do and how it can be changed to
produce marker data for several categories.
When you say "it doesn't work" what does that mean exactly? Do you get
errors, if so which exactly?

I'm not sure what happend the first time but after deleting the new code
and afterwards today after your message pasted it again it looks like it's
functioning.:-)

Now I will make it also for the other parts of the country.

Thanks so much for your help.

/Tine


Dec 31 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bergel | last post by:
Hello, Does anyone already have some experience in mixing AWT and Swing? Is it conceptually doable? Does the design of Swing prevent interaction between an AWT and a Swing widget? Regards,...
2
by: Mike LeBlanc | last post by:
Hi, I have a desired xml output that looks like this <?xml version="1.0" encoding="UTF-8"?><onhand_request><item organization_id="414">1</item><item...
1
by: ben | last post by:
When running the code below the validation fails when the first line of my xml contains <legalEnvelope version="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"...
8
by: brasilino | last post by:
Hi Folks: I'm trying to make a function from a inline script, which is called by <body'onload' event, calling an function in a external script, with no success. I'm using XHTML. I've tried many...
2
by: timor.super | last post by:
Hi group, In my database, I have a table with fields like this : id | title | xml ------------------------------------ 1 | title1 | <datas><data><item...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.