ausmaya 0 Newbie Poster

thanks

ausmaya 0 Newbie Poster

I have installed oracle 10g express edition..

is it ok???

ausmaya 0 Newbie Poster

Hi

I have to work with oracle application express 3.2

I have some doubt on installation:

1.whether i need to load oracle 9i release 1 or release 2

2.whether it is possible to work with windows vista/xp?

3. what are the requirements to install apex 3.2??

i am new to this arena, so i need detailed reply

can any one help me??

your help is highly regared

ausmaya 0 Newbie Poster

Thanks for your reply...

i am able to display the image now....

I tried running your code in FireFox (using notepad++). I created my own gif and named it na.gif, the same as yours. I saved the gif file in the same place as the html file was saved. I made NO changes to your code at all. My na.gif image does show up.

edit: I also tried running it in IE8, and the image shows up there, too.

So...is your gif image saved in the same directory or folder as your html file?

ausmaya 0 Newbie Poster

code is here..

In the navigation frame i like to display an image PROFILE, when i click it, in main frame contents of my profile should display.the purpose is like to create online resume portfolio.The problem is PROFILE gif image is not displaying.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>nav</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="profile.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="cccc99" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('na.gif')<table width="150" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center"><a href="profile.html" target="mainFrame" onMouseOver="MM_swapImage('profileW','','na.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="na.gif" alt="Profile" name="profileW" width="130" height="30" border="0" id="profileW"></a></div></td>
  </tr>
</body>
</html>
ausmaya 0 Newbie Poster

Hi,

I have created a .gif image in photoshop,then i have linked the location in html coding.But i am unable to see that image in internet explorer.I am able to see a red crossed line.How to make that image to display??

ausmaya 0 Newbie Poster

use quotes around

function changeImage(obj)
{
obj.src ="creek.jpg"; 
obj.src = "dock.jpg"; 
}

creek will be ignored and dock will be displayed. why you are doing so?

yes i have tried using quotes also..

but same error.."error on page""

not working

ausmaya 0 Newbie Poster

Hi,

I need to change the image to another image using mouse click...

this is the code

i'm getting forest.jpg image when i clicked over the image in status bar it says "error on page"..what i want is i need to display "dock.jpg,creek.jpg".

pls anyone help me to correct this code.......

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   
      <html xmlns="http://www.w3.org/1999/xhtml"><head>
      
      <title>image slide</title>
  
      <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
   
      <style type=text/css>
  
      .fade-box
  
      {
   
      width: 359px;
  
      position: absolute;
  
      text-align:center;
  
      }
    
      #image-container
  
      {
  
      width: 359px;
  
      height: 310px;
  
      background-position:center;
  
     background-repeat:no-repeat;
  
      border-style:solid;
  
      border-width:5px;
  
      border-color:#c2cd23;
  
      margin-top: 0px;
  
      margin-right: 0px;
  
      margin-bottom: 0px;
  
      margin-left: 10px;
  
      }
 
      function changeImage(obj)
	{
         obj.src =creek.jpg;      
         obj.src = dock.jpg;       
       }
    
      </style>
  
      </head>
      <body>

     <div id="image-container">

     <div style="" class="fade-box" >

      <a href="#"><img src="Forest.jpg" alt="forest image" width="359" border="0" height="310" onclick=changeImage(this)></a>

      </div>   

      </div>
      </body>

      </html>
ausmaya 0 Newbie Poster

Hi,

i need a code to change the image(for example i need to display 5 images) when the user click over the image.

thanks

ausmaya 0 Newbie Poster

The error that the file 'registration.aspx' is not found could be because the file is not present in the proper location on the web server.

Some good online resources on javascript are,
http://www.w3schools.com/js/js_intro.asp
http://www.htmlgoodies.com/beyond/javascript/
http://www.javascriptkit.com/javatutors/primer1.shtml

I am also not sure if there is any legitimate site that offers free download of the ebook - Javascript : Complete Reference

hi,

thanks for link...

action method is used to handle the even when onsubmit in the server side...

how should i create that file?? registration.aspx?? it is a notepad file?? i can understand wat the action method is for?? but i am unable to get the idea how to handle that??? .how to link the registraion.aspx fiel with this coding??

my objective for this coding is, i want to check whther the username consists 6 characters.. on that basis what should be the contents in registraition .aspx file.

ausmaya 0 Newbie Poster

Hi,

1.I want to change the image when the user click's over the image

i'm getting error.. "error:javascript:gonext();" like this is status bar
can any one solve me pls>>
suggest some code to change the image when user clicks

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

 <title>image slide</title>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
 <style type=text/css>
.fade-box 
{
                width: 359px;
                position: absolute;
                text-align:center;
   }

 #image-container 
{
        width: 359px;
        height: 310px;
        background-position:center;
        background-repeat:no-repeat;
                border-style:solid;
                border-width:5px;
                border-color:#c2cd23;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        margin-left: 10px;                                              
}

</style>                        
 
