Solved

getElementById doesn't work for RSFormPro in Joomla 1.5

Posted on 2011-03-24
2
501 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
2 Comments
 
LVL 13

Accepted Solution

by:
stergium earned 500 total points
Comment Utility

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
Comment Utility
Wow!! That works! Fabulous!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
This is our step by step to setting up and configuring a Joomla Install on a Windows 2003 Server. This is the perfect solution for an Intranet Website using Joomla. What you need (only use the following versions) : A fresh copy of Joomla http…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now