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!

Client event using inner HTML
Last Post 07-11-2011 09:05 AM by David Amm. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
David AmmUser is Offline
river guide
river guide
Posts:156
Avatar

--
06-30-2011 04:27 AM

    I have 2 fields: Q1 (a radio button) and Q2 (HTML). I want to display the result from Q1 in Q2. My code is as follows...

    document.getElementById('Q2').innerHTML = funcRadioCalc($(Q1_FieldID))

    When I select an option in Q1 the rusult does not display in the HTML field.

    I'm running DNN5.6.2 and DF3.4.5

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

    --
    06-30-2011 12:20 PM
    Hi David,
    Maybe you are doing more in your application to set this up than what you are explaining to me. To get on the same page let me refer you to a sample in www.betasprings.com. The login there is host, dnnhost. This sample might show you what you are trying to do. The sample is in Dynamic Forms > Calc4.

    The trick to getting a value to transfer from one field to another lies in working with client side events in the Advanced Field Options for the field value you are trying to transfer to the other field. Normally this is done with check box group field where you can address the CalculateCheckBoxListValues($(FieldName_FieldID), $(FieldName_ValueFieldID)).

    Now for your sample you may be summing a bunch of stuff and then tranfering from one textbox to anotheras you asked. Look at this code for the client side event in your Q1 advanced field options but rename Q1 to ($(TotalExtraonkeypress) as you need to use that reserved name then try the code below.  Make a field called GrandTotalHidden and then use that hidden field value in the HTML field:


    if(isNaN($(TotalExtraonkeypress))){
    $(TotalExtraonkeypress) = '0';
    }
    else
    {
    $(GrandTotalHidden) = formatCurrency(eval(parseFloat($(TotalExtraonkeypress)) ))

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


    }


    Good luck and let me know how it works.  I worked it out between just two text box fields.


    David AmmUser is Offline
    river guide
    river guide
    Posts:156
    Avatar

    --
    07-11-2011 08:51 AM

    Thanks for the feedback and example - that was very helpful.

    In the example Cacl4 I added a second html field (Total2) and tried to populate this using a client side event on the check box group. It works fine for the html field "Total" but not for "Total2". Any idea why?

    David AmmUser is Offline
    river guide
    river guide
    Posts:156
    Avatar

    --
    07-11-2011 09:05 AM

    Ok - I worked it out. The trick is to add the field id (i.e. short name) in the html source for the field.

    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