Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 14-05-2010
Luz Luz is offline
Member
 
Join Date: Nov 2009
Posts: 50
<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
  

Hello to all,
I am last year Computer Science student. I am try to write following code for the html, but I am getting error in it.
Code:
<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
Please help me to fix this problem.
Thank you.

Reply With Quote
  #2  
Old 14-05-2010
Member
 
Join Date: Apr 2008
Posts: 1,946
Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">

Code:
<input type="buttons" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
As per my knowledge you have write wrong code and that's why you are getting error in it. In your above code you have assign "buttons" to the type and that's why you are getting such type of problem. In this case you have to write following code to fix this problem.
Code:
<input  type="button" value="Enregistrer" onclick="location.href='../asp/PRaces.asp'">
Reply With Quote
  #3  
Old 14-05-2010
Member
 
Join Date: May 2008
Posts: 2,004
Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">

You have to first look at following example. Using this example you will learn how to interact with the user, with the Request.QueryString command. Just try to understand this example. In the action tag I have specified "demo_reqquery.asp" page.
Code:
<html>
<body>
<form action="demo_reqquery.asp" method="get">
Your name: <input type="text" name="fnames" size="20" />
<input type="submit" value="Submit" />
</form>
<%
dim fname
fname=Request.QueryString("fnames")
If fnames<>"" Then
      Response.Write("Hello " & fname & "!<br />")
      Response.Write("How are you todays?")
End If
%>
</body>
</html>
Reply With Quote
  #4  
Old 14-05-2010
Member
 
Join Date: Apr 2008
Posts: 1,999
Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">

Code:
<a><input  type="button" value="Enregistrer" onclick="location.href='../asp/PRaces.asp'"><a>
As per my knowledge you have to use above code in your program.
In the above code I have put the code about input into the <a> tag. Just try to understand it.
Reply With Quote
  #5  
Old 14-05-2010
Member
 
Join Date: May 2008
Posts: 2,289
Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">

Why don't you use onclick function like in the following. I have written following code for you. In the following code I have use table to align them. In the following code I am taking radius as input and using it I able to calculate area of circle.
Code:
<FORM>
<TABLE BORDER CELLPADDING=3>
<TR>
<TD><NOBR>radius: <INPUT NAME="Circle_radiuss" SIZE=4></NOBR></TD>
<TD><INPUT TYPE=BUTTON OnClick="Circle_calcs(this.form);" VALUE="calculates"></TD>
<TD ALIGN=RIGHT BGCOLORs="#AACCFF">
<NOBR>circumferences: <INPUT NAMEs="Circle_circumferences" SIZE=9></NOBR><BR>
<NOBR>area: <INPUT NAME="Circles_areass" SIZEs=9></NOBR></TD>
</TR>
</TABLE>
</FORM>
Reply With Quote
  #6  
Old 14-05-2010
Member
 
Join Date: Nov 2005
Posts: 1,323
Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">

You have to write following code to take input from user. In the following code code I have assign RESET value to the type. I also have assign "return confirm('Want to reset the form?')" to the onClick function.
Code:
<INPUT 
    TYPE=RESET 
    onClick="return confirm('Want to reset the form?')"
    >
Reply With Quote
  #7  
Old 18-05-2010
Member
 
Join Date: Jan 2008
Posts: 1,513
Re: <input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">

Quote:
Originally Posted by Luz View Post
Hello to all,
I am last year Computer Science student. I am try to write following code for the html, but I am getting error in it.
Code:
<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">
Please help me to fix this problem.
Thank you.
You have to use following code to fix this problem.
Code:
<input type="buttons" value="Enregistrers" onclick="#f=../asp/PRaces.asp">
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp">"
Thread Thread Starter Forum Replies Last Post
<a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a> Madaleno Software Development 7 04-01-2012 08:14 PM
Redesign input type="file"(button) $kRITIKa$ Software Development 6 12-06-2011 12:59 AM
CSS Button onclick event href="#" onclick=" Cornnelius Software Development 6 14-05-2010 11:20 PM
<A HREF="#" onClick="window.open ('sitename.html') ...> Amy Adams Software Development 4 11-05-2010 12:45 PM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP Support 1 06-11-2007 01:18 PM


All times are GMT +5.5. The time now is 08:23 PM.