Invisible submit button with image rollover
I have a need to combine a rollover image with a form submit
button. I need the submit button to not be visible except for those
that know where to look.
I have a database query that displays rows of data. Each row
has a checkbox to select that item, so the data table is in a form;
the checkbox is a cfinput. In order to pass the parameters of the
checked items, a submit button must be used to submit the form
values.
My need is for the submit button to be the rollover image.
Only users that know where to find the rollover image will be able
to submit the list of checked form values. "Regular" users
shouldn't be in that area of the screen.
So, a combined rollover image submit button is needed.
Ideas? Thanks...Rick...
document.yourformname.submit didn't work.
But then discovered that the href value needs to be empty (or
"#") to work. This code works: (rollover images with the submit()
code):
<a href="#"
onClick="javascript:submit()"
onmouseover="MM_swapImage('Image9','','images/change-meeting-date.png',1)"
onmouseout="MM_swapImgRestore()">
<img src="images/blank-hidden-area.png"
name="Image9"
width="111"
height="11"
border="0"
id="Image9" />
</a>
When, in DW, you add the rollover image, you need to leave
the href value empty. I suppose that lets the submit button use the
<cfform action...> value as the results page, letting the
form values pass to the results page.
Now, the next step is to have two different rollover images
with submits() that point to two different result pages, while
still using one cfform. (Two submits in one form, each submit
pointing to a different results page.)
...Rick...
Similar Messages
-
In JSP, how could we create a button with an image on it.
Normally in JSP we use something like :
<input type="submit" name="ButtonName" value="Submit"> to create a button
and we use < request.getParameter("ButtonName")> to invoke it.
How can we create a button with an image? and how to invoke the button. Thanks.Not too sure how you are invoking with the request.getParameter() (I'm still fairly new to JSP), but you can certainly create a submit button with an image by using:
<input type="image" src="buttonimage.gif" height="100" width="100" name="ButtonName" value="Submit" />(Where or course src, width and height are dependant on your image.)
Hope that helps. -
In my application, I am attempting to print a document that has both buttons with text and buttons with images, along with plain text.
When I print, the buttons with the images are larger than they ought to be (i.e. they don't fit within the area they were suppose to be drawn within (btw, for this application, I am using absolute positioning)).
However, this does NOT occur with the buttons that have only text and no image.
Can anybody tell me why this might be? It seems that to printing a JButton comes from the functionallity of JComponent.print, which simply sets a few printing flags and calls JComponent.paint.
So whatever changes those flags make, I would think they ought to effect all buttons the same?
Has anybody else run into this problem, and possibly found a solution for it?myJButton.setSize(new java.awt.Dimension(<width>,<height>));
that line should do it. keep in mind that that will not resize your image. since you are using absolute positioning I will assume your button is of constant size. you should manually resize your images to be of the proper size for your buttons. -
Hello everyone,
JDeveloper 11.1.1.7.0
Is it possible to have radio buttons with images instead of plain text?
If not, are you interested in having this kind of feature? I am ;-)
Thx.
Filip HuysmansHi Flip,
The user when switching between modes will fire an event to the server. This even needs to be caught in a bean and set a variable's value to either true or false.
Now you can treat "TRUE" to be in view and "FALSE" to be in edit mode.
Depending on this images can be changed.
Ex: your bean will be like
class catchMode{
private boolean mode;
public void changeMode(ActionEvent ae)
boolean modVal=this.getMode();
if(modVal) //if mode is true; i.e. view mode
this.setMode(false);
else if(!modVal) //in EDIT mode
this.setMode(true);
//Generate accessors for mode
in JSPX:
<af:image source="#{catchMod.mode eq true ? 'view.png' : 'edit.png'}"
Also the partialSubmit for the command component will be set to true
Thanks,
Pandu -
Hi
I need to create an LinkToUrl object with image rollover.
It's possible? If isn't possible there is another way to have a similar effect?
Thanks to all
AndreaHi,
Access the below link which shows you the entire attribute of LinkToUrl functionality.
http://help.sap.com/saphelp_nw04/helpdata/en/c5/dc99f5d1b1504aa0045a7070a0f500/frameset.htm
Hope it helps.
Regards,
Guru.
P.S :- Close the thread if your problem is solved and consider to reward points. -
PSD Rollover Button with image in front stops button from changing state
I have a wide PSD button that changes state when rolled over. I would like to place a PNG image with transparency in some areas over the top of it so that the rollover button shows through the transparent areas of the PNG.
How can you get it to do the rollover effect when the user mouses over the bit of the button that the image is in front of? Is ther a way of making the PNG 'invisible' to the mouse?
I know I could redesign the button so that it includes the image but I'm trying to keep file sizes and load times to a minimum, I use this button a lot on my website with a different on each, and having that number of individual buttons would result in a bloated, slow-loading website.Hi Abhishek
Thanks for your reply. I was able to achieve the effect I wanted by having the PNG and the PSD Button with the same link and then grouping them. This means I can mouse over the PNG and still get the PSD rollover effect, which is perfect.
However I also have another similar problem. I have some different PSD Rollover Buttons which have some text in front of them (basically it's the button label). On some of these buttons when you roll over the text it prevents the rollover state of the button, and on other buttons the rollover effect occurs as it should, and there doesn't appear to be any consistency about which does what. Grouping or ungrouping doesn't appear to make a difference. Can you help? -
Hi Folks!
I have created a simple popup window which takes some data from the form. What I would like is to be able to submit the popup window and the automatically close it.
To achieve this I have created a Submit button and the a branch process which is fired. As my URL Target I placed the following :
javascript:window.close();
The popup opens OK, and processes everything OK. However instead of closing itself I get the "Page cannot be displayed" error.
Note, that when I use the same approach with a button without submit - the window closes OK.
Any ideas?Just found it ;)
Instead of creating a branch just add a process (after all your other processes) with "Close popup window"
This is ready available in 2.2.1 - nice and easy!
Regards,
Pawel. -
Replace Buttons with Images.
Folks,
I have buttons in my application which perform a certain functions
by clicking on them.
I want to replace the buttons by gif/jpg images,so that when the
user clicks on them,it does the same set of functionality as discussed
above.
HOW CAN I REPLACE THE BUTTONS with Gif and implement the actionListener??Hello,
there are several methods to set the icon for the button like setIcon and setRolloverIcon etc. You better setContentAreaFilled(false) if you want an icon-only button. Have a look at [url http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/AbstractButton.html]AbstractButton for further information.
Regards,
Tim -
Hi
I have been working on trying to customise the email submit button to custom entry email address, cc, bcc, subject etc etc
You can use the pre-submit function on the email button
I am using the following code:
this.event__click.resolveNode("#submit").format = formatlist.rawValue;
this.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
THis is picking up values from a dropdown and a series of text boxes the values of each area.
This works beautifully except for the subject area. For some reason teh subject area copies the entire srting from the subject onwards, all other areas (cc & bcc & body) all only copy the value assigned to its function.
Any thoughts
Feels like a bug in the coding but it may also be intentional.
ThanksI believe that there was a bug logged for this issue, here is a workaround.
Add a regular button to the form used to execute the EmailSubmit button (you can make the EmailSubmit button invisible)
On the click event of the "newly added" regular button add your script
NameOfEmailSubmitButton.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
NameOfEmailSubmitButton.execEvent("click"); -
EMail Submit button with mailto: based on form data
Based on form data, I would like to have an email button that sends mail to the email address identified in the email field. Obviously this can change, how would one go about programming a button to send to email based on field data?
Thx...
/cwHi Chris,
Yes this can be easily done. I gathered the following solutions from various threads and so I am not claiming any originality here...
Set up a textfield "Email", with a tooltip telling users to separate email addresses with a ";".
Next set up a regular button with the following Javascript in the click event:
var email = xfa.resolveNode("form1.#subform.Email").rawValue;
var subject = "Specify your subject line here"
event.target.submitForm({cURL:"mailto: "+ email +"?subject=" + subject +"&body=You can also input some standard text to appear in the body of the email.",cSubmitAs:"PDF",cCharset:"utf-8"});
You might want to put an if statement that if the "Email" textfield is blank/null that an app.alert comes up informing the user to input at least one email address.
We took it a stage further on one of our forms. We set up three checkboxes with people's names who are regularly sent the form (nod and cc1 and cc2) and then a textfield "additional" for additional addresses.
Each checkbox had an associated Textfield (EM1_email, cc1_email, and cc2_email) that were invisible. Each checkbox had similar Javascript in the mouse up event:
if (this.rawValue == 0) {
EM1_email.rawValue = null;
else {
EM1_email.rawValue = "[email protected];";
Then we set up another invisible textfield (Email) which had the following Formcalc in the calculate event:
if (nod.rawValue == 0 & cc1.rawValue == 0 & cc2.rawValue == 0) then
$ = null
else
$ = Concat(EM1_email, cc1_email, cc2_email, additional)
endif
This basically pulled the email addresses from the ticked checkboxes and the additional user inputted email addresses into one text field. From there the regular button with the script above send the email. This speeded up the process for regular reciptents.
If you search the forum for topics such as cURL:"mailto: you should see lots of other examples.
Good luck,
Niall -
The email comes up when I press the "Submit" button but the email to field is blank.
Hi,
What is the separator character between two email addresses? Is it a comma (,) semicolon(;) or something else?
According to the mailto URI scheme (RFC 6068), you need to use a comma (,) to separate multiple email addresses.
You can see the third example in the following Wikipedia page.
mailto - Wikipedia, the free encyclopedia
Would you double check the mailto value in your PDF form? -
Buttons with images in web!!! Please help-me!!!!
I want to publish mine forms 6i in web. They have buttons with figures. I already converted the figures of .ICO for .GIF. I already read diverse papers on the subject but I did not understand them. What I must make now?
I need step-by-step that to make now, therefore I have stated period to carry through this task and is if depleting. Who to know, please says which archives to me must edit, where to place the figures, etc.
Thanks!!!!!Joao,
There is Registry.dat file in which there are two items:
default.icons.iconpath=
default.icons.iconextension=
My Registry.dat contains this:
default.icons.iconpath=/nis-img/
default.icons.iconextension=gif
The url /nis-img/ is defined in httpd.conf (I use Apache).
kind regards,
Ivan
I want to publish mine forms 6i in web. They have buttons with figures. I already converted the figures of .ICO for .GIF. I already read diverse papers on the subject but I did not understand them. What I must make now?
I need step-by-step that to make now, therefore I have stated period to carry through this task and is if depleting. Who to know, please says which archives to me must edit, where to place the figures, etc.
Thanks!!!!! -
hi,
I want to create a flash button,& for the button
different images should load for press & release events. also I
want to reuse this button. Please can someone tell me how to do
thatyou'll need to use server-side scripting to handle part of the file upload and the file name retrieval from the upload folder. assigning the uploaded files names you'll do from flash. you'll use another script to retrieve the file names and in flash load and display which ever subset you want.
-
Problems: button with image
hallo,
i have the following problem:
I've written this class:
import java.awt.*;
public class ImageButton
extends Button
private Image img;
public ImageButton(String fname)
img = getToolkit().getImage(getClass().getResource(fname));
MediaTracker mt = new MediaTracker(this);
mt.addImage(img, 0);
try {
//Warten, bis das Image vollst�ndig geladen ist,
//damit getWidth() und getHeight() funktionieren
mt.waitForAll();
} catch (InterruptedException e) {
//nothing
public void paint(Graphics g)
int a=(this.getWidth()-getPreferredSize().width)/2;
int b=(this.getHeight()-getPreferredSize().height)/2;
g.drawImage(img,a,b,this);
super.paint(g);
public void update(Graphics g)
paint(g);
public Dimension getPreferredSize()
return new Dimension(
img.getWidth(this),
img.getHeight(this)
public Dimension getMinimumSize()
return new Dimension(
img.getWidth(this),
img.getHeight(this)
when the frame appears, where the button is shown, the icon is shown. But when I click on the button, the icon is away and i don't know, where is the problem.
I don't use swing because i don't like the perfomance.
why is the image away, when i'm clicking on the button or another frame is over the button and disappears.just do not call super.paint(g) in paint() implementation
-
How to have a submit button with variable values
i have a jsp form which is like
while(itr.hasNext()){
b=(Book)itr.next();
int code=b.getBookCode();
%>
<tr>
<tr>
<form action="temp.jsp" method="post">
<td align="center"><%=b.getBookCode()%></td>
<td align="center"><%=b.getBookName() %></td>
<td align="center"><%=b.getAuthor().getName() %></td>
<td align="center"><%=b.getAuthor().getAuthorCode() %></td>
<td align="center"><%=b.getPublisher().getName()%></td>
<td align="center"><%=b.getPublisher().getPublisherCode() %></td>
<td align="center"><%=b.getPrice() %></td>
<td><input type="submit" name="Submit" value="Add"></td>
<input type="hidden" name="code" value=+*i want to get the book code here (b.getBookCode())*+>
</form >
</tr>
</tr>
<%
%> here i want to get variable values for submission in submit button
can anyone help
can i use request.addheader() for this -it doesn't seem to be working always returns -1This inept has crossposted the question over all places. Someone else already gave the answer.
Don't crosspost. Stick to one topic. Continue here: http://forum.java.sun.com/thread.jspa?threadID=5254517
AmitChalwade: you find it still hard to write "u" as "you", "r" as "are" and "u r" (you are) as "your" ?
Maybe you are looking for
-
FaceTime and iCloud must be signed in to the same Apple ID to use iPhone Cellular Calls.
FaceTime and iCloud must be signed in to the same Apple ID to use iPhone Cellular Calls. This is the error message I receive when I try to add my phone to my Mac for proximity / FaceTime audio calling. This feature worked until I changed my Apple ID
-
I've been trying to hook up my Macbook Pro to the TV monitor with an HDMI chord and a mini displaport converter. It works with my roommates' Macbook Pros but not with mine, why is that?
-
I already have snow leopard.
-
How to get a scroll bar to the applications popup by default?
How to get a scroll bar to the applications popup by default when clicked the applications folder from the dock? If I have so many applications that they do not fit in the default area, I have to find out myselft that I have to scroll the content bef
-
Help problem creating photo collage
Windows 7 and windows 8 pc, same problem. Ive been using adobe photoshop elements for months and all of a sudden when i go to make photo collage, i get the message that adobe has stopped working and windows will close the program and notify you if a