Jun 20 2013
how to hook iframe post event
i have an iframe which shows another sites’ div element (this is the src url)
In this div when you selecting dropdown, this page posts back and then reloading pure site, not with #divname url
Plase look at jsFiddle
How can i save url when city select is changed
Note that, i have no access to source site (which i must show in iframe)
Jun 20 2013
I Cant acces my account
my name is Yogendra Kumawat From “INDIA” user name “yogen1987″. I using Facebook from 2008,
but now I cant recover my account, due to some old security options,
when i opening my account than their is a photo identity verification option is there…..
but nowadays peoples are tagging so many people in a single photo…..
i cant identify my friends from these photos……. please help me to recover my account……., it’s very important beacons in my account my so many personal photos….. and so many close friends is there………
my gmail ID is “yogen1987@gmail.com” mobile number “8058720505″
Jun 20 2013
Accessing PHP api with the help of Jquery
I am making a mobile app and web part for the same. I have used php5 in mobile app to make all the api that are returning json data.
Now I want to use the same api files, that are hosted on another server, using jquery so that I can pass the parameters to api file in data of jquery and then get the json data in response. But I am unable to understand that using jquery will it be safe to use everything on client side ? Like creating sessions and send json data returned by one api to another page using jquery. I have been searching for a while on internet and I get some solutions that I should use curl in php and then returns the data from php that will call mobile app php and then return the data to jquery like in this manner :
Jquery -> web php file -> mobile-php-api(will return json data to web php file) -> jquery
Can anyone give valuable suggestions for it ? What should I use to parse already made api files with full authentication on web also.
Jun 20 2013
Couldn’t read row 1, col -1 from CursorWindow
Im doing a simple android application where i need to access the contacts in the phone.
However my application crashes and i get this error “Couldn’t read row 1, col -1 from CursorWindow “
Here is the log:
06-19 11:03:59.582: E/CursorWindow(7926): Failed to read row 1, column -1 from a CursorWindow which has 2 rows, 29 columns.
06-19 11:03:59.611: D/AndroidRuntime(7926): Shutting down VM
06-19 11:03:59.611: W/dalvikvm(7926): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
06-19 11:03:59.842: E/AndroidRuntime(7926): FATAL EXCEPTION: main
06-19 11:03:59.842: E/AndroidRuntime(7926): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.application/com.example.application.Search}: java.lang.IllegalStateException: Couldn't read row 1, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.ActivityThread.access$ 600(ActivityThread.java:141)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.ActivityThread$ H.handleMessage(ActivityThread.java:1234)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.os.Handler.dispatchMessage(Handler.java:99)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.os.Looper.loop(Looper.java:137)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.ActivityThread.main(ActivityThread.java:5041)
06-19 11:03:59.842: E/AndroidRuntime(7926): at java.lang.reflect.Method.invokeNative(Native Method)
06-19 11:03:59.842: E/AndroidRuntime(7926): at java.lang.reflect.Method.invoke(Method.java:511)
06-19 11:03:59.842: E/AndroidRuntime(7926): at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run(ZygoteInit.java:793)
06-19 11:03:59.842: E/AndroidRuntime(7926): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-19 11:03:59.842: E/AndroidRuntime(7926): at dalvik.system.NativeStart.main(Native Method)
06-19 11:03:59.842: E/AndroidRuntime(7926): Caused by: java.lang.IllegalStateException: Couldn't read row 1, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.database.CursorWindow.nativeGetString(Native Method)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.database.CursorWindow.getString(CursorWindow.java:434)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.database.CursorWrapper.getString(CursorWrapper.java:114)
06-19 11:03:59.842: E/AndroidRuntime(7926): at com.example.application.Search.onCreate(Search.java:33)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.Activity.performCreate(Activity.java:5104)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
06-19 11:03:59.842: E/AndroidRuntime(7926): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
06-19 11:03:59.842: E/AndroidRuntime(7926): ... 11 more
here is the code:
Cursor people = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
null, null, null, null);
while(people.moveToNext()) {
int name = people.getColumnIndex(PhoneLookup.DISPLAY_NAME);
String contact = people.getString(name);
int contact_no = people.getColumnIndex(PhoneLookup.NUMBER);
String number = people.getString(contact_no);
}
people.close();