JS Passing Into PHP - Googlemaps?
Oct 16, 2010
I'm trying to create a simple GoogleMaps site, to insert data into a SQL database for retreival later.I can pass all the information apart from the longitude and latitude values, and they just appear as '0' in my database.
Quote:
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.enableGoogleBar();
[code].....
View 3 Replies
ADVERTISEMENT
Apr 8, 2009
I'm trying to get addresses from an XML doc and use them to populate a google map with markers. My problems are (A) markers don't show up when I first load the page, but if I return to the page they magically appear, angles sing and all is right with the world, and (B) Markers just flat out refuse to populate when using Firefox. My code is pretty simple and I'm just not understanding where I'm going wrong:seemlingly the offending code:
functin addMarkers(){
htt.open('get', 'phoneBook.xml', true);
http.send(null);
[code]....
View 7 Replies
View Related
Oct 19, 2009
I would like to integrate google maps into Birt (which is a business intelligence framework with html reports). What I succeeded so far is to build an iframe which is calling an html which contains the googlemaps page, this looks like this:the iframe (which is part of my html report):
Code HTML4Strict:
<iframe src ="text.html" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
and the text.html which contains the google maps page:
Code HTML4Strict:
<html xmlns="h t t p : // w w w . w3 . org/ 1999/xhtml">
<head>
<script src="h t t p : // ma ps. google . com/ maps?file=api&v=1&key=ABQIAA...." type="text/javascript">
</script>
[code]....
This works so far, but this is not dynamic. What I need is some way to pass the coordinates to the GPoint(x, y) object. The iframe is inside of Birt and I can insert some code there, the values would be represented as following: <VALUE-OF>row["X"]</VALUE-OF>, <VALUE-OF>row["Y"]</VALUE-OF>.
My problem is now how to pass this values to the GPoint object in text.html. Is it possible to build a function which receives this parameters or is it possible to put the text.html code inside of the iframe (what i tried so far didn't work, as I said, my javascript/html knowledge is limited).
View 1 Replies
View Related
Sep 15, 2010
You'll see a google map there, created with this jQuery plugin. Although I've used the plugin on several occasions without any trouble, this time the map's .png icon/marker cannot be made transparent.
I've tried several things (removing my reset.css file, adding a js png- transparency fix, fiddling with the plugin options) but nothing works...
View 2 Replies
View Related
Aug 22, 2009
For years I have been using external_link.js, a file that I found at sitepoint, in one of Kevin Yank's articles I believe, to open new pages in a new tab when a link contained rel="external"
I just added the googlemaps api to a site to display maps, and none of the old menu links open in new tabs anymore! Has anyone else had this problem or have any idea why it has happened? Same function name in both javascripts?
View 1 Replies
View Related
Mar 13, 2011
i have a project for school to create a web app that's using geolocation to recive the LatLong coordinates and draw a path in google maps using polylines. There are more features that we are going to implement but this is the one i need help with.What i need is to push into the array of the polyline the coordinates i get from geotraker.Use Chrome Browser, the other ones are not supported buy the geotraker.Try this in chrome and see if ur getting the coordinates The zipped files
View 1 Replies
View Related
Feb 25, 2011
what i would like is to achieve what has been implemented here : [URL] the problem is that, although i have the numerical values (%) that indicate the traffic that passes through a link available as data, how to display them onto the google map?
View 1 Replies
View Related
Oct 24, 2010
Another quick question re. the JQuery sidebar I have on my Google map. I would like to link to individual markers from different websites or via email, so would like to convert for example, the 'javascript:myclick(7)' link on the menu to an external URL that will click to the marker and info box containing the video. Is this possible?I have tried something like [URL].. but that doesn't seem to work. Does someone know of anotherwayto do this?[URL]...
View 4 Replies
View Related
Sep 30, 2009
I'm passing the variables myTitle and myLink to form.php using javascript.
This is the way I'm doing it:
Code:
<a href='form.php?title=" + myTitle +"&link="+myLink+">Click me</a>
It's working great but sometimes myTitle and myLink contain the plus character (+). When this happens it's not passed. In the case of the title, it's just a problem of looks but in the case of the link, well, the link won't work without the character.
As an example if the title is: Laptop + Accessories What is passed is: Laptop Accessories
What can I do to pass also the plus character??
View 4 Replies
View Related
Mar 26, 2010
I am working on a dropdown list of countries and I have two questions about the code below:
1. How do I pass the value of the getSelectedValue() function into a hidden html field, so that I can post it to PHP's $_POST array?
2. When I create two or more instances of the dropdown list (shipping and billing addresses) the value of one changes both values, when I echo out <span id="country">. What do I need to do to separate them, so that each getSelectedValue() is separate? I know I can only have one id=country per page, so how do I have multiple values that remain separate?
Code:
$(".dropdown dd ul a").click(function() {
var dl = $(this).closest("dl");
var dropID = dl.attr("id");
[Code]....
View 7 Replies
View Related
Jul 23, 2005
<script type="text/vbscript">
Dim objWord
Sub Btn1_onclick()
call OpenDoc("K:DeloitteTeam1 Status reportJavaProgramshi.txt")
End Sub
Sub OpenDoc(strLocation)
Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
End Sub
</script>
I would like to pass the filename used above in the button code below so
the above code could be coded only once and then mutiple button code
could be used.
<td><INPUT TYPE=BUTTON NAME=Btn1 VALUE="Requirements Template"></td>
View 2 Replies
View Related
Oct 9, 2005
I have a javascript function that is called in an OnClick event for a
button.
I am attempting to get the function to open a web page in a new window
in response to a button click.
I can get the page to open if I use the following syntax (hard code the
address)
var newwin =
indow.open("http://www.w3schools.com","","width=1200height=1000");
However, If I pass the url in as a parameter to the function (as below)
the value passed in is "Undefined" and obviously the page will not open
function openThePage(url)
{ url = "http://www." + url;
var newwin = window.open(url,"","width=1200height=1000");
}
<input
class="mybutton"
type="button"
name = "W3Schools"
value="w3schools.com"
onclick="openMyUrl(W3Schools.Value)">
Anyone any idea how I can do what I want - what I am doing wrong. I am
grey enough as it is and I don't want to start pulling my hair out.
View 1 Replies
View Related
Jan 23, 2006
I have a form like this:
<form name="dane" action="wyszukiwanie.php" method="post"
verify_form()">
<input maxlength="30" size="35" name="family_name" value="">
</form>
Now, How can I pass a value from this input to my js script verify_form() ??
And second question: if I have "radio" input im my form how can I check
using js if any option was chosen?
View 1 Replies
View Related
Feb 6, 2006
In my form I've got some dropdown lists that are stored into an array....
View 1 Replies
View Related
Dec 4, 2006
I found a JS function I'd like to use, which animates a layer so that
it moves across the screen.
The problem is the function, as found, simply names the DIV directly. I
want to be able to use the function in the HTML to pass the ID of the
DIV which gets moved. Sounds fairly straight-forward, right? Well it
doesn't work and I have spent HOURS on this. Yes, I am red-faced. Code:
View 6 Replies
View Related
Sep 22, 2009
What I need to do, and it shouldn't be that difficult is this:page1.html - there is a yellow button and a red button - if the user clicks on the yellow button I want to set a cookie with the value "yel" then load the next page - if they click the red button set that cookie with the value "red"page2.html - 'onload' i want to read that cookie and load up the main image to match, something like this maybe?...
document.mainimage.src='img/main_' + variable + '.png'so that the path would be for example 'img/main_red.png'Any help please? Preferably javascript only and as simple as possible. If you think this would be easier sending that variable in the URL instead of as a cookie.
View 1 Replies
View Related
Nov 3, 2009
I think this is what I am trying to do, I am pretty new to javascript so I'm not sure... but here is my question... I got this function below.
function getProductInfo(id) {
var sku = window.document.InvoiceForm.Item0Sku.value;
alert(sku);
}
when I use the 0 I get the right value back, however whenever I try to pass it the id variable with a value of '0' I can't seem to compose the concatenation correct in order to recieve the correct value.I either recieve errors or the whole window.document.InvoiceForm.Item0Sku.value string back in the alert, what am I doing wrong?
View 3 Replies
View Related
Jan 12, 2010
There is <span id="id1234" style="visibility: hidden">NOT </span>hidden content here.
<script type="text/javascript">
function showIt(uniqueID) {
document.getElementById(uniqueID).style.visibility = "visible";
[code]...
View 5 Replies
View Related
Feb 27, 2011
Is it possible to pass the id onChange like in this example instead of the value This is part of a large complex script, and I need the id as seperate function
<select name='color' onChange='this.form.F1.value=this.form.color.id' >
<option value='Green' id='c1'>Green
<option value='Red' id='c2'>Red
[code]...
View 2 Replies
View Related
May 2, 2010
I'm trying to pass a $counter2 value from php loop to javascript, but $counter2 is incremented so I'm passing the highest value of $counter2, which i not what I want to do. Is there a way to combine values with html identifiers and pass them to js?
[URL]
View 2 Replies
View Related
Jan 29, 2009
i have a hidden filed with a value want to pass this value frm one page to another using
[Code]....
in second page i have used request.form("field name") but getting balnk
View 1 Replies
View Related
Apr 28, 2010
I am trying to pass the appropriate parameters but nothing seems to be working?
function calcSubTotal(unitPriceId, qtyId, subTotalFieldId) {
var unitPrice = parseFloat(document.getElementById(unitPriceId).value);
var qty = parseInt(document.getElementById(qtyId).value);
<tr>
<td><table><tbody>
[Code]....
View 2 Replies
View Related
Dec 15, 2003
<html>
<script>
function dodelete(a)
{
alert(a);
}
</script>>
<?
$abc='salman'
echo("<A href='javascript:dodelete($abc);'>click here </A>");
?>
</html>
This is the code...i want to pass a string variable of PHP to a javascript function but it returns an error...kindly could someone help me?
View 2 Replies
View Related
Mar 21, 2005
For some reason, I am using document.referrer in a PHP script that is called as a JavaScript script. The problem is that I need to pass the value of document.referrer to a PHP variable (in the same file) in order to add it to the database. How can I do that?
View 2 Replies
View Related
Jan 25, 2010
I am looking for a simple script that can read the parameter from the URL and pass it into a HTML textfield element.
www.example.com?email=test@test.com
On the page the email text field should be pre-populated on load.
View 1 Replies
View Related
Jan 28, 2010
how to pass everything after the .php part in this link
PHP Code:
[URL]
to a iframe on the same page. "hosted on the same site" like this
PHP Code:
"<iframe>
src="http://www.wreckedclothing.net/help.php?e=john@wreckedclothing.net&t=985559"
frameborder="0"
width="829"
name="tree"></iframe>
see how it adds everything to the link in src
View 1 Replies
View Related