| A comparison among VSS Remote Access Tools including SourceOffSite, SourceAnyWhere and VSS Remoting |
|
 |
Index ‹ javascript
|
- Previous
- 4
- Newbie: Manipulate document.write
Hi
I have to simple scripts only containing :
Script1.js: document.write("<img src='http://www.domainname.com'>");
Script2.js: document.write("<img src='/images/13.gif'>");
Is it possible to manipulate the data (maybe in a 3. script)) so that the
browser reads: http://www.domainname.com/images/13.gif, without changing
script2 (on external server)
Hope someone can help.
Thanks.
/Haar
- 4
- page error when loading...even though page works fine.My page runs fine...I just get the yeld sign with a "!" in it.
Ok, I asked this question in the VBscript group and they tell me it's a
JavaScript issue even though I don't get the error until I introduce the
VBscript to the page. Please look at it.
I'm getting the following error message on my page.
The function
function formatCurrency(strValue)
11{
12 strValue2 = strValue.toString().replace(/\$|\,/g,'');
13 dblValue = parseFloat(strValue2);
14
15 blnSign = (dblValue == (dblValue = Math.abs(dblValue)));
16 dblValue = Math.floor(dblValue*100+0.50000000001);
17 intCents = dblValue%100;
18 strCents = intCents.toString();
19 dblValue = Math.floor(dblValue/100).toString();
20 if(intCents<10)
21 strCents = "0" + strCents;
22 for (var i = 0; i < Math.floor((dblValue.length-(1+i))/3); i++)
23 dblValue = dblValue.substring(0,dblValue.length-(4*i+3))+','+
24 dblValue.substring(dblValue.length-(4*i+3));
25 return (((blnSign)?'':'-') + '$' + dblValue + '.' + strCents);
26}
<script language="JavaScript">document.write(formatCurrency(<%=Request.Form
("total")%>))</script></span>
I get no errors if I take out the VB and use a real number...
<script language="JavaScript">document.write(formatCurrency(77))</script>
Any thoughts?
- 5
- creating graphs in javascript/etchello friends
i am trying to dynamically create graphs in browsers(as in graph
theory, something like this http://sawamuland.com/flash/graph.html ,
not like excel graphs) but i am unable to find any starting point.
are there some tutorials/libraries to do the same ? i am ok to develop
these in javascript/xhtml/flash/etc as long as this can be done
dynamically.
thanks a lot
ravinder thakur
- 6
- is better to open, write, close file than open, write, append, close?Hello,
Let's say that I have a very big string to write into a file.
If I concatenate strings and write the string into file at the end of
processing than memory use will increase exponential. - BAD
If I open a file and instead concatenating strings I write it into a
file. At the end of processing I close the file. Ok, this works, memory
usage increases but not exponential.
Another method is to open a file, write string and close file. This
actions repeats until the end of script processing.
Which is best?
I hope you understood because my english is not very good.
- 8
- Problem with iframe (caching...)Hi all,
I have an iframe as stated below. When i initiate the function
"open_frm()" everything is working as i expected.
When the document is loaded, i click on a link in the iframe, with
posts some data to the server (to url "myscript.peroli?q=something")
and gets back with results. Everything happens inside the iframe, no
interaction with parent window.
But when i do this 2 or more times, mozilla and IE is giving me a
cached copy. But if i reload the iframe (by right clicking on iframe
and reload) again after initiating the function it gets the right stuff
from the server.
I even accessed the script("myscript.peroli") in a new window, it
gave me the right result. Its just that when its loaded into iframe, it
gives cached copy.
I tried setting cache-control pragmas and meta directives and
forced the browser not to cache the data, but they seem to ignore them
particularly when inside IFRAME.
Is this a bug or am i doing something wrong? If you know of any
workarounds... let me know.
[html]
<iframe id="rGen" name="rGen" width="95%" height="400"
style="display:none" frameborder="0">Your Browser doesn't support
Iframes</iframe>
[/html]
//---------------------------------------------------
[script]
function open_frm() {
if(typeof frames['rGen'] == 'undefined') return;
var rGen = document.getElementById('rGen');
rGen.style.display = '';
frames['rGen'].location.href="myscript.peroli";
}
[/script]
//----------------------------------------------------
regards,
Peroli Sivaprakasam
- 8
- attatchments for formsDoes anyone know if there is a method I could use using javascript to
allow users to attatch a photograph to the form they are filling in?
thanx for your help
cass27
- 10
- 10
- Simple Code Request.Hello,
Could someone give me an example of a function which will strip all of the
following characters from a text field, and replace the SPACES with HYPHENS.
I have very little knowledge of writing functions, so if you could be fairly
specific, I would be very grateful.
Characters to be stripped:
'
,
.
@
!
"
?
%
(
)
And all spaces to be converted to:
-
Kind regards,
Jim.
- 12
- why i can't use attachEvent with innerHTML;if i use AttachEvent like this,it can't work;
eg:
var img = document.createElement("img");
img.attachEvent("onclick",alert("test"));
var div = document.createElement("div");
div.appendChild(img); //can't work;
div.innerHTML="<-click this";
but i use attachEvent like this,it work;
eg:
var img = document.createElement("img");
img.attachEvent("onclick",alert("test"));
var text = document.createElement("span");
text.innerHTML="<-click this";
var div = documet.createElement("div");
div.appendChild(img); //can work
div.appendChild(text);
- 14
- masking CGI scripts with JSHi,
this is just a thought from a relative "potato head" when it comes to JS ...
BUT...
i was wanting to use a simple formmail script to handle the output of a
customer feedback form, and I remembered something about "FORMMAIL" CGI's
being nortoriously prone to hijacking by hackers who want to use 3rd-party
mail servers for spamming or DOS attacks, etc.
i use a {document.write} statement to "hide" my email addresses from spam
harvesters, could I do the same with a <FORM> statement in order not to
advertise my mail script to overtly?
thanks for any comments ...
Eugene..
- 15
- Manipulating "obj.style.height " don't work in IE7...?I have the following function to resize a div element (Content) depending on
the
size of another div element (leftConent).
function adjustContentHeight() {
var content = document.getElementById("Content");
var leftOne = document.getElementById("leftContent ");
content.style.height = (leftOne.offsetHeight + leftOne.offsetTop) + "px";
return true;
}
This code works as expected in IE6 and FF2.0, but when testing in IE7
nothing
happens... the "Content" div is not resized.
Can anyone shed some light on why?
TIA...
--
Dag.
- 15
- DIV ScrollHi
I have a div which contains a table.
I have a button which, when pressed, generates a new row. When the
table begin to fill its div box, the vertical slider appears, and this
perfect so far.
The problem is, upon each click of the button, I need to also
automatically move the scroll bar to view the bottom row of the table.
Has anyone got any ideas how to achieve this?
Thanks
Graeme Howard
- 15
- 15
- javascript with wscript filesystemobjectHi, I'm trying to write to a file.
The file is getting created.
The file is even getting written to because the file ends up being one
kb. so I guess there is something coming in.
The code that is driving me crazy right now is:
xslDoc2.load("C:/projects/tests/schematron/suchen/validationreport.xsl");
xslt2.stylesheet = xslDoc2;
xslProc2 = xslt2.createProcessor();
xslProc2.input = xmlDoc;
xslProc2.transform();
WScript.Echo(xslProc2.output);
openfile = fso.GetFile(newFileObject);
openedfile = openfile.OpenAsTextStream(2, true);
openedfile.Write(xslProc2.output);
openedfile.Close();
The XSLT above is being loaded. the transform executed, the output
echoed.
But when I try to write that output to the file it does not work. note
the file is getting created and it exists.
Thanks
- 15
- AAAAAAAAAA
<style>
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">
/*
Shake image script (onMouseover)-
C Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit
http://dynamicdrive.com
*/
//configure shake degree (where larger # equals greater shake)
var rector=3
///////DONE EDITTING///////////
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>
Style Scripts
|
| Author |
Message |
bettervssremoting

|
Posted: 2005-2-28 16:58:22 |
Top |
javascript, A comparison among VSS Remote Access Tools including SourceOffSite, SourceAnyWhere and VSS Remoting
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
SourceSafe Remote Access, SourceSafe Web Access, SourceSafe
Internet Access, SourceOffSite, SourceAnyWhere, VSS Remoting
Index
1. Overview
2. Comparison Summary
3. Test Environment
4. Test Methodology
5. Breakdown
5.1 Speed
5.2 Stability
5.3 Security
5.4 VSS Feature Support
5.5 Usability
5.6 Diff/Merge
5.7SCCI Integration
5.8 Cross Platform
6 Others
1. Overview
What does the article do? It makes a comparison among SourceAnyWhere
3.1, SourceOffSite 4.1 and VSS Remoting 2.5.
Our initiative is to make an unbiased, objective, repeatable and
verifiable comparison:
a. Real project is used. The project I use is eMule, which is at
http://sourceforge.net/projects/emule/
b. Detailed steps are presented. You can follow the detailed steps
easily.
c. If you want to make a comment, I can be reached at
email***@***.com.
If you need more info, please visit their official websites:
SourceAnyWhere (SAW) from DynamSoft
http://www.dynamsoft.com
SourceOffSite (SOS) from SourceGear
http://www.sourcegear.com
VSS Remoting from Source Remoting
http://www.sourceremoting.com
Want to add a product? Write to me:
email***@***.com
The real result may vary if you do the test in different environment or
different files are used. However, the basic concept
of this comparison, such as which one is the fastest, which one has
more VSS features, should be applicable everywhere.
To view the full article, please go to
http://www.bettervssremoting.com
2. Comparison Summary (5 star ***** is the best)
Speed Comparison
SAW *****
SOS **
VSS Remoting **
Stability Comparison
SAW ****
SOS ***
VSS Remoting **
Security
SAW ****
SOS ***
VSS Remoting ***
VSS Feature Support
SAW ****
SOS ****
VSS Remoting ****
Usability
SAW ****
SOS **
VSS Remoting **
Diff/Merge
SAW ****
SOS ****
VSS Remoting **
IDE Integration
SAW ***
SOS ***
VSS Remoting ****
Cross Platform
SAW *
SOS ****
VSS Remoting ***
Speed:
I am totally surprised and excited by the speed of SourceAnyWhere. For
Get, Checkout and other operations, SourceAnyWhere can
be up to 40+ times faster than SourceOffSite and VSS Remoting.
Stability:
SourceAnyWhere never has any problem in the whole test.
VSS Remoting has difficulty to add files.
SourceOffSite has several problems when it comes to stability. It fails
often when I try to add big files. The big problem of
SourceOffSite is cancel. There is no cancel support in IDE integration.
After a cancel operation in Add, Checkin, Checkout or
Get in SourceOffSite Explorer, the CPU usage of SourceOffSite server
goes up to almost 100% and can not come down, unless the
server is restarted.
Security:
What makes SourceAnyWhere unique is the password policy.
All the products use 128-bit cryptography.
SourceOffSite and SourceAnyWhere use BlowFish.
VSS Remoting uses HTTPS.
VSS Feature Support:
Weakness and strengths equally exist in them three.
Usability:
SAW is the best. All the Windows of SAW is in Win32 style. It can
detect if a file is changed automatically.
Diff/Merge
In File Diff (2-way)/File Merge (3-way), SourceAnyWhere and
SourceOffSite run neck and neck; VSS Remoting has a low
performance
IDE Integration:
SourceAnyWhere, SourceOffSite and VSS Remoting all support MSSCCI
Integration.
VSS Remoting supports DreamWeaver integration
I have not tested the IDE integration intensively. I give this rate
just according to manual of the three products.
Cross Platform:
SourceOffSite can cross most popular platforms, VSS Remoting has a web
interface which can login server through web
3. Test Environment
Test Data
Real project is used for test
All eMule0.44c and eMule0.44d files are downloaded from Sourceforge
Download eMule0.44c (3.1M) and eMule0.44d (3.1M) used in the test
Big Files are simulated files created by us
Server Configuration
P4, 2.8G, 256M RAM, Windows XP Professional
SourceAnyWhere profession 3.1 DEMO Server
SourceOffSite4.1 with Cryptography DEMO Server
VSS Remoting Server 2.5
Visual SourceSafe6.0 + Sp6
Client Configuration
P4 Celeron 2.0G, 256M RAM, Windows 2003
ADSL connection
SourceAnyWhere profession 3.1
SourceOffSite 4.1 with Cryptography
VSS Remoting Client 2.5
4. Test Methodology
All the three products are tested on the same computers and internet
connection
All the three products are tested on the same data set
All the three products are tested with the same process
For speed test, every action is carried out 5 times
The initial state of the VSS database is empty (newly created)
5. Breakdown
To view the detailed test results and other features, please visit
http://www.BetterVssRemoting.com
|
| |
|
| |
 |
bettervssremoting

|
Posted: 2005-2-28 17:28:00 |
Top |
javascript >> A comparison among VSS Remote Access Tools including SourceOffSite, SourceAnyWhere and VSS Remoting
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
SourceSafe Remote Access, SourceSafe Web Access, SourceSafe
Internet Access, SourceOffSite, SourceAnyWhere, VSS Remoting
Index
1. Overview
2. Comparison Summary
3. Test Environment
4. Test Methodology
5. Breakdown
5.1 Speed
5.2 Stability
5.3 Security
5.4 VSS Feature Support
5.5 Usability
5.6 Diff/Merge
5.7SCCI Integration
5.8 Cross Platform
6 Others
1. Overview
What does the article do? It makes a comparison among SourceAnyWhere
3.1, SourceOffSite 4.1 and VSS Remoting 2.5.
Our initiative is to make an unbiased, objective, repeatable and
verifiable comparison:
a. Real project is used. The project I use is eMule, which is at
http://sourceforge.net/projects/emule/
b. Detailed steps are presented. You can follow the detailed steps
easily.
c. If you want to make a comment, I can be reached at
email***@***.com.
If you need more info, please visit their official websites:
SourceAnyWhere (SAW) from DynamSoft
http://www.dynamsoft.com
SourceOffSite (SOS) from SourceGear
http://www.sourcegear.com
VSS Remoting from Source Remoting
http://www.sourceremoting.com
Want to add a product? Write to me:
email***@***.com
The real result may vary if you do the test in different environment or
different files are used. However, the basic concept
of this comparison, such as which one is the fastest, which one has
more VSS features, should be applicable everywhere.
To view the full article, please go to
http://www.bettervssremoting.com
2. Comparison Summary (5 star ***** is the best)
Speed Comparison
SAW *****
SOS **
VSS Remoting **
Stability Comparison
SAW ****
SOS ***
VSS Remoting **
Security
SAW ****
SOS ***
VSS Remoting ***
VSS Feature Support
SAW ****
SOS ****
VSS Remoting ****
Usability
SAW ****
SOS **
VSS Remoting **
Diff/Merge
SAW ****
SOS ****
VSS Remoting **
IDE Integration
SAW ***
SOS ***
VSS Remoting ****
Cross Platform
SAW *
SOS ****
VSS Remoting ***
Speed:
I am totally surprised and excited by the speed of SourceAnyWhere. For
Get, Checkout and other operations, SourceAnyWhere can
be up to 40+ times faster than SourceOffSite and VSS Remoting.
Stability:
SourceAnyWhere never has any problem in the whole test.
VSS Remoting has difficulty to add files.
SourceOffSite has several problems when it comes to stability. It fails
often when I try to add big files. The big problem of
SourceOffSite is cancel. There is no cancel support in IDE integration.
After a cancel operation in Add, Checkin, Checkout or
Get in SourceOffSite Explorer, the CPU usage of SourceOffSite server
goes up to almost 100% and can not come down, unless the
server is restarted.
Security:
What makes SourceAnyWhere unique is the password policy.
All the products use 128-bit cryptography.
SourceOffSite and SourceAnyWhere use BlowFish.
VSS Remoting uses HTTPS.
VSS Feature Support:
Weakness and strengths equally exist in them three.
Usability:
SAW is the best. All the Windows of SAW is in Win32 style. It can
detect if a file is changed automatically.
Diff/Merge
In File Diff (2-way)/File Merge (3-way), SourceAnyWhere and
SourceOffSite run neck and neck; VSS Remoting has a low
performance
IDE Integration:
SourceAnyWhere, SourceOffSite and VSS Remoting all support MSSCCI
Integration.
VSS Remoting supports DreamWeaver integration
I have not tested the IDE integration intensively. I give this rate
just according to manual of the three products.
Cross Platform:
SourceOffSite can cross most popular platforms, VSS Remoting has a web
interface which can login server through web
3. Test Environment
Test Data
Real project is used for test
All eMule0.44c and eMule0.44d files are downloaded from Sourceforge
Download eMule0.44c (3.1M) and eMule0.44d (3.1M) used in the test
Big Files are simulated files created by us
Server Configuration
P4, 2.8G, 256M RAM, Windows XP Professional
SourceAnyWhere profession 3.1 DEMO Server
SourceOffSite4.1 with Cryptography DEMO Server
VSS Remoting Server 2.5
Visual SourceSafe6.0 + Sp6
Client Configuration
P4 Celeron 2.0G, 256M RAM, Windows 2003
ADSL connection
SourceAnyWhere profession 3.1
SourceOffSite 4.1 with Cryptography
VSS Remoting Client 2.5
4. Test Methodology
All the three products are tested on the same computers and internet
connection
All the three products are tested on the same data set
All the three products are tested with the same process
For speed test, every action is carried out 5 times
The initial state of the VSS database is empty (newly created)
5. Breakdown
To view the detailed test results and other features, please visit
http://www.BetterVssRemoting.com
|
| |
|
| |
 |
