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!

DF 2.5 - using new calculations client side event
Last Post 02-26-2008 11:38 AM by Michael Winblad. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Todd F.User is Offline
new to the springs
new to the springs
Posts:1
Avatar

--
02-19-2008 12:36 PM

    If anyone has come across this and figured a way to make it work...

    Using the new client side calculation on check boxes I can get the total value without much problem in a text/html or textbox, etc.  Works great.  However, the text/html will not save to the database and the textbox allows the user to change the value...

    I have tried hidden fields, read only text box, hidden until user event etc.  but can't seem to come up with a away to save the calculated value to the database without the user having the ability to update it first...

    thoughts?

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-19-2008 01:34 PM

    Hi. I was able to get this work on this test page showing creating a calculation field total.

     

    This specific example uses a read only textbox so that the user cannot change the value. I am going to have to double check though for hidden field and see what is  needed. Within these client side events there are multiple options such as $(ShortFieldName), $(ShortFieldName_FieldID), $(ShortFieldName_Field), $(ShortFieldName_ValueFieldID) and they all have some specific purpose.

     

    -Chad

     

    Michael WinbladUser is Offline
    wading in the water
    wading in the water
    Posts:26
    Avatar

    --
    02-24-2008 11:42 AM

    I am setting up a registration form where the number of registrants determines the total registration cost. I want to have a field which will display the registration total based on the same combo box which determines how many registration fields will be shown rather than hidden.

    I tried putting the following code into the Client Side code in both the combo box and in the hidden field where I would like to put the total.

    $(TotalReg) = 4 * $(NoAtt)

    When I put it onto the combo box, it initially shows the value then throws an error on the load and resets the combo box to the default value.

    When I put the code into the Total box it throws the error and resets the combo box.

    Any Ideas?

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-25-2008 09:59 AM
    Hi. Can you setup your form or a copy of your form using IPORTABLE Export Content / Import content on www.betasprings.com (login as host/dnnhost). This will help us in getting a better idea specifically for your requirements and so forth. Also, if you are signed in as the admin you can add &Debug=True to the querystring or if you are using friendly URLS /Debug/True/ and at the top of the page you should see the exact javascript that is being used. Either way this will help out if you setup the form on Beta Springs.

    We also recently added another test demonstration of a field using a hidden field or a textbox to calculate the total (disabled textbox). You can review this form here:

    http://www.betasprings.com/Dynamic-...fault.aspx


    -Chad
    Michael WinbladUser is Offline
    wading in the water
    wading in the water
    Posts:26
    Avatar

    --
    02-26-2008 11:38 AM
    OK, I have placed a form onto the betasprings website. It is Vineleaf Test Page. On this, I added two fields.
    1) A Combo box which allows me to choose the number of attendees
    2) A Total Registration field where I want to put the total based on what the choice is.

    I have client side code in the combo box as follows: $(TotalReg) = $(NoAtt)* 4. This calculates the total price of the registrations.

    I also added an event which unhides the Total Registration field. That isn’t necessary but it is a simple demonstration of what I am trying to do.

    If I don’t have the Question Event, the field calculates correctly.
    When I add the Question Event, the calculation is overwritten.
    I added a third field which is another combo box which calculates the total without the Question Event.
    This field works fine.

    I can only surmise the following:
    Client Side Code is immediately executed.
    Question Events affecting the same question ignores the Client site code and therefore my calculation is overwritten.
    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