Category: Mobile
PHP | Adding text over an image
In order to add text over an image, following PHP code can be used. Read the comments to understand purpose of code statements: <?php header (“Content-type: image/jpeg”); //setting the content type //variable containing the string to be written on the
Salesforce | document.getElementById(‘id’).value not working for apex:outputtext
If you have an apex:outputtext and you try to get its value in Javascript using document.getElementById(‘id of outputtext’).value(), that won’t work. The reason is apex:outputtext is translated to HTML SPAN element. So <apex:outputtext value=”Amount” id=”amntId”/> becomes <span id=”amtId”>Amount</span> So to
PHP | better way to include a file
Have a look at this folder structure: Test Folder1 Abc.php Folder2 Qwerty.php Now in Abc.php file, try to include Qwerty.php using the following code: Abc.php include(‘../Folder2/Qwerty.php’) It will give this error: Fatal error: Failed opening required ‘../Folder2/Qwerty.php’ (include_path=’.:/usr/local/lib/php’) in /Test/Folder1/Abc.php
PHP | How to install CakePHP 3.0
These are the steps to install CakePHP 3.0 on Ubuntu machine: Make sure you have PHP 5.5.9 (CLI) or higher installed. Check php version on your system using this command: php -v Run the following commands: 1. Download the composer
Totara | Hide Administration block
1. Turn editing On and click on the settings icon of the administration block as shown below: 2. Click on configure Administration link. This screen will open: 3. Change the drop-down value from “Assessment information page” to “ Edit Assessment
HTML | Using CSS for animation
With recent evolution in CSS, we can try animations. Below is a sample code where in which have used latest CSS features and will give the illusion of animation. Just copy paste the code below in an HTM file and
Get Salesforce SObject name through Salesforce Record Id
Description: We have Salesforce recordId but need to identify what is the type of Subject corresponding to this record id. Solution: We can get Sobject name from recordId with getSobjectType() function, sample code below: Apex Code: public void echoSObjectName(String RecID)
Locating recycle bin in Salesforce
Click on any of the tabs and find Recycle bin at the left bottom as shown in this image: OR You can use this URL into the salesforce to see Recycle bin: https://na14.salesforce.com/search/UndeletePage
jQuery | Get and change link using near by class or Id value
In one of our projects we are working on, we faced a problem where we wanted to change the HREF attribute value of anchor tag using jQuery. When we inspected the HTML code no unique id, name or class was given