Onclick of a button I am making a Ajax request and displaying the contents in a div in the center of the page. But the problem is the div portion gets displayed behind the main page. How do I solve it. I tried adding a css for the div with higher z-index then the main page. It did not work.
my...
Hi
I am trying to position a div in the center of the page. I have a function which finds the browser type and gets the height and width. How do I use this to display the div in the center of the page
function Browserinfo() {
var browserName=navigator.appName;
alert(browserName);
var...
Hi
I am using ajax to submit the request and then getting the response back to display contents of a div.
this is my code.
function showDiv(setname,url) {
if (window.XMLHttpRequest){ // if Mozilla, Safari etc
page_request = new XMLHttpRequest();
}
else if (window.ActiveXObject){ // if IE
try...
Hi
I am the following encoder to unencode by < symbol. This unencoder worked for   quite well. Thanks to Adam again.
String.prototype.htmlUnencode = function(){
var div = document.createElement("div");
div.innerHTML = this;
return div.innerText;
}
var str = "<sometext"...
Hi,
I am using the following code to replace the blank spaces.
This is value selectedText[i] receives.
selectedText[i] = somevalue;
I want "somevalue"
With the following code I still receive the same old value.
var space = /^\s+/;
selectedText[i] =...
Hi
When I start the tomcat , it starts perfectly, but all the requests hang for ever. I tired looking in to server.xml everything seems to be normal. I am confused of what would be the cause for this.
Thanks for your time
Hi,
I am trying to write a javascript to create a popup window.
I am using struts framework and forwarding the request to a jsp and further populating details in JSP.
This is my script
function showpopup(setname)
{
//alert(setname)...
Hi,
I have a button, when I click it, it should go to DB and fetch some data and display data in a small window below the button with a close sign. What should be my option for window and how do it show it on button click.
Thanks for your time
Meena
I have a submit button , when I click it, I have to go to DB and fetch data and present in a popup window.
Since a DB operation is involved I beleive that AJAX will be a better solution. Please let me know how to do it, since I am a newbie to AJAX and UI.
Thanks
Meena
Hi,
When I submit the form, to the servlet my servlet should read all the options of the select element in the form. For this to happen user need not necessarily select all the options. Please let me know if there is a way we could do this.
Thanks for your time
Meena
Hi
I am using the following code to display a image in the blank window. I wanted to change the widhth and height of the blank window to a particular value. I could not figure out the way of doing it. Thanks for your time and suggestions.
<a href="image.jpeg" target="_blank">clickhere</a>...
The code is as given below. WHen I submit this form I get a error alert " 'document.form2' is null or not an object". I am confused of why this the error. Any suggestions welcome. Thanks for your time.
<script>
function sub2()
{
try
{
document.form2.submit();
}
catch(err)
{
al = err.description...
Hi,
I am trying to show/hide a row in a table after checking a value.
THis is my code
<html>
<script>
function showDiv()
{
document.getElementById('imageDiv').style.display="block";
}
function hideDiv()
{
document.getElementById('imageDiv').style.display="none";
}
function init(var1)
{
if(var1...
Hi
I have a row in the table.
<td><a href="somevalue1"><img src="somevalue2"></td>
Is it possible to write a java script to dynamically change the value of href and src. i.e I have program when mouseover on a certain row, the values of the above href and src must be decided by the java script...
Hi, I have a logic, where I have to trigger the java script after a time delay but with little complications.
In a text field I am typing the word for search. If I type a letter and there is no further keyboard acitvity for one second it should call the java script automatically. In the same...
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.