disable save button after clicked

A place for users and developers of the Xataface to discuss and receive support.

Re: disable save button after clicked

Postby shannah » Fri Feb 26, 2010 5:09 pm

.js files shouldn't contain <script> tags. That would probably be the cause of this error.... there may be others though..
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: disable save button after clicked

Postby amrcode1 » Sat Feb 27, 2010 10:48 am

initially did not use the labels, i'm add tags thinking in a solution but don't work, I will be trying out more things, thank's
amrcode1
 
Posts: 18
Joined: Thu Nov 12, 2009 11:09 am

Re: disable save button after clicked

Postby shannah » Sat Feb 27, 2010 11:14 am

The other problem might be that you haven't included jquery before using it. Make sure you do that. i.e.
Code: Select all
echo '<script type="text/javascript" src="'.DATAFACE_URL.'/js/jquery.packed.js"></script>
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: disable save button after clicked

Postby amrcode1 » Mon Mar 01, 2010 8:12 am

Hi, problem solved!

Function need register in registerPloneFunction(function)

code here:
Code: Select all
function prevent_duble_click(){
   jQuery(document).ready(function($){$("input[type='submit']").click(function(){$(this).attr("disabled","disabled");$(this).attr("value","Wait");});});
   }
registerPloneFunction(prevent_double_click);


This work fine. Steve thank's for you help. I'm change the value of bottom for test if funciton work.
amrcode1
 
Posts: 18
Joined: Thu Nov 12, 2009 11:09 am

Previous

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 38 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved