frames

Passing data between frames with Javascript

陌路散爱 提交于 2019-12-01 12:34:52
问题 I've setup a simple example at http://ryanmalin.co.uk/frames/ If you press "add" it will paste the form data from the left frame into the right frame. When I change the right frames URL to that of another domain Firebug throws an error and it doesn't work. The error shown is: Error: Permission denied to access property 'document' Is it possible to copy data from one pre-filled form on my domain to a form on another domain using frames/javascript? I believe it is an anti-spam measure built

Disable Cookies Inside A Frame/Iframe

允我心安 提交于 2019-12-01 04:32:52
Is there any way to programatically disable cookies being created by a page displayed inside of a frame/iframe? Or to generalise further, is it possible to programatically disable javascript running on such a page? Thanks, DLiKS with iframe sandbox attribute (html5) it will be possible (implemented in chrome) http://dev.w3.org/html5/spec/Overview.html#attr-iframe-sandbox NullUserException already answered what you can do today without browser support The only way you could change that for an external website you have no control over is to retrieve the pages using a server-side script, filter

Best way to access all movie frames in iOS

我与影子孤独终老i 提交于 2019-12-01 04:14:34
问题 Im trying to edit existing movie with added effects on top thus I need ability to scan all movie frames, get them as UIImage, apply effect and then either update that frame or write it into new movie. What I found is people suggesting to use AVAssetImageGenerator. Below is my final edited sample of how Im doing it: -(void)processMovie:(NSString*)moviePath { NSURL* url = [NSURL fileURLWithPath:moviePath]; AVURLAsset *asset=[[AVURLAsset alloc] initWithURL:url options:nil]; float

js 的 iframe 父子页面通信的简单方法

孤街醉人 提交于 2019-12-01 01:57:42
1、获取 子页面 的 window 对象 在父页面中,存在如下两个对象 window.frames document.iframeElement.contentWindow 可以获取到 子页面 window 对象 // iframe id document.getElementById('menuIframe').contentWindow // iframe name window.frames['menuIframe'].window // iframe index 当前窗体的第几个 iframe window.frames[1].window 既然拿到了 window 对象,那函数和DOM就到手了。 2、子 iframe 获取 父页面 window.parent 对象 window.top对象 // 判断当前页面是否是 iframe 或 顶级页面 window.parent == window window.top == window window.parent 即为当前页面的上一级页面的 window 对象,如果当前页面已是 顶层 页面,则 window.parent 就是自己。 3、小实例 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <

OpenCV frame capture from AVI

百般思念 提交于 2019-11-30 21:44:52
I am working on a project with openCV 2.2. I need to do processing on each frame of an AVI file but when I run my code it only grabs the first frame of the file. The CV_CAP_PROP_POS_FRAMES does not seem to be working. Any ideas why not? CvCapture* capture = cvCaptureFromAVI("test1.avi"); IplImage *img = 0; if (!cvGrabFrame(capture)) { printf("Error: Couldn't open the image file.\n"); return 1; } int numFrames = (int) cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_COUNT); int posFrame = 1; for(int i =0; i <= numFrames; i++){ cvSetCaptureProperty(capture, CV_CAP_PROP_POS_FRAMES, i); posFrame =

How to use Delphi Dlls without enabling Build with runtime packages

こ雲淡風輕ζ 提交于 2019-11-30 16:57:45
Recently i started a project with so many forms , frames and extra controls, so my application was swelling up and i am using 3 exes in my projects(all made in Delphi 2009) and these applications are also sharing same frames and forms. so i used dlls to share these forms. but a problem came saying different Tfont error. so i refferd online and came with the answer saying to select | Build with runtime packages . then every thing started to work perfectly but when i checked the windows Taskmanager | memusage it is ~ 21 500 kb (21.5 mb).( but mem usage is only 2000 kb without Build with runtime

How can I use –X:Frames in Ironpython?

人盡茶涼 提交于 2019-11-30 15:37:42
Visual Studio 2010 + Ironpython for .net4 I want to use numpy in ironpython, and they said I must use frames support. So, I should running ipy with -X:Frames or -X:FullFrames on the command line. But, I have two questions: 1.how can i use -X:Frames or -X:FullFrames in Ironpython Interactive console? 2.If I use C# 4 to load py which contained numpy, how can I use extern parameter like -X:Frames or -X:FullFrames? Thanks a lot. Dave IronPython Tools for Visual Studio has been deprecated by Python Tools for Visual Studio (see http://pytools.codeplex.com ). Using Python Tools in VS 2010: open Tools

Load image into memory immediately

点点圈 提交于 2019-11-30 09:29:45
问题 I need to open all frames from Tiff image in WPF into memory and then delete the source. And after that I eventually need to render that image (resized according to window size). My solution is quite slow and I cannot delete file source before the first require. Any best practices? 回答1: Use CacheOption = BitmapCacheOption.OnLoad This option can be used with the BitmapImage.CacheOption property or as an argument to BitmapDecoder.Create() If you want to access multiple frames once the images is

What causes Chrome Timeline Frame to have so much empty white space

谁说胖子不能爱 提交于 2019-11-30 04:42:16
Sometimes when I Inspect Element in Google Chrome I find that I have some large frames, but they are filled with white space. Anyone know what often causes such large amounts of empty space? I have seen timers cause issues with extending the frames length but in the example below I am unsure why a frame would be so large. Would love some help minimizing these This is documented here , see the 'About clear or light-gray frames' section. 'Clear frames' in question are described there as Idle time between display refresh cycles. According to this video , clear bar indicates browser waiting for a

How to use Delphi Dlls without enabling Build with runtime packages

妖精的绣舞 提交于 2019-11-29 23:50:28
问题 Recently i started a project with so many forms , frames and extra controls, so my application was swelling up and i am using 3 exes in my projects(all made in Delphi 2009) and these applications are also sharing same frames and forms. so i used dlls to share these forms. but a problem came saying different Tfont error. so i refferd online and came with the answer saying to select | Build with runtime packages . then every thing started to work perfectly but when i checked the windows