Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Listings Manager Add-ons:
A Simple Estimated Payment Script.

 

First page Previous page 1 2 Next page Last page  View All


Deven
User

Mar 28, 2004, 6:07 PM

Post #1 of 30 (13635 views)
Shortcut
A Simple Estimated Payment Script. Can't Post

I have looked and looked all over the Net for something where I could display a payment without some clunky form that the visitor would have to fill out. Without any luck I bought a javascript book and set out to create my own.

If anyone is interested I finally created a javascript that will display an "Estimated Monthy Payment".

This simple calculator will allow you to display
the "estimated monthly payment" without the use of
a form. It is in no way to be used for an exact amount.
This script takes the price field and strips any dollar
signs and non-digits, such as commas. It then calculates
the payment based on the length and interest of the loan.
It returns the price rounded to the nearest dollar.

You can hard code the interest and length of loan fields or create $fields$ for these as well. There is no need for the visitor to hit any submit button or anything like that. Here is how we are using it.




Price: $200,000

Estimated Monthly Payment: $1199*

*Based on 6% interest for 30 years.

Click here to change assumptions. (When they click on the link, we pop-up a full function mortgage calculator)




Let me know if your willing to test this, as I have yet to take it live. Include an email address in your post. I'll send it to anyone who ask. All I ask is a post on how it is working for you.

Regards,

~~~Deven


carextreme
User

Mar 28, 2004, 8:50 PM

Post #2 of 30 (13618 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

I'll test it right now.

ebay@carextreme.com

sounds like a good script!


Deven
User

Mar 28, 2004, 8:55 PM

Post #3 of 30 (13616 views)
Shortcut
Re: [carextreme] A Simple Estimated Payment Script. [In reply to] Can't Post

Carextreme - I just sent it to you. Let me know your thoughts. Enjoy.

Deven


Deven
User

Mar 29, 2004, 9:31 AM

Post #4 of 30 (13596 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Tony, I sent you the script. Please post if this works for you.

Thanks, Deven


MAGSGQ
User

Mar 30, 2004, 5:08 PM

Post #5 of 30 (13558 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

I'm interested Deven. tmergl@pacmsolutions.com

Thanks Terry


Deven
User

Mar 30, 2004, 5:38 PM

Post #6 of 30 (13556 views)
Shortcut
Re: [MAGSGQ] A Simple Estimated Payment Script. [In reply to] Can't Post

MAGSGQ - Ok, it's on it's way. If anyone can let me know if this is working for them, I'll post the script. I just want to make sure there is no errors before release. Thanks.


Cliff
Staff


Apr 13, 2004, 3:33 PM

Post #7 of 30 (13465 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Hi Deven,

Thanks for sending in that script for our Support staff to try out. It works brilliantly! Would it be OK with you if we attach it to this thread so that other users can benefit from it?

Thanks again Deven, and I hope to hear from you soon Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


Deven
User

Apr 13, 2004, 5:12 PM

Post #8 of 30 (13460 views)
Shortcut
Re: [Cliff] A Simple Estimated Payment Script. [In reply to] Can't Post

Absolutely. I actually forgot about this - our site is up and running with it. This is a nice little feature to put your car dealership or realty site "over-the-top" ! Here is a link to our site. Just look in the upper right corner of one of our listings to view our "Estimated Payment". Here's the link:

http://www.westteaysrealty.com

PS - I'll attach the script for everyone. Enjoy and let me know if it's working for you. Copy the source code from the attached page and insert it in your _publish_listing.html where you want your results to display.



~~~Deven


(This post was edited by Deven on Apr 4, 2005, 6:13 PM)
Attachments: CALCULATOR.htm (1.03 KB)


dedbob
User

Apr 17, 2004, 3:45 PM

Post #9 of 30 (13385 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

This is a VERY SWEET script! I have put it on my site but I did have a question:
Is there any way to get it to ignore decimal places? I run a public site and people with cars (unlike real estate) put prices in with decimals:

