I have a requirement wherein I have huge set of information in a NSArray which contains NSDictionary objects. Now I have to pass them into a javascript function through a webview using:
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script
My questions are:
- How do I prepare my arguments at the caller end so that Javascript understands it?
- How do I receive them in Javascript? Basically, what should be the function signature and how do I read the key-value pairs of dictionary objects of the array inside java function?
I basically do not have enough experience when it comes to Javascript, so forgive me if this question is too abstract, I hope that my question is clear though!
Edit: I came across a thread which states that passing NSDictionary objects to javascript functions is not possible. So, how can we achieve it?
Thanks & Regards, Raj