Disable submit button after CFFORM validation?
I can disable a submit button using javascript (onclick=this.disabled=true;return true) but this occurs before the ColdFusion input field validation. The problem is that if the form does not pass validation, you cannot resubmit it after the errors are corrected because the submit button is disabled. Can anyone suggest a technique for disabling the button after the form has passed validation? (The server code that runs after gets into trouble when impatient users do multiple clicks.) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348497 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Disable submit button after CFFORM validation?
Sounds like you are using CFForm. I haven't used CFForm for years, but I seem to recall a submitonce validation parameter when using cfinput type='submit' /. Maybe check into that. HTH. Steve On Mon, Nov 7, 2011 at 1:36 PM, John Pullam jpul...@mcleansystems.comwrote: I can disable a submit button using javascript (onclick=this.disabled=true;return true) but this occurs before the ColdFusion input field validation. The problem is that if the form does not pass validation, you cannot resubmit it after the errors are corrected because the submit button is disabled. Can anyone suggest a technique for disabling the button after the form has passed validation? (The server code that runs after gets into trouble when impatient users do multiple clicks.) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348504 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Disable submit button after CFFORM validation?
Can anyone suggest a technique for disabling the button after the form has passed validation? (The server code that runs after gets into trouble when impatient users do multiple clicks.) I had to do this on a credit card processing form a while back. The form was identified as ccForm (in the CFFORM tag, name and id attributes) and the following JavaScript was placed just below the closing CFFORM tag. Just replace ccForm anywhere it shows up below with the name of your form: script type=text/javascript // Override the built-in CF error handler. document.getElementById('ccForm').onsubmit = doValidate; // Define our own validation function. function doValidate() { returnValue = _CF_checkccForm(document.forms.ccForm); if (returnValue==true) { $('#btnSubmit').css(display, none); $('#processingNotice').css(display, block); return true; } else { return returnValue; } } /script Essentially what this does is override the default onsubmit function that ColdFusion attaches to the form with a custom function. That function then calls the default and if it passes, uses jQuery to hide my submit button and show a processing div that was previously hidden. You can just as easily disable the button if desired. If the validation fails, we simply return CF's validation result and do not change the button status, thus allowing multiple clicks and only changing it once validation passes. -Justin Scott ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348508 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Disable submit button after CFFORM validation?
Looks like using CFINPUT with validate=submitonce solves the problem. I didn't know that existed! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348510 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
IE8 Form Submit button not being passed
I am testing my application on an IE8 system running Win 7 and CF 9. I do not know if any of these are relevant but the problem does not occur on Firefox or Chrome. Essentially, IE is not passing the FORM.Submit to my post-back form processor. It passes everything else, including Submit.X and Y!! My form is as follows: cfform table trtd width=100bFirst Name/b/td td width=500cfinput name=FirstName type=text required=No Size=20 //td/tr trtdbLast Name/b/td tdcfinput name=LastName type=text required=No Size=20 //td/tr /table input type=hidden name=Submit2 value=any pcfinput name=Submit type=image value=Submit src=../Buttons/MSearch.png //p /cfform When I get the postback on IE8, I use a cfdump to see what I got, and the FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y but not SUBMIT!!! As I use this technique in other applications to capture a post-back, I'm rather concerned. Am I doing something wrong? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342510 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: IE8 Form Submit button not being passed
Unfortunately John, no you aren't doing anything wrong in your base code that worked in IE6. I had to rewrite a number of applications for this very reason as our design team decided Image buttons were what we were going to use and I saw this behavior in newer browsers. Unlike other browsers that post both the .X, .Y and main variable, IE8 (and IE7, I think) don't. Yes, you will need to take this into account on all your applications, Phil On Wed, Feb 23, 2011 at 8:27 AM, John Pullam jpul...@mcleansystems.comwrote: I am testing my application on an IE8 system running Win 7 and CF 9. I do not know if any of these are relevant but the problem does not occur on Firefox or Chrome. Essentially, IE is not passing the FORM.Submit to my post-back form processor. It passes everything else, including Submit.X and Y!! My form is as follows: cfform table trtd width=100bFirst Name/b/td td width=500cfinput name=FirstName type=text required=No Size=20 //td/tr trtdbLast Name/b/td tdcfinput name=LastName type=text required=No Size=20 //td/tr /table input type=hidden name=Submit2 value=any pcfinput name=Submit type=image value=Submit src=../Buttons/MSearch.png //p /cfform When I get the postback on IE8, I use a cfdump to see what I got, and the FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y but not SUBMIT!!! As I use this technique in other applications to capture a post-back, I'm rather concerned. Am I doing something wrong? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342511 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: IE8 Form Submit button not being passed
You could probably avoid a lot of code rewrites by changing from an image button to using styles and a background image. That is what I do and have been able to avoid that issue. Sent from my iPhoned On Feb 23, 2011, at 7:43 AM, Phillip Duba phild...@gmail.com wrote: Unfortunately John, no you aren't doing anything wrong in your base code that worked in IE6. I had to rewrite a number of applications for this very reason as our design team decided Image buttons were what we were going to use and I saw this behavior in newer browsers. Unlike other browsers that post both the .X, .Y and main variable, IE8 (and IE7, I think) don't. Yes, you will need to take this into account on all your applications, Phil On Wed, Feb 23, 2011 at 8:27 AM, John Pullam jpul...@mcleansystems.comwrote: I am testing my application on an IE8 system running Win 7 and CF 9. I do not know if any of these are relevant but the problem does not occur on Firefox or Chrome. Essentially, IE is not passing the FORM.Submit to my post-back form processor. It passes everything else, including Submit.X and Y!! My form is as follows: cfform table trtd width=100bFirst Name/b/td td width=500cfinput name=FirstName type=text required=No Size=20 //td/tr trtdbLast Name/b/td tdcfinput name=LastName type=text required=No Size=20 //td/tr /table input type=hidden name=Submit2 value=any pcfinput name=Submit type=image value=Submit src=../Buttons/MSearch.png //p /cfform When I get the postback on IE8, I use a cfdump to see what I got, and the FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y but not SUBMIT!!! As I use this technique in other applications to capture a post-back, I'm rather concerned. Am I doing something wrong? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342512 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: IE8 Form Submit button not being passed
I know I've run into this before with someone's legacy app. I generally don't use the form.submit so it hasn't been an issue in my own code. I think IIRC it has something to do with whether the submit button is clicked or if the enter key is used to submit the form. Sorry if this is a red herring, it's been a while. On Wed, Feb 23, 2011 at 8:27 AM, John Pullam jpul...@mcleansystems.comwrote: I am testing my application on an IE8 system running Win 7 and CF 9. I do not know if any of these are relevant but the problem does not occur on Firefox or Chrome. Essentially, IE is not passing the FORM.Submit to my post-back form processor. It passes everything else, including Submit.X and Y!! My form is as follows: cfform table trtd width=100bFirst Name/b/td td width=500cfinput name=FirstName type=text required=No Size=20 //td/tr trtdbLast Name/b/td tdcfinput name=LastName type=text required=No Size=20 //td/tr /table input type=hidden name=Submit2 value=any pcfinput name=Submit type=image value=Submit src=../Buttons/MSearch.png //p /cfform When I get the postback on IE8, I use a cfdump to see what I got, and the FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y but not SUBMIT!!! As I use this technique in other applications to capture a post-back, I'm rather concerned. Am I doing something wrong? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342513 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: IE8 Form Submit button not being passed
The problem with your form is that you have a form element named submit: name=Submit Try changing that to something other than Submit and it should work. HTH, -Dain On Wed, Feb 23, 2011 at 9:07 AM, Michael Grant mgr...@modus.bz wrote: I know I've run into this before with someone's legacy app. I generally don't use the form.submit so it hasn't been an issue in my own code. I think IIRC it has something to do with whether the submit button is clicked or if the enter key is used to submit the form. Sorry if this is a red herring, it's been a while. -- *Dain M. Anderson *Lead Developer Terra Dotta, LLC 501 W. Franklin Street, Suite 105 Chapel Hill, NC 27516 Phone/Fax: 877-DOTTA-77 (877-368-8277) http://TerraDotta.com http://terradotta. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342523 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: IE8 Form Submit button not being passed
I've seen this problem and long ago (over 8 years ago) read documentation on it too. Can't find it now, but the issue typically affects forms that have a single field and a submit button, that are submitted using the enter key instead of clicking the submit -- only in IE. If you add a second visible field to the form, you should see the problem magically disappear. Cheers, Kris ---orig post-- I am testing my application on an IE8 system running Win 7 and CF 9. I do not know if any of these are relevant but the problem does not occur on Firefox or Chrome. Essentially, IE is not passing the FORM.Submit to my post-back form processor. It passes everything else, including Submit.X and Y!! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342525 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfmail, html, and submit button input type=image
Why won't this work in CF7 or CF6x? The button doesn't show as the image nor will post send the user to paypal when the button is clicked. Thanks in advance. cfmail to=#to_email# from=#from_email# subject=test type=HTML !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN HTML head meta http-equiv=content-type content=text/html ; charset=iso-8859-1 /head body form action=https://www.paypal.com/cgi-bin/webscr; method=post input type=image src=http://www.visitcenter.org/center/x-click-but02.gif; border=0 name=submit alt=Make payments with PayPal - it's fast, free and secure! /form /body/html /cfmail ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293988 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmail, html, and submit button input type=image
Your button is of type image. Even if you call it submit, it won't submit the form. You could use an onClick event to submit the form, but most eMail readers won't execute Javascript, so better use a standard submit button. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293994 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Submit button is adding more documents! Help!
When I click on the button I have reviewed and understand this document, the #endnum# and #countnum# add a higher number of documents than what is actually there. For example, if I went to the page, it would display the correct info Viewing records 1 - 6 of 6 total. As soon I click on one of the documents button, it will display, Viewing records 1 - 15 of 41 total. I'm not sure why its adding extra documents and why the counts are increasing. cfif parameterexists(orderBy)ORDER BY #orderBy# cfelseORDER BY docTitle/cfif /cfquery cfif parameterexists(FORM.startindex) cfset startnum = #FORM.startindex# cfelseif parameterexists(URL.startindex) cfset startnum = #URL.startindex# cfelse cfset startnum=1 /cfif cfset count = 0 cfoutput query=getdocs cfset count=#count#+1/cfoutput cfoutput cfset endnum = #startnum# +14 cfif #endnum# GT #count#cfset endnum = #count#/cfif cfset prev=#startnum# - 15 cfset next=#endnum# +1 p align=centerb#getdocs.RecordCount# documents found./b br cfif getdocs.RecordCount GT 0 Viewing records #startnum# - #endnum# of #count# total.br table tr tdcfif #startnum# GTE 15 cfform action=documents.cfm?#CGI.QUERY_STRING# method=POST enablecab=Yes input type=hidden name=startindex value=#prev# input type=hidden name=DepartmentID value=#DepartmentID# input type=hidden name=subdirectory value=#subdirectory# cfif parameterexists(docType)input type=hidden name=docType value=#docType#/cfif input border=0 src=../docs/prev.jpg type=image vspace=4 /cfform /cfif/td tdcfif #count# GTE #next# cfform action=documents.cfm?#CGI.QUERY_STRING# method=POST enablecab=Yes input type=hidden name=startindex value=#next# input type=hidden name=DepartmentID value=#DepartmentID# input type=hidden name=subdirectory value=#subdirectory# cfif parameterexists(docType)input type=hidden name=docType value=#docType#/cfif input border=0 src=../docs/next.jpg type=image vspace=4 /cfform /cfif/td /tr /table /cfif cfset reccount = #startnum# - 1 cfoutput query=getdocs maxrows=15 startrow=#startnum# cfset reccount = #reccount# +1 p align=left !---b#reccount#.nbsp;/b--- cfif #getdocs.deptRestriction# EQ 0 OR #session.deptID# NEQ #getdocs.deptRestriction# a href=#docstorage#/#docName# target=_blankb#docTitle#/b /a cfelseb#docTitle# (Secured Document) /b /cfif font size=-2Date: #DateFormat(lastupdate, MM/DD/YY)# Rev ##: cfif #revision# is 0Initialcfelse#revision#/cfif nbsp;nbsp;nbsp;nbsp;nbsp;/font font size=-1brb#docNumber#/bbr/font font size=-2Summary: i#Left(summary, 125)#nbsp;nbsp;nbsp;(a href=../docs/view.cfm?docID=#docID#see more/a)/i/font cfif ActionType NEQ 'R' cfform action=../docs/docActionLog.cfm?#CGI.QUERY_STRING# input type=hidden name=startnum value=#startnum# input type=hidden name=DocName value=#docName# input type=hidden name=DocID value=#DocID# input type=hidden name=DocAction value=R input type=submit value=I have reviewed and understand this document /cfform /cfif /p /cfoutput cfoutput p align=center cfif getdocs.RecordCount GT 0 Viewing records #startnum# - #endnum# of #count# total.br table tr tdcfif #startnum# GTE 15 cfform action=documents.cfm?#CGI.QUERY_STRING# method=POST enablecab=Yes input type=hidden name=startindex value=#prev# input type=hidden name=DepartmentID value=#DepartmentID# input type=hidden name=subdirectory value=#subdirectory# cfif parameterexists(docType)input type=hidden name=docType value=#docType#/cfif input border=0 src=../docs/prev.jpg type=image vspace=4 /cfform /cfif/td tdcfif #count# GTE #next# cfform action=documents.cfm?#CGI.QUERY_STRING# method=POST enablecab=Yes input type=hidden name=startindex value=#next# input type=hidden name=DepartmentID value=#DepartmentID# input type=hidden name=subdirectory value=#subdirectory# cfif parameterexists(docType)input type=hidden name=docType
RE: Submit button is adding more documents! Help!
Wow, old code... Before I even attempt to answer the question. What version of ColdFusion are you running this on? The reasons I ask are as follows: ParameterExists has been deprecated since version 4/4.5 or thereabouts. - use isDefined or even better, StructKeyExists instead. Code like this: cfif #endnum# GT #count#cfset endnum = #count#/cfif Can and should be written like this cfif endnum GT count cfset endnum = count /cfif and cfset count=#count#+1 Should read at least as cfset count = count + 1 and if you have CF8 you could use the new ++ operator :-) Now onto answering your question... It appears the critical part of your code is missing from your post. I cannot see the cfquery that actually retrieves the documents from the database cfquery name=getDocs ... Without seeing that (which is most likely where the logic error is), it's almost impossible to answer this question. Yours Paul ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292127 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Submit button is adding more documents! Help!
Wow, old code... Before I even attempt to answer the question. What version of ColdFusion are you running this on? The reasons I ask are as follows: ParameterExists has been deprecated since version 4/4.5 or thereabouts. - use isDefined or even better, StructKeyExists instead. Code like this: cfif #endnum# GT #count#cfset endnum = #count#/cfif Can and should be written like this cfif endnum GT count cfset endnum = count /cfif and cfset count=#count#+1 Should read at least as cfset count = count + 1 and if you have CF8 you could use the new ++ operator :-) Now onto answering your question... It appears the critical part of your code is missing from your post. I cannot see the cfquery that actually retrieves the documents from the database cfquery name=getDocs ... Without seeing that (which is most likely where the logic error is), it's almost impossible to answer this question. Yours Paul Paul, Here is the query: I'm using version MX which i think is 5; thanks cfquery datasource=#data# name=getdocs SELECT * FROM docs LEFT OUTER JOIN DocActionLog DAL ON docs.docID = DAL.DocID and DAL.EmployeeID = #session.EmployeeID# and DAL.ActionType = 'R' WHERE docResponseID = '#getDept.DeptResponsibleID#' cfif parameterexists(docType)AND docTypeID in (#PreserveSingleQuotes(docType)#)/cfif cfif parameterexists(startsWith)AND cfif #startsWith# is 0 (docTitle between '0' AND 'A') cfelseif #startsWith# is A (docTitle between 'A' and 'E') cfelseif #startsWith# is E (docTitle between 'E' and 'I') cfelseif #startsWith# is I (docTitle between 'I' and 'M') cfelseif #startsWith# is M (docTitle between 'M' and 'Q') cfelseif #startsWith# is Q (docTitle between 'Q' and 'T') cfelseif #startsWith# is T (docTitle between 'T' and 'W') cfelseif #startsWith# is W (docTitle 'W') cfelse docTitle IS NOT Null /cfif /cfif cfif parameterexists(orderBy)ORDER BY #orderBy# cfelseORDER BY docTitle/cfif /cfquery ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292131 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cflocation - requires hitting submit button twice
If your queries are cached, it's not going to make difference so make sure that's not the case. I do all of this in one template with smaller single step forms. 1) Check to see if the form was submitted. If so, validate any fields and update the record then redirect right back the same page so the request method is no longer 'post' and the user is looking at the latest data. 2) get the data you want from the database 3) build your form that submits right back to itself. !---// I normally just check the request method. If more than one form can submit to this page, you'll want to check for a field or button name in the form you want to process //--- cfsilent cfif http.request_method is post !---// form was submitted. Validate the required fields, update the data, and cflocate back to this page. //--- cfif len(trim(form.myRequiredFormField)) is 0 !---// if any fields dont check out, do something here like set a message //--- cfelse !---// Fields checked out, update the record //--- cfquery ... Update /cfquery !---// redirect back to this page to change the request method //--- cflocation url=thispage.cfm addtoken=no / /cfif /cfif !---// get the info from the database //--- cfquery name=getInfo ... Select the info here... /cfquery !---// if the info from getInfo query is what populates the form, (and I'm assuming it does) then you'll want to create cfparams for the form fields and use the getInfo results as the defaults //--- /cfsilent !---// build the form //--- form action=thispage.cfm method=POST the form /form ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.23/591 - Release Date: 12/17/2006 3:17 PM ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264263 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cflocation - requires hitting submit button twice
After hitting a submit button on form #1, form #2 processes the update with a cfquery statement and changes the record. A cflocation is used to take the user automatically back to form #1, but the data is not refreshed. How do I automatically get back to form #2 with the new dataa showing? Right now the button must be hit twice every to change the data. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264253 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
[reposted from cf-flash] Center align submit button
I'm working with a flash form and I'd like to center align the submit button. Anyone have advice? I've tried a number of approaches and they've all failed. Thanks http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:30/threadid:57 Michael Dinowitz President: House of Fusion http://www.houseoffusion.com Publisher: Fusion Authority http://www.fusionauthority.com Adobe Community Expert ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244546 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: [reposted from cf-flash] Center align submit button
I'm working with a flash form and I'd like to center align the submit button. Anyone have advice? I've tried a number of approaches and they've all failed. Place it within a CFFORMGROUP tag with attributes TYPE=horizontal and STYLE=horizontalAlign:center. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244547 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: [reposted from cf-flash] Center align submit button
Thank you Dave. You've just make the fight against spam a little prettier. :) I'll explain more soon on Blog of Fusion after I finish some code and wrap it up for people. I'm working with a flash form and I'd like to center align the submit button. Anyone have advice? I've tried a number of approaches and they've all failed. Place it within a CFFORMGROUP tag with attributes TYPE=horizontal and STYLE=horizontalAlign:center. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244548 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
can one Submit button submit multiple forms in a specific order?
I need to be able to hit a submit button have it submit one form (that it is not in) then after that submit has been processed submit a second form (form the submit button is in). They have to be in order because processing in the first form is needed for the second one. I'm thinking I need a CF solution. I tried js, but it submits both more or less at the same time. Jeremy ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234451 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: can one Submit button submit multiple forms in a specific order?
I need to be able to hit a submit button have it submit one form (that it is not in) then after that submit has been processed submit a second form (form the submit button is in). They have to be in order because processing in the first form is needed for the second one. I'm thinking I need a CF solution. I tried js, but it submits both more or less at the same time. Jeremy Sounds to me like you need one form. You can certainly create a solution with JavaScript (that won't work if the user has a screen-reader or disables javascript) that will submit the forms in order, and you can even create a delay between form submissions by using window.setTimeout() to tell the browser to wait before the 2nd form submission. I would never recommend this approach, however, because then you've got an added race condition. You'll be depending on the fact that the first form submission will always complete in x amount of time, which due to network congestion, intermittent DNS outages, etc. may not be the case. If you need to process input from form1 before processing input from form2 I would definately recommend merging them to create a single form and processing both sets of input in a single following request. s. isaac dealey 434.293.6201 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234456 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Disable Submit Button CFform CF5??
I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226601 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Disable Submit Button CFform CF5??
why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226604 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Disable Submit Button CFform CF5??
you could add its onclick event via JS too with something like element.setAttributes(onclick, this.disabled='true') not tested, but just look up javascripts setAttributes() function ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Tony [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:28 PM To: CF-Talk Subject: Re: Disable Submit Button CFform CF5?? why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226605 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Disable Submit Button CFform CF5??
That was simple, thanks for the help Tony. why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226606 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Disable Submit Button CFform CF5??
Actually... if you are using cfform, I imagine you are using it for the client side validation it generates? Disabling the button would be easy but re-enabling it when the validation catches something would prove to be a little more difficult. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:37 PM To: CF-Talk Subject: RE: Disable Submit Button CFform CF5?? you could add its onclick event via JS too with something like element.setAttributes(onclick, this.disabled='true') not tested, but just look up javascripts setAttributes() function ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Tony [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:28 PM To: CF-Talk Subject: Re: Disable Submit Button CFform CF5?? why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226608 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Disable Submit Button CFform CF5??
If that's the case, I think you'd probably be better off taking a look at qforms. http://pengoworks.com/index.cfm?action=get:qforms Ray Bobby Hartsfield wrote: Actually... if you are using cfform, I imagine you are using it for the client side validation it generates? Disabling the button would be easy but re-enabling it when the validation catches something would prove to be a little more difficult. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:37 PM To: CF-Talk Subject: RE: Disable Submit Button CFform CF5?? you could add its onclick event via JS too with something like element.setAttributes(onclick, this.disabled='true') not tested, but just look up javascripts setAttributes() function ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Tony [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:28 PM To: CF-Talk Subject: Re: Disable Submit Button CFform CF5?? why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226609 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Disable Submit Button CFform CF5??
I can vouch for qForms :) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:46 PM To: CF-Talk Subject: Re: Disable Submit Button CFform CF5?? If that's the case, I think you'd probably be better off taking a look at qforms. http://pengoworks.com/index.cfm?action=get:qforms Ray Bobby Hartsfield wrote: Actually... if you are using cfform, I imagine you are using it for the client side validation it generates? Disabling the button would be easy but re-enabling it when the validation catches something would prove to be a little more difficult. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:37 PM To: CF-Talk Subject: RE: Disable Submit Button CFform CF5?? you could add its onclick event via JS too with something like element.setAttributes(onclick, this.disabled='true') not tested, but just look up javascripts setAttributes() function ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Tony [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:28 PM To: CF-Talk Subject: Re: Disable Submit Button CFform CF5?? why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226610 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Disable Submit Button CFform CF5??
Thanks for the link guys, I will check it out. I can vouch for qForms :) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:46 PM To: CF-Talk Subject: Re: Disable Submit Button CFform CF5?? If that's the case, I think you'd probably be better off taking a look at qforms. http://pengoworks.com/index.cfm?action=get:qforms Ray Bobby Hartsfield wrote: Actually... if you are using cfform, I imagine you are using it for the client side validation it generates? Disabling the button would be easy but re-enabling it when the validation catches something would prove to be a little more difficult. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:37 PM To: CF-Talk Subject: RE: Disable Submit Button CFform CF5?? you could add its onclick event via JS too with something like element.setAttributes(onclick, this.disabled='true') not tested, but just look up javascripts setAttributes() function ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Tony [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:28 PM To: CF-Talk Subject: Re: Disable Submit Button CFform CF5?? why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226612 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Disable Submit Button CFform CF5??
np. glad it helped. id love to use pengo works, but i dont understand what it does. im javascript illiterate. well, not really, i just dont have the time to learn to write it. i can read it, i just cannot speak it :) tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: That was simple, thanks for the help Tony. why not just do this... input type=submit ... onClick=this.disabled='true',this.form.submit(); doesnt that work? tw On 12/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've tried about 5 different methods to disable a submit button in a cfform, all methods seem to work with a regular html form but for whatever reason they fail when I try to apply them to a cfform. Does anyone know of a way to disable a CFform submit button OnClick or OnSubmit in cf5? Thanks in advance. -Paul ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226646 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
OT - js - determine which submit button was submitted?
Hi Anybody know how to determine which submit button was pushed in a form with multiple submit buttons in the onsubmit function in javascript? ie script function me(){ what to write here to determine if its value 1 or 2? } /script form onsubmt=return me() input type=text name = me1 input type=submit name = me1 value=1 input type=submit name = me2 value=2 form If you tell me to look in the form structure, then you didnt read the question. Thanks. -- DRE www.webmachineinc.com http://www.webmachineinc.com www.theanticool.com http://www.theanticool.com ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219016 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT - js - determine which submit button was submitted?
I would guess some status check on the m1 and m2 elements in the DOM. I have no idea what that would be, but I'm fairly sure it is there somewhere. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219019 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT - js - determine which submit button was submitted?
the only way i can think to do it would be to use button inputs instead of submit inputs, with onclick attributes, submitting the form manually using the submit() method. script function me(btn, theform) { alert('You clicked ' + btn); theform.submit(); } /script form onsubmt=return me() input type=text name = me1 / input type=button name=me1 value=1 onclick=me(this.name, this.form); / input type=button name=me2 value=2 onclick=me(this.name, this.form; / form On 9/22/05, Ian Skinner [EMAIL PROTECTED] wrote: I would guess some status check on the m1 and m2 elements in the DOM. I have no idea what that would be, but I'm fairly sure it is there somewhere. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219023 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT - js - determine which submit button was submitted?
Instead of using actual submit buttons, you could use input type=button name=b1 onclick=MySubmitFunction(This.name http://This.name) Then you need to create a javascript function that is setup to accept your call and it will inheriently pass in the name of the button as one of the parameters. Use this param as the answer to your question Here is an example script type=text/javascript language=JavaScript function MySubmit(myButtonName) { if(myButtonName == 1) { alert(You hit Button 1); } else { alert(You hit Button 2); } } /script form name=myform input type=Button name=1 value=1 onclick=MySubmit(this.namehttp://this.name ); input type=Button name=2 value=2 onclick=MySubmit(this.namehttp://this.name ); /form Hope That Helps =] On 9/22/05, Ian Skinner [EMAIL PROTECTED] wrote: I would guess some status check on the m1 and m2 elements in the DOM. I have no idea what that would be, but I'm fairly sure it is there somewhere. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org http://www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219022 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT - js - determine which submit button was submitted?
as long as the submit buttons don't already have an onclick event, you could always include this script at the bottom of the page: script tags = document.getElementsByTagName('input') for (var i=0;itags.length;i++) { if (tags[i].type == 'submit') { tags[i].onclick = function () { me(this.name)} } } /script On 9/22/05, DRE [EMAIL PROTECTED] wrote: Hi Anybody know how to determine which submit button was pushed in a form with multiple submit buttons in the onsubmit function in javascript? ie script function me(){ what to write here to determine if its value 1 or 2? } /script form onsubmt=return me() input type=text name = me1 input type=submit name = me1 value=1 input type=submit name = me2 value=2 form If you tell me to look in the form structure, then you didnt read the question. Thanks. -- DRE www.webmachineinc.com http://www.webmachineinc.com www.theanticool.com http://www.theanticool.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219024 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT - js - determine which submit button was submitted?
Hi Anybody know how to determine which submit button was pushed in a form with multiple submit buttons in the onsubmit function in javascript? ie script function me(){ what to write here to determine if its value 1 or 2? } /script form onsubmt=return me() input type=text name = me1 input type=submit name = me1 value=1 input type=submit name = me2 value=2 form If you tell me to look in the form structure, then you didnt read the question. I don't believe there is a direct way to accomplish that... you need an onclick event in the button input type=submit name=me1 onclick=this.form.hiddenfield.value=this.name / Then reference that hidden field to determine which one they pressed. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219030 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT - js - determine which submit button was submitted?
If you really need to have this information on submit on client side, use this: script function me(){ alert(submitValue); } function whichButton(button) { submitValue = button.value; } var submitValue; /script form onsubmit=return me() input type=text name = me1 input type=submit name = me1 value=1 onClick=whichButton(this) input type=submit name = me2 value=2 onClick=whichButton(this) form (watch out, if you type onsubmt, like I stupidly copy'n pasted from your code, it won't work... ;-) If you only care which button in the CF template called by the form, then you could use this: FORM ACTION=testButton.cfm input type=text name = me1 input type=submit name = sub value=1 input type=submit name = sub value=2 form and in testButton.cfm: CFOUTPUTsubmit button was #sub#/CFOUTPUT -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219035 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Click-once submit button techniques?
maybe so, i havent tested that... all i know is the way i said, and it worked, so i did not test further :) if you do, let me knnow. thanks. tony On 9/13/05, Charlie Griefer [EMAIL PROTECTED] wrote: hmmdid not know that. somebody else had posted a similar response but appended a return true; after the this.disabled=true. wonder if it was for the same reason...? On 9/13/05, Tony [EMAIL PROTECTED] wrote: charlie... in IE if you do not add ,this.form.submit(); to your idea, it never submits. input type=submit onclick=this.disabled=true, this.form.submit(); / tony On 9/12/05, Charlie Griefer [EMAIL PROTECTED] wrote: input type=submit onclick=this.disabled=true; / On 9/12/05, Damien McKenna [EMAIL PROTECTED] wrote: Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218340 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Click-once submit button techniques?
how about onclick=javascript:this.disabled=true;return true (didn't test this, but you get the idea, right?) -- Hugo Ahlenius - Hugo Ahlenius E-Mail: [EMAIL PROTECTED] Project OfficerPhone: +46 8 412 1427 UNEP GRID-Arendal Fax:+46 8 723 0348 Stockholm Office Mobile: +46 733 467111 WWW: http://www.grida.no Skype:callto:fraxxinus PLEASE NOTE: NEW PHONE AND FAX NUMBERS FROM SEPT 1ST 2005 - | -Original Message- | From: Damien McKenna [mailto:[EMAIL PROTECTED] | Sent: Monday, September 12, 2005 23:04 | To: CF-Talk | Subject: OT: Click-once submit button techniques? | | Anyone got a simple JS function to block multiple submit-button | clicks? | I've looked a few times but never found anything simple that worked | and was cross-browser compatible. Thanks. | | -- | Damien McKenna - Web Developer - | [EMAIL PROTECTED] The Limu Company - | http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h | | | ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218010 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT: Click-once submit button techniques?
-Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Are using something like cfif isdeifned('form.button') Process the form vars /cfif (or form.button.x) I'm actually passing the ID of the page to load next as the button name, e.g go5 etc. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218023 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Click-once submit button techniques?
-Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 5:04 PM To: CF-Talk Subject: OT: Click-once submit button techniques? Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Here's what I use: input type=submit value=Log In onClick=if(this.value == 'Log In') this.form.submit(); this.value = 'Please Wait...'; hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218058 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Click-once submit button techniques?
charlie... in IE if you do not add ,this.form.submit(); to your idea, it never submits. input type=submit onclick=this.disabled=true, this.form.submit(); / tony On 9/12/05, Charlie Griefer [EMAIL PROTECTED] wrote: input type=submit onclick=this.disabled=true; / On 9/12/05, Damien McKenna [EMAIL PROTECTED] wrote: Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218061 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Click-once submit button techniques?
How about this? input type=submit value=Log In onClick=if(this.value == 'Log In') this.form.submit(); this.disabled= 'true'; this.value = 'Please Wait...'; I did not test this though... Russell - Original Message - From: Larry Lyons [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, September 13, 2005 1:17 PM Subject: Re: Click-once submit button techniques? -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 5:04 PM To: CF-Talk Subject: OT: Click-once submit button techniques? Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Here's what I use: input type=submit value=Log In onClick=if(this.value == 'Log In') this.form.submit(); this.value = 'Please Wait...'; hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218066 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Click-once submit button techniques?
hmmdid not know that. somebody else had posted a similar response but appended a return true; after the this.disabled=true. wonder if it was for the same reason...? On 9/13/05, Tony [EMAIL PROTECTED] wrote: charlie... in IE if you do not add ,this.form.submit(); to your idea, it never submits. input type=submit onclick=this.disabled=true, this.form.submit(); / tony On 9/12/05, Charlie Griefer [EMAIL PROTECTED] wrote: input type=submit onclick=this.disabled=true; / On 9/12/05, Damien McKenna [EMAIL PROTECTED] wrote: Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218078 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Click-once submit button techniques?
CFInput supports this, try this? cfinput type=submit validation=submitonce ---nimer -Original Message- From: Hugo Ahlenius [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 4:12 AM To: CF-Talk Subject: RE: Click-once submit button techniques? how about onclick=javascript:this.disabled=true;return true (didn't test this, but you get the idea, right?) -- Hugo Ahlenius - Hugo Ahlenius E-Mail: [EMAIL PROTECTED] Project OfficerPhone: +46 8 412 1427 UNEP GRID-Arendal Fax:+46 8 723 0348 Stockholm Office Mobile: +46 733 467111 WWW: http://www.grida.no Skype:callto:fraxxinus PLEASE NOTE: NEW PHONE AND FAX NUMBERS FROM SEPT 1ST 2005 - | -Original Message- | From: Damien McKenna [mailto:[EMAIL PROTECTED] | Sent: Monday, September 12, 2005 23:04 | To: CF-Talk | Subject: OT: Click-once submit button techniques? | | Anyone got a simple JS function to block multiple submit-button | clicks? | I've looked a few times but never found anything simple that worked | and was cross-browser compatible. Thanks. | | -- | Damien McKenna - Web Developer - | [EMAIL PROTECTED] The Limu Company - | http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h | | | ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218114 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
OT: Click-once submit button techniques?
Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217978 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Click-once submit button techniques?
input type=submit onclick=this.disabled=true; / On 9/12/05, Damien McKenna [EMAIL PROTECTED] wrote: Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217979 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT: Click-once submit button techniques?
-Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] input type=submit onclick=this.disabled=true; / Only problem is that when I add this to an input type=image / and try using Firefox it causes none of the data to get passed to the form. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217980 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Click-once submit button techniques?
I just wrote this and it seems to be working: script type=text/javascript language=javascript1.2 var dupeCounter = 0; function stopDupe() { if(dupeCounter = 1) return false; else dupeCounter += 1; return true; } /script Then I just added the following to the submit buttons: onclick=stopDupe(); -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217982 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Click-once submit button techniques?
Here are the functions I use to disable/enable buttons. The onclick of the button would call the disbtn(). It would only need to be re-enabled if you had some client side JS checks that found errors and popped up an alert() or something. You'd want to call enbtn() so they cold give it another go. !-- function disbtn(frm, btn, txt) { document.body.style.cursor='wait'; eval('document.' + frm + '.' + btn + '.value=\'' + txt + '\''); eval('document.' + frm + '.' + btn + '.disabled=true'); } function enbtn(frm, btn, txt) { document.body.style.cursor=''; eval('document.' + frm + '.' + btn + '.value=\'' + txt + '\''); eval('document.' + frm + '.' + btn + '.disabled=false'); } //-- Frm is the NAME of your form Btn is the NAME of the button Txt is simply the text you want disaplyed on the button. (VALUE of the button's tag I usually use 'Please Wait...' or 'Processing...' Of course you know this is 80% cosemetics and 20% protection since JS can be easily be turned off. I've seen some pretty clever ideas on stopping double submits come through this list. I'd check the archives for a server side solution. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 5:04 PM To: CF-Talk Subject: OT: Click-once submit button techniques? Anyone got a simple JS function to block multiple submit-button clicks? I've looked a few times but never found anything simple that worked and was cross-browser compatible. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217990 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT: Click-once submit button techniques?
Are using something like cfif isdeifned('form.button') Process the form vars /cfif (or form.button.x) If you click a form button, image or not... and it submits. The form scope is there. Just use something else to check to see if the form was just submitted. Most any of the fields will work in its place. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 5:29 PM To: CF-Talk Subject: RE: OT: Click-once submit button techniques? -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] input type=submit onclick=this.disabled=true; / Only problem is that when I add this to an input type=image / and try using Firefox it causes none of the data to get passed to the form. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217991 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Click-once submit button techniques?
If it's CFMX7, you can do this: cfinput type=submit name=submit value=complete order validate=submitonce Will ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217999 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Submit button and using the enter/return key
Hello, I created a cfform with a type of flash, I have several input field and one sumbit button. The problem I'm having is that when I hit the enter/return key it does not submit the form. Does anyone know hat I need to do to resolv this? Thanks, - Charles ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201999 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. Have you tried: a href=javascript:void(0) onclick=javascript:this.form.submit(); img src=/images/next10.gif/a larry ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198822 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT: Image Submit button
shouldn'e input type=image be input type=button -Original Message- From: Larry Lyons [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 9:58 AM To: CF-Talk Subject: Re: OT: Image Submit button I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. Have you tried: a href=javascript:void(0) onclick=javascript:this.form.submit(); img src=/images/next10.gif/a larry ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198824 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
how about this: input type=submit id=imgSubmit class=formitems value=Next 10 name=submitNext And in the stylesheet... FORM .formitems #imgSubmit { background-image = path/to/image.jpg } Just a thought... J -Original Message- From: Larry Lyons [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 9:58 AM To: CF-Talk Subject: Re: OT: Image Submit button I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://cfobjective.neo.servequake.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198828 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. If you output form.fieldnames, you'll see what the problem is. input type=submit name=foo value=Submit Form submits the variable foo. Therefore, cfif IsDefined(form.foo) returns true. input type=image name=foo src=submit.gif submits differently based on the browser. MSIE submits foo.x and foo.y. Mozilla (Firefox) submits foo.x, foo.y AND foo. Therefore, if you're only checking cfif IsDefined(form.foo) when using an image submit button, it will only return true in Mozilla browsers. You should check cfif IsDefined(form.foo.x) to return true in both MSIE and Mozilla. HTH, Adrian ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198831 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT: Image Submit button
Which is why I mailed a few days asking what was the code on the action page doing as I suspected as much :) Kola -Original Message- From: Adrian Moreno [mailto:[EMAIL PROTECTED] Sent: 15 March 2005 17:04 To: CF-Talk Subject: Re: OT: Image Submit button I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. If you output form.fieldnames, you'll see what the problem is. input type=submit name=foo value=Submit Form submits the variable foo. Therefore, cfif IsDefined(form.foo) returns true. input type=image name=foo src=submit.gif submits differently based on the browser. MSIE submits foo.x and foo.y. Mozilla (Firefox) submits foo.x, foo.y AND foo. Therefore, if you're only checking cfif IsDefined(form.foo) when using an image submit button, it will only return true in Mozilla browsers. You should check cfif IsDefined(form.foo.x) to return true in both MSIE and Mozilla. HTH, Adrian ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198834 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
or ... button type=submit id=imgSubmit/button #imgSubmit { background-image: path/to/image.jpg; } Granted, that with a button, you could just embed the image and make the style on the button transparent, i.e. button type=submit class=btnImage img src=path/to/image.jpg //button button.btnImage { border: 0px; background-color: transparent; } I think that ought to work anyway... I wasn't paying attention to the earlier posts, so I don't know if the intent was to avoid button elements (which aren't supported by older NS browsers). how about this: input type=submit id=imgSubmit class=formitems value=Next 10 name=submitNext And in the stylesheet... FORM .formitems #imgSubmit { background-image = path/to/image.jpg } Just a thought... J s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198835 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
I was assuming that class=formitems was supplying some sort of formatting to the form elements... only (duh) if it's an image button that's not going to matter. But I used that larger selector to insure that, since it's a form item, it receives the same class assignment that the rest of the form items do. So, yeah, the simpler version may be fine... depends on the specifics of the implementation. J On Tue, 15 Mar 2005 13:22:14 -0500, S. Isaac Dealey [EMAIL PROTECTED] wrote: or ... button type=submit id=imgSubmit/button #imgSubmit { background-image: path/to/image.jpg; } Granted, that with a button, you could just embed the image and make the style on the button transparent, i.e. button type=submit class=btnImage img src=path/to/image.jpg //button button.btnImage { border: 0px; background-color: transparent; } I think that ought to work anyway... I wasn't paying attention to the earlier posts, so I don't know if the intent was to avoid button elements (which aren't supported by older NS browsers). -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://cfobjective.neo.servequake.com ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198838 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
Yea, I didn't really have any idea what the implementation in question was... I noticed you typo'd the css and use = instead of : ... didn't say anything about it 'cause I figured it was just a typo and likely the folks reading the thread are familiar enough with css to catch it rather than trying to use it and wondering why it doesn't work. :P But I wasn't really critiqueing your suggestion per se, just throwing out an option for variety. :) I was assuming that class=formitems was supplying some sort of formatting to the form elements... only (duh) if it's an image button that's not going to matter. But I used that larger selector to insure that, since it's a form item, it receives the same class assignment that the rest of the form items do. So, yeah, the simpler version may be fine... depends on the specifics of the implementation. J s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198840 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
Did *I* really do *that*??? No... no me. A typo? Actually, it's all those years typing HTML that gets me when I'm writing CSS... I find myself slipping into using = intead of : far too often... which is why I like things like TopStyle. Since I'm still all stuck on CFStudio (I like it best, what can I say?) TopStyle works well and I like it better than DW's CSS editor. Laterz, J On Tue, 15 Mar 2005 14:27:43 -0500, S. Isaac Dealey [EMAIL PROTECTED] wrote: Yea, I didn't really have any idea what the implementation in question was... I noticed you typo'd the css and use = instead of : ... didn't say anything about it 'cause I figured it was just a typo and likely the folks reading the thread are familiar enough with css to catch it rather than trying to use it and wondering why it doesn't work. :P But I wasn't really critiqueing your suggestion per se, just throwing out an option for variety. :) -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://cfobjective.neo.servequake.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198902 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
Did *I* really do *that*??? No... no me. A typo? Actually, it's all those years typing HTML that gets me when I'm writing CSS... I find myself slipping into using = intead of : far too often... which is why I like things like TopStyle. Since I'm still all stuck on CFStudio (I like it best, what can I say?) TopStyle works well and I like it better than DW's CSS editor. I just can't get used to using a css editing tool -- they just get in my way... or it feels like anyway... same sort of reasons why I never use the visual query design tools in Enterprise Manager or similar... I've had a number of people look at me strange because I typically open Query Analyzer to perform ad-hoc database tasks instead of opening Enterprise Manager. Dreamweaver's tag-insight is kinda nice tho -- they added support for CSS so when you type style= into a tag it gives you a list of properties and when you select the property or enter the : it gives you a list of values for that property... Though mostly I only get that insight when I'm editing files with a .css extension, 'cause I don't use a lot of html tags in my code, or when I do I'm not using a lot of in-line styles on them. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198913 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT: Image Submit button
Thanks Troy. It does not submit the value just refreshes though. Robert O. -Original Message- From: Troy Murray [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 4:29 PM To: CF-Talk Subject: Re: OT: Image Submit button Try this instead for the button: button type=submit class=formitemsimg src=/images/next10.gif border=0 Next 10/button -t On Fri, 11 Mar 2005 14:19:39 -0500, Robert Orlini [EMAIL PROTECTED] wrote: I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. HWW -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 3/7/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198639 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: OT: Image Submit button
You shouldn't need the javascript, the fact that it's an image should also ensure that it's a submit button. Are you doing some sort of check on your action page to see if it has been submitted? Kola -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: 14 March 2005 14:00 To: CF-Talk Subject: RE: OT: Image Submit button Thanks Troy. It does not submit the value just refreshes though. Robert O. -Original Message- From: Troy Murray [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 4:29 PM To: CF-Talk Subject: Re: OT: Image Submit button Try this instead for the button: button type=submit class=formitemsimg src=/images/next10.gif border=0 Next 10/button -t On Fri, 11 Mar 2005 14:19:39 -0500, Robert Orlini [EMAIL PROTECTED] wrote: I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. HWW -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 3/7/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198642 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
OT: Image Submit button
I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. HWW -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 3/7/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198459 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
Robert, An input type image, defaults being a submit button. If you have set your form method to post, the image button will present itself as a submit button. If nothing works out, could you provide us with a small amount of code, maybe we can directly see were the problem is. Micha ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198490 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
I believe that image submit buttons don't pass a value, they pass the coordinates of the click on the image (for doing server-side image maps). So what's probably happening is the page you're submitting to is checking for a value of next 10, and since it's not there, it's just reloading the same 10 results. cheers, barneyb On Fri, 11 Mar 2005 14:19:39 -0500, Robert Orlini [EMAIL PROTECTED] wrote: I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. HWW -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198492 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Image Submit button
Try this instead for the button: button type=submit class=formitemsimg src=/images/next10.gif border=0 Next 10/button -t On Fri, 11 Mar 2005 14:19:39 -0500, Robert Orlini [EMAIL PROTECTED] wrote: I have another problem with a submit button. It works well as input type=submit and moves on to the next ten records, but when I change it to an image it seems to just refresh the page but not go to the next records. This works: input type=submit class=formitems value=Next 10 name=submitNext This does not: input type=image class=formitems src=/images/next10.gif value=Next 10 name=submitNext onclick=javascript:this.form.submit(); I added onclick=javascript:this.form.submit(); but to no avail. Am I missing something here? Robert O. HWW -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 3/7/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198505 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Javascript submit button vs html submit button
How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a URL and all the URL Variables is limited.If you have a very large amount of form input, you had better use HTML submit buttons and the POST method [/quote] Is this true?Its brought about by an application I'm working on where we might have a hidden form field with as many as 40,000 userIDs passed to the action page in a comma delimited list. Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Javascript submit button vs html submit button
I'm guessing this is true.If memory serves correct, the maximum length of a URL is only 2,048 characters.If you need to transfer more data than that, you have to use POST. From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 8:08 AM To: CF-Talk Subject: _javascript_ submit button vs html submit button How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a URL and all the URL Variables is limited.If you have a very large amount of form input, you had better use HTML submit buttons and the POST method [/quote] Is this true?Its brought about by an application I'm working on where we might have a hidden form field with as many as 40,000 userIDs passed to the action page in a comma delimited list. Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Javascript submit button vs html submit button
Wow, one question, do you need to actually pass 40,000 user id's, thats make you page site huge? Also Js would submit the form using whatever method was declared in the form tag. Here's some test code script language=_javascript_ function submitform() { document.myform.submit(); } /script form name=myform action="" method=post Search: input type='text' name='q' A href="" submitform()Search/A /form cfif isDefined(form.q) form cfelseif isDefined(url.q) url /cfif Hope this helps Andy - Original Message - From: Mike Kear [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 22:07:35 +1000 Subject: _javascript_ submit button vs html submit button To: CF-Talk [EMAIL PROTECTED] How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a URL and all the URL Variables is limited.If you have a very large amount of form input, you had better use HTML submit buttons and the POST method [/quote] Is this true?Its brought about by an application I'm working on where we might have a hidden form field with as many as 40,000 userIDs passed to the action page in a comma delimited list. Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Javascript submit button vs html submit button
It depends on what you mean by _javascript_ form submit button. But doing form.submit() in JS simply submits the form using the method specified in the form. If this is POST the values are passed in the HTTP body and not in the URL. Pascal -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: 15 September 2004 14:08 To: CF-Talk Subject: [Spam?] _javascript_ submit button vs html submit button How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a URL and all the URL Variables is limited.If you have a very large amount of form input, you had better use HTML submit buttons and the POST method [/quote] Is this true?Its brought about by an application I'm working on where we might have a hidden form field with as many as 40,000 userIDs passed to the action page in a comma delimited list. Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Javascript submit button vs html submit button
Mike Kear wrote: How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a URL and all the URL Variables is limited.If you have a very large amount of form input, you had better use HTML submit buttons and the POST method [/quote] Is this true? Its only half true. Yes with GET type form submission you do need to ensure that the number of variables and their values does not exceed the maximum length for a URL (128 characters I think...don't quote me) _javascript_ submission of pages need not be a GET submission.It can also be a POST method. This is determined by the FORM tag and not the way that it is submitted. Its brought about by an application I'm working on where we might have a hidden form field with as many as 40,000 userIDs passed to the action page in a comma delimited list. Ummm... eek!Would it not be better to provide a single reference to something the DB that allows you to pick out those IDs rather than passing them around on a page? Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Javascript submit button vs html submit button
Internet Explorer is limited by 2048 bytes in urls, that is why GET actions should be used with caution. If you send a form by _javascript_ keep in mind the onsubmit handler of a form will not be fired. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 ALAmersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Javascript submit button vs html submit button
Heheh Andy I didnt believe it myself either.However it's sort of historical to some extent.We have to live with some aspects of the system we're working with.The user gets to select all or some of the members in the membership database, and there are more than 40,000 members.So it's possible they could say yes all of those! and click the Select all button. Anyway, thats how the guy with the money says it's going to work, and there's no money to pay to change the way it works, so we're living with that.I agree with you, Andy i'd rather see those 40,000 refIDs going into even a temporary table or something, just in case there's a hiccup at the moment of submitting the form. Thanks for your thoughts. I'm going to have a try with a set of 40,000 ID numbers and see what happens. Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year - Original Message - From: Andy J [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 13:27:35 +0100 Subject: Re: _javascript_ submit button vs html submit button To: CF-Talk [EMAIL PROTECTED] Wow, one question, do you need to actually pass 40,000 user id's, thats make you page site huge? [snip] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CFForm CFGrid - Submit button not appearing
Has anyone else had a problem with CFFORM not showing the submit button for the form when using CFGRID? I've never seen that problem. When you use CFFORM, it just builds HTML form tags for you. You still need to include a submit button yourself. When you view HTML source, do you see the submit button code? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CFForm CFGrid - Submit button not appearing
I sure do, that is why I thought it kind of odd.I thought maybe it had to do something with the CFGrid Applet.I will keep testing and see if I can fix this. Thanks Jason L. West, Sr. Internet Application Specialist, Sr. WezBiz Technologies http://wezbiz.com Dave Watts [EMAIL PROTECTED] wrote on 08/10/2004 11:22:36: Has anyone else had a problem with CFFORM not showing the submit button for the form when using CFGRID? I've never seen that problem. When you use CFFORM, it just builds HTML form tags for you. You still need to include a submit button yourself. When you view HTML source, do you see the submit button code? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CFForm CFGrid - Submit button not appearing
Well I figured out what was going on with the CFForm/CFGrid issue.The submit button was residing behind the applet even though I had it with a break under the cfgrid end tag.After wrapping the contents of the CFForm in a table everything appeared where it was supposed to. Lesson Learned :-) Jason L. West, Sr. Internet Application Specialist, Sr. WezBiz Technologies http://wezbiz.com [EMAIL PROTECTED] wrote on 08/10/2004 19:29:27: I sure do, that is why I thought it kind of odd.I thought maybe it had to do something with the CFGrid Applet.I will keep testing and see if I can fix this. Thanks Jason L. West, Sr. Internet Application Specialist, Sr. WezBiz Technologies http://wezbiz.com Dave Watts [EMAIL PROTECTED] wrote on 08/10/2004 11:22:36: Has anyone else had a problem with CFFORM not showing the submit button for the form when using CFGRID? I've never seen that problem. When you use CFFORM, it just builds HTML form tags for you. You still need to include a submit button yourself. When you view HTML source, do you see the submit button code? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
CFForm CFGrid - Submit button not appearing
Has anyone else had a problem with CFFORM not showing the submit button for the form when using CFGRID? Thanks Jason L. West, Sr. Internet Application Specialist, Sr. WezBiz Technologies http://wezbiz.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
SUBMIT button
Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re: SUBMIT button
Pass a hidden field called delete with that value, and rename your submit one to something else... On 2/9/03 15:35, Robert Orlini [EMAIL PROTECTED] wrote: Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re: SUBMIT button
Robert Orlini wrote: Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. I'm assuming you're not getting the variable 'delete' set, in this case it's probably IE doing what you don't expect. I think IE doesn't send the 'delete' value, but delete_x and delete_y which contain the (x,y) where the user clicked. -- Oliver Tupman Key Systems Geotechnical ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: SUBMIT button
Robert: INPUT fields of type Image do not pass a value as defined by the VALUE attribute. Instead, they pass 2 values, defined by the NAME attribute. The values passed are name.x and name.y each value corresponding to the X or Y coordinate of the point on the image where the user click the mouse. So, for example, if a user clicked dead center on the image produced by: INPUT TYPE=image SRC=images/delete_record.gif NAME=delete WIDTH=100 HEIGHT=100 Your action page would see delete.x and delete.y, both of which would contain the value 50. -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 10:35 AM To: CF-Talk Subject: SUBMIT button Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Re: SUBMIT button
oi Mosh!! uh, don't the name.x and name.y hold the pixel location of the actual click? -- Tuesday, September 2, 2003, 11:12:45 AM, you wrote: MT Robert: MT INPUT fields of type Image do not pass a value as defined by the VALUE MT attribute. Instead, they pass 2 values, defined by the NAME attribute. The MT values passed are name.x and name.y each value corresponding to the X or MT Y coordinate of the point on the image where the user click the mouse. So, MT for example, if a user clicked dead center on the image produced by: MT INPUT TYPE=image MT SRC=images/delete_record.gif MT NAME=delete MT WIDTH=100 HEIGHT=100 MT Your action page would see delete.x and delete.y, both of which would MT contain the value 50. MT -- MT Mosh Teitelbaum MT evoch, LLC MT Tel: (301) 942-5378 MT Fax: (301) 933-3651 MT Email: [EMAIL PROTECTED] MT WWW: http://www.evoch.com/ -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 10:35 AM To: CF-Talk Subject: SUBMIT button Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW MT ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: SUBMIT button
Hi, You need to refer to the button as form.delete.x rather than just form.delete. For example if you were checking to see if the form had been submitted you might use: cfif IsDefined(form.delete.x) Best regards, Michael Wilson -Original Message- From: Oliver Tupman [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:02 AM To: CF-Talk Subject: Re: SUBMIT button Robert Orlini wrote: Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: SUBMIT button
Isn't that what I said? -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: Critz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:20 AM To: CF-Talk Subject: Re: SUBMIT button oi Mosh!! uh, don't the name.x and name.y hold the pixel location of the actual click? -- Tuesday, September 2, 2003, 11:12:45 AM, you wrote: MT Robert: MT INPUT fields of type Image do not pass a value as defined by the VALUE MT attribute. Instead, they pass 2 values, defined by the NAME attribute. The MT values passed are name.x and name.y each value corresponding to the X or MT Y coordinate of the point on the image where the user click the mouse. So, MT for example, if a user clicked dead center on the image produced by: MT INPUT TYPE=image MT SRC=images/delete_record.gif MT NAME=delete MT WIDTH=100 HEIGHT=100 MT Your action page would see delete.x and delete.y, both of which would MT contain the value 50. MT -- MT Mosh Teitelbaum MT evoch, LLC MT Tel: (301) 942-5378 MT Fax: (301) 933-3651 MT Email: [EMAIL PROTECTED] MT WWW: http://www.evoch.com/ -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 10:35 AM To: CF-Talk Subject: SUBMIT button Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW MT ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
Re: SUBMIT button
oi Mosh!! ah missed the dead center bit. my bad -- Tuesday, September 2, 2003, 11:42:16 AM, you wrote: MT Isn't that what I said? MT -- MT Mosh Teitelbaum MT evoch, LLC MT Tel: (301) 942-5378 MT Fax: (301) 933-3651 MT Email: [EMAIL PROTECTED] MT WWW: http://www.evoch.com/ -Original Message- From: Critz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:20 AM To: CF-Talk Subject: Re: SUBMIT button oi Mosh!! uh, don't the name.x and name.y hold the pixel location of the actual click? -- Tuesday, September 2, 2003, 11:12:45 AM, you wrote: MT Robert: MT INPUT fields of type Image do not pass a value as defined by the VALUE MT attribute. Instead, they pass 2 values, defined by the NAME attribute. The MT values passed are name.x and name.y each value corresponding to the X or MT Y coordinate of the point on the image where the user click the mouse. So, MT for example, if a user clicked dead center on the image produced by: MT INPUT TYPE=image MT SRC=images/delete_record.gif MT NAME=delete MT WIDTH=100 HEIGHT=100 MT Your action page would see delete.x and delete.y, both of which would MT contain the value 50. MT -- MT Mosh Teitelbaum MT evoch, LLC MT Tel: (301) 942-5378 MT Fax: (301) 933-3651 MT Email: [EMAIL PROTECTED] MT WWW: http://www.evoch.com/ -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 10:35 AM To: CF-Talk Subject: SUBMIT button Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW MT MT ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: SUBMIT button
No problem 8^). -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: Critz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:53 AM To: CF-Talk Subject: Re: SUBMIT button oi Mosh!! ah missed the dead center bit. my bad -- Tuesday, September 2, 2003, 11:42:16 AM, you wrote: MT Isn't that what I said? MT -- MT Mosh Teitelbaum MT evoch, LLC MT Tel: (301) 942-5378 MT Fax: (301) 933-3651 MT Email: [EMAIL PROTECTED] MT WWW: http://www.evoch.com/ -Original Message- From: Critz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:20 AM To: CF-Talk Subject: Re: SUBMIT button oi Mosh!! uh, don't the name.x and name.y hold the pixel location of the actual click? -- Tuesday, September 2, 2003, 11:12:45 AM, you wrote: MT Robert: MT INPUT fields of type Image do not pass a value as defined by the VALUE MT attribute. Instead, they pass 2 values, defined by the NAME attribute. The MT values passed are name.x and name.y each value corresponding to the X or MT Y coordinate of the point on the image where the user click the mouse. So, MT for example, if a user clicked dead center on the image produced by: MTINPUT TYPE=image MTSRC=images/delete_record.gif MTNAME=delete MTWIDTH=100 HEIGHT=100 MT Your action page would see delete.x and delete.y, both of which would MT contain the value 50. MT -- MT Mosh Teitelbaum MT evoch, LLC MT Tel: (301) 942-5378 MT Fax: (301) 933-3651 MT Email: [EMAIL PROTECTED] MT WWW: http://www.evoch.com/ -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 10:35 AM To: CF-Talk Subject: SUBMIT button Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW MT MT ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
RE: SUBMIT button
Thanks all! This has been helpful. Robert O. -Original Message- From: Michael Wilson [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:31 AM To: CF-Talk Subject: RE: SUBMIT button Hi, You need to refer to the button as form.delete.x rather than just form.delete. For example if you were checking to see if the form had been submitted you might use: cfif IsDefined(form.delete.x) Best regards, Michael Wilson -Original Message- From: Oliver Tupman [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:02 AM To: CF-Talk Subject: Re: SUBMIT button Robert Orlini wrote: Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
submit cfform without submit button
Hello all, I know this isn't strictly a CF issue but I am using CF at the momeny so here we go. I have a simple form with two text fields one for username and one for password. Here is the code. cfform action=checkin.cfm method=post enctype=multipart/form-data cfinput class=copy required=yes style=width:140px; name=userjay type=text size=14 maxlength=50 message=Username is Required cfinput class=copy required=yes style=width:140px; name=passwordjay type=password size=14 maxlength=50 message=Username is Required input type=submit value=nbsp;Enternbsp; class=copy /cfform My boss wants there to NOT be a submit button showing on the screen, i.e. he just wants people to type in their username and password and then hit enter to login. How would I go about this. I thought of just hiding the submit in a div but that didn't do it. It needs to work in NN4.7 up and IE 5 up. Any help would be good. Jeremy ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: submit cfform without submit button
It's already the default in IE. In NN you need to look at the onKey events, should be like onKeyDown, onKeyUp, onKeyPress, something like that. Then when the event is triggered you kick of a script that does a form submit. Tim -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:07 PM To: CF-Talk Subject: submit cfform without submit button Hello all, I know this isn't strictly a CF issue but I am using CF at the momeny so here we go. I have a simple form with two text fields one for username and one for password. Here is the code. cfform action=checkin.cfm method=post enctype=multipart/form-data cfinput class=copy required=yes style=width:140px; name=userjay type=text size=14 maxlength=50 message=Username is Required cfinput class=copy required=yes style=width:140px; name=passwordjay type=password size=14 maxlength=50 message=Username is Required input type=submit value=nbsp;Enternbsp; class=copy /cfform My boss wants there to NOT be a submit button showing on the screen, i.e. he just wants people to type in their username and password and then hit enter to login. How would I go about this. I thought of just hiding the submit in a div but that didn't do it. It needs to work in NN4.7 up and IE 5 up. Any help would be good. Jeremy ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: submit cfform without submit button
Tell your boss I think he's an idiot. That such a usability no-no. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:07 PM To: CF-Talk Subject: submit cfform without submit button Hello all, I know this isn't strictly a CF issue but I am using CF at the momeny so here we go. I have a simple form with two text fields one for username and one for password. Here is the code. cfform action=checkin.cfm method=post enctype=multipart/form-data cfinput class=copy required=yes style=width:140px; name=userjay type=text size=14 maxlength=50 message=Username is Required cfinput class=copy required=yes style=width:140px; name=passwordjay type=password size=14 maxlength=50 message=Username is Required input type=submit value=nbsp;Enternbsp; class=copy /cfform My boss wants there to NOT be a submit button showing on the screen, i.e. he just wants people to type in their username and password and then hit enter to login. How would I go about this. I thought of just hiding the submit in a div but that didn't do it. It needs to work in NN4.7 up and IE 5 up. Any help would be good. Jeremy ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: submit cfform without submit button
I strongly agree, I have made that point, and he didn't think it was a big deal, but we'll see what he says now that I have it working. I am sure he will change his mind. Jeremy -Original Message- From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:33 PM To: CF-Talk Subject: RE: submit cfform without submit button Tell your boss I think he's an idiot. That such a usability no-no. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:07 PM To: CF-Talk Subject: submit cfform without submit button Hello all, I know this isn't strictly a CF issue but I am using CF at the momeny so here we go. I have a simple form with two text fields one for username and one for password. Here is the code. cfform action=checkin.cfm method=post enctype=multipart/form-data cfinput class=copy required=yes style=width:140px; name=userjay type=text size=14 maxlength=50 message=Username is Required cfinput class=copy required=yes style=width:140px; name=passwordjay type=password size=14 maxlength=50 message=Username is Required input type=submit value=nbsp;Enternbsp; class=copy /cfform My boss wants there to NOT be a submit button showing on the screen, i.e. he just wants people to type in their username and password and then hit enter to login. How would I go about this. I thought of just hiding the submit in a div but that didn't do it. It needs to work in NN4.7 up and IE 5 up. Any help would be good. Jeremy ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: submit cfform without submit button
So many times ... clients or bosses have asked me for things that I knew was wrong, but I've given it to them ... and then ... they don't like it. Sometimes battles are won by not fighting them. H. -Original Message- From: Jeremy Bunton [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 12:43 PM To: CF-Talk Subject: RE: submit cfform without submit button I strongly agree, I have made that point, and he didn't think it was a big deal, but we'll see what he says now that I have it working. I am sure he will change his mind. Jeremy -Original Message- From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:33 PM To: CF-Talk Subject: RE: submit cfform without submit button Tell your boss I think he's an idiot. That such a usability no-no. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:07 PM To: CF-Talk Subject: submit cfform without submit button Hello all, I know this isn't strictly a CF issue but I am using CF at the momeny so here we go. I have a simple form with two text fields one for username and one for password. Here is the code. cfform action=checkin.cfm method=post enctype=multipart/form-data cfinput class=copy required=yes style=width:140px; name=userjay type=text size=14 maxlength=50 message=Username is Required cfinput class=copy required=yes style=width:140px; name=passwordjay type=password size=14 maxlength=50 message=Username is Required input type=submit value=nbsp;Enternbsp; class=copy /cfform My boss wants there to NOT be a submit button showing on the screen, i.e. he just wants people to type in their username and password and then hit enter to login. How would I go about this. I thought of just hiding the submit in a div but that didn't do it. It needs to work in NN4.7 up and IE 5 up. Any help would be good. Jeremy ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: submit cfform without submit button
Wait for the user complaints to start rolling in. Or for him to ask we don't see to be getting much usage out of that form ... H. -Original Message- From: Jeremy Bunton [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 1:51 PM To: CF-Talk Subject: RE: submit cfform without submit button I showed it to him without a submit button and he loved it. Just what I wanted *shrugs* what can ya do. Jeremy -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 4:14 PM To: CF-Talk Subject: RE: submit cfform without submit button So many times ... clients or bosses have asked me for things that I knew was wrong, but I've given it to them ... and then ... they don't like it. Sometimes battles are won by not fighting them. H. -Original Message- From: Jeremy Bunton [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 12:43 PM To: CF-Talk Subject:RE: submit cfform without submit button I strongly agree, I have made that point, and he didn't think it was a big deal, but we'll see what he says now that I have it working. I am sure he will change his mind. Jeremy -Original Message- From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:33 PM To: CF-Talk Subject: RE: submit cfform without submit button Tell your boss I think he's an idiot. That such a usability no-no. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:07 PM To: CF-Talk Subject: submit cfform without submit button Hello all, I know this isn't strictly a CF issue but I am using CF at the momeny so here we go. I have a simple form with two text fields one for username and one for password. Here is the code. cfform action=checkin.cfm method=post enctype=multipart/form-data cfinput class=copy required=yes style=width:140px; name=userjay type=text size=14 maxlength=50 message=Username is Required cfinput class=copy required=yes style=width:140px; name=passwordjay type=password size=14 maxlength=50 message=Username is Required input type=submit value=nbsp;Enternbsp; class=copy /cfform My boss wants there to NOT be a submit button showing on the screen, i.e. he just wants people to type in their username and password and then hit enter to login. How would I go about this. I thought of just hiding the submit in a div but that didn't do it. It needs to work in NN4.7 up and IE 5 up. Any help would be good. Jeremy ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: submit cfform without submit button
I showed it to him without a submit button and he loved it. Just what I wanted *shrugs* what can ya do. Jeremy -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 4:14 PM To: CF-Talk Subject: RE: submit cfform without submit button So many times ... clients or bosses have asked me for things that I knew was wrong, but I've given it to them ... and then ... they don't like it. Sometimes battles are won by not fighting them. H. -Original Message- From: Jeremy Bunton [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 12:43 PM To: CF-Talk Subject: RE: submit cfform without submit button I strongly agree, I have made that point, and he didn't think it was a big deal, but we'll see what he says now that I have it working. I am sure he will change his mind. Jeremy -Original Message- From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:33 PM To: CF-Talk Subject: RE: submit cfform without submit button Tell your boss I think he's an idiot. That such a usability no-no. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:07 PM To: CF-Talk Subject: submit cfform without submit button Hello all, I know this isn't strictly a CF issue but I am using CF at the momeny so here we go. I have a simple form with two text fields one for username and one for password. Here is the code. cfform action=checkin.cfm method=post enctype=multipart/form-data cfinput class=copy required=yes style=width:140px; name=userjay type=text size=14 maxlength=50 message=Username is Required cfinput class=copy required=yes style=width:140px; name=passwordjay type=password size=14 maxlength=50 message=Username is Required input type=submit value=nbsp;Enternbsp; class=copy /cfform My boss wants there to NOT be a submit button showing on the screen, i.e. he just wants people to type in their username and password and then hit enter to login. How would I go about this. I thought of just hiding the submit in a div but that didn't do it. It needs to work in NN4.7 up and IE 5 up. Any help would be good. Jeremy ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: submit cfform without submit button
Wait for the user complaints to start rolling in. Dear Bob, We've been trying to order the $1745.32 widget off your website for the last three weeks, but there's no way to submit the order form once we fill it out. Bruce found another one for us at HQ the other day, so we no longer need the one we've been trying to purchase, but we thought you should know about the ordering problem, just in case somebody else wishes to order from you. Yours, Almost a customer ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
OT: JS - submit/button problem
Hi list, at the end of a form I have: INPUT TYPE=submit VALUE=SUBMIT onclick=something(this.form) but I need a INPUT TYPE=button VALUE=SUBMIT onclick=something(this.form) to let a JS-routine run, which is further up. But I want to pass values to a action script. So is there a way to only let the form submit parameters if the onclick-routine is passed ? Thanks for ideas. Uwe ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm