Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 9th, 2003, 08:51 AM
zuzupus zuzupus is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 82 zuzupus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
jscript error

hi,

im fed from this jscript error that document.form is null i dont no whats happening when im giving onchange on one dropdown but at the same time it works fine for another dropdown actually the ides is when user select item from dropdown it displays on text but it throw error

if anybody rectify this error will be appreciable

thanks

Code:
<html>

<head>
<title>Beschreibung</title>


 <SCRIPT language="JavaScript">
                    function goH()
                    {
                             var Current =  document.FORMhvorgang.hvorgang.selectedIndex;
                             document.FORMhvorgang.NEWhvorgang.value = document.FORMhvorgang.hvorgang.options[Current].text;
                    }
                    function go()
                    {
                             var Current =  document.FORMuvorgang.uvorgang.selectedIndex;
                             document.FORMuvorgang.NEWuvorgang.value = document.FORMuvorgang.uvorgang.options[Current].text;
                    }

               </script>
</head>

</head>

         <body leftmargin="0" topmargin="0"  marginwidth="0" marginheight="0" bgcolor="#666666">
         
         <form action="useradmin.php" name="theForm" method="post">
         
            <TD rowspan="2" align="left" valign="top">

              <TABLE border="1" width="170" height="1" bgcolor="#666666" align="left" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
                             <TR bordercolor="#FFFFFF" bgcolor="#333333">
                               <TD height="1" colspan="3">
                                 <P align="center"><B><FONT face="Arial" size="2" color="#FF6600">Hauptvorgang</FONT></P>
                               </TD>
                             </TR>

                             <TR bordercolor="#FF6600">
                                    <TD nowrap>Enter Option Name:
                                      <form name=FORMhvorgang action='' method=post>
                                                        <input type=text size=10 name=NEWhvorgang>
                                                        <SELECT name=hvorgang onchange='goH();'><option value=11>Orga</option><option value=22>Pause</option>  </SELECT> <input type=submit name=add value=add>
                                                             <input type=hidden name=id>
                                                        <input type=submit name=remove value=remove>
                                                             <input type=submit name=update value=update></form>                                    </TD>
                                  </TR>

                                  <TR bordercolor="#FFFFFF" bgcolor="#333333">
                               <TD height="1" colspan="3">
                                 <P align="center"><B><FONT face="Arial" size="2" color="#FF6600">Untervorgang</FONT></P>
                               </TD>
                             </TR>

                                 <TR bordercolor="#FF6600">
                                    <TD nowrap>Enter Option Name:
                                      <form name=FORMuvorgang action='useradmin.php' method=post>
                                                        <input type=text size=10 name=NEWuvorgang>
                                                        <SELECT name=uvorgang onchange='go();'><option value=9>Aufräumen</option><option value=8>Emails Lesen</option><option value=10>Installation/Rep</option><option value=11>Besorgung</option><option value=12>Pause</option>  </SELECT> <input type=submit name=add value=add>
                                                        <input type=submit name=remove value=remove>
                                                             <input type=submit name=update value=update></form>                                    </TD>
                                  </TR>


              </TABLE>

                          
        
        </FORM>
           </body>

</html>

Reply With Quote
  #2  
Old September 9th, 2003, 11:50 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: jscript error

The problem is your the form with named "theForm". You cannot call a form within form with

javascript, I think. This codes works, but not sure it solves your problem.
Code:
<html>
<head>
<title>Beschreibung</title>
<SCRIPT language="JavaScript">
function goH()
{
document.FORMhvorgang.NEWhvorgang.value=document.F  ORMhvorgang.hvorgang.options[doc

ument.FORMhvorgang.hvorgang.selectedIndex].text;
}
function go()
{
document.FORMuvorgang.NEWuvorgang.value=document.F  ORMuvorgang.uvorgang.options[doc

ument.FORMuvorgang.uvorgang.selectedIndex].text
}
</script>
</head>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#666666">
<TABLE border="1" width="170" height="1" bgcolor="#666666" align="left" cellspacing="0" 

cellpadding="0" bordercolor="#FFFFFF">
<TR bordercolor="#FFFFFF" bgcolor="#333333">
<TD height="1" colspan="3">
<P align="center"><B><FONT face="Arial" size="2" 

color="#FF6600">Hauptvorgang</FONT></P>
</TD>
</TR>
<TR bordercolor="#FF6600">
<TD nowrap>Enter Option Name:
<form name=FORMhvorgang action='' method=post>
<input type=text size=10 name=NEWhvorgang>
<SELECT name=hvorgang onchange='goH();'><option value=11>Orga</option><option 

value=22>Pause</option> </SELECT> <input type=submit name=add value=add>
<input type=hidden name=id>
<input type=submit name=remove value=remove>
<input type=submit name=update value=update></form> </TD>
</TR>
<TR bordercolor="#FFFFFF" bgcolor="#333333">
<TD height="1" colspan="3">
<P align="center"><B><FONT face="Arial" size="2" 

color="#FF6600">Untervorgang</FONT></P>
</TD>
</TR>
<TR bordercolor="#FF6600">
<TD nowrap>Enter Option Name:
<form name=FORMuvorgang action='useradmin.php' method=post>
<input type=text size=10 name=NEWuvorgang>
<SELECT name=uvorgang onchange='go();'><option value=9>Aufräumen</option><option 

value=8>Emails Lesen</option><option value=10>Installation/Rep</option><option 

value=11>Besorgung</option><option value=12>Pause</option> </SELECT> <input 

type=submit name=add value=add>
<input type=submit name=remove value=remove>
<input type=submit name=update value=update></form></TD>
</TR>
</TABLE>
</body>
</html>

Reply With Quote
  #3  
Old September 15th, 2003, 12:48 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: jscript error

You can't nest forms...

Reply With Quote
  #4  
Old September 15th, 2003, 12:53 PM
zuzupus zuzupus is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 82 zuzupus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: jscript error

sorry for late reply it works almost perfect

thanks its appreciable

Reply With Quote
  #5  
Old September 15th, 2003, 03:45 PM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: jscript error

zuzupus

glad to hear you solved it.... cool...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > jscript error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT