Hi, I have list box which is generated from a SQL query. What I want to do is select a specific value using an offset i.e select the 1st value. Anyone have any suggestions?
Thanks
the error does'nt always come up, sometimes the frame I'm trying to access the value mode from fails to load before the test, other times it works fine.
for this one here I;m using frames:
if(parent.map.document.mapForm.mode.value == null)
{
var newMode = "ZoomOut"
}
else
{
...
}
the other one, I'm using a pop up page.
also,
if(parent.map.document.mapForm.mode.value == null)
{
var newMode = "ZoomOut"
}
else
{
...
}
returns me an error saying that parent.map.document.mapForm.mode.value is null or not an object, if that was the case then by the above code should it not follow on to set the value of newMode...
the form from the window from which I want to pass the vakue from:
<form name="formTemp">
<input name="bbox" type="text" value="<cfoutput>#bbox#</cfoutput>">
<script language="JavaScript">
window.opener.document.navigateForm.bbox.value = document.formTemp.bbox.value...
thanks for the replies, I' tried to set it as u suggested, but it does'nt seem to work:
window.opener.document.navigateForm.bbox.value = document.formTemp.bbox.value;
window.opener.document.mapLoad();
the first line where I set the input box works fine, the second line returns and error...
It does'nt work, if i submit a form from another frame, it submits the form but does'nt envoke the onSubmit call on that page (I want it to call a javascript function on that page when it submits). anyone know of a workaround?
thanks.
basically i want to set the text box on another page to a specific value, and then submit that form on that page.
This is the code I had when I was using it as a frame (instead of using it as a separate page):
<script language="JavaScript">
parent.map.document.formMap.boundarybox.value =...
I'm rather new to programming with JS, so I may be wrong - but try this:
function SelectedItems(){
if(window.document.myDataEntryForm.ListboxMinor.options.length == null)
{
alert("No Items Exist");
{
else
{
var intCount = window.document.myDataEntryForm.ListboxMinor.options.length;
var...
I have an input box and I want to take the value entered in the imput box and pass it as a value through the url. Such that:
<input name="selected" type="text">
<a href="search_action.cfm?zoom=javaScript:document.pcSearch.selected.value">Zoom</a>
But it does'nt work?
I'm trying to create a lis for which every time the code is executed, it appends the new values to the end of the list. I've tried the following, and it does'nt work. Can someone provide suggestions. (for some reason it always equals null?)
if(listXY == null)
{
alert("list eq null");
var...
cheers for the reply. the solution u provided works, but I use alot of flout numbers throughout the code - will i need to use the parsefloat() method on every float variable?
var newXmin = minX + mapXChange;
where the respective values equal: minX = 392362.036001 and mapXChange = -7110.230129734288
alert(newXmin);
gives the alert box saying "392362.036001-7110.230129734288", any reason why it does it not show the evaluated value i.e. 385251.8059?
I tried testing...
I have a variable bbox which equals 4 float values, seperated by commas. Can someone suggest the simpliest way I can extract out each of the values?
(the only way I can think of now is by using a for loop with a substring function, but there must be an easier way?)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.