How can I include a parsys inside a javascript function.

I am using radio button provided by CQ5.4.
I am writing a javascript function which checks whether a radio button is being clicked or not..
If the radio button is being clicked an alert window is opening ..this means that function is being called when radio button is being clicked.
but when I try to include parsys instead of alert window, when the radio button is being clicked..the parsys is not appearing..
Can u please help me that how should i write the "<cq:include>" for parsys inside the javascript function so that it starts appearing on click of the radio button.
THANKS
ASHWANI

Ashwani,
I would recommend detecting the WCMMode and always showing the parsys if the page is displaying in edit or design mode:
http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/WCMMode.html
Unless there is a really good reason to hide the section from authors, it's generally confusing to authors to hide a section.  Additionally, hiding a parsys in JavaScript can cause strange artifacts as the drag and drop section of the parsys won't be hidden with the content of the parsys.
-Dan

Similar Messages

  • How can I access JSP variables from a JavaScript function in a JSP page?

    Respected sir
    How can I access JSP variables from a JavaScript function in a JSP page?
    Thanx

    You may be get some help from the code below.
    <%
        String str="str";
    %>
    <script>
        function accessVar(){
           var varStr='<%=str%>';
           alert(varStr);// here will diplay 'str'
    </script>

  • Can I include a bean inside a customization project?

    Hi,
    I am customizing out-of-the-box Profile (.jsff) pages. I'll have to create a bean which will get binary data from Oracle. I have a project to customize the Profile pages. Can I include the bean inside the project? Or, should I create a separate project, and have the pages referenced to the bean class. How should I go for that?
    Many Thanks

    Hi,
    For now, you can change any attributes on user's profile page like department and etc. What's about if I want to create a dynamic drop-down department list for a user to pick? The department list will be generated from a database source. In jdeveloper, you can have various roles. I'm switching back and forth between 'default' and 'customization' roles. In the default role, I'm going to create a javabean to create the dynamic department list. In customization role, I customize the 'look and feel' of the profile page. This is kind of pain in the neck. Am I going to a wrong direction? Is there anyway of getting the work done without switching.
    Secondly, on the profile page, I use EL to reference an attribute in a javabean. But, when I load the page, it errors out.
    <Jan 24, 2012 3:16:22 PM EST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /edit-basic/view1 URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff actual-URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff.
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'PersonBean' resolved to null+
    at com.sun.el.parser.AstValue.getTarget(Unknown Source)
    at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
    at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
    at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
    at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
    Any help would be appreciated. Thanks.
    Edited by: 891549 on Jan 26, 2012 9:45 PM

  • How can I include my business email fonts on the ipad signature?

    How can I include my business email fonts on the ipad signature?

    It's a lot easier with Photo Manager Pro.
    https://itunes.apple.com/sg/app/photo-manager-pro/id393858562?mt=8

  • Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

    Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

    Hi Jay,
    SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
    SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
    once on each server, and then the variable can be used by all the packages on this server.
    Regards,
    Mike Yin
    TechNet Community Support

  • How can I include different DAQ cards (for notebook and PC) in one applicatio​n?

    I want to build one application, which runs on different computers. On PC a DAQ board PCI-6052E and LabVIEW including application builder are installed and work. My program runs.
    Now I want to build an application, which runs on the notebook without LabVIEW but with the similar DQACard-AI-16XE-50, too.
    How I have to install the DAQCard on the notebook and how can I include the driver?

    Sylke,
    Check the following link which guides you step by step to install the driver and configure the daq board:
    http://www.ni.com/support/install/
    Hope this information is helpful.
    L Aguila
    Applications Engineer
    National Instruments

  • I have a mac book pro, an ipad and an iphone.  i have an icloud account that allows my iPad and imac to sync.  but my mac book only has a connection to 'mobile me'.  how can i include my macbook with my other devices?  help!  thanks

    i have a mac book pro, an ipad and an iphone.  i have an icloud account that allows my iPad and imac to sync.  but my mac book only has a connection to 'mobile me'.  how can i include my macbook with my other devices?  help!  thanks

    You need OSX 10.7.2 or higher in order to access icloud.  The mobile me account is now defunct (it closed down more than a year ago).

  • How can I include a carriage return in a expression

    How can I include a carriage return in a expression between text strings eg
    Expression 1 = Text1 & text2 & text3 & text4
    I need to display it as below
    Text1
    Text2
    Text3
    Text4
    adjusting the box the size doesn’t work as the text strings are variable lengths

    Message Edited by Ryan.S on 01-04-2007 08:17 PM
    Ryan Shi
    National Instruments
    Attachments:
    untitled.JPG ‏37 KB

  • How can I include results of a subsequenc​e, which runs in a new thread, in the main sequence test report

    Hi!
    I', m working with TestStand Version 4.2.1. I have a main sequence, which calkls different subsequences. All these steps are properly reported. One of subsequences runs as "new thread". How can I include its results in common test report of the main sequence?
    I have markes variables of the subsequence as it is requred for test report (it works OK if it is not a new thread). If the the numerical test, which is executed in this subsequence is correct, I get no results at all. If the numeric test failed I get somewhere in the main sequence report a "red message", that test failed whithout any reference to the step or values of vaiables which were not correct.
    I tried an option "On the fly" in the Report Configuration , but haven' got any useful results. What shall I do?
    Best regards
    Solved!
    Go to Solution.

    Hi,
    I tried it but without success:
    1) I got a reference to the Thread as "Locals.Step1=RunState.Thread" for every of 2 steps which start a thread
    2) I put both "Waits" after steps with (and without) threads, at the same place, where they were before
    3) The sequence run OK, but when it came to Wait for Thread 1 it waited for ever, I had to terminate sequence
    Does it mean, that I got a false reference (suppose No - please, have a look at attached pic)?
    Or does it mean, that Waits are badly placed in the sequence (threads are already terminated)? Here is a pic of sequeces calls with Wait after them.
    Regards
    Attachments:
    Thread.JPG ‏34 KB
    SequenceCall.JPG ‏32 KB

  • How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    I suspected you used the eye icon on the timeline to hide the message, but that one has no impact whatsoever on the published version. It is only meant to be used for editing reasons on the stage, to hide objects temporarily on a crowded stage. It is confusing, certainly in CP8 where for both instances the same eye icon is used. In previous versions the Properties panel had a checkbox for 'Show in Output', which was IMO much clearer than this eye icon. But of course, that is only my personal opinion.

  • Smartforms: how can I include a jpg picture stored an a web server ?

    I want do include a business graphic (JPG) in a smartforms window. The picture is created by a web serves and stored on a web server.
    the jpg-picture can be loaded on by an http-adress.
    How can I include the picture in the smartforms form ?
    thanks
    Richard

    hi,
    use transction SE78 to upload the picture .
    Then use it in smartforms.
    regards,
    guru

  • How can I include merged projects in the printed documentation?

    I have a master project with several merged projects. This works splendid with online documentation, but when I am asked to provide a printed version, it seems I have to create separate documents for each merged project.
    Is there any setting or fix that enables print also of merged projects and topics when I create printed documentation?
    Pretty please with sugar on top :-)

    Hm - there is a contract with the customer, saying that he wants documentation both as word and pdf, and as we now aim at only writing online documentation, these tasks create extra work, as we are delivering updates each month
    But yes - two beasts, where only chm is actually needed we think.
    -Tone
    Date: Tue, 3 May 2011 06:53:04 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I include merged projects in the printed documentation?
    Hi there
    I'm a bit curious as to the reasoning behind your "persuation process for using chm-files only".
    CHM files and printed documentation are two entirely different beasts.
    Cheers... Rick
    | http://www.robowizard.com/pc.gif | Helpful and Handy Links
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    http://www.gooberguides.com/ProductPages/RoboHelp/RoboHelp82Day.htm
    http://www.ShowMeSolutions.biz
    http://sorcererstone.wordpress.com/
    http://www.gooberguides.com |
    >

  • How can I include a portal component look and feel in a java servlet

    Does any body know how can i include a portal component look and feel (tables, buttons, etc) in a java servlet?

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • How can i include a sampling of type in ps7 type tool?

    how can i include a sampling of type in ps7 type tool?   i did this in ps3

    I guess in my zest to answer your question i had forgotton about Adobe Type Reunion.
    What operating system are you using photoshop 7 on?
    photoshop 3.05 on mac os 7.6.1

  • How can i include a vi to help me save all the measurement from 10 to 100000

    hi, how can i include a vi that will store my data or save  them for each of the step increament , from the starting measurment 10hz to 10000000hz to the last. pls help
    good
    Attachments:
    saving vi.vi ‏53 KB

    Hi ifyo,
    I couldn't run your VI as i dont have all the components of it. But i have attached herewith a vi which will show you how to save continuously acquired data into a text file. The explanations are added on the block digaram. Let me know if this doesn't help and you need more information.
    Regards,
    Nitzz
    (Give Kudos to good Answers, Mark it as a Solution if your problem is Solved) 
    Attachments:
    Untitled 2.vi ‏9 KB

Maybe you are looking for

  • Acrobat 9.0 Javascript Debugger

    I'm trying to learn some stuff about writing javascript in documents for acrobat.  All of the documentation that i've looked at tells me that i have to go into Edit Preferences ---> JavaScript and hit the Enable Javascript Editor Checkbox.  At this p

  • How to delete a record in custom form

    Hi, I got a requirement, If a form has 'n' records with start & end dates, such that start date of new record should be last record end date + 1. Now if the user tries to delete a record between first and last record, it should allow him to delete bu

  • Logic-urgent

    hi, Please help me out with this. My situation is that, there are some records in a notepad, which has pernr and other details. I have copied the data into a internal table. I need to split the records based on the pernr. for example, PERNR     INFTY

  • Simple logic for min andmax

    RECDV  Max   min  total      100   700   100   600      200      300      400      500      600      700

  • Unable to connect Blueberry PowerPC G3 to wireless network - error message 'invalid password'

    I have just purchased a TimeMachine and am using it as wireless network. All the devices in the house (2 Mac laptops, 2 droid phones) are successfully connected. My old Blueberry won't connect. The message it gives me is 'invalid password'. The Blueb