Hide/show element at the click of another symbol
Hello
I want to hide an element by click. The item that is clicked is inside another symbol, which one that should be hidden.
Please tell me how I can handle this.
Thank you very much
// Get the symbol element "kitten_1" and hide the element "kitten_paw"
sym.getComposition().getStage().getSymbol("kitten_1").$("kitten_paw").hide();
Tags: Edge Animate
Similar Questions
-
Show/hide an element with the click of a button - Script works does not in Firefox
Hi all
Basically, I'm looking for show/hide a DIV with the click of a button.
The script works in IE but fail in FF.
I am sure that I am the problem here.<script type="text/javascript">
function toggle(box) {
var el = document.getElementById('box');
el.style.display = (el.style.display != 'none' ? 'none' : '' );
value = document.getElementById('content').value;
if(value=="Show Calendar"){
document.getElementById('content').value="Hide Calendar";
}
else{
document.getElementById('content').value="Show Calendar";
}
}
</script>
<style type="text/css">
#box{
background-color: #C0C0C0;
height: 100px;
width: 100px;
}
</style>
</head>
<body>
<div id="box">
</div>
<input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
</body>
</html>WE
He also worked if you had changed-
on this subject.
-
Hide/show subforms with a click of a radio button
I'm totally in this new and have very little idea what I'm doing. I received my form to show/hide questions based on the click of a radio button. My next question how do I eliminate the white space between issues where the subform of questions is "hiding" until the user clicks on the radio button?
Thanks in advance to anyone who can help me with this!
You can be the definition of property presence 'invisible '. Which is why this white space appears on the screen.
Try to set the value of 'hidden', it will remove the space.
If you use subform1.presence = 'invisible', the subform is not visible for the user but occupy space on the form.
If you use subform1.presence = 'hidden', the subform is not visible for the user and also takes up no space on the form.
In addition, the Page subform content type should be changed to be "cast" and the form should be saved as XML dynamic.
You must do the following to make the dynamic shape.
(1) file menu Goto-> properties of the form and select the default values tab change the default rendering in dynamic XML form Format
(2) select the Preview Tab. Set the type of overview as a form 'Interactive form' and preview Adobe XML dynamic XML form
(3) Finally, while saving the PDF select Save As Type 'Adobe Dynamic XML Form.
Thank you
Srini
-
Need to hide an element at the level of the page loading
Hello
Can someone help me to hide an element when the page is loaded. I want to display the element, when I click on the GO button.
Thanks in advance.
Published by: [email protected] on April 15, 2009 22:25Take these steps
in the processRequest method
itemBean.setRendered (false);
at processFormRequest
If (pageContext.getParameter ("Go")! = null) {}
itemBean.setRendered (true);
}Hope I would solve your problem
-
Master-detail-shape; Hide/show columns in the form of details according to the column
Hello
I have a form master detail. In the long form, I have the columns:
ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3
The PC_SOURCE of the column must be a LOV with values
NULL VALUE
A
B
So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.
PC_SOURCE is the first column.
If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.
Is this possible?
I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »
The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;
But this does not work, because there is not the value of the recovered column.
And probably can´t work because of more lines of a detail.
Thank you and best regards,
MatthiasHello
The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.
Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.
You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
Event: change
Selection type: jQuery Selector
jQuery Selector: input [name = "f03"]
Condition: no strings attachedThe action is to hide an element in the same line, if the changed item is a value. The action must therefore:
Action: Run the JavaScript Code
Fires when the event is: true
Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}You then need a lot of real actions for each item that you want to hide.
Rod West
-
Define an element of the application to another application?
Salvation of the forums,
Is it possible to define a part of the application to another application?
The context:
We have defined three elements of application in our main application. These items are available in our custom permission: used to determine the context from which the user accesses the page. If the user has access (in light of this context and security defined for the page), the elements are calculated with the values of the current context.
Now we add another application that uses the same permission. We could create items of the application with the same name of this application and pass the context values to the other application every time that the user to navigate from one application to another. The problem is that permission is launched until the values are assigned to the elements (correct me if I'm wrong).
I would like to reuse the same elements of the application (defined in a single application) where the user is. I can access an element of the application to another application (see [this thread | http://forums.oracle.com/forums/thread.jspa?messageID=2453615]), but I have not found a way to define its value. Is this possible?
Thank you
JeffJeff,
I'm sure you can't do what you ask (page set the values for item directly in applications).
You're right about the scripts of authentication and authorization running until the values are assigned to the elements on the page.
But you might be able to accomplish what you want via a cookie? Write it in the calling application and read in the called application? Maybe it's not the most secure method, but it seems like it would do the job, huh? I think that you would create a process to send the calling application page that creates the cookie and a front of header in the receiving application page that reads and analyzes. Or you could have three different cookies if you don't want to parse the string in a. I think you might want to remove the cookie (s) after reading, so it is unlikely anyone can understand how to hack them.
Good luck
Stew
-
Hide/show agrregates in the PivotTable based on click of a button
Hello
I have a PivotTable in which I view aggregates.
Is there a way to hide/show the aggregated based on click of a button.
Thank you
Anil
It worked:
To remove totals:
cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);
Def LayerDefinition = new LayerDefinition("OrganizationCode");
cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, def);
To show totals:
cubicEditor.removeLayer (DataDirector.ROW_EDGE, 1);
cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);
LayerDefinition layerDef = new LayerDefinition ("OrganizationCode");
TotalDefinition td = new TotalDefinition (AggType.SUM, "OrganizationCode", AggLocation.BEFORE);
layerDef.setTotalDefinition (td);
cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, layerDef);
layerDef = new LayerDefinition ("ItemName");
cubicEditor.addLayer (DataDirector.ROW_EDGE, 1, layerDef);
-
Hide/show elements based on the result of the existing function
Hello
I have a function that returns two values that are drawn from a process of application On Demand (thanks Shijesh!):
I'm trying to hide/show the other two items (P11_COPAY_COLLECTED, P11_NO_COPAY_REASON) based on the return value for P11_COPAY.function myAjaxCall() { var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=getStatus',0); ajaxRequest.add('P11_PATIENT_ID' , $v('P11_PATIENT_ID')) //notice the below line.. use of split function ajaxResult = ajaxRequest.get().split(',') $s( 'P11_CCSS_STATUS' , ajaxResult[0]); $s( 'P11_COPAY' , ajaxResult[1]); }
Is it possible to add an IF statement for the function to show the two elements only if the value is equal to 'Yes'?
I tried this, but then the two values (P11_CCSS_STATUS, P11_COPAY) are not returned, much less any hide/show:
Any suggestion on how / if possible?function myAjaxCall() { var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=getStatus',0); ajaxRequest.add('P11_PATIENT_ID' , $v('P11_PATIENT_ID')) //notice the below line.. use of split function ajaxResult = ajaxRequest.get().split(',') $s( 'P11_CCSS_STATUS' , ajaxResult[0]); $s( 'P11_COPAY' , ajaxResult[1]); if ( $v ('P11_COPAY' == 'Yes' ) { $x_ShowItemRow('P11_COPAY_COLLECTED'); $x_ShowItemRow('P11_NO_COPAY_REASON'); } else { // Show Items $x_HideItemRow( 'P11_COPAY_COLLECTED'); $x_HideItemRow( 'P11_NO_COPAY_REASON'); } }
Thank you
Mattif ( $v 'P11_COPAY' == 'Yes' ) should be if ( $v ('P11_COPAY') == 'Yes' )
CITY
-
Tabluar form hide/show items on the loading of the page
Hi all
Apex 4.1
I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
The code I use is something like this:
In the page header:
function test (pThis) {}
get the index of line curren on changes
var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
If (pThis.value < 0) {}
. style.display $('input[name="f06"]') [currIndex] = 'block ';
}
else {}
. style.display $('input[name="f06"]') [currIndex] = 'none ';
}
}
In the attributes of the item in the column 'source '.
OnChange = "JavaScript:test (this); »
This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.
How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?
Concerning
BottomDown de Klerk wrote:
Hi allThanks for the comments.
So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
The function is executed and nothing happends, no error does not code so should be ok.
I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list typeThis code is looking for input i.e. text, checkbox etc and will not find a slelect list.
You must change the jquery like this selector
$(document).ready(function () { jQuery.each($('select[name="f06"]'), function () { hide_field(this); }); alert("function executed"); });
-
How to set ' hide / show ' regions during the loading of the Page mode 'hide '.
How to 'Hide' under regions on a page on the loading of the page, but don't show the region above in mode 'show' on a page?
I have multiple regions, one under the other on a Page. All models on those who are assigned to the regions 'Hide and Show '. When the initial page loading - my goal is-displays only the Top more Region in "Show" mode, while setting all the other (regions to 'Hide' in low mode).
Can someone please suggest ideas on how to achieve this? Dynamic action? or other approaches? Examples/steps please would be greatly appreciated.
My request for a theme is set to 23 Crimson. Apex 4.1.x
Thank you.
VSKumarHello
What needs to be done is:
Set up the STATIC ID for all regions with the exception of the first region.For example:
REGIONTWO
REGIONTHREE
REGIONFOUR
REGION 5Then go to the properties of the Page to the section head and footer. In the footer section, add the following:
You can for example see http://apex.oracle.com/pls/apex/f?p=60428:5
P.S. If you switch to another topic you should check if the classes are the same. Otherwise it will not work.
Kind regards
AljazPublished by: Aljaz on 6.3.2012 0:04
-
How do you get a button to trigger the click of another button?
Hello
I have a hide/show region that is controlled by a button (Button). This button and the area is pretty far down on the page.
If the client has requested that I created a second button (ButtonB) and place it at the top of the page and wants for this (ButtonB) button when you click on ' click on ' hide/show below (Button).
Can you please tell how to proceed, ex:
< INPUT type = "button" value = "show all regions" name = "ButtonB" onClick = "what should I put here to trigger the 'click' of A button" >. ""
Any advice would be appreciated as I have to demo this function when the customer tomorrow morning.
Thank you very much
Laura
Published by: user8936524 on April 19, 2010 04:35Sorry ill read the original question.
The easiest way is probably to look at the source of the rendered page to find the link.
The desired bit will be a function "javascript:hideShow()", probably in the tag with a class "t2HideandShowRegionLink" (or similar depending on the theme)If you feel adventurous, you can write a bit of jquery (other javascript libraries are available) to locate and execute the button directly instead of duplicating the code
-
APEX dynamic action - how to hide an element after the loading of the page
Hello
I have a form with the element Type, lesson and page. I want to create a dynamic as action ' on page load "If Type = x don't then see the lesson and the elements of the page. .
How can I know if Type = x don't see the lesson and the page. It does not show them.
Please note the dynamic, action = Page load event
Thank you
Try adding
When the Condition "Javascript expression."
Value: $v ('P1_TYPE') == 'x')
-
Hide / Show button at the top or at the end of the form
Hello
I have the shape that has 2 buttons, move up and move down, which is used to move the subform upwards or downwards. I currently have to make a message appear: "the current element cannot be moved up" when the user tries to back up this article because they are already at the top of the form
or "The current element cannot be moved to the bottom" as they are already at the bottom of the form.
Now, I wish I had a DialogResult.Cancel depend on where the current site instead of the pop-up message.
Can any advise please.
Thanks in advance,
DAO Han
Hello
Here is the form to the you: https://acrobat.com/#d=tO5CEU86 * 5yBXTFDilpg.
There is script in the layout event: loan which was not necessary and this causes the loop.
Also, I modified the structure slightly, Question number script and added a line of execEvent() to the click event of the button Add. I'd be careful to use names that can be reserved.
Hope that helps,
Niall
-
I followed this tutorial, http://www.YouTube.com/watch?v=SreBTgl_JlI and everything works until I'm actually trying to place a graphic symbol in another symbol. I'm doing a character walk across the stage. Flash tells me that I can't place a symbol in itself. Why not and how can I!
Yes, you can not take a symbol and place it inside himself. (think about it... leading to the Interior, will also be a then placed in it... to infinity... beyond capacity calculation and treatment). The video you point is quite confusing (too complicated and maybe no need to information/activity), so maybe that is why you have a problem.
Try to work the symbol to the top... Take the symbol that you want to place in another symbol and place it on the stage. Right click and select Convert to symbol... as soon as you click OK, you have just placed this symbol inside another symbol... end of the tutorial.
-
Show/hide elements - how to hide an image when you click on another
I have a page of the library of photo with 10 pictures on it. I organized it where there is a large image on the left side of the page and 10 thumbnails of turning on the right. I put larger images in separate AP div tags hidden. I want the big picture is displayed when the user clicks on the corresponding thumbnail. This works well, but how to make the image of 'hide' when the user clicks on a different thumbnail.
Can you help me?
Here is my code:
< div id = 'eau1"style =" position: absolute; " Left: 20px; top: 50px; Width: 630px; height: 491px; z-index: 100; visibility: hidden; "" "> < img src ="... / media/images/water/water1.jpg "width ="650"height ="500"alt ="eau1"> < / div >
< div id = "water2" style = "position: absolute;" Left: 20px; top: 50px; Width: 630px; height: 491px; z index: 103; visibility: hidden; "" "> < img src ="... / media/images/water/water2.jpg "width ="650"height ="500"alt ="water2"> < / div >
< table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" >
< b >
< td width = "20" height = "20" > < table >
< td > < table >
< td > < table >
< td > < table >
< td width = "20" > < table >
< /tr >
< b >
< height td = "20" > < table >
< height td = '30' class = "copy18grey" > water Applications < table >
< td > < table >
< td > < table >
< td > < table >
< /tr >
< b >
< td > < table >
"" < td width = "650" height = "500" rowspan = "5" valign = "top" > < img src = "... / media/images/water/water1.jpg" width = "650" height = "500" alt = 'eau1' > < table >
"" < td = '100' height > < a href = "#" onMouseOver = "MM_swapImage ('Image12 '", '... / media/images/water/water1_thmb_over.jpg',1) "Mm_swapimgrestore" > < img src = "... / media/images/water/water1_thmb.jpg" name = 'Image12' width = "160" height = "100" border = "0" onClick = "MM_showHideLayers ('eau1',", 'show') ' onDblClick = "MM_showHideLayers ('eau1',", 'hide') "" > < /a > < table > "
"" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
< td > < table >
< /tr >
< b >
< td > < table >
"" < td = '100' height > < a href = "#" onMouseOver = "MM_swapImage ('Image13 '", '... / media/images/water/water2_thmb_over.jpg',1) "Mm_swapimgrestore" > < img src = "... / media/images/water/water2_thmb.jpg" name = "Image13" width = "160" height = "100" border = "0" onClick = "MM_showHideLayers ('water2',", 'show') ' onDblClick = "MM_showHideLayers ('water2',", 'hide') "" > < /a > < table > "
"" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
< td > < table >
< /tr >
< b >
< td > < table >
"" < td = '100' height > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
"" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
< td > < table >
< /tr >
< b >
< td > < table >
"" < td = '100' height > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
"" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
< td > < table >
< /tr >
< b >
< td > < table >
"" < td = '100' height > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
"" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
< td > < table >
< /tr >
< b >
< td > < table >
< td > < table >
< td > < table >
< td > < table >
< td > < table >
< /tr >
< /table >Show/hide behavior is not just for a single element. With a single application of the behavior, you can display an image and 24 other people hide. The trick is to keep by selecting the named items and their visibility, that is, to select "img1" and click display, then select "img2" and click Hide, etc.
Maybe you are looking for
-
Two days ago, my iMac 2013 end ceased to recognize the external CD/DVD drive I have been connected to it for more than 12 months. Put just the blank disc in the drive resulted in a lot of rumbling and resonate but nothing appear on the screen. Tried
-
Several Airport Extreme Bases in 25, 000 location
I installed (with the initial support of Apple) 17 slots Airport Extreme Base in a massive area covering seamless WiFi from the corner to the corner cover. After installation (with 1 original of that base, others were out), they began to fail one by
-
How to add an attachment to a message. (Mac)
Can someone tell me how to add an attachment to a message here? I'm trying a newspaper to help find where this problem of hanging of Skype, but I can't see how to tie.
-
Even if youtube videos is loaded the movie I watch goes smoothly
Even if youtube videos is loaded the movie I watch goes smoothly. I mean the movie stop somewhere and then quickly increase the speed of the film and then back to normal speed.
-
How to find the program that DEP closed?
DEP works fine, I just need to know what program had closed so I can fix.