FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 02-28-2003, 12:49 AM   Postid: 83102
ozdesign
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 2003
Posts: 5
works in Netscape not IE

Hi

http://www.thehungrypeople.org/new/test.htm

I inherited this from another designer as I am doing a redesign and have trimmed page down to minimal necessitites.

Click on any currency in IE and it disappears though right mouseclick it appears.

Script still operates ok.

Offline it works in IE fine.

Works in Netscape online and offline fine.

Source code shows all the script.

Any ideas?

Thx

Chris
ozdesign is offline   Reply With Quote
Old 02-28-2003, 10:10 AM   Postid: 83115
frankc
Site Owner
 
frankc's Avatar

Forum Notability:
181 pts: Ambassador of Goodwill
[Post Feedback]
 
Join Date: Mar 1999
Location: northeastern Illinois
Posts: 1,004
Re: works in Netscape not IE

Quote:
Originally posted by ozdesign:
Click on any currency in IE and it disappears though right mouseclick it appears.
Works just fine here! (IE6.0.2800.1106 SP1).
__________________
Frank
:: There is more to life than increasing its speed. (Gandhi) ::
:: Be careful of your thoughts, they may become words at any moment. (Iara Gassen) ::
:: "Perfectionism is self abuse of the highest order." (Anne Wilson Schaef) ::
:: "Life is change; how it differs from the rocks." (Jefferson Airplane) ::
:: "Everyone thinks of changing the world, but no one thinks of changing himself." (Leo Tolstoy, 1828-1910) ::
frankc is offline   Reply With Quote
Old 02-28-2003, 10:22 AM   Postid: 83119
MarkW
Site Owner

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Apr 2001
Location: UK
Posts: 134
Netscape 4.75 and Opera 6.04 seem ok, but Netscape 6.2.3 and IE5.5 behave stranglely - things just disappear.

Had a quick peek at the code. I'm sure radio buttons would be simpler - and require less code.
MarkW is offline   Reply With Quote
Old 02-28-2003, 10:57 AM   Postid: 83123
Andilinks
Site Owner
 
Andilinks's Avatar

Forum Notability:
338 pts: An Honor To Be Around
[Post Feedback]
 
Join Date: Apr 2002
Location: San Antonio, Texas
Posts: 7,204
I have the same IE6 as frankc and it works well here too. Also works fine in Mozilla 1.2.1 and in Netscape 4.5...

That's all the browsers I have installed at the moment.
__________________
@andilinks TwitterAndrea Silver FB
Andilinks is offline   Reply With Quote
Old 02-28-2003, 11:15 AM   Postid: 83126
MarkW
Site Owner

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Apr 2001
Location: UK
Posts: 134
Try something like:
Code:
<html>
<head>
<script language="JavaScript">
<!--
function fnUpdateValues()
{
	if (document.x.abc[0].checked) {
		document.x.tval.value = 400;
	} else {
		document.x.tval.value = 650;
	}
}

// -->
</script>
</head>
<body>
<form name="x">
<input type="radio" name="abc" 
   onClick="fnUpdateValues();" value="USD" checked>US Dollars<br />
<input type="radio" name="abc" 
   onClick="fnUpdateValues();" value="CND">Canadian Dollars<br /><br />
<input type="text" name="tval" value="400">
</form>
</body>

Last edited by MarkW : 03-01-2003 at 09:21 PM.
MarkW is offline   Reply With Quote
Old 02-28-2003, 07:00 PM   Postid: 83148
ozdesign
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 2003
Posts: 5
Getting there

Hi Mark

Very encouraged with your response (and input from others on the board).

I am strictly a designer at present so I can't workout how to add to the jscript code to allow for more than 2 options.

Also on the test form you can select 2 rickshaws and it puts the correct price so there is a tie in with what currency you select and then how much it is for 6 rickshaws at whatever the rate is.

This is the orig page I showed you

http://www.thehungrypeople.org/new/test.htm

Here is the page I modified Mark to show your code. See I have aud and NZ dollars going but I can't get the others to work nor the Sponsor bit.

http://www.thehungrypeople.org/new/test2.htm

If you could help me here it would be fantastic and help my client polish off their new look site without the faulty form of the past.

Regards

