Revision: 210
Author:
Sandeep....@nitorgroup.com
Date: Wed Sep 26 07:07:59 2012
Log: added ajax call globally
http://code.google.com/p/direct-certificate-discovery-tool/source/detail?r=210
Added:
/MSP3_Tool_Production/src/main/webapp/include/ajaxCall.jsp
Modified:
/MSP3_Tool_Production/src/main/webapp/home.jsp
/MSP3_Tool_Production/src/main/webapp/include/headerbootstrap.jsp
=======================================
--- /dev/null
+++ /MSP3_Tool_Production/src/main/webapp/include/ajaxCall.jsp Wed Sep 26
07:07:59 2012
@@ -0,0 +1,32 @@
+<%@ page language="java"%>
+<%@ page session="false"%>
+<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.1//EN" "
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html:html>
+<script type="text/javascript"
src="
http://code.jquery.com/jquery-1.7.2.min.js"></script>
+<script type="text/javascript"
src="
http://www.steamdev.com/zclip/js/jquery.zclip.js"></script>
+<script type="text/javascript" src="javascripts/jquery-latest.js"></script>
+
+<script type="text/javascript">
+// Funtion to Run call to get drop down Action
+$(document).ready(function(){
+ //alert('Insider the ajax call');
+ var host = (document.getElementById('requestHeader').value);
+ $.ajax({
+
+ type: "GET",
+ url: "http://"+host+"/ModularSpecPhase3_Tool/Download.do",
+ //data: "dts500=" +dts500,
+ success: function(data){
+ // we have the response
+ $('#info').html(data);
+ //alert('dts500 : ' +dts500);
+ },
+ error: function(e){
+ alert('Error Please set your Configuration Properties: ' + e);
+ }
+ });
+ });
+</script>
+<input type="hidden" name="requestHeader" id="requestHeader"
value="<%=request.getHeader("Host")%>" />
+</html:html>
=======================================
--- /MSP3_Tool_Production/src/main/webapp/home.jsp Tue Sep 18 12:17:55 2012
+++ /MSP3_Tool_Production/src/main/webapp/home.jsp Wed Sep 26 07:07:59 2012
@@ -5,6 +5,7 @@
<html:html>
<jsp:include page="/include/headerbootstrap.jsp" flush="true">
+
<jsp:param name="title"
value="Home Page" />
<jsp:param name="pgDesc"
@@ -14,10 +15,12 @@
<jsp:param name="header" value="" />
</jsp:include>
+
+
<script type="text/javascript"
src="
http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
src="
http://www.steamdev.com/zclip/js/jquery.zclip.js"></script>
<script type="text/javascript" src="javascripts/jquery-latest.js"></script>
-
+ <!--
<script type="text/javascript">
// Funtion to Run call to get drop down Action
$(document).ready(function(){
@@ -42,6 +45,8 @@
<input type="hidden" name="requestHeader" id="requestHeader"
value="<%=request.getHeader("Host")%>" />
<!-- #BeginEditable "Bodytext" -->
+
+
<body>
<div id="content">
<h2>Welcome to the Direct Certificate Discovery Testing Tool</h2>
=======================================
--- /MSP3_Tool_Production/src/main/webapp/include/headerbootstrap.jsp Tue
Sep 25 08:56:00 2012
+++ /MSP3_Tool_Production/src/main/webapp/include/headerbootstrap.jsp Wed
Sep 26 07:07:59 2012
@@ -1,4 +1,13 @@
<%@ page session="false"%>
+<jsp:include page="ajaxCall.jsp" flush="true">
+ <jsp:param name="title"
+ value="Home Page" />
+ <jsp:param name="pgDesc"
+ value="Direct Certificate Discovery Testing Tool - Header" />
+ <jsp:param name="pgKey"
+ value="Direct Certificate Discovery Testing Tool - Header" />
+ <jsp:param name="header" value="" />
+</jsp:include>
<head>
<meta name="ROBOTS" content="none,noindex,nofollow" />