我正在尝试使用Process.Start在默认浏览器中启动本地html文件.
示例网址如下:
"file:///C:/Documentation/HelpContent/default_CSH.htm#SectionA/Topic1.htm"
Run Code Online (Sandbox Code Playgroud)
问题是,"#SectionA/Topic1.htm"位由于某种原因被剥离,因此该信息不会传递给浏览器.但它确实适用于非本地URL.
有谁知道如何让这个工作或是某种预防性的安全问题?
谢谢
我有一个Silverlight 4应用程序,通过麦克风记录用户的声音.现在,一旦录制完成,我需要将录制的语音播放回用户,然后再将其发布到服务器.是否可以在不进行格式转换等的情况下将其播放回用户?欢迎任何想法.谢谢!
我正在尝试为xcode学习Objective-C.我想知道是否有自定义类的开源存储库.程序员重用的东西.(即扑克牌类或对等方法)
我搜索过谷歌,但到目前为止还没有看过任何类型的网站.
我在IE-8和FF-3.5.8中设置readonly属性时发布了一个早期jQuery不一致的问题,并对答案非常满意.
但我注意到如果你动态更新(任何?)DOM元素,然后查看源(使用浏览器的视图源)我发现更新的DOM元素属性保留其旧值(更新前).但是,如果使用Firebug/IE Developer工具栏,则会显示更新的DOM
示例:http://gutfullofbeer.net/readonly.html
FF3.5-View页面来源:
<html>
<head>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js' type='text/javascript'></script>
<script>
$(function() {
$('input.readonly').attr('readonly', true);//set input with CSS class readonly to readonly
});
</script>
</head>
<body>
<input type='text' class='readonly' maxlength='20' value='Blort'>This one is read-only<br>
<input type='text' maxlength='20' value='Fish'>This one is not read-only<br>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这里第一个文本框在jQuery的document.ready方法中设置为readonly .使用浏览器查看源代码会给出一个标记
<input type='text' class='readonly' maxlength='20' value='Blort'>
Run Code Online (Sandbox Code Playgroud)
和Firebug会给出类似的东西
<input type="text" value="Blort" maxlength="20" class="readonly" readonly="">
Run Code Online (Sandbox Code Playgroud)
IE8开发人员工具栏:
<input class="readonly" type="text" maxLength="20" readOnly="readonly" value="Blort"/>
所以我的猜测是浏览器(IE8/FF3.5)在DOM事件开始之前更早地生成html源代码(在我看来是jQuery的document.ready())
有人能告诉我幕后发生的事情吗?
我有一个问题:
这是我的HTML的一部分:
<div id="div_1">
Here Hover
</div>
<div id="div_2">
Here content to show
</div>
Run Code Online (Sandbox Code Playgroud)
这是我的jQuery脚本的一部分:
jQuery('#div_2').hide();
jQuery('#div_1').onmouseover(function() {
jQuery('#div_2').fadeIn();
}).onmouseout(function(){
jQuery('#div_2').fadeOut();
});
Run Code Online (Sandbox Code Playgroud)
问题:
如果我将鼠标悬停在div_1上,则显示div_2,如果我将鼠标悬停,则div_2将被隐藏,但是:
如果我首先将鼠标悬停在div_1上,然后检查div_2,则会快速隐藏div_2.
我用jQuery.addClass()尝试过这个.在div_1中鼠标输出后,但没有任何变化.
我不想在第一个div中制作第二个div ...是否有另一种方式使用jQuery?
Thx Ahmet
我在Windows上使用Flash在Flash Player 10中,FileReference用于将文件加载到内存中,如下所示.
我的问题是,当一个文件被Windows锁定时,我FileReference没有给我任何关于该文件无法访问的反馈 - 它在调用之后根本不会发送任何事件load().
有没有人知道如何判断Flash Player无法打开文件?
var fileReference:FileReference = new FileReference();
private function onClick():void {
fileReference = new FileReference();
fileReference.addEventListener(Event.SELECT, onSelect);
fileReference.addEventListener(Event.COMPLETE, onComplete);
fileReference.addEventListener(Event.CANCEL, onOther);
fileReference.addEventListener(IOErrorEvent.IO_ERROR, onOther);
fileReference.addEventListener(ProgressEvent.PROGRESS, onOther);
fileReference.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onOther);
// I've tried adding all of the other declared events
// for FileReference here as well
fileReference.browse();
}
private function onSelect(event:Event):void {
trace(fileReference.name);
try {
fileReference.load();
} catch (e:Error) {
trace(e);
}
}
private function onComplete(event:Event):void {
trace(fileReference.data.length);
}
private function …Run Code Online (Sandbox Code Playgroud) WPF 在总窗口高度中包含标题栏高度,而不是仅使用客户端内容区域高度。
我知道 SystemParameters.CaptionHeight 属性和 SystemParameters.WindowCaptionHeight 属性,但它们都返回常规窗口标题栏的高度。这不是工具窗口的正确值,因为此类窗口的标题栏较小。我需要类似 SystemParameters.ToolWindowCaptionHeight 的东西
谢谢。
是否有一种简单的方法来映射web.xml或其他部署描述符(jetty.xml等)文件中的目录?
例如,如果我有一个目录/ opt/files /,我可以通过访问http:// localhost/some-mapping /来访问其文件和子目录.我觉得应该有一些简单的方法来做到这一点,但我还没有找到如何(通过谷歌,stackoverflow等).我发现的只是模仿文件服务器的servlet,这不是我想要的.
作为参考,我在AIX机器上使用jetty.
请检查一下:
http://img62.imageshack.us/img62/3598/ieff.png
为什么它比FF更高...我希望它在IE中像FF一样
#message2 {
position: absolute;
top: 0;
left: 0;
z-index: 105;
background-color: #034678;
font-family: Arial,Helvetica,sans-serif;
font-size: 100%;
text-align: center;
font-weight: bold;
border-bottom: 2px solid #FFF;
height: 26px;
width: 100%;
}
<div class="message2" id="message2" onclick="closeNotice2()" style="display: none">
Yo, <b><? echo $pusername; ?></b> - <? echo $_SESSION["user_message"]; ?>
<a class="close-notify" onclick="closeNotice2()">X</a>
</div>
Run Code Online (Sandbox Code Playgroud)
当我改变高度的大小时,它在FF中改变但在IE中它保持相同的大小..?
html ×2
jquery ×2
.net ×1
apache-flex ×1
arcgis ×1
audio ×1
browser ×1
canvas ×1
css ×1
dom ×1
external ×1
flare ×1
flash ×1
gis ×1
height ×1
hover ×1
iphone ×1
java ×1
javascript ×1
madcap ×1
mapping ×1
objective-c ×1
onmouseout ×1
onmouseover ×1
playback ×1
record ×1
size ×1
url ×1
web-services ×1
web.xml ×1
window ×1
windows ×1
wpf ×1