Friday, August 3, 2018

Radio button checkboxes values are not passing

Developer always encounter with HTML issues.

Some issues are so frustrating that we finally give up and try to find another alternative.

This problem is like that only but we do not need to consider another alternative what we need to do is set the default value if we did not get the parameter in the request.

Issue

After submitting form, if radio button or checkbox is not selected we are getting undefined index error because those parameters does not exists like they are not part of the form.

Solution

This is default property of radio button and checkboxes, if they are not selected then parameters are not passed, to overcome this, either make one value selected or check if parameter received or not, if not received then set the default value of that parameter in server side code.

Hope this helps and you get some relief.

Thursday, August 16, 2012

PhoneGap Facebook not a git repository error

PhoneGap Facebook Plugin is very nice and I successfully implemented it on iOS platform

Before starting or investing anything, I would recommend you to view the respective video first, it will clear most of your doubts.

Now, regarding issue, you will get this issue when you are trying to download the zip and run "git submodule update --init".

Instead of downloading zip click the "Clone in Mac" button. You must have github for mac installed first! Once you do so, choose the place where you want it cloned and begin the clone. Now you have the latest from master.

Now try to run "git submodule update --init" on this folder, it should work perfectly.


Tuesday, May 29, 2012

Connection to the server was unsuccessful

The issue occurs as the Android emulator is REALLY slow so a timeout occurs before loading index.html because it reacts too slow. 


In your custom Activity file before calling super.loadUrl add the following line: super.setIntegerProperty("loadUrlTimeoutValue", 60000);

Wednesday, May 23, 2012

PhoneGap Orientation

  1. For iOS
    1. Click on Project Name
    2. Go to Summary
    3. Select orientation you require for your PhoneGap application
  2. For Android
    1. Open AndroidManifest.xml
      1. In activity add "android:configChanges="orientation|screenSize|keyboardHidden"
      2. Add a new activity
        <activity android:configchanges="orientation|screenSize|keyboardHidden" android:label="@string/app_name" android:name="com.phonegap.DroidGap"> <intent-filter> </intent-filter> </activity>

Saturday, April 21, 2012

Ubuntu 11.10 Skype Hangs

After doing too much search I found a solution and this worked for me, so I am sharing this with you.

  1. Open "Home" Folder
  2. Press CTRL + H (show all hidden files)
  3. Remove ".pulse" folder and restart the system again
Hope this resolve your problem too.