Chris
ozdesign is offline   Reply With Quote
Old 02-28-2003, 11:41 PM   Postid: 83167
bendshead
Registered User

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Sep 2000
Location: LIC, NY, USA
Posts: 26
Validate Code, perhaps?

Chris,

I am mostly a designer, too. When I run into bugs using dense code which is not my own, running the code it through a third-party debugger or validator has helped. Dreamweaver MX writes some pretty tight code, so I would try their validator and see what it says. It could be as simple as syntax and Dreamweaver could spit that back out in a few seconds -- so it's worth a shot. Older versions of DW are good, too. GL.

Peace - Johnny
bendshead is offline   Reply With Quote
Old 02-28-2003, 11:47 PM   Postid: 83169
ozdesign
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 2003
Posts: 5
Thanks Johnny

I am waiting to hear back form Mark on this but I do have a copy of Dreamweaver somewhere I can dig out..I am generally a code man.

Handy to know that for the future too!

Chris
ozdesign is offline   Reply With Quote
Old 03-01-2003, 09:18 PM   Postid: 83212
MarkW
Site Owner

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Apr 2001
Location: UK
Posts: 134
Chris

Learning a little bit javascript will get you a long way!

I'll let you figure out how to add the other three radio buttons, integrate the Special Build Code, do the type checking, testing, etc, but here's a bit more to get you going.

Code:
<html>
<head>
<script language="JavaScript">
<!--
function fnUpdatePPR()
{
   if (document.x.sCcy[0].checked) {        // USD
      document.x.iPPR.value = 400;
   } else if (document.x.sCcy[1].checked) {  // CND
      document.x.iPPR.value = 650;
   } else if (document.x.sCcy[2].checked) {  // AUD
      document.x.iPPR.value = 700;
   } else {                               // NZD
      document.x.iPPR.value = 750;
   }
   fnUpdateTotal();
}
function fnUpdateTotal()
{
   document.x.iTotal.value = document.x.iPPR.value * document.x.iQty.value;
}

// -->
</script>
</head>
<body>
<form name="x">
<table>
   <tr>
      <td>Choose currency: <td>
      <td colSpan="3">
         <table>
            <tr>
               <td nowrap><input type="radio" name="sCcy" 
                  onClick="fnUpdatePPR();" value="USDRate" checked>US Dollars</td>
               <td nowrap><input type="radio" name="sCcy" 
                  onClick="fnUpdatePPR();" value="CNDRate">Canadian Dollars</td>
            </tr>
            <tr>
               <td nowrap><input type="radio" name="sCcy" 
                  onClick="fnUpdatePPR();" value="AUDRate">Australian Dollars</td>
               <td nowrap><input type="radio" name="sCcy" 
                  onClick="fnUpdatePPR();" value="NZDRate">NewZealand Dollars<td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td align="right">Price: <td>
      <td><input type="text" name="iPPR" size="6" value="400" readOnly><td>
      <td align="right">Special build code: <td>
      <td> <input type="text" name="sSBC" size="6" value=""><td>
   </tr>
   <tr>
      <td align="right">Qty: <td>
      <td><input type="text" name="iQty" 
         onkeyup="fnUpdateTotal();" size="6" value="1"><td>
      <td align="right">Total: <td>
      <td><input type="text" name="iTotal" size="6" value="400" readOnly><td>
   </tr>
</table>
</form>
</body>
Mark
MarkW is offline   Reply With Quote
Old 03-04-2003, 11:01 PM   Postid: 83411
ozdesign
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 2003
Posts: 5
Hi Mark

http://www.thehungrypeople.org/new/r...w_sponsor2.asp

Well I have tried and got the rest of the currency fields to work fine but that Special code thing is a mystery.

I have talked to client and what is meant to happen is that when they insert AUD600 or aud600 in there it makes value change to 600. That is it overwrites what you select in the radio button. Any other value in there makes no difference to the radio button selections.

So I know logically it should say somehow if ssBC=AUD600 or aud600 then write 600 but I can't work out how to incorporate this into the script.

See the original script operation when you add AUD600

http://www.thehungrypeople.org/new/rickshaw_sponsor.asp

If you can help further it would be much appreciated.

Regards

Chris
ozdesign is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump


All times are GMT -4. The time now is 03:14 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.