topics

全部话题 - 话题: javascript
首页 2 3 4 5 6 末页 (共10页)
a****r
发帖数: 10
1
来自主题: Internet版 - set up javascript on IIS
I wanna utilize the Javascript "SRC'attribute statement,like



link


多谢了!
i**s
发帖数: 97
3
来自主题: Java版 - Re: JDBC, Java vs. Javascript
Seems you are confused by these concepts.
1. Java has nothing to do with Javascript.
2. JDBC is Java's API to SQL database.
3. If you write ASP program, you can use both VBScript
and Javascript to access ODBC data source.
4. If DBMS and Web server reside in different machines,
it is perfect for ODBC to work. You need to build an
ODBC data source in the machine where web server runs,
while the ODBC specifies the DBMS running in another machine.
5. If you write Java Applet, DBMS should
e***r
发帖数: 479
4
诸位大虾,我有问题求救:
在一个浏览器窗口里,有两个FRAME, 一个由我用JAVASCRIPT生成(FRAME1), 另一个FRAME
是调用第三方的网页(FRAME2). 请问有没有可能在FRAME1里获取FRAME2的TITLE?
我用: top.frame2.document.title 不行(ACCESS is denied).
如果不能直接调用,那我能否用JAVASCRIPT获取FRAME2的HTML,我再做SEARCH
c*****t
发帖数: 1879
5
Anyone knows how to call javascript function from applet in Opera?
In IE, it is as simple as
getAppletContext().showDocument (new URL("javascript:myFunc ()"));
but it does not work in Opera.
thx
f*****e
发帖数: 5177
6
来自主题: Java版 - A question about JavaScript (转载)
【 以下文字转载自 Internet 讨论区 】
发信人: flyfire (flyfire), 信区: Internet
标 题: A question about JavaScript
发信站: BBS 未名空间站 (Mon Jun 12 10:36:46 2006)
I would like to build a customized delete confirm window works just like
confirm() of javascript but with my own buttons. When the user want to delete
a file, the window pop up with "yes" and "no" option. If the user click "yes",
the file should be deleted and window closed. My question is, how to bind the
server side action (delete the file) with client side
c*****t
发帖数: 1879
7
I don't think that there exists any meaningfully good JavaScript editor,
most just provides color syntax highlighting. For this reason, I choose
Textpad which is fast and has great editing capabilities.
If you have Dreamweaver, it also offers DOM / JS / HTML references, but
I find them difficult to use. VS.NET/MSDN has very well documented
references too. Supposely IntelliJ IDEA 6.0 will offer method listing for
JavaScript, but it costs $$ unless you have projects that qualify
its open source
m******t
发帖数: 2416
8
来自主题: Java版 - Random thoughts on Javascript
Interesting topic. I personally think that, whether we want to call it "web
2.0", Ajax is _the_ catalyst that will bring Web-based computing to the next
level - closer to the "ubiquitous computing" utopia, that is. 8-)
I have been working on an ajax application for the past year or so, and
found that the situation with javascript has improved immensely from last
time I had to work with it (about 5 years ago). Two things have changed:
browser support for both CSS and javascript has become much b
g**********y
发帖数: 14569
9
来自主题: Java版 - Random thoughts on Javascript
>> One interesting thing about JavaScript is that there is not a unique way
doing inheritance, which can be confusing and annoying.
This is pain for communication. I remember a nice suggestion in coding style
that convention might be, it is still way better than multiple ones co-
exist.
>> I find that composition in JavaScript is easy and good OOD usually can
be good enough.
I can live with composition only as well. But I can't live if there is no
good refactoring tool. It will kill me to track
c******e
发帖数: 139
10
一个做JSP的工作,对方问我会不会javascript. 请问这两者有什么联系? javascript
主要讲什么? 难学吗?
谢谢!
M*****y
发帖数: 641
11
【 以下文字转载自 Internet 讨论区 】
发信人: McGrady (Tracy (我叫特雷西)), 信区: Internet
标 题: winxp IE6.0 不能run javascript 怎么回事?
发信站: BBS 未名空间站 (Wed Feb 14 16:55:46 2007)
网页上有 link, shortcut to javascript 窗口不跳出来.
l*****0
发帖数: 179
12
The following code written in JAVA should go to a website and download the
html and parse the contents to find the distance between 2 addresses.
But my problem is , The website uses Javascript to return the value of the
distance which JAVA cannot see it when it downloads the html. It's said I
should call the JAVAscript in my JAVA code which I have no clue.
code:
import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.regex.*;