</head>
<body>
<div id="image-container">
<div style="display: none;" class="fade-box" id="image-1">
<a href="javascript:GoNext();"><img src="Creek.jpg" alt="creek image" width="359" border="0" height="310"></a>
  </div>

   <div style="" class="fade-box" id="image-2">
     <a href="javascript:GoNext();"><img src="Forest.jpg" alt="forest image" width="359" border="0" height="310"></a>
              </div>

</div>
</body>
</html>

2. if action=registration.aspx is specified i'm getting error..cannot find the path name???? how to validae the form??? how to handle this registraion.aspx???how to use this to validate form

<!DOcTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>first java script example</title>
<meta http-equiv="content-type"  content="text/html; charset=ISO-8859-1" />

<script type="text/javascript">

function validate(form)
{
var returnValue=true;
var username=frmRegister.txtUserName.value;
var password1=frmRegister.txtPassword1.value;
var password2=frmRegister.txtPassword2.value;
if(username.length < 6)
{
returnValue=false;
alert("your username must be atelast six characters");
frmRegister.txtUserName.focus();
}
return returnValue;
}
</script>

<body>
<form name="frmRegister" method="post" action="register.aspx" onsubmit="return validate(this);">

<div class="label"><label for="txtUsername">username:</label></div>
<div class="formElement">
<input type="text" name="txtUsername" id="txtUserName" size="12" />

</div>

<div class="label"><label for="txtPassword">password:</td></label></div>
<div class="formElement">
<input type="password" name="txtPassword" id="txtPassword" size="12" />
</div>
<div class="formElement"><input type="submit" value="login" /></div>
</form> …
ausmaya 0 Newbie Poster

1]
You are getting errors in validation because there are syntax errors in the code snippet.
Be careful to close brackets and quotation marks in the code.
There is '}' missing after 'return returnValue;' in the javascript function.
Also in the line

<input type="password" name="txtUserName id="txtPassword" size="12" />

" missing after txtUserName

Further you have not change the name for the password input field. It is still txtUserName but should be txtPassword because the value in the 'name' attribute is used in javascript and at the serverside

The code should be something like

<!DOcTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>first java script example</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<script type="text/javascript">

function validate(form)
{
var returnValue=true;
var username=frmRegister.txtUserName.value;
var password1=frmRegister.txtPassword.value;

if(username.length < 6)
{
returnValue=false;
alert("your username must be atelast six characters");
frmRegister.txtUserName.focus();
}
return returnValue;
}
</script>

<body>
<form name="frmRegister" method="post" action="register.aspx" onsubmit="return validate(this);">

<div class="label"><label for="txtUsername">username:</label></div>
<div class="formElement">
<input type="text" name="txtUsername" id="txtUserName" size="12" />

</div>

<div class="label"><label for="txtPassword">password:</td></label></div>
<div class="formElement">
<input type="password" name="txtPassword" id="txtPassword" size="12" />
</div>
<div class="formElement"><input type="submit" value="login" /></div>
</form>
</body>
</html>

2]
action="registration.aspx"

is used to indicate the page where the control will go when the form is submitted. In this case it is a page called 'registration.aspx'. It can contain server side validations as well as business logic like database talks and control flows.

3]
There are numerous online resources for web development. You can find some useful resources at

ausmaya 0 Newbie Poster

Hi,

This is the code for form validation to check whether the username has six characters.i'm getting error.In form element i have added action="registration.aspx" i think it is for validaiton in server.. wat is the purpose of it???

can anyone pls suggest free links for webdeveloping ebooks using javascript?. how jquery is related to javascript? How to build online buying websites???

<!DOcTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>first java script example</title>
<meta http-equiv="content-type"  content="text/html; charset=ISO-8859-1" />

<script type="text/javascript">

function validate(form)
{
var returnValue=true;
var username=frmRegister.txtUserName.value;
var password1=frmRegister.txtPassword1.value;
var password2=frmRegister.txtPassword2.value;
if(username.length < 6)
{
returnValue=false;
alert("your username must be atelast six characters");
frmRegister.txtUserName.focus();
}
return returnValue;
</script>

<body>
<form name="frmRegister" method="post" action="register.aspx" onsubmit="return validate(this);">

<div class="label"><label for="txtUsername">username:</label></div>
<div class="formElement">
<input type="text" name="txtUsername" id="txtUserName" size="12" />

</div>

<div class="label"><label for="txtPassword">password:</td></label></div>
<div class="formElement">
<input type="password" name="txtUserName id="txtPassword" size="12" />
</div>
<div class="formElement"><input type="submit" value="login" /></div>
</form>
</body>
</html>

thanks for ur time

ausmaya 0 Newbie Poster

Hi,
i have started to learn javascript.
To run javascript.. browser window and notepad is enough
or i need to load java s/w

also, i'm not getting output for this coding..can any one help me pls???
<!DOcTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>first java script example</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript">
function calculateArea(Width,Height)
{
area=Width*Height
return (area);
}
</script>
</head>
<body>
<form name="frmArea action="#">
enter the width and height:<br/>
width:<input type="text" name="txtWidth" size=5 /><br/>
height:<input type="text" name="txtHeight" size=5 /><br/>
<input type="button" value="calculate area" onclick="alert(calculateArea(document.frmArea.txtWidth.value,document.frmArea.txtHeight.value))"/>
</form>
</body>
</html>