i used this function to reload a parent mask in p4a 3
a parent mask would be one that calls another mask (the child). so the function would be in the child mask.
function doReloadParentMask(){
$p4a = p4a::singleton();
//$parent = p4a::singleton('product');
//$parent->destroy();
$p4a->masks->product->destroy();
$p4a->openMask('product');
}
As a programmer, there are no real problems but challenges...ones that we need to overcome. This means that there is a solution for all challenges that one may face. For all the challenges that I have faced, I will share them and their solutions.
Thursday, June 11, 2009
Wednesday, June 10, 2009
how to replace extra space in a database/sql column
use the replace function:
update table_name
set column_name = replace(column_name, ' ', ' ');
the function takes the column name and replaces two occurrences of spaes with one;
update table_name
set column_name = replace(column_name, ' ', ' ');
the function takes the column name and replaces two occurrences of spaes with one;
Monday, June 8, 2009
how to build spam free contact forms
i saw this explanation of how to build spam free forms and this is the link: http://nfriedly.com/techblog/2009/06/how-to-build-a-spam-free-contact-forms-without-captchas/
Thursday, May 28, 2009
varibale not defined from javascript validation
if when validating a form with javascript you have:
if(errorMsg!= ""){
alert(errorMsg);
return false;
} else {
form.submit();
}
from the line with the name of the form, try using document.form.submit();
if(errorMsg!= ""){
alert(errorMsg);
return false;
} else {
form.submit();
}
from the line with the name of the form, try using document.form.submit();
Saturday, May 23, 2009
Friday, May 22, 2009
Sunday, May 17, 2009
usain bolt sets new world record over 150m
check out the video
this yute is crazy. and he will only get faster and faster and faster...
you get the pic :)
how to validate an fckeditor using javascript
i have had some problems finding out how to validate the fckeditor. i just found out. in between the script tags for javascript, declare a variable for the edior: var editorValue = FCKeditorAPI.GetInstance('name_of_editor') ;
you can check if its empty by using this: if(editorValue.EditorDocument.body.innerHTML == "<p> <br> </p>"){
msg += " \n";
}
you use the "
im sure im saving some people the time it took me to figure it out.
you can check if its empty by using this: if(editorValue.EditorDocument.body.innerHTML == "<p> <br> </p>"){
msg += " \n";
}
you use the "
im sure im saving some people the time it took me to figure it out.
current version of ubuntu in use
sigh. after uninstalling the new jaunty jackalope from ubuntu because i did an upgrade from intrepid ibex, i found out about the lts versions of ubuntu. Long Term Support. I tried ubuntu 8.04 which is the current lts and didnt like it. I had some problems with the wireless and some other things. i toold it off and installed the version i had before i did the upgrade to jaunty and im good now. wireless works and i love how my laptop runs. i also found a tutorial on how to make the intrepid ibex look like the mac os-x and it was good and easy and had something that i had wanted from the first tutorial i used to make my ubuntu look like the os-x. that is the globalmenuapplet. it works now. im worried about the updates for intrepid. updates only last for 18 months after the release of a version. i had a bag experience with the upgrade and so will use intrepid until the updates time period is finished. then i will try the new lts.
Subscribe to:
Posts (Atom)
