15,906,626 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by prasad sawant (Top 35 by date)
prasad sawant
19-May-17 14:09pm
View
i use...
var op = Object.prototype;
op.w = (...)
which works but i want answer how to do because i want to set others also like...
var v = this.value
var l = this.length
prasad sawant
19-May-17 14:03pm
View
i want this...
o.p.w = (...)
Object.prototype.w = (...)
var o can be a variable because there is no dot notation left side and w can be a function because left side u can set "this" syntax, now the quastion is if i set a p as a function then it comes with round brackets and i dont know how to make "p" without round brackets. i googled it but dont know how to do it.
prasad sawant
19-May-17 13:53pm
View
can u explain ?
i tried this which doesnt works...
var p = this.prototype;
var this.p = this.prototype;
var this.p = return this.prototype;
i want something like...
o.p.w = (...)
Object.prototype.write = (...)
prasad sawant
14-Sep-16 4:44am
View
means i was need only ta.value = ""; and thanks for /d/g; i m happy
prasad sawant
14-Sep-16 4:29am
View
when i use oninput it directly replace words but cursor blinks between d and o but i want it at end, when i use onchange it doesnt replace words but when i click on other side without touching textarea its replace words but doesnt place cursor anywhere, i think oninput is perfect event, but some advance coding will need
prasad sawant
13-Sep-16 3:29am
View
hey its not replacing "d" as "document" its only change when i click not on textarea but other area. i want cursor at end
prasad sawant
12-Sep-16 15:12pm
View
Deleted
hey its not replacing d as document why ?
prasad sawant
12-Sep-16 5:16am
View
in textarea element i have an attribute [ oninput= "replacetext()" ] this website may be doesnt allow some attributes so now suggest me answer.
prasad sawant
27-Aug-16 0:55am
View
(?!"[^"]*") this negative ahead only works as (?!") why ?
prasad sawant
22-Aug-16 1:16am
View
nice recomendation but i want exact explanation code, what link u have given me its all perl programming language codes, i m not familier with it, i want javascript code, i saw on w3schools.com but there is no complex matching technics, and if i type "w(" : "write(" my page shows blank.
prasad sawant
6-Aug-16 8:06am
View
u dindnt get it but thanks, ur substring method. and other method which gave me many options to think.
prasad sawant
5-Aug-16 14:19pm
View
but with : colon its also not works i tried with RegExp() also not works, i think i need proper syntax for this w3schools only have basic knowledge not complex. can u write proper whole code here like previous substring which was accurate but it works only once because it needs g modifier and when i put g modifier in it like /d.w(/g it shows error because of ( round bracket may be. so i need proper programming code which will not affect code between (brackets) in strings
prasad sawant
5-Aug-16 13:48pm
View
i have more libraries and i m thinking that between string problem will occur soon,
can u explain this method which i have seen on some websites..
myObj = {a = "b", c = "d", e = "f"};
str.replace(/(a|b|c)/g, function (matched)
{myObj[matched];}
this code doesnt work on my browser what is wrong with it ?
prasad sawant
5-Aug-16 12:16pm
View
"d.w(" is perfect i also used it many times but i scared what will happen if it comes again in strings so how can i remove it or stope it. like
d.w("d.w(");
it will return
document.write("document.write(");
prasad sawant
5-Aug-16 12:10pm
View
those both str variable not execute at same time only last variables value returns the answer, i want single variable for executing.
prasad sawant
5-Aug-16 12:06pm
View
but what if d. and "download." both d. are same and they will replace as "downloadocument." i want the answer for this how to not change words between quotes.
prasad sawant
3-Aug-16 14:15pm
View
finally i got the answer why your code was not working here is ur code..
var str= "d.w(); d.w(); d.wl();" ;
str = str.replace(/d./g ,
"document." );
str = str.replace(/w/g , "write" );
i just change assingning variable as different like this..
var str= "d.w(); d.w(); d.wl();" ;
s = str.replace(/d./g ,
"document." );
s = str.replace(/w/g , "write" );
by changing str to s variable i can c ur code is working thank u very much
prasad sawant
3-Aug-16 10:26am
View
i want something like this
str= "abc".replace(/a|b|c/g, "d" "e" "f");
// a as d, b as e, c as f.
ur previous code works but if i angain try to execute it, it shows blank page
means
<script>
blah blah blah..
document.write(str);
//this code will work
</script>
<script>
blah blah blah..
document.write(str);
document.write(str);
//this code is not working
may be i have a browser problem
</script>
prasad sawant
3-Aug-16 6:51am
View
i want to search those 3 things by this..
replace(/word1|word2|word3/g, here i want a function to replace those words to onother words);
prasad sawant
3-Aug-16 2:56am
View
its work only for single str variable
means..
document.write(str); // its work
but more than double line..
document.write(str);
document.write(str); // its doesnt work,
may be because same variable
and i tried this..
replace(/d.|w(|wl(|/g, "document." write(" writeln(") but doesnt work
prasad sawant
1-Aug-16 7:13am
View
Deleted
i m trying this syntax changing program which not works..
<script>
d = document;
o = Object;
p = prototype;
f = function;
t = this;
o.p.w = f w(markUp)
{
t.write(markUp);
};
d.w("hello");
</script>
prasad sawant
1-Aug-16 7:12am
View
Deleted
i m trying this syntax changing program which not works..
<script>
d = document;
o = Object;
p = prototype;
f = function;
t = this;
o.p.w = w(markUp)
{
t.write(markUp);
};
d.w("hello");
</script>
prasad sawant
1-Aug-16 6:51am
View
how to delete or edit previous post question on this website ?
prasad sawant
30-Jul-16 14:00pm
View
i m beginner, i dont know anything well, i dont know this websites rule, i just want answer, i check some websites to know the code well like w3schools and google, here i found some answers with great explanation, my questions are different, just check them, i m making 3 programs one is short language program, and others i cant talk here, so i need some codes and explanations also.
prasad sawant
30-Jul-16 10:53am
View
f = function;
i forgot to assign there.
prasad sawant
30-Jul-16 10:37am
View
ok
prasad sawant
30-Jul-16 8:50am
View
oh my god it was so simple.. and i thought it is hard..
one more question..
i want this..
d = document;
o = Object;
p = prototype;
t = this;
o.p.w = w(markUp)
{
t.write(markUp);
};
d.w("hello");
/* somehow my code doesnt work any solution */
prasad sawant
29-Jul-16 14:52pm
View
wow nice, thanks for attribute spliting and document.body syntax
prasad sawant
29-Jul-16 7:58am
View
read my new post, hope u have answer of it.
prasad sawant
29-Jul-16 7:52am
View
Deleted
if u r saying that this twisted code does not exist, then i will imagine it as my final shortcut method, but i know there may have many people who have years of experience, that they can do anything like a magic, i know i will understand it by practice.
prasad sawant
28-Jul-16 13:26pm
View
Deleted
i read that website daily but what i want is not there, i try on google also, but cant undestand, why the codes are arrange like that because their codes are very complecated, the easiest way is u try to ask everyone one of the person will definetly answer it, its all about understanding from basic, and keep in memory by practice daily
prasad sawant
28-Jul-16 9:32am
View
i didnt get it well but i hope i will know it soon, what i got here is
new syntax-- Object.prototype and this
thank u very much
prasad sawant
27-Jul-16 14:28pm
View
wow! it works great.. thanks..
all i have understood that
1. the return syntax must be written
2. element must be there on top of script tag
i will understand it more by time i think..
i have question..
can i make this..
.innerHTML as .in()
.length as .len
.toString() as .str()
and so on..
means when will i type
id("demo").in("hello");
it will show..
hello
instead of..
document.getElementById("demo").innerHTML="hello";
prasad sawant
27-Jul-16 5:13am
View
Deleted
thank u very much, for answer, but a new problem started,
<script>
function id(markup)
{
document.getElementById(markup);
}
id("demo").innerHTML="hello";
/* this code doesnt work why */
</script>
<p id="demo"></p>
prasad sawant
27-Jul-16 5:11am
View
Deleted
thank u very much, for answer, but a new problem started,
<script>
id(markup)
{
document.getElementById(markup);
}
id("demo").innerHTML="hello";
/* this code doesnt work why */
</script>
<p id="demo"></p>
Show More