[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

getElementById doesn't work for RSFormPro in Joomla 1.5

Posted on 2011-03-24
2
Medium Priority
?
531 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
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 …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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