Solved

getElementById doesn't work for RSFormPro in Joomla 1.5

Posted on 2011-03-24
2
514 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

In the following article I will try to explain some of the issues I had learning Joomla and I hope this helps all of you beginners out there that love the concept but find it confusing and difficult to manage and configure a Joomla website. Like …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

738 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