p********r
发帖数: 43
13
在做一个firefox的extension
javascript 载入了一个 jar
那个jar主要任务是跟另一个站点通信
如果单独运行这个jar是没有问题的
但是貌似liveconnect的security policy不允许在javascript里调用jar里头的通信函数
有没有什么办法能获取这个permission 但是又不用手动修改java 的policy文件?
w********e
发帖数: 128
14
想写个自动存取网页信息的小程序遇到瓶颈.
有些网页是用javascript产生的output,抓网页时只能抓到调用javascript的那句话.
抓不到在ie输出的那些text output,请问有什么办法吗?
多谢啦,有解决办法的话包子都发啦,虽然没多少.
g**********y
发帖数: 14569
15
来自主题: Java版 - Javascript speed up
1. 这是前10分钟的内容
2. 如果你有一个beautiful but slow的product, 用户能等将来吗?
3. It never hurts to know where javascript runs slow and why
Javascript更象一个ad-hoc的东西,因为web UI development火起来,迟早要被更高级
的语言替代掉。但我怀疑JIT能根本上改变什么速度。一个可以动态create function的
语言,JIT能怎么着。
g**********y
发帖数: 14569
16
来自主题: Java版 - Javascript speed up
其实javascript写application也很fun, 但是仅限于为一种浏览器写,将来自己不维护
:-)
维护javascript code, 简直是被判刑,读就很痛苦了,debug还没有真正好用的利器。
稍微细小的语法错误,查起来跟大海捞针一样。
r*******y
发帖数: 1081
17
来自主题: Java版 - javascript
I have a file 1.txt
//1.txt
A B
B C
D E
E F
G H
I J
two letters in each line are in same group. So for the file above
A B C is in one group
D E F is in second group
G H is in third group
I J is in the fourth group
I need to use javascript to get the output below:
There are 4 groups:
group 1: A, B, C
group 2: D, E, F
group 3: G, H
group 4: I, J
How to write the javascript code ? Thanks a lot
c*********e
发帖数: 16335
18
那你们lightweight的基本就是自己手写javascript code?
c*********e
发帖数: 16335
19
前台打算用javascript了。
g*****g
发帖数: 34805
20
vaadin前台是javascript
B*****g
发帖数: 34098
21
【 以下文字转载自 PDA 讨论区 】
发信人: hitmantb (hitmantb), 信区: PDA
标 题: 问问技术大牛:现在学java还是javascript好?
发信站: BBS 未名空间站 (Wed Apr 24 18:11:43 2013, 美东)
我妻子准备重出江湖,现在可以任意选一项。 我当然指的不是语言本身而是整个配套
的技能。
java+pl/sql是传统路线,适合大公司,工作似乎比较多。 也是比较安全的路线。
但我对mobile业非常有信心,web service一条龙是html/xml/javascript/json/css/
php/mysql/soap/rest这一条线。 加个titanium SDK就可以开发移动了。 我心里有
几个
小idea都能做起来。 而且就业市场好像也还可以。
我妻子做底层架构没戏,但品味远胜于我。 是否应该让她试试 front end developer
c*********e
发帖数: 16335
22
我们的legacy code,全是自己造轮子,用javascript+jquery+ajax搞定,没用sencha,
gwt之类的。大家写javascript,都是自己造轮子吗?css,js文件那么多,一个一个写,
一个一个调试,真废时间啊。
d****i
发帖数: 4809
23
基本一点简单的用jQuery和jQuery UI,复杂一点的用Backbone或者Angular或者Ember
或者Knockout。哈哈,好像没有core javascript一说,只有raw JavaScript(不用任
何library和框架的原生JS)。
a*****p
发帖数: 1285
24
看了网上好多java的工作要求,full stack的姑且不说,50%以上的职位都要求了
javascript活着python。 只有在学校学过皮毛javascript和ajax,现在都还给老师了
。 上班几年,这些我都不怎么接触。 现在找工作感觉好吃力。需要搞算法和考java
oracle证的同时,再搞搞python/js么?实在心有余时间不够用。问问大家。
L***n
发帖数: 6727
25
来自主题: Linux版 - javascript才是未来发展的方向
5 对么?用computer language benchmark game比了一下
好称最快的V8也排在倒数几位,比它更慢的基本上是perl
python这样的有名的慢的,什么java,lisp,mono,haskell
scheme,ocaml,lua通通比他快,另外javascript很优雅么?
能不能展开说说? 我一直犹豫是不是学学javascript

原因
pa
可以
s***d
发帖数: 14
26
I am building a very simple Dashboard/widget for Mac OS10.4/Tiger. Basically i
t's just a web form and using values to query a web service. On PC, there's a
service.htc web service companion for JavaScript, but I couldn't find one for
Mac. The service.htc is written in JavaScript by Microsoft, somehow it's not c
ompatible with Mac. Do you have any suggestions or examples? Thanks a lot!
a*****e
发帖数: 92
27
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: aaapple (青青子衿), 信区: BuildingWeb
标 题: 请教:JavaScript怎么复制一个node(含子节点)? (转载)
发信站: BBS 未名空间站 (Wed Mar 7 21:58:38 2007)
发信人: aaapple (青青子衿), 信区: XML
标 题: 请教:JavaScript怎么复制一个node(含子节点)?
发信站: BBS 未名空间站 (Wed Mar 7 21:57:29 2007)
我需要通过一个Ajax call拿到一些内容。直到其中返回的一个节点就是HTML,这个节
点包含很多子节点,但整个节点就是一个完整的HTML 模块.所以,我就直接用
insertBefore把它插入到网页上去了。但是,好像<和>被encoded了,所以,不能正确
显示。请问,有没有什么简单的办法可以复制一个xml节点插入到dom中,但是,保持原
来的结构。我不想一级一级的读再重新创建。而且,返回来的HTML不一定是什么结构,
所以,最好是直接复制。谢谢大家。
r*******y
发帖数: 290
28
来自主题: Programming版 - recommend for Javascript
You can learn Javascript in one day
just google "Javascript" and there are many

any
c***d
发帖数: 996
29
来自主题: Programming版 - [合集] Flash vs. Javascript
☆─────────────────────────────────────☆
Modeler ((Balance)) 于 (Tue Nov 7 17:26:07 2006) 提到:
哪个更看好呢?如果不考虑video/audio,比如google map这样的应用?
☆─────────────────────────────────────☆
orang (大猩猩) 于 (Tue Nov 7 17:52:43 2006) 提到:
我用哪个都不好看-_-!
不过,本质上他俩是一样的
flash player就跟一个浏览器一样
flash在browser里面就是一个浏览器嵌在另一个浏览器里面一样
google map是用javascript作的。
不过javascript的浏览器兼容性很难调适
flash如果人家没装player,也没得搞
flash还有一个优点是向量图

☆─────────────────────────────────────☆
coconut (向唐僧大师学习中) 于 (Tue Nov 7 18:01:38 2006) 提到:
b*h
发帖数: 353
30
来自主题: Programming版 - Help please: Passing PHP values to Javascript
Hi,
I need to pass some PHP values to Javascript. I tried the following example:


But the screen output is "" instead of "Hello". I have turned
the short_open_tag to "on" in the php.ini file.
What's wrong with my code? How to make it work?
Thanks a lot for any help.
w***g
发帖数: 5958
31
来自主题: Programming版 - 突然发现javascript这种语言很好
如果给python挂上c/java的马甲,基本上就是javascript。不知道为什么这么多年了
javascript还是之用于网页编程。
大家讨论讨论?
m******t
发帖数: 2416
32
来自主题: Programming版 - 谁给讲讲这javascript代码

Heh, to be honest, I don't quite get it either. I'm sort of
just taking it for granted that it's just how javascript
works.
What's the javascript guru around here?
s******n
发帖数: 876
33
来自主题: Programming版 - 请推荐一个javascript教程吧
Douglas Crockford的说法,javascript本质上是很简单很优美的语言。但是设计上有
很多error. 初期有sun/netscape/ms的政治斗争。现在被个破committe控制。
specification完全是crap没法看。市面上没有任何好的书。推荐他的video:
http://video.yahoo.com/watch/111593/1710507
browser的不兼容现在问题倒不大,因为有很多不错的javascript framework.
X****r
发帖数: 3557
34
来自主题: Programming版 - 请教一个javascript的问题
很容易啊,我这就写了两个bookmarklet可以显示网页上所有的注释作为HTML或者Text
Uncomment as
HTML

d*******r
发帖数: 3299
35
来自主题: Programming版 - javascript才是未来发展的方向
JavaScript 是很简单强大的语言,我用 Node.js 做过几个大项目.
不过目前来说,只写 JavaScript 的工作,是挺辛苦的.
因为 JS 相关的东西一直在飞速演化,特别是 GUI 端,学着累.
d*******r
发帖数: 3299
36
来自主题: Programming版 - javascript才是未来发展的方向
JavaScript 是很简单强大的语言,我用 Node.js 做过几个大项目.
不过目前来说,只写 JavaScript 的工作,是挺辛苦的.
因为 JS 相关的东西一直在飞速演化,特别是 GUI 端,学着累.
a9
发帖数: 21638
37
来自主题: Programming版 - javascript才是未来发展的方向
javascript替掉python, ruby应该问题不大。
不过javascript只有事件驱动没有线程有时候也非常不方便。
w********m
发帖数: 1137
38
来自主题: Programming版 - javascript才是未来发展的方向
绝大部分的预言都实现了,wdong真乃神人也
五年前的javascript长得像java,现在的javascript像python。
五年前做desktop app第一个想到是C#,现在是electron。
五年前做mobile app第一个想到是obj C,现在是react native。
唯一没变化的是前端程序员,还是钱少加苦逼。
T*********g
发帖数: 496
39
现在在工业界大概很少人直接操作xmlhttprequest来从server拿数据了。
一般都是jquery或者一些其它的javascript来负责和服务器的通信。
一般应用程序开发者需要考虑的是如何在HTML上用JAVASCRIPT语言把收到的数据显示出
来。
X****r
发帖数: 3557
40
Javascript本身就在Web Browser里运行的,你要做到什么效果?
如果是要Javascript在网页上显示信息的话,可以用DOM操作。
z***e
发帖数: 5393
41
来自主题: Programming版 - javascript应该叫cscript才对.
但是javascript之所以被说成难维护容易混乱,也是因为它对OO的支持很乱。
相反我觉得还不如就把它当成c来写,更清晰。
你们说说如果把javascript当成C来写,到底有什么问题吧?我觉得最多也就是一个
global name的
问题。
s***o
发帖数: 2191
42
来自主题: Programming版 - google's memo about javascript
google 又想抽M$的脸啊。M$刚把Silverlight拿下,google就搞出个native client。M
$刚宣布了JavaScript is everything,google就说JavaScript is nothing but shit.
p****4
发帖数: 444
43
我用ASP.NET mvc编写一个简单的网页应用程序,其中用到一个javascript function,
这个function在一个Search.js的文件中,这个文件放在Content目录下,debug的时候
,我修改javascript function了,然后保存,build,在js function中设置了一个
breakpoint,然后运行,我希望程序在我设定断点的地方停下,可是出来一个新文件,
Search.js[Dynamic] 其中的内容竟然和Search.js的不一样,断点也没有,似乎运行的
时候总是调用这个dynamic的文件,而不是在Content目录下的文件,整个project下就
一个Search.js,不知道这是怎么回事,请大侠指点一下。谢谢!
S**o
发帖数: 447
44
来自主题: Programming版 - "javascript:;"
what is the function in "javascript:;"?
N********n
发帖数: 8363
45
来自主题: Programming版 - 请推荐一本JavaScript 入门书

Learning Javascript now is like jumping onto the housing bubble right
at the 2006 high only to get burnt later on.
Javascript is not even a strongly-typed, which is basically a death
penalty for any PL trying to be a serious engineering language.
In fact its type system is so screwed up it makes C's type system look
like art. That's how poor that joker is. Don't waste your time.
i*****o
发帖数: 1714
46
来自主题: Programming版 - 请推荐一本JavaScript 入门书
I dont think weak typing is the biggest problem of javascript. The biggest
problem with js is people dont learn it, it is so easy to start coding, no
one seems to care to spend time on learning. Even with experienced
programmers, if they dont learn it, they will just apply what they learned
from other languages and apply to javascript, which will fail most of the
time because 1) js is a very different language, 2) there are lots of bad
parts in js.
Weak typing has its advantages too, and i dont ... 阅读全帖
p*********t
发帖数: 2690
47
hacker把browser里面的设置改一下,就可以进攻服务器了。可见javascript只能防君
子不防小人。最终还是要服务器端的语言来保护服务器。
p*********t
发帖数: 2690
48
所以不明白microsoft怎么用.net好好的,突然重用javascript和html5.
w*******s
发帖数: 96
49
来自主题: Programming版 - Javascript: dynamicly enable draggable id?
I want to use Javascript to change HTML id:
var td1 = document.createElement("td");
td1.ondragstart="drag(event)";
but it didn't work out. What's wrong?