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!

set focus
Last Post 01-28-2010 07:00 AM by David To. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Joerg FernowUser is Offline
going with the flow
going with the flow
Posts:48
Avatar

--
01-27-2010 05:14 AM

    Hi there,

    I have a form with 12 fields. On 2 of them I use javascript for validation. In both cases it is tested if the given value is an integer, if not an alert will pop up.

    My question: how can I set the focus to the field, for which the alert pops up? So the user has to enter a proper value.

    Thanks

    Joerg

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    01-27-2010 06:24 AM
    HI, you might consider using a javascript "focus" command. Check out this URL which discusses exactly what you are wanting to do:

    http://bytes.com/topic/javascript/a...wing-alert

    -- David
    Joerg FernowUser is Offline
    going with the flow
    going with the flow
    Posts:48
    Avatar

    --
    01-27-2010 10:23 PM
    Hi,

    thank you for your reply.
    Unfortunatelly, I'm not that familiar with javascript, so I can not really use this information. What I am doing is the following:

    I have a formfield which should only accept numbers. If the user enters something else, an alert comes up. After this the focus should set to this field. I added tho following code to 'Custom JavaScript File':

    function validatekdnr(fieldvalue){
    if ((fieldvalue) !=parseInt((fieldvalue)))
    alert('"' + (fieldvalue) + '" scheint keine korrekte Kundennummer zu sein.');
    document.getElementById($(F4_dnn$ctr948$DynamicForms$Label_9fb26ea9-3c45-4fb7-b374-69459adf15de)).focus();
    }

    but nothing happens. How do I get the correct >ElementId from DynamicForms? Is there a misspelling inside the script? What has this script to look like?

    Thanks

    Jörg
    Joerg FernowUser is Offline
    going with the flow
    going with the flow
    Posts:48
    Avatar

    --
    01-28-2010 04:26 AM

    Hi,

    solved it

    Thanks

    Jörg

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    01-28-2010 07:00 AM
    Cool. Can you also paste your final javascript here for others to use? Thanks. -- David
    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