Click here to Skip to main content
15,885,908 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: HTML5 'Import' failed Pin
Kornfeld Eliyahu Peter23-Jun-14 2:12
professionalKornfeld Eliyahu Peter23-Jun-14 2:12 
AnswerRe: HTML5 'Import' failed Pin
aks.23-Jun-14 2:36
aks.23-Jun-14 2:36 
QuestionLoad on ocx to html page Pin
aks.22-Jun-14 23:55
aks.22-Jun-14 23:55 
AnswerRe: Load on ocx to html page Pin
Kornfeld Eliyahu Peter23-Jun-14 0:06
professionalKornfeld Eliyahu Peter23-Jun-14 0:06 
GeneralRe: Load on ocx to html page Pin
aks.23-Jun-14 0:39
aks.23-Jun-14 0:39 
GeneralRe: Load on ocx to html page Pin
Kornfeld Eliyahu Peter23-Jun-14 0:44
professionalKornfeld Eliyahu Peter23-Jun-14 0:44 
Questionaccount verification after registration Pin
Member 936602121-Jun-14 5:01
professionalMember 936602121-Jun-14 5:01 
QuestionHow to find [img] [/img] tag from a text or HTML Pin
Mrinmoy Das19-Jun-14 5:07
Mrinmoy Das19-Jun-14 5:07 
when we write :) or :p or something else on facebook chat Smile | :) or other sites that supports smiley. This code changes to smiley image. thats mean javascript replace that short code (":P") etc to a image. so first we have to find that code (":P") from a text like (" hello friens :P how are you?") after finding that we have to replace with it proper image.

Blogger does not support img tag to post in comment. so there is only way that we can use [img]
(image source url)[/img] and our javascript code finds the [img][/img] tag and then extract the image url from it and replace it with a image.
so this is to be written in javascript i think.
1.use var data = document.getElementById("Id-of-comment").innerHTML;
2. We get data. now we have to find the [img]...[/img] tag {data.search("[img]"); possibly)
3. now we have to obtain the link in a variable.
4. now we have to replace [img]......[/img] with [img]https://www.gravatar.com/avatar/4ce47f47105a3bd1ca4700f02b5deff1?s=32&d=identicon&r=PG[/img]


JavaScript
<script>
function myFunction() {
    var n;
var m;
var p;
var s;
s = document.getElementById("mm").innerHTML
n = s.search("[img]");
m = s.search("[/img]");
p = s.slice(n,m);              
s = s.replace("[img]","'");  
s = s.replace("[/img]","'");
alert(p + n + m);
var b;
b = ""
document.getElementById("mm").innerHTML = b;
}
</script>

Mrinmoy

QuestionYoutube custom player like edx use Pin
John.smith18-Jun-14 0:19
John.smith18-Jun-14 0:19 
QuestionInteractive 3d modeling web appication Pin
Member 1088887616-Jun-14 19:42
Member 1088887616-Jun-14 19:42 
QuestionFacebook login Pin
Member 1088717016-Jun-14 0:52
Member 1088717016-Jun-14 0:52 
AnswerRe: Facebook login Pin
Kornfeld Eliyahu Peter16-Jun-14 1:16
professionalKornfeld Eliyahu Peter16-Jun-14 1:16 
QuestionUploaded files are excluded from the folder Pin
HumaMunir10-Jun-14 22:54
HumaMunir10-Jun-14 22:54 
AnswerRe: Uploaded files are excluded from the folder Pin
Kornfeld Eliyahu Peter11-Jun-14 1:15
professionalKornfeld Eliyahu Peter11-Jun-14 1:15 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 20:04
HumaMunir11-Jun-14 20:04 
GeneralRe: Uploaded files are excluded from the folder Pin
Richard MacCutchan11-Jun-14 21:51
mveRichard MacCutchan11-Jun-14 21:51 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 23:09
HumaMunir11-Jun-14 23:09 
GeneralRe: Uploaded files are excluded from the folder Pin
Richard MacCutchan12-Jun-14 0:34
mveRichard MacCutchan12-Jun-14 0:34 
GeneralRe: Uploaded files are excluded from the folder Pin
jinzai16-Jul-14 23:46
jinzai16-Jul-14 23:46 
AnswerRe: Uploaded files are excluded from the folder Pin
Kornfeld Eliyahu Peter11-Jun-14 23:07
professionalKornfeld Eliyahu Peter11-Jun-14 23:07 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 23:24
HumaMunir11-Jun-14 23:24 
AnswerRe: Uploaded files are excluded from the folder Pin
Kornfeld Eliyahu Peter11-Jun-14 23:57
professionalKornfeld Eliyahu Peter11-Jun-14 23:57 
AnswerRe: Uploaded files are excluded from the folder Pin
Bernhard Hiller11-Jun-14 20:55
Bernhard Hiller11-Jun-14 20:55 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 23:03
HumaMunir11-Jun-14 23:03 
QuestionHow third party templates can help in developing new application Pin
Rishihar Subashchandran9-Jun-14 23:48
professionalRishihar Subashchandran9-Jun-14 23:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.