小编Thu*_*rse的帖子

Javascript,从iFrame访问框架集中的嵌套框架

我在访问加载到iframe中的页面一部分的框架时遇到问题.框架嵌套在多个框架集中.

我的HTML看起来像这样:

<iframe name="sourceframe" src="siteindex.html">
    #document <-- this appears in the dom tree. Not sure if it's relevant.
        <html>
            <head></head>
            <frameset>
                ...other frames
                <frameset>
                    <frame name="targetframe" src="sitesubpage.html">
                        ...I want to access this frame and replace the contents with a different html page...
                    </frame>
                </frameset>
            </frameset>
        </html>
</iframe>
Run Code Online (Sandbox Code Playgroud)

我读过类似的问题,但没有一个解决方案可以让我开始工作.

任何建议将不胜感激.

html javascript iframe frame

4
推荐指数
1
解决办法
2万
查看次数

osx向NSAlert添加输入

我想在我的OSX应用程序中使用NSAlert来处理用户身份验证.

这个问题的答案弹出样式对话框涵盖了基础知识,但我无法弄清楚如何扩展一个accessoryView包含两个输入和一个标签.

这会产生一个文本输入:

NSAlert *myAlertView = [[NSAlert alloc]init];

NSTextField *input = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 200, 24)];
[input setStringValue:@""];
[myAlert setAccessoryView:input];
Run Code Online (Sandbox Code Playgroud)

任何建议将不胜感激.

macos cocoa objective-c nsalert

2
推荐指数
1
解决办法
1893
查看次数

标签 统计

cocoa ×1

frame ×1

html ×1

iframe ×1

javascript ×1

macos ×1

nsalert ×1

objective-c ×1