hi,
I got form in a html file:
xxxx.html page:
<form id="form1" name="form1" method=GET onsubmit="load()">
<label for="start">start</label>
<input name="start" type="text" id="start"
title="YYYY-MM-DD"/>
<label for="end">end</label>
<input name="end" type="text" id="end"
title="YYYY-MM-DD"/>
<label>Go
<input type="submit" name="Button" id="Go"
value="Submit" />
</label>
</form>
JS page:
var startdate
=document.getElementById("start").value;
var enddate =
document.getElementById("end").value;
GDownloadUrl("yyyyy.php?start="+
startdate +"&end=" + enddate, function(data){ }) ;
yyyyy.php:
$varDatebegin = $_REQUEST['start'];
$varDateend = $_REQUEST['end'];
SQL.........
I wanna pass variables to GDownloadUrl, but I get xxxx.html?
start=2008-01-01&end=2008-01-01&Button=submit in the addressbar.
Could you help??
Many thanks
On Aug 26, 6:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Aug 25, 10:04 pm, TDDPHPDEV <[EMAIL PROTECTED]> wrote:
>
> > HI,
>
> > I'm developing an asset tracking application (yes, I plan on
> > purchasing a Premier Key once this is developed).
>
> > Mapping Code:
>
> Please read the posting guidelines and post a link to a map that shows
> the issue you are asking about...
>
>
>
> > Ajax Code:
>
> Why aren't you using GXmlHttp? Google has already done the cross-
> browser stuff?
>
>
>
> > Explanation:
>
> > a button on the page calls sndReq, which gathers the id's of the
> > checked boxes on the page and sends them to a PHP script, which
> > processes the calls to the database to retrieve the current locations
> > of the checked assets. the script then outputs the data to an XML
> > file, which is called byGDownloadUrl.
>
> Don't create a file for all kinds of reasons, the main one being it is
> not scaleable. If more than one person is using your site at the same
> time, strange things will happen (they will see the markers someone
> else requested)
>
>
>
> > sndReq calls GUnload() to unload the map prior to calling the PHP
> > script, and the load() function is called to reload the map once the
> > PHP script is done processing..
>
> > This works flawlessly in Firefox, it works exactly as I intended it
> > to.
>
> > However, in IE, it appears to "cache" the initially loaded map (when
> > the page is loaded), when the button in clicked to call sndReq(), i
> > have verified that the PHP script is ran, because the XML file
> > generated has changed. However, it gets stuck reloading the map with
> > the new XML file, all users see is the old "original" map. Are there
> > any existing bugs that i'm not aware of??
>
> It is not a "bug" per se. IE has a very tenacious cache, you need to
> either force it to reload the xml file or add component that changes
> on every request (the date/time, a random number...)
> Search the group for caching issues...
>
> Please delete your previous partial post (more options: remove at the
> top)
>
> -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---