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!

Setting focus to a textbox using Jquery
Last Post 02-06-2013 09:06 AM by Steve. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
SteveUser is Offline
new to the springs
new to the springs
Posts:3
Avatar

--
02-06-2013 08:18 AM

    Hello,

    I'm trying to set focus to the first control, a textbox, on a dynamic form.

    I've tried the following JQuery code inside the header field of a DNN html module:



    Where 'dnn_ctr1219_DynamicForms_TBR_GUID9ad85ae1-23a4-48b1-a081-a383fbd499f1Name' is the ID of the textbox.

    This works, in the sense that focus is set and I can start typing in the textbox. But the cursor stops blinking and disappears altogether depending on where I move the mouse cursor.

    So I tried putting the same code without the block in the form itself. I put this at the following location:
    Module Configuration > Advanced Coding Options > Custom JavaScript File > Initial Javascript
    I couldn't see any reference to JQuery, but i thought it would be worth a try. This worked by setting focus but the cursor behaved as above.

    I tried using the same code on a textbox that is not inside a dynamic form and this worked perfectly.

    So could someone please tell me what I am doing wrong? How can I set focus to a textbox and make the cursor blink normally?

    Also, where JQuery code should go within a dynamic form?

    Do you have any examples of how to use JQuery in a dynamic form, I couldn't see anything in the user manual.

    Best Regards,

    Steve

    SteveUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    02-06-2013 08:26 AM

    Hello,

    I've just discovered that the code works fine in CHrome but not in I.E.9.

    Also that I'm running DNN 6.2 and Dynamic Forms 4.10.4

    Regards,

    Steve

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-06-2013 08:45 AM
    Hi Steve - I would suggest possibly trying some other browsers too and the tools within them such as "Console" or "FireBug" etc... Each browser has its own things such as IE Webmaster Tools or Safari Developer Console etc... These should show you the exact error or allow you to test the JavaScript and see what error is happening.

    I believe we showcase a few implementations using jQuery within Demo 20 and Demo 28 at http://www.datasprings.com/formdemos.

    Thanks!

    -Chad
    SteveUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    02-06-2013 09:06 AM

    Hi Chad,

    Thankyou for the reply. I can see it works fine in Firefox too, so seems to be an IE problem.

    Thankyou for your tips.


    Best Regards,

    Steve

    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