Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Total by Quantity
Last Post 08-18-2011 10:26 PM by Don Gee. 8 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
SKUser is Offline
going with the flow
going with the flow
Posts:61
Avatar

--
08-16-2011 04:11 PM
    I have two text fields that need to be Totaled by Quantity.
    I followed the  instructions in the demo, placing the code in the Client Side Event as indicated.

    $(TotalbyQuantity) = (parseInt($(Quantity) *10.00)).toFixed(2); document.getElementById('QTotal').innerHTML = 'Your total here comes to: ' (parseInt($(Quantity) *10.00)).toFixed(2) '';



    I also created a Text/HTML field and added the "Grand Total Code" as indicated in the demonstration.

    $(GrandTotalHidden) = formatCurrency(eval(parseFloat($(TotalExtraonkeypress)) parseInt($(TotalRadio)) parseInt($(TotalbyQuantity)) parseInt($(total)) parseFloat($(checktotal)))) document.getElementById('GrandTotal').innerHTML = 'Your grand total comes to: ' formatCurrency($(GrandTotalHidden)) '';



    The totals aren't working. I assume I have to update one or more of the variables in the client side event, but I can't figure out which ones.

    Thanks.
    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    08-17-2011 08:12 AM
    Hi Sk,
    To be able to follow exactly what you are doing it would be best if you could set up just exactly what you have done in a sample on www.betasprings.com. The login is host/dnnhost. You can simply create a page for your sample in the Dynamic Forms area and copy what you have. You should be able to export and then import your sample. If you export/import check out your module for the presence of your JavaScript.
    I will look for your sample. Let us know in a reply to this forum thread as to the details. Thanks
    SKUser is Offline
    going with the flow
    going with the flow
    Posts:61
    Avatar

    --
    08-17-2011 06:07 PM
    The form is on the betasprings site and has the same error:

    http://www.betasprings.com/DynamicF...fault.aspx

    Thanks.
    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    08-18-2011 09:32 AM
    Hi SK,
    I took a look at your code on BetaSprings. I didn't go in and change it around but there are some suggestions that I offer without doing the actual coding for you as that would normally be a Premium Support. Here are some suggestions.
    Each specific field type has its own types of way with working with JavaScript. When you use $(Tokens) it simply changes this to JAvaScript that is document.getelementbyID(HTML Element ID).value. So basically for some fields though like radio buttons and check box lists, JavaScript can't get the value or reference the value that way. So for those fields you have to use $(Token_FieldID) and then pass that to a function.

    Textbox's are actually much easier.

    You should be able to place a textbox on the page and reference it like:
    $(MyTextbox) = 'Test'

    or whatever calculation you need. Textbox fields are easier.

    Take this basic info and see if you can figure out where things are wrong. Please compare what you have to some samples that are also on BetaSprings and I think you may come up with where things are wrong.
    thanks

    SKUser is Offline
    going with the flow
    going with the flow
    Posts:61
    Avatar

    --
    08-18-2011 10:41 AM
    Don,

    Please provide the Client Side Event code from Sample 20 Section 4 (text box) and Section 5 (Grand Total) 

    Whatever the code is in these two CSE, it works and I would like to see. I don't believe it is the sample code at the bottom of the page... that code does not work.

    Thanks
    SKUser is Offline
    going with the flow
    going with the flow
    Posts:61
    Avatar

    --
    08-18-2011 11:26 AM
    Posted By SK on 08-18-2011 12:41 PM
    Don,

    Please provide the Client Side Event code from Sample 20 Section 4 (text box) and Section 5 (Grand Total) 

    Whatever the code is in these two CSE, it works and I would like to see. I don't believe it is the sample code at the bottom of the page... that code does not work.

    Thanks
    My mistake... Section 5 in Sample 20  is Text.
    Grand Total is just below it.



    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    08-18-2011 01:13 PM
    Hi Sk,
    Sorry, but this code feeds from sections before. Section 5 has the following code. But as I say below you can export all the xml which has code for this demo: Download Demonstration XML Export - Import into your module

    I copied section 4 code below
    Section 4--Would You like to add additional fees?

    if(isNaN($(TotalExtraonkeypress))){
    $(TotalExtraonkeypress) = '0';
    }
    else
    {
    $(GrandTotalHidden) = formatCurrency(eval(parseFloat($(TotalExtraonkeypress)) + parseInt($(TotalRadio)) + parseInt($(TotalbyQuantity)) + parseInt($(total)) + parseFloat($(checktotal))))

    document.getElementById
    ('GrandTotal').innerHTML = 'Your grand total comes to: ' + formatCurrency($(GrandTotalHidden)) + '';


    }

    Section 5--Grand Total -- is hard to figure what you want but

    You can download the whole thing through the following link:
    http://www.datasprings.com/products...lculations
    Go to the bottom and export the XML for this module:
    Download Demonstration XML Export - Import into your module

    Then you can import the code into a test dynamic forms module.

    Let me know how it goes. I have done it and I have all the JS code in the fields but something is still off for me as well.
    Thanks
    SKUser is Offline
    going with the flow
    going with the flow
    Posts:61
    Avatar

    --
    08-18-2011 05:05 PM

    Thanks Don, I appreciate your help.

    I imported the demo XML. When I use FireBug I get errors that 'formatCurrency is not defined' and 'CalculateCheckBoxListValues is not defined'

    There must be something else that's missing, but I don't know what it is.

     

    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    08-18-2011 10:26 PM
    Hi Sk,
    I also did the download and have the same issues. I think something like a default value isn't set or something else. I will be checking with someone for help and see what is missing. When I find out I will fill you in.
    Thanks
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi