Git Product home page Git Product logo

Comments (5)

marcuswestin avatar marcuswestin commented on September 22, 2024

Hi @KooYH,

I am not sure if there is a solution. If you can post an example of your code showing the problem you talk about then I would be much more likely to be able to help.

However, I'm not sure this is a problem with WebViewJavascriptBridge. Do you think it is?

from webviewjavascriptbridge.

marcuswestin avatar marcuswestin commented on September 22, 2024

Sorry, I can't run this as is. Please make it easy for me to help you :) for example, post a tar of a folder and project file which I can open, run, and see exactly what problem you're having. I would love to be of help, but I unfortunately won't take the time to get this code running and then debug it for you.
-- while mobile

On Tue, Apr 23, 2013 at 10:20 PM, KooYH [email protected] wrote:

  • (void)webViewDidFinishLoad:(UIWebView *)webView {
    [alert dismissWithClickedButtonIndex:0 animated:YES];
    [activityIndicator stopAnimating];
    isAlert = NO;
    ...
    }

  • (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
    if (!isAlert) {
    alert = [[UIAlertView alloc] initWithTitle:nil
    message:@"로딩중"
    delegate:nil
    cancelButtonTitle:nil
    otherButtonTitles:nil, nil];
    activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    [activityIndicator setCenter:CGPointMake(140 ,70)];

    [activityIndicator startAnimating];
    [alert addSubview:activityIndicator];
    [alert show];
    
    isAlert = YES;
    

    }
    .....
    }

  • (void)webViewDidStartLoad:(UIWebView *)webView {
    if (!isAlert) {
    alert = [[UIAlertView alloc] initWithTitle:nil
    message:nil
    delegate:nil
    cancelButtonTitle:nil
    otherButtonTitles:nil, nil];
    activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    [activityIndicator setCenter:CGPointMake(140 ,110)];
    [alert show];
    [activityIndicator addSubview:alert];
    [activityIndicator startAnimating];

    isAlert = YES;
    

    }

    if (webView != _webView) { return; }
    if (self.webViewDelegate && [self.webViewDelegate respondsToSelector:@selector(webViewDidStartLoad:)]) {
    [self.webViewDelegate webViewDidStartLoad:webView];
    }
    }
    The htmlcode
    case1

    case2 main page on my web view. if when click this div, show alertView, and never dismiss alertView

    when i used webviewDelegate

    Reply to this email directly or view it on GitHub:
    #38 (comment)

from webviewjavascriptbridge.

KooYH avatar KooYH commented on September 22, 2024

i'm really sorry i deleted for my mistake.

i'll send to you a sample app to your e-mail

from webviewjavascriptbridge.

marcuswestin avatar marcuswestin commented on September 22, 2024

Sounds great! Thanks :)

from webviewjavascriptbridge.

marcuswestin avatar marcuswestin commented on September 22, 2024

Never heard back about this. Closing.

from webviewjavascriptbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.