How can I click on a button and make a text box appear or disappear
How can I click on a button and make a text box appear or disappear?
Thanks ahead of time for your help,
Doug
Hi Denes,
I just thought that the example you pointed the OP to, is far more complex than what I understood he needs. The OP was talking about using a button, which I thought was a very basic and simple case. Your example is much more complicated. If memory serves, the radio group item, at the time (prior to 3.1 fieldset) behaved differently, so you needed to create a new value retrieving function, and then was the need to preserve the items show/hide status upon reloading the page. In short, I thought maybe I didn’t see the complexity in the OP post, but it seems that his requirement was indeed a simple one.
Regards,
Arie.
Similar Messages
-
How can i disable a submit button and execute submit_action method on click
Good Day,
On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
Thanks in advance.I tried this out on one of my pages to see if it works.
First, I added the following JavaScript to my submit button's onClick event:
this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
The next thing I tried was to change the onSubmit event code:
var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
See if that works for you. If not then I'm fresh out of ideas. -
How can I fill in a default inputText in a Text Box
How can I fill in a default inputText in a Text Box. Is it possible to create a button and then it should be possible some underlying data fill in the text boxes???
Please help!My coding looks at the moment like that:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ page language="java" %>
<html>
<head>
<title>
JSF
</title>
</head>
<body>
<f:view>
<h:form id="user">
JSF Application View:<br><br><br>
Credit Limit:.......
<h:inputText value="#{User.username}"/><br>
Currency:...........
<h:inputText value="#{User.username}"/><br>
Score:..............
<h:inputText value="#{User.username}"/><br>
Valid Date To:......
<h:inputText value="#{User.username}"/><br><br>
<h:commandButton value="Receive Data from Background" action="success" /><br>
</h:form>
</f:view>
</body>
</html>
Now my question is how it is possible to fill in the inputTextvalue when I click on the Button "Receive Data from Background" Is it possible to define that in that coding above????
Please help I'm not fit in JSF -
How can I click Acrobat Form button from VB (Excel Macro)?
I may be asking in the wrong forum, but I'm at my wit's end and think just about anyone with VB experience would be able to tell me what I'm doing wrong. Is there a forum for interapplication/ VB/ forms questions?
Suffice to say, I know very little about VB (or any of the other languages behind the software), but I've adapted code which has allowed me to get almost everything I need done, thus far.
I'm trying, desperately, to finalize a Macro which enables me to export a lot of Excel info into individual Acrobat Forms and save them all independently. This all works fine, but there is one last thing I've not been able to accomplish: I need to remote click (or 'focus on') a button in the Acrobat form in order to select the icon button (dynamically set image relevant to each individual form, base on excel cell). The button's name, in Acrobat, is 'Photo1' and it is located on the 3rd page of the form. I've several SendKeys commands in order to save each file with a unique, row specific name.
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Const SW_NORMAL = 1
Public Const PDF_FILE = "Louisiana_Historic_Resource_Inventory Worksheet.pdf"
Public Sub ClickMe()
Application.Photo2_Click
End Sub
'this was an attempt to setup a sub which I'd call later...
'all of the below stuff works fine- fills out the form, checks boxes, etc. as necessary
Public Sub Export_Worksheet()
Dim sFileHeader As String
Dim sFileFooter As String
Dim sFileFields As String
Dim sFileName As String
Dim sTmp As String
Dim lngFileNum As Long
Dim vClient As Variant
Dim x As Integer
' Builds string for contents of FDF file and then writes file to workbook folder.
On Error GoTo ErrorHandler
x = 1
sFileHeader = "%FDF-1.2" & vbCrLf & _
"%âãÏÓ" & vbCrLf & _
"1 0 obj<</FDF<</F(" & PDF_FILE & ")/Fields 2 0 R>>>>" & vbCrLf & _
"endobj" & vbCrLf & _
"2 0 obj[" & vbCrLf
sFileFooter = "]" & vbCrLf & _
"endobj" & vbCrLf & _
"trailer" & vbCrLf & _
"<</Root 1 0 R>>" & vbCrLf & _
"%%EO"
vClient = Range(ActiveSheet.Cells(989, 1), ActiveSheet.Cells(989, 90))
Do While vClient(x, 1) <> vbNullString
sFileFields = "<</T(Street Number)/V(---Street_Num---)>>" & vbCrLf & "<</T(Street Direction)/V(---Street_Dir---)>>"
''''''''''''theres a TON of the above correlations, all in the same format
If vClient(x, 28) = "E" Then
' sTmp = Replace(vClient(1, 3), "-", "")
sFileFields = Replace(sFileFields, "Cond-Excellent", "Yes")
Else
sFileFields = Replace(sFileFields, "Cond-Excellent", vbNullString)
End If
If vClient(x, 28) = "G" Then
sFileFields = Replace(sFileFields, "Cond-Good", "Yes")
Else
sFileFields = Replace(sFileFields, "Cond-Good", vbNullString)
End If
''''''''''''theres another TON of the above replacements, all in the same format
sTmp = sFileHeader & sFileFields & sFileFooter
' Write FDF file to disk
If Len(vClient(x, 1)) Then sFileName = vClient(x, 1) Else sFileName = "FDF_DEMO"
sFileName = ActiveWorkbook.Path & "\Exports\" & sFileName & ".fdf"
lngFileNum = FreeFile
Open sFileName For Output As lngFileNum
Print #lngFileNum, sTmp
Close #lngFileNum
DoEvents
' Open FDF file as PDF
ShellExecute vbNull, "open", sFileName, vbNull, vbNull, SW_NORMAL
Application.Wait Now + TimeValue("00:00:04")
'Application.Photo2.Focus
'PDF_FILE.Photo2.Focus
'Application.Photo2_Click
'Application.SetButtonIcon "Photo1", ActiveWorkbook.Path & "\Exports\" & "vClient(x, 1)" & "-1.pdf", 0
'Application.Field.SetFocus "Photo1"
Call ClickMe
''''above is where i'm trying to click the button, although I'd be just as happy if I could 'focus' on the button.
Application.Wait Now + TimeValue("00:00:02")
'Application.SendKeys (vClient(x, 1))
'Application.SendKeys ("-1.pdf")
'Application.SendKeys ("{ENTER}")
'SetForegroundWindowap
Application.SendKeys ("%fap")
Application.Wait Now + TimeValue("00:00:03")
Application.SendKeys (vClient(x, 1))
Application.SendKeys ("{ENTER}")
'If Len(vClient(x, 1)) Then PrintLine (vClient(x, 1)) ' Else sFileName = "_Check-Parcel"
''If Len(vClient(x, 1)) Then SendKeys = Len(vClient(x, 1)) Else sFileName = "_Check-Parcel" {ENTER}
''ShellExecute vbNull, "GetSaveFileName", sFileName, vbNull, vbNull, SW_NORMAL & vbCrLf
' ShellExecute vbNull, "print", sFileName, vbNull, vbNull, SW_NORMAL
Application.Wait Now + TimeValue("00:00:02")
Application.SendKeys ("^w")
'ShellExecute vbNull, "close", sFileName, vbNull, vbNull, SW_NORMAL
x = x + 1
Loop
Exit Sub
ErrorHandler:
MsgBox "Export_Worksheet Error: " + Str(Err.Number) + " " + Err.Description + " " + Err.Source
End Sub
I'm pretty sure one of many issues is that I don't know the fully-qualified name of the field/button, or how to properly identify it in the Macro.
I have no doubt that my approach, if it's even possible, is clumsy and unfounded, but I am (obviously) flailing around for anything that can achieve clicking this confounded button. Any help appreciated.It was a button option - I haven't got access to Acrobat 8 here at home, but it was something like
Add menu item
File - attach to email
When the button was clicked, the email application would open with a new email and the PDF would be attached, so you could enter the recipients email address and send. -
I can't choose a specific page to skip back to but must click the back button over and over to get back to where I want to skip to. The little headings "most visited," "getting started," "Youtube," etc. have changed. They look more colorful, but I hate how the home button is clear over to the right side of the page, etc. What was wrong with the way everything was before? I HATE this new update, and I didn't even want it.
You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker -
How can I click to hande OVS and Search help for Web Dynpro
Once the F4 help is clicked, the event OVS of IF_WD_VALUE_HELP_FORWARD is triggered.
Here I would like to change the value list of F4 help list, I implemented a class and a method that handle that event.
Since event only has importing parameter, how can I change the exporting paramter?
Thanks
Xin.hi,
when you click on F4 help, Event OVS is triggered.
now you can define an Event handler for OVS event.
Inside this Event handler , you can change the Value help list.
Inside the event handler there are three different phases to achieve this :
Phase 0 :configuration phase.
Phase 1 :Read values of the original context entered by user in Search Criteria.
Phase 2 : call business logic for a table of possible values.
Phase 3 : apply result.
Refer the SAP Standard Component : Demo_Value_help. -
I keep my bookmarks open at all times in the sidebar. If I want to go to a site, say Google, I must do a right click on the bookmark and then click on "Open In A New Tab" then the google page opens in a new tab.
I want to skip the second click. I want to be able to simply left click the google booknark in the sidebar and have google open in a new tab.
the way things are now, when I simply do a left click on the google bookmark the new google tab opens in tne sidebar itself. My bookmarks disappear from the sidebar and the google page is opened in the sidebar. So at this point I have two active page open at the same time.
Is there a way to simply left click the bookmark in the sidebar and have the bookmark open as a regular page?
Please pardon my clumsiness as I have only today used FireFox for the first time.Opening in the Sidebar is the default action for bookmarks that are created via a "Bookmark this Page" link or button on a website. Make sure you use the many "Bookmark this Page" methods that are in Firefox instead.
Right-click that bookmark and select '''Properties''', then un-check the preference for '''Load this bookmark in the sidebar''', and then click Save. -
question (1 every time i go into my e-mail i need to sign in i did not have to do this before please correct this sign in page
(2 how can i keep my font size to 12.
thank you joe ruda(1) Web site requires you to sign in each time
Web sites generally remember your browser by a cookie they set.
If you have changed your cookie settings (for example, by clearing them using Clear Private Data when you close the browser) or installed new third party software (security suite, system cleaner, etc.), you might be clearing the site's cookie.
In some cases, it's possible that cookies can become corrupted. To clear the site's cookies, when viewing the site:
"right-click" (Mac equivalent!) and choose View Page Info > Security > "View Cookies"
In that dialog, you can remove the cookies. After reloading the page, you should be required to log in again and the site will create new cookies.
(2) Remember font size setting
Are you using a feature of your email site to increase the font? If the site can't remember that for you, then there might be an indirect solution (a hack) to fix it. Which webmail site is it? There might be a userscript available.
If you mean Firefox's zoom setting, then Firefox should remember that between visits. -
How can I disable Pages 5.1 and make 4.0.3 the default again?
Does anyone know how to disable Pages 5.1 so that it NEVER opens a doc again unless I somehow re-enable it?
I don't want to delete it in case someone sends me a tainted 5.1 Pages doc. Plus I'm sure if I DO delete it, it will keep showing up like a bad penny when I run the software updater which is nearly equally anoying.
I have tried doing a "get info" on a pages doc and selecting "open with pages 4.0.3" then clicked on "Change All" to make it the default app. This worked on my initial install of Mavericks but after doing some updates, the system will no longer obey the "change all" and insists on opening new pages files with 5.1. I've even tried changing the name of the app, but OSX is not so easily fooled and still opens the doc with the renamed app.Bury it a couple of folders down in Applications or simply archive (zip) it.
Peter
btw You seriously need to update iWork '09 to v4.3 -
How can I add an image to my pop up text box built in Fireworks?
Hello all,
I have already built my page (a map) with all the pop up text boxes in Fireworks and imported them into my Dreamweaver page, but I would like to add an image in that same pop up box as well as the text. I tried going back to Fireworks and editing the pop up box, but there is no option for adding an image alongside the text. Is there a way I can go into the code and add the image? This is a line of code for one of the pop up boxes:
<td rowspan="4"><a href="javascript:;" onmouseout="MM_swapImgRestore();MM_menuStartTimeout(0)" onmouseover="MM_menuShowMenu('MMMenuContainer1016121037_0', 'MMMenu1016121037_0',25,23,'Plaza_map_r11_c6');MM_swapImage('Plaza_map_r11_c6','','Plaza_ map_r11_c6_f2.jpg',1);"><img name="Plaza_map_r11_c6" src="Plaza_map_r11_c6.jpg" width="30" height="28" border="0" id="Plaza_map_r11_c6" alt="" /></a></td>
I'm trying to avoid rebuilding the whole thing in another program! Thanks very much in advance.
PamIf you have more than one of these, then I would add a class rule to your css style sheet
.fltleft {
float:left;
}.fltright {
float:right;
Then add this rule to your image.
<img name="Plaza_map_r11_c6" src="Plaza_map_r11_c6.jpg" class="fltleft" width="30" height="28" border="0" id="Plaza_map_r11_c6" alt="" (add new image here) ?>
This will position your image to the left in the container. You can then add the fltright in the same way.
GAry -
How can I load a .TXT file into a dynamic text box?
I am sure that many people know how to load a .txt file into
a dynamic text box. But I do not. I want to be able to reference a
txt file from the server into the text box. So that when I change
the text file it changes in the flash movie without even editing
the flash file itself. Thank you.http://www.oman3d.com/tutorials/flash/loading_external_text_bc/
I think this is the simplest way to go :) -
How can I click on 'new tab' and have all my frequent sites come up the way they used to?
In the old firefox, I would click on a new tab, and when the window came up it showed nine little pictures of my most used websites. Excellent feature that I loved!!! Installed the new version of Firefox on Friday, and now when I open a new tab I just get a blank page. This is REALLY going to slow down my work. If the new Firefox won't show me my windows, I'd like to go back to the old version.
What email program or email site do you want Firefox to fire up to send the message?
In the Preference dialog, you might be able to select the program from a list. In some cases, you need to take extra steps to add it to the list.
Firefox > Preferences > Applications
In the search box above the list, type '''mailto''' and then pause to let the list filter down. Does the drop-down control on the right side let you choose your preferred email program? -
How can I apply color to black and make it accurate?
Hello,
I have an illustration that is black, white, and shades of gray. I want to apply a color to the black, and have all the grays become tints of that color. I have tried different blending modes and I have tried monotones, but I don't think either of these techniques are working. When I go back to check the color, it's a different color, and it prints looking different than the color I had selected.
Do you know how I can make this happen?May I suggest: Layer - New Adjustment Layer - Black & White, then use the Tint facility.
Personally, I often find it more handy (and providing more control) to use a Curves adjustment layer above all the others. Grab the curves of individual color channels and pull them this way and that to alter the color of what's underneath. It's not hard to keep whites white, blacks black, and give the stuff in between believable coloration.
-Noel -
How can I open an AEP project and make all media OFFLINE?
Hi There,
I am working with an AEP file that is on the network that has pretty heavy media files linked to the project. Every time I open the file over the network, AE takes FOREVER to open it. I remember somebody showed me a way to open up a file and making all the media offline. Something like holding ALT when pressing the open button on the Open File dialog. Although, I can't remember if this is right. I'm on a Mac, and I'd like to know if there is a way to do this so I can open up the project without waiting, and simply link the files that I really need to be linked so I can work quicker.
Anybody have any suggestion? Thank you for your time and help!>You can just change the name of the folder where your sources are stored.
That works well for Windows, but Mac OS is a little trickier. The OS keeps track of folder name changes (even on network directories) and will re-direct requests appropriately. Very cool for users, very bad if you're trying to fool a program like AE. (Had to struggle with this about a month ago to offline some files.)
The only way I was able to make it work was by changing the name of the folder from a different computer while the main computer was disconnected from that server. -
How can I fix consistent TCP timeout and make data flow simpler?
Hi!
I'm acquiring data from a Scanivalve Digital Scanning Array through a TCP/IP connection. I'm having problems with the connection timing out regularly. It will run fine if you take data several times in a row, but if the VI sits for several minutes (while looking at previous data runs or adjusting test setup) the connection will timeout the next time you try to take data. The subVIs (reading the tcp connection, processing the data pakcet, etc) were provided by the manufacturer several years ago. The midlevel VI were written by another engineer, and I adapted them to run with the top level VI that I needed for this test. The data flow in the VIs are convoluted and while I can follow the ones t
hat I wrote, I'm not sure how to troubleshoot the others.
I posted a question on an unrelated problem and the responses mentioned that race conditions were going to be a problem b/c of all of the global variables.
Please be patient with my lack of knowledge in some areas. Any help would be appreciated.
Thanks so much!
-Sarah
Engineering intern
Techsburg, Inc.
Attachments:
DSA_Acquistion_VIs.zip 253 KBI'm not positive about the best solution in this situation, but there is lots of information available regarding error 56 when using TCP/IP communication.
You might find some of these useful:
Error 56 Occurred at TCP Open: Windows XP Fails as TCP/IP Server with LabVIEW 6.1.
Error 56 Occurs When Using TCP Listen.vi
TCP/IP Error Codes and Related Time-out Issues in LabVIEW
Maybe you are looking for
-
How to extract non-sap data (A/R Invoices from Legacy system) into SAP ICR
Hi We are trying to bring A/R invoices from a legacy system into SAP ICR special ledger so that ICR tool can be used these items for intercompany reconcilliation. Could you please let's know the way to load these legacy AR invoice items into ICR data
-
Some books I purchased and downloaded free in my library in Itunes on my PC dont download properly when synced with my ipad, they only half-download. I then tried deleting them from ibook on my ipad but they just wont delete no matter method I try.
-
Can't use quicktime, no rights.I have I
I have just discovered when i was going to install safari, just to try it, i get a Windows Installer can't be open error. And that happen to all apple software. And quicktime IS installed, BUT i don't have any rights to it, AND i can't UNINSTALL IT!
-
Deleting Album Art? I need the space for music!!!
So, how does one delete the album art from one's iPhone? I don't mind having it in iTunes, but don't have the space for it on my iPhone. My iTunes library is at 22 GB (and growing, of course) and so space is at a premium.
-
Help on testing of servlet using TCPMon
I am trying to use TCPMon to test on my java servlet and when I press resend, the message below is generated. May I know how to solve it? Thanks you very much. HTTP/1.1 400 Bad Request Transfer-Encoding: chunked Date: Mon, 21 May 2007 01:21:44 GMT Se