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?
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.