Solved

getElementById doesn't work for RSFormPro in Joomla 1.5

Posted on 2011-03-24
2
518 Views
Last Modified: 2012-05-11
I am working on an RSFormPro project with a javascript function to populate a dynamic drop down list based on the current date and time. The drop down list function is triggered at page load time. The problem is that the id referenced by getElementById is null at load time. I have tried both

window.onload=generateoptions(document.getElementById('trainingSession')); 

Open in new window

and
window.addEvent('domready', function() {
generateoptions(document.getElementById('trainingSession'));
});

Open in new window


Here is a link to the problem.

I  have opened a support ticket with RSJoomla (the RSFormPro developer) but due to time zone differences am seeking help here.

Are there any experts with RSFormPro experience that can help me?

Thank you!!
0
Comment
Question by:timburkart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
stergium earned 500 total points
ID: 35208293

why dont you create a function and call it at the end of the page?
function initvalues(){
generateoptions(document.getElementById('trainingSession'));
}
and a <script>initvalues();</script>

please feedback.
0
 

Author Closing Comment

by:timburkart
ID: 35208484
Wow!! That works! Fabulous!
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a tutorial for making your own Joomla templates. Note before reading, you should have some existing knowledge of web development using HTML and CSS. Design Layout: Design your template in a graphics program like Adobe PhotoShop or Corel…
First of all, we will need Jumi component or Sourcerer plugin for this to work. We need either of these because the main focus here is custom development outside of the standard modules or articles within Joomla. You can find Jumi here...it's my …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question