473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

replace, non funziona

ciao a tutti, sono nuovo del gruppo e ho da poco iniziato il mio
approcico a javascript

e ovviamente ho subito avuto un piccolo problema che vi riporto di
seguito

la seguente funzione
f
unction AggDitta(X) {
parent.principale.refresh;
X=document.caselle.ditta.value;
X=X.replace(/"_"/g," ");
parent.principale.document.write(X);
return null;
}

mi restituisce la strina così come l'ho passata, cioe' con tutti gli
underscore, se invece tolgo "/" e "/g", funziona come dovrebbe, nel
senso ke mi sostituisce solo la prima occorenza dell' "_".
secondo voi e' un problema di browser?? o cosa?? sto usando firefox

ciao e grazie

Oct 17 '06 #1
2 3599
fr************@fastwebnet.it wrote in news:1161095578.648338.181610
@e3g2000cwe.googlegroups.com:
ciao a tutti, sono nuovo del gruppo e ho da poco iniziato il mio
approcico a javascript....
--it.comp.lang.javascript
Oct 17 '06 #2
wrote on 17 okt 2006 in comp.lang.javascript:
ciao a tutti, sono nuovo del gruppo e ho da poco iniziato il mio
approcico a javascript

e ovviamente ho subito avuto un piccolo problema che vi riporto di
seguito

la seguente funzione
f
unction AggDitta(X) {
parent.principale.refresh;
What is this "refrech()" ???

Do you mean:

location.reload()

???
X=document.caselle.ditta.value;
X=X.replace(/"_"/g," ");
parent.principale.document.write(X);
return null;
}

mi restituisce la strina cos come l'ho passata, cioe' con tutti gli
underscore, se invece tolgo "/" e "/g", funziona come dovrebbe, nel
senso ke mi sostituisce solo la prima occorenza dell' "_".
secondo voi e' un problema di browser?? o cosa?? sto usando firefox

ciao e grazie


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Craig Keightley | last post by:
Can these lines of sql statements be consolidated into one sql statement (possibly using reg exps??) BEGIN CODE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Update...
12
by: Barnes | last post by:
Does anyone know of a good way to use the JavaScript string.replace() method in an ASP form? Here is the scenario: I have a form that cannot accept apostrophes. I want to use the replace() so...
6
by: Danny | last post by:
I need an asp command to strip out from a string all extra punctuation such as apostrophe, comma, period, spaces dashes, etc etc and just leave the letters. Can anybody give me some ideas? ...
9
by: Peter Row | last post by:
Hi, I know this has been asked before, but reading the threads it is still not entirely clear. Deciding which .Replace( ) to use when. Typically if I create a string in a loop I always use a...
4
by: Cor | last post by:
Hi Newsgroup, I have given an answer in this newsgroup about a "Replace". There came an answer on that I did not understand, so I have done some tests. I got the idea that someone said,...
5
by: fulmail | last post by:
Salve, ho un problema con questo codice ho creato un file html che dovrebbe aprire un altro file nella stessa cartella. Il codice utilizzato è: <form name="Mform"> <input type="Button"...
6
by: JackpipE | last post by:
Here is my replace query and I need to run this on every column in my table. Right now I manually enter the column name (_LANGUAGES_SPOKEN) but this is time consuming and would like to automate...
5
by: V S Rawat | last post by:
I was trying to use back-to-back replace functions to convert a url: str1 = str.replace("%2F","/").replace("%3F","?").replace("%3D","=").replace("%2 6","&"); It didn't replace all 4 types of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.