This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docs = [CPDictionary dictionary]; | |
var request = [CPURLRequest requestWithURL:"your xml file here!"]; | |
listConnection = [CPURLConnection connectionWithRequest:request delegate:self]; | |
//Connection Delegate Stuff | |
- (void)connection:(CPURLConnection) aConnection didReceiveData:(CPString)data | |
{ | |
if (aConnection == listConnection){ | |
var tmp = document.createElement("div"); | |
tmp.innerHTML = data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webView = [[CPWebView alloc] initWithFrame:CGRectMake(199,0,(CGRectGetWidth(bounds)-199),CGRectGetHeight(bounds))]; | |
[webView setAutoresizingMask: CPViewWidthSizable | CPViewHeightSizable]; | |
[webView loadHTMLString:@"<center><h3>Tmp String</h3></p>"]; | |
[contentView addSubview:webView]; | |
var request = [CPURLRequest requestWithURL:"Your URL Here!"]; | |
listConnection = [CPURLConnection connectionWithRequest:request delegate:self]; | |
NewerOlder