If someone puts in $34,000.00 I get an estimated monthly payment of $65732 (not $657.32)
http://www.corvettetraderonline.com/corvettes/listings/l0002.html

Verses this one @ $34,000 with an estimated monthly payment of $657
http://www.corvettetraderonline.com/corvettes/listings/l0397.html

Any idea on doing this? If not... I guess I could just police it manually... but automatic would be much easier Smile

Thanks,
Scott

Need ImageMagick? GD.pm? You need to GetStacked!
Listings Manager friendly Cheap Web Hosting only $5.95 a month!


Deven
User

Apr 18, 2004, 7:04 PM

Post #10 of 30 (13365 views)
Shortcut
Re: [dedbob] A Simple Estimated Payment Script. [In reply to] Can't Post

Hi dedbob,

Saw your site. Awesome. I'll look for a fix for this. Your right about real estate using whole numbers. Tends to be the norm.

~~~Deven


Deven
User

Apr 19, 2004, 4:13 PM

Post #11 of 30 (13335 views)
Shortcut
Re: [dedbob] A Simple Estimated Payment Script. [In reply to] Can't Post

Try replacing this first line:

var M = "$lfield5_je$".replace(/\D/g,'') //$lfield5 or whatever your price field is.

with these 4 lines:

var H ="$lfield5_je$"
var J =H.replace(/\$/g,'')
var K =J.replace(/\,/g,'')
var M =Math.round (K)



I'm sure there is an easier way, but I think this should work. Keep in mind, I'm a javascript novice. Let me know. ~~~Deven


(This post was edited by Deven on Apr 19, 2004, 4:21 PM)


dedbob
User

Apr 19, 2004, 5:22 PM

Post #12 of 30 (13320 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

FAAAAAAAAAAAAAAAN-tastic!

Works like a charm!

Thanks!
Scott

P.S. - Thanks for the compliments on my site Smile

Need ImageMagick? GD.pm? You need to GetStacked!
Listings Manager friendly Cheap Web Hosting only $5.95 a month!


Deven
User

Apr 19, 2004, 6:17 PM

Post #13 of 30 (13319 views)
Shortcut
Re: [dedbob] A Simple Estimated Payment Script. [In reply to] Can't Post

Glad it worked. Now a favor for me. Can you post me how you resize your windows for your images, along with the "click to close" event?

Thanks, Deven


dedbob
User

Apr 19, 2004, 8:13 PM

Post #14 of 30 (13307 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Sure... at the bottom of this thread... there's an attachment file. Download it and incorporate it into your site.
http://www.interactivetools.com/forum/gforum.cgi?post=19337#19337

If you need ANY help, let me know.

Thanks!
Scott

Need ImageMagick? GD.pm? You need to GetStacked!
Listings Manager friendly Cheap Web Hosting only $5.95 a month!


knick
Novice

Apr 23, 2004, 6:34 AM

Post #15 of 30 (13209 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Deven,

Just got back in country, very interested in the simple estimated payment script. Can you please email it to me @
bgs@cmpu.com


Deven
User

Apr 23, 2004, 10:52 AM

Post #16 of 30 (13198 views)
Shortcut
Re: [knick] A Simple Estimated Payment Script. [In reply to] Can't Post

Knick,

It's already posted. Look up this thread about 4 postings and you'll see an attachment named CALCULATOR.htm. Just save this to your drive, open it up in your favorite HTML editor and copy the code inbetween the <script tags> . Paste this where you want your result to display.

Any questions, Let me know..........Deven


mattiasw
New User

Apr 26, 2004, 10:10 PM

Post #17 of 30 (13010 views)
Shortcut
Re: [Deven] ... Payment Script. -> Use Excel and convert into JavaScript [In reply to] Can't Post

Hi, as one of the authors of ExcelEverywhere, I must says that the easiest is to write a formula =-PMT(B2/12,30*12,B1) in Excel. Then run ExcelEverywhere and about 20 seconds later you have your calculator:

http://www.exceleverywhere.com/nonez/monthly_payment.htm

