p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_databases thread: Help! My submit buttons don't do anything on Apple Macs!!


Message #1 by "Dirk Kinvig" <dirk.welsh@p...> on Tue, 18 Jul 2000 16:28:11

I have been using the Beginning ASP db book and got as far as chpt 10. 



I tried out the "tryitout-1.htm" on an Apple Mac, the page downloaded fine 

but when I came to use the submit button NOTHING happened! Not even an 

error message.



I'm trying to create an intranet project and some my company use Macs. I 

don't want to create a project that not everyone can use.



Can anyone help me/guide me in the right direction? 



Thanks in advance



Dirk

Message #2 by Tristian O'brien <obrient@m...> on Tue, 18 Jul 2000 17:06:36 +0100
show us the code.  i have developed asp pages that work on a lot of browsers

netscape/ie on pcs/macs.  I have had similar problems.  What you have to

remember is that the ASP is most certainly not to blame.  It is most likely

a problem eith your HTML.  Somebrowsers recover from error better than

others.  In this respect Netscape is worse that IE.



Try looking at the page on IE on a PC and then copying the source and

viewing on the mac.





-----Original Message-----

From: Dirk Kinvig 

Sent: 18 July 2000 17:28

To: ASP Databases

Subject: [asp_databases] Help! My submit buttons don't do anything on

Apple Macs!!







I have been using the Beginning ASP db book and got as far as chpt 10. 



I tried out the "tryitout-1.htm" on an Apple Mac, the page downloaded fine 

but when I came to use the submit button NOTHING happened! Not even an 

error message.



I'm trying to create an intranet project and some my company use Macs. I 

don't want to create a project that not everyone can use.



Can anyone help me/guide me in the right direction? 



Thanks in advance



Dirk

Message #3 by "Dirk Kinvig" <dirk.welsh@p...> on Wed, 19 Jul 2000 9:56:8
Hi there Tristan



I'm using Internet Explorer on both the pcs & Macs



The code for my project is v. similar to the code for the ASP db Book which 

follows, any help/tips would be greatly appreciated:



<HTML>

<script language=vbscript>

Sub btnSubmit_OnClick()

	'The only required fields at this point are

	'club name and club code

	If Len(frmAdd.txtClubName.value) = 0 Then

		Alert "You must enter a club name"

		frmAdd.txtClubName.focus

		Exit Sub

	ElseIf Len(frmAdd.txtClubCode.value) = 0 Then

		Alert "You must enter a club code"

		frmAdd.txtClubCode.focus

		Exit Sub

	End If

	

	'If we make this far then submit the form

	Call frmAdd.submit()

End Sub

</script>

<HEAD>

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<TITLE>Chapter 10 - SQL Statements That Modify Data</TITLE>





</HEAD>

<BODY>

Try It Out #1 - Add A New Club Form<br><br>



<form action=TryItOut-2.asp method=post name=frmAdd>

	<input type=hidden name=Action value=Add>

	<table>

		<tr>

		<td>Club Name</td>

		<td><input type=text name=txtClubName size=30></td>

		<td width=10></td>

		<td>Club Code</td>

		<td><input type=text name=txtClubCode size=5></td>

		</tr>

		<tr>

		<td nowrap>Annual Meeting Date</td>

		<td><input type=text name=txtMeetingDate size=10></td>

		<td width=10></td>

		<td>Club Dues</td>

		<td><input type=text name=txtClubDues size=7></td>

		</tr>

		<tr>

		<td>Club Web Site</td>

		<td><input type=text name=txtWebSite size=30></td>

		<td width=10></td>

		<td nowrap>Has Cranes</td>

		<td><input type=checkbox name=chkCrane value=1></td>

		</tr>

		<tr>

		<td>Number of Members</td>

		<td><input type=text name=txtMembers size=7></td>

		</tr>

		<tr>

		<td>Notes</td>

		<td colspan=4><textarea rows=2 cols=50 name=txtNotes></textarea></td>

		</tr>

		<tr>

		<td height=60><input type=button name=btnSubmit value=Submit></td>

		</tr>

	</table>

</form>





</BODY>

</HTML>





Message #4 by "Ken Schaefer" <ken.s@a...> on Thu, 20 Jul 2000 11:16:25 +1000
AFAIK VBScript is supported by IE, and only on the PC, not the Mac.



Use Javascript instead...



Also, when using HTML, always delimit your attribute values with " marks.



<input type="text" name="txtfield1" value="somevalue">



...etc...



It'll save you lots of hassles latter on, especially if you use databases

and ASP pages.



Cheers

Ken

----- Original Message -----

From: "Dirk Kinvig" <dirk.welsh@p...>

To: "ASP Databases" <asp_databases@p...>

Sent: Wednesday, July 19, 2000 12:00 AM

Subject: [asp_databases] RE: Help! My submit buttons don't do anything on

Apple Macs!!





> Hi there Tristan

>

> I'm using Internet Explorer on both the pcs & Macs

>

> The code for my project is v. similar to the code for the ASP db Book

which

> follows, any help/tips would be greatly appreciated:

>

> <HTML>

> <script language=vbscript>

> Sub btnSubmit_OnClick()

> 'The only required fields at this point are

> 'club name and club code

> If Len(frmAdd.txtClubName.value) = 0 Then

> Alert "You must enter a club name"

> frmAdd.txtClubName.focus

> Exit Sub

> ElseIf Len(frmAdd.txtClubCode.value) = 0 Then

> Alert "You must enter a club code"

> frmAdd.txtClubCode.focus

> Exit Sub

> End If

>

> 'If we make this far then submit the form

> Call frmAdd.submit()

> End Sub

> </script>

> <HEAD>

> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

> <TITLE>Chapter 10 - SQL Statements That Modify Data</TITLE>

>

>

> </HEAD>

> <BODY>

> Try It Out #1 - Add A New Club Form<br><br>

>

> <form action=TryItOut-2.asp method=post name=frmAdd>

> <input type=hidden name=Action value=Add>

> <table>

> <tr>

> <td>Club Name</td>

> <td><input type=text name=txtClubName size=30></td>

> <td width=10></td>

> <td>Club Code</td>

> <td><input type=text name=txtClubCode size=5></td>

> </tr>

> <tr>

> <td nowrap>Annual Meeting Date</td>

> <td><input type=text name=txtMeetingDate size=10></td>

> <td width=10></td>

> <td>Club Dues</td>

> <td><input type=text name=txtClubDues size=7></td>

> </tr>

> <tr>

> <td>Club Web Site</td>

> <td><input type=text name=txtWebSite size=30></td>

> <td width=10></td>

> <td nowrap>Has Cranes</td>

> <td><input type=checkbox name=chkCrane value=1></td>

> </tr>

> <tr>

> <td>Number of Members</td>

> <td><input type=text name=txtMembers size=7></td>

> </tr>

> <tr>

> <td>Notes</td>

> <td colspan=4><textarea rows=2 cols=50 name=txtNotes></textarea></td>

> </tr>

> <tr>

> <td height=60><input type=button name=btnSubmit value=Submit></td>

> </tr>

> </table>

> </form>

>

>

> </BODY>

> </HTML>






  Return to Index