[Mapbender-commits] r2469 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed May 21 14:37:34 EDT 2008


Author: astrid_emde
Date: 2008-05-21 14:37:34 -0400 (Wed, 21 May 2008)
New Revision: 2469

Modified:
   branches/2.5/http/javascripts/mod_wfs_client.html
Log:
button preview URL added
delete content of update url onchange on click on wfs
getUpdateUrl

--> still sonme style problems
--> still problem, when no wfs is selected and you click on a gui
--> problem, when you want to move a wfs_conf to a gui and no gui is selected

Modified: branches/2.5/http/javascripts/mod_wfs_client.html
===================================================================
--- branches/2.5/http/javascripts/mod_wfs_client.html	2008-05-21 15:38:21 UTC (rev 2468)
+++ branches/2.5/http/javascripts/mod_wfs_client.html	2008-05-21 18:37:34 UTC (rev 2469)
@@ -112,6 +112,7 @@
 	}
 	geturl['wfs'] = w.options[ind].value;
 	geturl['column'] = column;
+	geturl['wfs_version'] = '';
 	getData(geturl);
 }
 
@@ -269,6 +270,10 @@
 	document.getElementById("updateUrl").value = dsJson['url'];
 }
 
+function clearUpdateUrl(){
+	document.getElementById("updateUrl").value = '';
+}
+
 /*
  *
  */
@@ -287,7 +292,7 @@
 	for(var i=0; i<o.id.length; i++){
 		appendOption(document.forms[0].wfsList, o.title[i], o.id[i], false);
 	}
-	appendOption(document.forms[0].wfsList, "WFS Configurations", "-1", false);
+	appendOption(document.forms[0].wfsList, "all WFS Configurations", "-1", false);
 }
 
 function appendWfsConfData(dsJson){
@@ -361,6 +366,15 @@
 	var ind = document.forms[0].guiList.selectedIndex;
 	return document.forms[0].guiList.options[ind].value;
 }
+
+function previewWfsUrl(){
+				 var previewUrl = document.forms[0].updateUrl.value;
+				 if(previewUrl !=''){
+				 							 capabilitiesWin = window.open(previewUrl);
+				}else{
+							alert("Please select a WFS first");			
+				}			
+}
 </script>
 </head>
 <body onload='getWfsList();getGuis();'>
@@ -372,7 +386,7 @@
 	<fieldset class="leftContainer">
 	<legend>WFS List</legend>
 		<p>
-			<select size='4' name='wfsList' class='wfsList' onchange='getWfsConfData();getGuiConfs();'></select>
+			<select size='10' name='wfsList' class='wfsList' onchange='getWfsConfData();getGuiConfs();clearUpdateUrl();'></select>
 		</p>
 	</fieldset>
 
@@ -383,7 +397,6 @@
 			<label for="owsproxy">enable OWSProxy for the selected WFS</label>
 			<br><br>
 			<input type='button' value='Delete WFS' name='delete' id='deleteButton' onclick='deleteWfs()' />
-			<br /><br />
 		</p>
 	</fieldset>
 
@@ -397,25 +410,24 @@
 			<input id='updateUrl' type='text' value='' name='updateUrl' class='updateUrl' />
 			<br />
 			<input type='button' value='Update WFS' name='update' id='updateButton' onclick='updateWfs()' />
-			<br /><br />
+						<input type='button' value='Preview WFS Capabilities' name='preview' id='previewButton' onclick='previewWfsUrl();' />
 		</p>
 	</fieldset>
+<hr />
 
-	<hr />
-
 	<fieldset class="rightContainer">
 	<legend>GUI List</legend>
 		<p>
-			<select size='4' name='guiList' class='guiList' onchange='getGuiConfs()'></select>
+			<select size='6' name='guiList' class='guiList' onchange='getGuiConfs()'></select>
 		</p>
 	</fieldset>
 
-	<hr />
+<hr />
 
 	<fieldset class="leftContainer">
 	<legend>WFS Configuration List</legend>
 		<p>
-			<select size='4' name='wfsConfList' class='wfsConfList' onchange='' multiple="multiple"></select>
+			<select size='6' name='wfsConfList' class='wfsConfList' onchange='' multiple="multiple"></select>
 		</p>
 	</fieldset>
 
@@ -430,11 +442,11 @@
 	<fieldset class="rightContainer">
 	<legend>GUI Configuration List</legend>
 		<p>
-			<select size='4' name='guiConfList' class='guiConfList' onchange='' multiple="multiple"></select>
+			<select size='6' name='guiConfList' class='guiConfList' onchange='' multiple="multiple"></select>
 		</p>
 	</fieldset>
 
-	<hr />
+<hr />
 </form>
 
 </body>



More information about the Mapbender_commits mailing list