The original spreadsheet is here, once it is created, the rest is automatic:

http://www.exceleverywhere.com/nonez/monthly_payment.xls

You can either format the calculator in Excel, or you can open up the generated code into a web editor and insert the header and body into your web page.

ExcelEverywhere is almost as cheap as a JavaScript-book, it costs $99

Regards,

Mattias
http://www.exceleverywhere.com


croydon
User

Apr 26, 2004, 10:55 PM

Post #18 of 30 (12997 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Hi Deven.
Your script looks exactly what I have been looking for!
Can I have a copy please?
croydon@xtra.co.nz
www.gisbornerealestate.co.nz


Deven
User

Apr 27, 2004, 4:01 AM

Post #19 of 30 (12944 views)
Shortcut
Re: [croydon] A Simple Estimated Payment Script. [In reply to] Can't Post

OK. Once again I've attached the script. Unzip it, open it in your HTML editor, copy the code (including the script tags) - then paste this where you want your "estimated monthly payment" to appear.



Smile Have fun.....Deven


(This post was edited by Deven on Apr 27, 2004, 4:03 AM)
Attachments: CALCULATOR.zip (0.69 KB)


stanb17
User

Apr 27, 2004, 2:58 PM

Post #20 of 30 (12798 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Hi,

There are probably 6 dozen mortage calculator scripts out there... I have a nice one at

http://www.bragdonrealestate.com/rm/listings/

Pick any listing and you'll see the link for the mortage calculator.

You ref. it in the page with this code

<A HREF="javascript:popUp('http://www.bragdonrealestate.com/mini_mort.html')">Mortgage Calculator</A>

You need to place this between the <head> </head> tags

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=425,height=260');");
}
// End -->
</script>
<meta name="robots" content="noindex,nofollow">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>

Adjust as needed. The code for the page for the actual calculator is here as an attachment named mini_mort.txt.

This script just seems to have a few more options.

Enjoy

Stan
StanTheMan
Attachments: mini_mort.txt (6.22 KB)


Deven
User

Jul 6, 2004, 12:02 PM

Post #21 of 30 (12053 views)
Shortcut
Re: [stanb17] A Simple Estimated Payment Script. [In reply to] Can't Post

Your right. There are many mortgage calculators out there, it's just that I wanted one that didn't require a form to fill in.


fsbo
User

Jul 28, 2004, 6:04 PM

Post #22 of 30 (11761 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Hi Deven,

Your script works great! knowing nothing about programming, I would like to ask one question: Can I somehow use it with 10% down instead of 0 down, thats whats required in our area.

Thanks,
James


Deven
User

Jul 29, 2004, 1:07 PM

Post #23 of 30 (11750 views)
Shortcut
Re: [fsbo] A Simple Estimated Payment Script. [In reply to] Can't Post

Replace this first line:

var M = "$lfield5_je$".replace(/\D/g,'') //$lfield5 or whatever your price field is.




with these 3 lines:

var P = "$lfield5_je$".replace(/\D/g,'') //$lfield5 or whatever your price field is.
var Q = P * .10 //percent down
var M = P - Q





Should work.............Deven


fsbo
User

Jul 29, 2004, 2:21 PM

Post #24 of 30 (11743 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Deven,

That worked GREAT! Thanks so much! I guess I have much to learn!

Thanks again,
James


mw5cents
User

Apr 4, 2005, 11:41 AM

Post #25 of 30 (9268 views)
Shortcut
Re: [Deven] A Simple Estimated Payment Script. [In reply to] Can't Post

Deven,

Sorry I know I'm bringing this post back from the dead!

1st I want to thank you for providing this script for us to use. I have it installed and working perfect, the only thing I would like to do is as you mentioned in your 1st post...have a link for the user to change the assumptions.

I am with you 100%, I do not want the user to have to type in the price. Please let me know if you can help. Also, I noticed in your script you say "or create a field"...could you paste a little code to better explain?

Again thank you for this great script!

Matt

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4