| |
 |
Index ‹ javascript |
- Next
- 1
- two different behaviours with 'return value' of a functionHi,
I tried something with 'return value' of a function and i got two different
behaviours.
My question is: why does method 1 not work?
Thanks
Dave
method 1: here, whatever i choose (ok or cancel), i go to 'webpage.htm'
<body>
<a id="my" onClick="retvalue()" href="webpage.htm" >click here</a>
<script type="text/javascript">
function retvalue()
{
if (confirm("go to link?") == false)
return false
}
</script>
</body>
method 2: here, when clicking on 'cancel', i don't go to 'webpage.htm'
<body>
<a id="my" href="webpage.htm" >click here</a>
<script type="text/javascript">
function retvalue()
{
if (confirm("go to link?") == false)
return false
}
document.getElementById("my").onclick=retvalue
</script>
</body>
- 2
- Validating form fieldsI want to validate that the data entered by a user is correct before they
submit the form.
How do I validate the following (or what functions/classes do I use):
- Ensure a text field is not empty
- Ensure that a text field contains only numeric values
- Ensure that the contents of a text field is shorter than a certain length
- Remove commas and other formatting from a field before submission
TIA.
- 3
- Detecting screen.height for use in <Table Height=> here's an example - site.zip (0/1)On Wed, 18 Feb 2004 19:56:00 -0500, Randy Webb
<email***@***.com> wrote:
Attachment Included
>john T wrote:
>> Is there any way to input he screen.height information into <Table
>> Height=> so I can have my page auto center vertically. I don't want to
>> use CSS because it disrupts other tables.
>
>Then you aren't defining your CSS properly. Instead of defining for
>TABLE{, define for #myTable{ where myTable is the id of the Table. Then
>it will only apply that CSS to the one table.
>
>follow-ups set to comp.info.www.authoring.stylesheets
- 4
- Newbie question: how to change the content of a tex item in a form?Hi,
I've go a simple question but to hard for my beginners level.
I've got a page with a photobook.
I've got the names of persons as hyperlinks (href="#")
and with the onmouseover() I swap some images (photo of the person
inquestion)
however i'd like to insert a text item from the <FORM> tag
in which the content also changes with the onmouse over.
So I can show some info about this person.
Since i have more than 50 persons i'd like to use JavaScript instead
of creating over 50 pages :)
who can help me with this?
Thanx in advance
Jerry
- 5
- thank you....I just wanted to say "Thank You" to all who have helped me so far.
I am a 'newbie' who is learning on the fly.
I have asked a number of questions and had a great response......THANK YOU.
- 6
- Accessing elements in DIVHi,
I have a <div> in my page with some elements. How can I access these
elements inside the DIV? I tried document.getElementById("element-id")
but it is not right.
If the elements are inside a form, how would I access them?
TIA.
- 7
- Help required using "Doublecombo" scriptHi - I have installed the doublecombo script from "Javascript Kit"
which populates a second drop down box based on the selection in the
first drop down box.
What I want it to do extra is that when it goes to the target page it
displays in the 1st dropdownbox the choice made, and in the 2nd
dropdown box the options for that choice.
My javascript is well rusty and I've played around with this using
cookies etc. but cannot get it too work.
Any help would be greatly appreciated. The double combo script is:
<form name="doublecombo">
<p><select name="example" size="1"
onChange="redirect(this.options.selectedIndex)">
<option>Technology Sites</option>
<option>News Sites</option>
<option>Search Engines</option>
</select>
<select name="stage2" size="1">
<option value="http://javascriptkit.com">JavaScript Kit</option>
<option value="http://www.news.com">News.com</option>
<option value="http://www.wired.com">Wired News</option>
</select>
<input type="button" name="test" value="Go!"
onClick="go()">
</p>
<script>
<!--
/*
Double Combo Script Credit
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScripts here!
*/
var groups=document.doublecombo.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()
group[0][0]=new Option("JavaScript Kit","http://javascriptkit.com")
group[0][1]=new Option("News.com","http://www.news.com")
group[0][2]=new Option("Wired News","http://www.wired.com")
group[1][0]=new Option("CNN","http://www.cnn.com")
group[1][1]=new Option("ABC News","http://www.abcnews.com")
group[2][0]=new Option("Hotbot","http://www.hotbot.com")
group[2][1]=new Option("Infoseek","http://www.infoseek.com")
group[2][2]=new Option("Excite","http://www.excite.com")
group[2][3]=new Option("Lycos","http://www.lycos.com")
var temp=document.doublecombo.stage2
function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value)
}
temp.options[0].selected=true
}
function go(){
location=temp.options[temp.selectedIndex].value
}
//-->
</script>
</form>
TIA
- 8
- CSS and javascript interactionHi,
I have a table with alternating bg-colors and in which I highlight the row
focused by the mouse. This is achieved by
<TR bgcolor='#A7BCCF' onmouseout="this.bgColor = '#A7BCCF'"
onmouseover="this.bgColor = '#86B1DC'">
<TD> Something ...
<TR bgcolor='#B8CADA' onmouseout="this.bgColor = '#A7BCCF'"
onmouseover="this.bgColor = '#86B1DC'">
<TD> Something else ...
THis works fine. If however I use CSS <TD class='myclass'> the
onmouseXXX-effect disappears. Any suggestions as how to resolve this ?
RHO
- 9
- JS and timestamp of file on serverThere are lots of ways to use javascript to embed the current
date/time in a page. But, what I would like to do is the following -
have a script pop up a box when the user hovers over a link,
indicating the timestamp of the file the link points at.
Suppose, for example, you're hosting a setup.exe file, which is
periodically updated. You have a download link - something like
Click <a href="setup.exe"> here</a> to download the file.
The file is very large, so you'd like the user to be able to determine
if the setup.exe is more recent that they one they might already have-
basically, they need to know the timestamp of the file. So, something
that, when the user hovers over the link, reports the timestamp of the
file (or, second best, spawns a download popup, with the file
timestampe embedded in it - asking the user if they still want to
download the file).
Is there a simple (or even complicated) way to do this, using
javascript? Or is this a CSS-type problem?
Thanks in advance...
- 10
- OOP and settimeout scopeHi,
I've been searching google and the archives here but haven't found a
clear solution. I want to do something like the following
function C(){
this.message = 'hi';
}
C.prototype.set = function(){
setTimeout(this.talk, 4000);
};
C.prototype.talk = function(){
alert(this.message);
};
This doesn't do what I want, of course. I understand that when the
"talk" method runs the "this" won't be the same "this" as when the
"set" method runs. I would like the two "this" references to mean the
same instance of C and not the window. Is there a simple solution?
If closures are the solution is there a way to avoid moving the method
definititions into the constructor? That seems like cluttering the
constructor to me. But if that is the simplest it is ok too.
Thanks,
Peter
- 11
- function only works on last rowYou all have been much help with my javascript needs...but I need you
again.
Mike gave me this...to add up any of the 7 columns that are changed.
function autoReimb(val, itm) {
var e = document.forms[0].elements,
r = 'autoReimb' + itm,
t = 0;
if(isPosInt(val.value)) {
e[r].value = format(val.value * 0.375);
for(var i = 1; i <= 7; ++i) {
if(isPosInt(e['miles' + i].value)) {
t += +e['autoReimb' + i].value;
}
}
e['autotot'].value = format(t);
lineTotal(val,itm); <-- I added
} else {
e[r].value = '';
}
} //End Function
I added the function call to lineTotal(val,itm) in order to total the
row...which is also changed when the column was changed.
function lineTotal(val, itm){
var e = document.forms[0].elements,
trvtps = new Array('autoReimb','airRail','car','taxi','lodge','meals','misc');
if(isPosInt(val.value)){
t = 0;
for (var i = 0; i < trvtps.length; i++){
var trvitem = trvtps[i];
if(isPosInt(e[trvitem + itm].value)){
t += +e[trvitem + itm].value;
}
}
e['total' + itm].value = format(t);
}
}
Problem is this only works on the last row...and I don't understand
why. I turned my last row into a remark line and then the row above it
which was not the last line worked great but the others did not add up
correctly.
- 12
- Textarea text format questionHi I have with form with a textarea, where users key in comments. User
may enter hard return, line break etc.
What I do when users submits the comments is to grap the value using
javascript and pass it to another form for processing in an iframe.
The problem I have is that while the values get transferred correctly,
the comments are stripped of the paragraphs breaks and hard returns. Is
there any way I could work around this?
Thanks in advance.
- 13
- Free AJAX Survival KitHey guys,
We thought it would be fun to give away one of our AJAX Survival Kits
(see details at www.carsonworkshops.com/shop/AJAX_Fuchs.html).
The first person who emails me (ryan **at** carsonworkshops.com) with
"comp.lang.javascript" in the subject, will win it.
If you're interested, we've got at 1-day London workshop about AJAX.
More info at
www.carsonworkshops.com/dev/ajax/dylanschiemann/29JUN2006.html
All the best,
Ryan
Vitamin | thinkvitamin.com
DropSend | dropsend.com
Carson Workshops | carsonworkshops.com
- 14
- how can I overwrite a prototype function?I know how to overwrite a function. Normally this is what I would do:
function someFunction() { /* orig definition here */ }
//later in the execution stream I would do...
someFunction = function () { /* overwrite function definition */ }
The above works fine for me even when someFunction is originally
defined in a seperate frame other than the code that overwrites it
(obviously on the same domain).
What I don't know how to-do is overwrite a prototype function that
already loaded into memory on another frame (on the same domain). For
example:
//say, this prototype function is defined on a frame named
'frame1'
String.prototype.someOtherFunction() { /* define prototype
function here */ }
Problem is I don't know how to access the prototype function from
another frame. I've tried
//assume we are not (executing) in 'frame1'
top.frame1.String.prototype.someOtherFunction = function () { /*
overwrite function here */ }
top.frame1.someOtherFunction = function () { /* overwrite
function here */ } //this just defines a new function in frame1
Is this possible? Can someone give me some pointers?
- 15
- The Firefox status barI know this must be a lame question, but I ask it after a lot of
searching and experimentation. I can not get a string to print into
the status bar of a Firefox browser.
Is it the case that if any extensions for firefox put anything in the
status bar that window.status() status() are bolluxed up?
Thanks in advance for the info.
|
|
|