Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-09-2009, 12:18 PM   #1 (permalink)
romeos28
Registered Member
 
Join Date: Dec 2008
Posts: 53
Default Loading local .js file into uiwebview problem

I have a local .html, .js and images files in my bundle.

using this code
Code:
	NSBundle *bundle = [NSBundle mainBundle]; 
	NSString *path = [bundle bundlePath];
	NSString *fullPath = [NSBundle pathForResource:@"filename" ofType:@"html" inDirectory:path];
	[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:fullPath]]];
I am loading html file into uiwebview. Local pictures are showing but .js files are not being loaded so i can't use functions inside them..

tried to insert <a href="file.js">show js file</a> into html. link leads to nothing.

Any help?

10x
romeos28 is offline   Reply With Quote
 

» Advertisements
» Online Users: 315
18 members and 297 guests
ADY, BdR, BrianSlick, Diegan, djohnson, F_Bryant, Herbie, ilmman, Joseph Nardone, laurielaptop, M@realobjects, Profile, rob.mccarthy, rodgo, Sunny46, TheWebWizz, VikMyr, yomo710
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,702
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:50 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.