Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLRequest Oddness



I'm not sure, and the custom protocol may have something to do with it, but some other questions:

Are the URLs for image tags (the ones that work) also relative to this document?
Do you have a base URL in this HTML document?

On Apr 1, 2006, at 5:30 PM, Ron Wagner wrote:

Hello,

I am loading an html page that contains an embedded flash file into a WebView. The name of the html file is index.html, and the name of the flash file is popupresponse1.swf. Here is the section of the index.html that embeds the swf file:

<OBJECT classid=""
codebase=""http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0">http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=popupresponse1 WIDTH=600 HEIGHT=400>
<PARAM NAME=movie VALUE="popupresponse1.swf">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="" quality=high bgcolor=#000000 loop=false
WIDTH=600 HEIGHT=400 TYPE="application/x-shockwave-flash"
</EMBED>
</OBJECT>


When the request for the swf file comes through, instead of being for popupresponse1.swf, the request is for index.html/popupresponse1.swf. Is this normal or expected behavior?

I am actually using a custom protocol to load from a proprietary archive format, so the requests come through as "my_custom_protocol://index.html" and "my_custom_protocol://index.html/popupresponse1.swf". The extra index.html/ in front of the swf file does not happen with regular images in <img> tags. Is there a known reason why OBJECT/EMBED files get requested with the embedding page URL prepended?

I did notice that [request mainDocumentURL] returns the expected url for index.html when normal images are being requested, but returns nil when the swf file is being requested. 

Any ideas?

Thanks,
Ron
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (Webkemail@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >NSURLRequest Oddness (From: Ron Wagner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.