07 2008 档案
摘要:使用正则表达式:[代码]
阅读全文
摘要:前不久有客户问到这个问题,要开发的网站不知道在IE8和FireFox3下的CSS/JS兼容性如何找了一下,简单的可以这样解决:对于IE8:开发时只需在页面上加入如下meta即可兼容IE7的标准:[代码]对于FF3,我不熟悉,但据说对页面的兼容还是挺好的,兼容性问题大多是插件的issue,然而,Firefox3通过了ACID2浏览器测试标准,所以其兼容性问题我想可以在如下org网站找到答案:http...
阅读全文
摘要:TextBox无非就是runat="server"的一个HTML Input控件。然而,在需要,动态添加TextBox的案例中,往往只需要TextBox们来提交数据。据此,我们可以在客户端动态无刷新添加“TEXTBox”下面是代码:[代码][代码]
阅读全文
摘要:客户端访问: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function FindCheckBox() { //Get target base & child control. var TargetBaseCon...
阅读全文
摘要:来自http://www.webmasterworld.com/forum83/200.htm 很好很强大 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> One Hundred Percent Height divs ...
阅读全文
摘要:在有些应用中我们需要实时的更新站点用户是否在线的状态。比如一些论坛里的在线成员实时显示,或基于网页的聊天、会议系统等。这种情况下,如果用户点击“退出”按钮或链接,我们将之行一系列后台操作,将该用户标识成off line状态;但如果用户直接关闭浏览器的话,就需要我们想办法来更新用户的状态。 下面是我总结的几种解决方案,请高手们指教: 第一类:服务端解决 1.如果Session是InPro...
阅读全文
摘要:1. 在ActiveX控件中定义:void Enable(long enable) 2. 在上面定义的函数中调用来自COleControl的方法: SetEnabled(enable); 3. 在页面中使用JavaScript代码document.all['MyActiveXObject'].Enable(false/true);即可完成启用、禁用
阅读全文
摘要:在IE下,我们可以轻松使用以下代码来实现设置主页: Click here to make Java-scripts.net your default homepage! 然而,在firefox下是不行的 要使用脚本在firefox下设置主页,首先必须确认在浏览器的“about:config”中,把 signed.applets.codebase_principal_support 设置成tr...
阅读全文
摘要:问: Hi All I have requirment to access web service wsdl (newCarConfig.cfc?wsdl) file through javascript with out using webservice.htc file. Is there any way to achive this functionality Thanks in adva...
阅读全文
摘要:问: Hi, Do u guys know if we can trap in client side when a validation is taking place or when it s finished in client side. I am talking about validation controls like: requiredfieldvalidator, Regul...
阅读全文
摘要:问: Hi, I have this C#/ASP.NET/.aspx page with a string variable named myString with the value "Mario Gamito". How can I access "Mario Gamito" from within a JavaScript function, i. e., the variable's...
阅读全文
摘要:问: Hi, I need to access a sql database through odbc using javascript. This database resides in the client PC and the only way to connect to it is using the client PC ODBC. The asp.net application need...
阅读全文
摘要:问: i want to call c# function from javascript and also want to pass argument to that function. 答: Hi vrparekh@gmail.com Please check the following thread, his question is same to yours: want to...
阅读全文
摘要:问: Hello, I am new to web services. I have built couple of web services with C# asp.net. When I do "Start Without debugging" it opens a .asmx page that has all my services listed. Question: Is ...
阅读全文
摘要:问: I want to write some css that works only in IE6 without putting it in a separate file like the following: Is this possible? Also if some one know any articles about how to make a scrolling n...
阅读全文
摘要:问: Hi, I made a marquee to show news moving horizontaly from right to left and have a width 80%.It is working fine in IE browser but not in Firefox.In Firefox it continue after the bound I expect and ...
阅读全文
摘要:问: I have a modal dialog window that pops up to allow the user to enter line item info (via a datalist). When the user closes this dialog via an OK button I created, I am returning the total value of ...
阅读全文