0

Advanced thank you for the answers. I have a iOS uibutton function

- (IBAction)sendVIN:(id)sender
{}

When i click this button the ReceiveVin javascript function has to be called and vin number variable has to be passed as parameters to that function present inside the webpage.

     <script>
        function ReceiveVin(vin)
        {
            document.getElementById('vinnumber').value = vin;

        }
</script>

This is an online website an can be found at this link "http://tk14.webng.com/autofunds.html"

I cannot use webview for this functionality.

1 Answer 1

1

You can use UIWebView's - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script method. An example

[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('vinnumber').value = vin"];
Sign up to request clarification or add additional context in comments.

1 Comment

like i told you i cannot use webview. The data is displayed inside the textfield present inside the website

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.