Coder Circle

Your Path for Knowledge to Wisdom

Entries for January, 2008

Problemes With Iframe. And it’s solution

When we REFRESS web page containing IFRAME, the page reloades with the starting page. Here is the solution being in the existing page after refress. (PHP Script)
Generally what happens, when we refress a web page containing IFRAME ? The page reloades with the starting page. Information provided in the existing page are lost. this is [...]

Leave a Comment

How To Access Cookie Without any special Charecters

Generally, when we access javascript, wild card charecters are replaced by some special symbols (like +,% etc). This code is for accessing cookie value withour any special chacters. Try It.
//Reading Cookie
function ReadCookie(n) {
var cookiecontent = new String();
if(document.cookie.length > 0) {
 var cookiename = n+ ‘=’;
 var cookiebegin = document.cookie.indexOf(cookiename);
 var cookieend = 0;
 if(cookiebegin > -1) {
  cookiebegin += [...]

Comments (1)

Handling forms in Javascript

This lesson will give an idea how to start using javascripts in forms
<HTML>
<BODY>
<SCRIPT LANGUAGE=javascript>
<!–
     function f1(){
     document.write(MyForm.name,”<Br>”,MyForm.textname.value,”<Br>”,MyForm.length)
     }
//–>
</SCRIPT>
</BODY>
<FORM action=”” method=POST name=MyForm onclick=”f1()”>
<INPUT type=”text” name=textname value=”Broken Arrow”>
</FORM>
</HTML>
java script form in javascript

Leave a Comment

Iteration in JavaScript

A lesson for the beginners - how to use iteration in Javascript
<html>
<body>
<script>
   <!–
           b=1      
           while (b>6){
                b= document.write(b);b+1;
           }
           document.write(b,”<br>”);
      –>
</script>
</body>
</html>
java script iteration

Leave a Comment

Alert in Javascript

This lesson will help the beginners to handle alerts in JavaScripts
<html>
<head>
<script language=”javascript”>
<!–
function f1()
 {
 alert(”Skill Hut”); // Message ‘Skill Hut’ will be displayed
 }
–>
</SCRIPT>
</head>
<body color=white>
Move your mouse over <a href=”” onMouseover=”f1()”>here</a>
</body>
</html>
java script scripting languages

Leave a Comment

XML and Database

XML interaction with multiple database. Here we have taken two databases - Oracle (Remote) and Access (Local)
<% @Language=VBScript %
<?xml version=’1.0′?>
<?xml-stylesheet type=”text/xsl” href=”Fstyle1.xsl”?>
<people>
<%
set con=server.CreateObject(”adodb.connection”)
con.Open “dsn=asu;uid=asu;pwd=asu”
set rs = server.CreateObject(”adodb.recordset”)
set rs = server.Execute(”Select *From Emp”)
%>
<student>
<name><%=rs(0)%></name>
<roll><%=rs(1)%></roll>
</student>
<%
rs.Movenext
loop
%>
</people>
 
xml interaction database and xml access and xml oracle and xml

Leave a Comment

Creating a file in XML

An example of how to create a basic XML file
<?xml version=’1.0′?>
<details>
<company>
     <name>Lakme</name>
     <products>Cosmetic</products>
</company>
<company>
     <name>Data</name>
     <products>Spices</products>
 
</company>
<company>
     <name>Ranbaxy</name>
     <products>Medicine</products>
 
</company>
</details>
xml file creation

Leave a Comment