Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this is banner.jsp :
- <select id = "selectValue" onchange="loadInternationalDoc()">
- <option value="domestic">Domestic (India)</option>
- <option value = "international">International</option>
- </select>
- <script>
- function loadInternationalDoc() {
- var xmlhttp;
- var selectionValue = document.getElementById('selectValue').value;
- var url;
- if(selectionValue == 'international') {
- url="internationalDefault.jsp";
- }
- else {
- var url = "default.jsp";
- }
- if (window.XMLHttpRequest)
- {
- xmlhttp=new XMLHttpRequest();
- }
- else
- {
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- if (xmlhttp.readyState==4 && xmlhttp.status==200)
- {
- document.getElementById("fullwrapper").innerHTML=xmlhttp.responseText;
- }
- xmlhttp.open("GET", url, true);
- xmlhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement