Can I use ajaxOnLoad with a function to which I give a parameter?

I accidentaly posted this on the live docs... So here I go again:
Can I use ajaxOnLoad with a function to which I give a parameter? 
e.g.: 
<cfset ajaxOnLoad("initCourses('#tmpUUID#')") /> 
The JS function looks as following: 
initCourses=function(tmpUUID){ 
     ColdFusion.Layout.collapseAccordion('awCourseList','awCourseList_1_'+tmpUUID); 
     // the _1_ in the name is set through the currentRow attribute while looping through a query
     setWinUnsaved; 
I'm having the problem, that my first accordion panel doesn't initialize hidden, so I wrote this method. Later on I noticed, that the accordions were somehow cached, so the URL params given whithin the source weren't right anymore. This might be, because I gave name attributes to the layoutareas. I added an UUID to the name attribute so the source wasn't cached anymore. But now it doesn't seem to find the cflayout container anymore. (I checked the name of the layoutarea and the temporary saved uuid, they are the same.) 
I tried using cfhtmlhead instead, but that didn't seem to work neither.

So I've been searching the whole day yesterday and many hours today and this is what I got:
<cfsavecontent variable="jsheadcont">
     <script type="text/javascript">
     <!--
          initCourses('#tmpUUID#');
     //-->
     </script>
</cfsavecontent>
<cfhtmlhead text="#jsheadcont#">
And that's what my JavaScript function looks like:
initCourses=function(tmpUUID){
     setTimeout("ColdFusion.Layout.collapseAccordion('awCourseList','awCourseList_1_"+tmpUUID+ "')",1);
     setWinUnsaved;
So I'll have to write all that instead of a simple
<cfset ajaxOnLoad("initCourses('#tmpUUID#')") /> ?
Or am I completely wrong? I forgot to mention that the accordion is inside a tab-layout which is inside a border-layout.
Cheers
Boris

Similar Messages

  • Can I use imessage with an apple ID which is not connected to any iphone / iPad ?

    Hay dude. I have just upgraded to Mavericks in my macbookpro. I have used an apple ID to log in to my imessage. That Apple ID is not connected to any iphone/iPad. Can I still use that apple ID to use my imessage feature and send free message to my friends for free?  If yes, Then how ?
    Your help will be highly appreciated. Thank you.
    Waiting to hear from you.

    Thanks Dude
    I have done the set up already but still unable to send message. I just can send message to myself. So I am asking here.
    Can I still use that apple ID to use my imessage feature and send free message to my friends for free?

  • Can I use the wireless backup functionality of a time capsule with a PC?

    Can I use the wireless backup functionality of a time capsule with a PC?

    Yes, take a look at this link, http://techsupport.foreverwarm.com/time-capsule-windows

  • Can you use Appletv with iPhone only?

    A friend has an iPhone, no Mac, still running a pc. Wants to get an ATV2. Can she use it with just an iPhone?

    She can use it with iTunes on the PC.
    Renting movies/internet based functions do not require a computer at all.
    An iPhone 4 (and 3GS I think) can send compatible media to AppleTV2 via the Airplay function - computer not essential for this.
    AC

  • Can we use sequences with strings?

    In Sql can we use sequence with strings? ......please tel me

    Hi,
    Sorry, sequences only generate numbers.
    You could write a function in PL/SQL which generates a string, based on the value it gets from a sequence.
    Edited by: Frank Kulash on Jan 22, 2009 2:31 PM
    Of course, you can convert the number to a string, like Salim demonstrated. I assume you're talking about something that generates, for example, 'A', 'B', ..., 'Z', 'AA', 'BB', ..., 'ZZ', 'AAA', ...

  • I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way?

    I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible.
    Thanks,
    Sean

    The answer would be in your software license agreement for Aperture. However if you cannot locate it you can ask in the Aperture forum, the link for that is:
    https://discussions.apple.com/community/professional_applications/aperture
    However I believe you can have Aperture installed on two machines however only one may be using it at a time.
    On the new iMac launch the Mac App Store - Purchased - look for Aperture and download to your new machine.

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • I installed 5 but now I can't use it with Mac osx - how do I go back to my old version?!

    I was prompted to install Firefox 5 on my Mac. Now when I try to open it says I can't use Firefox with osx. How do I go back to using the previous version - has it been written over? My previous version was fine!

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com

  • I gave my old iPad to my daughter without restoring it to original configuration, how can she use it with her iTunes?

    I gave my old iPad to my daughter without restoring it to original configuration, how can she use it with her iTunes?

    try
    http://support.apple.com/kb/ht2589

  • How can I use LCCS with ActionScript 3 and Flash CS4?

    Hi,
    Using Stratus I was able to create an an application using Action Script 3 and Flash CS4.  The sample code on the Adobe site was quite straight forward and easy to understand.  I now want to switch over to  LCCS but can't find anything any where on how to use Action Script 3 and Flash CS4 with LCCS.  Do I need to know Flex to be able to use LCCS?  Everything was quite simple and easy to understand with Stratus and makes complete sense.  But LCCS is really confusing.  Is there any sample code on how to establish a connection in Action Script 3 and then stream from a webcam to a client.  There is nothing in the  LCCS SDK that covers Flash and Action Script 3.  Please help!  I found the link below on some forum but it takes me nowhere.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=75 9&threadid=1407833&enterthread=y

    Thanks Arun!
    Date: Thu, 29 Apr 2010 11:44:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I use LCCS with ActionScript 3 and Flash CS4?
    Hi,
    Welcome to the LCCS world.
    Please refer to the SDK's sampleApps folder. There would be an app called FlashUserList. The app demonstrates how LCCS can be used with Flash CS4. Its a  pretty basic app, but should help you moving.
    We are trying to improve our efforts to help developers in understanding our samples. Please do let us know if we can add something that would help others.
    Thanks
    Arun
    >

  • How can I use Bluetooth with another devices?

    How can I use Bluetooth with another devices?

    You can set up your FaceTime account in Settings > FaceTime.

  • How can i use ipad with apple tv

    How can i use ipad with appletv

    Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
    When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices.

  • How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store.

    How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store. 

    Call Apple's online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac Apple Store (requires SL 10.6.6+).

  • I had my itunes acct with a yahoo mail, now Im using icloud with my apple id, which is different than itunes I had.  how can I merge this 2 accounts? I still have money in my old itunes acct. 2 acct

    I had my itunes acct with a yahoo mail, now Im using icloud with my apple id, which is different than itunes I had.  how can I merge this 2 accounts? I still have money in my old itunes acct. 2 acct

    Is your phone still signed in with your old iTues ID for iCloud (in Settings>iCloud)?

  • Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    You cannot use pendriver.
    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

Maybe you are looking for

  • Can two programs recive the same stream from the same port?

    I am sending a video from a server to my client on port 23456. On my client I am running a videoreciver that shows the video, and I also want to run a program that receives the strem with datagramSocket and writes out statistics.. Is this possible? o

  • Ipod displaying sad icon (tried the Guide, doesn't work)

    Can someone help me? I was using my Ipod Video 30gb and it froze, so I reset it and it showed a sad Ipod icon with a "!" beside it. After I went to the guide and tried to restore it but when I plug it in (to my windows XP laptop) it is not shown in i

  • IMac Black Screen with fans running...Static damage?

    Upgraded the RAM and replaced the Superdrive in my late 2006 17" core duo imac last week.  It was on and worked perfectly for a week and now the screen went black but the fans stay on.  If I damaged it with static a week ago would it just now exhibit

  • How to pass line item values in the table paramer of FM

    Hi all, When i will give the import of  the FM as VBELN"sales order number. I want to display all the line items for "PO Quantity in the out put of the FM. For this i thnk i have to pass the line item values in the table parameter of the FM. Can any

  • Page 8, article 3 - Flex Cookbook scanning text

    You have three images describing how readers scan the text of a page looking for relevant/interesting information, The first picture is annotated with the full text of your comments:- Users rarely read every word on application screens. Instead, they