Guest User

Textarea Like Facebook Comment

a guest
Jan 9th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.10 KB | None | 0 0
  1.  
  2.  
  3. ********************
  4. Textarea Like Facebook Comment
  5. http://urlin.us/bzqay
  6. (Copy & Paste link)
  7. ********************
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. Stack Overflow Questions Jobs Developer Jobs Directory Salary Calculator Help Mobile Stack Overflow Business Talent Ads Enterprise Company About Press Work Here Legal Privacy Policy Contact Us Stack Exchange Network Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Software Engineering Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica Salesforce ExpressionEngine Answers Stack Overflow em Portugus Blender Network Engineering Cryptography Code Review Magento Software Recommendations Signal Processing Emacs Raspberry Pi Stack Overflow Programming Puzzles & Code Golf Stack Overflow en espaol Ethereum Data Science Arduino Bitcoin more (26) Photography Science Fiction & Fantasy Graphic Design Movies & TV Music: Practice & Theory Worldbuilding Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia Law more (16) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity English Language Learners Japanese Language Arqade (gaming) Bicycles Role-playing Games Anime & Manga Puzzling Motor Vehicle Maintenance & Repair more (32) MathOverflow Mathematics Cross Validated (stats) Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more (10) Meta Stack Exchange Stack Apps API Data Area 51 Blog Facebook Twitter LinkedIn site design / logo 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. Categories. Expert in Codeigniter (MVC), WordPress, JSON, jQuery & HTML5 . –David Rodrigues Dec 8 '11 at 22:13 add a comment 5 Answers 5 active oldest votes up vote 17 down vote accepted See this example here. Email Sign Up or sign in with Google Facebook Highlight text inside textarea like Facebook does Ask Question up vote 25 down vote favorite 6 I try to achieve something like the Facebook does when you type in a reply. Jul 3, 2016Git Commands: Step By Step Guide (Part 2)In this tutorial, we will go through Git commands related to Branching and Merging. Sep 29 '12 at 13:15 But the div doesn't increase in height automatically as you are typing in it . This post will explain how to add Google Custom Search in your WordPress or PHP site without any plugin. You have to use javascript to listen. PHP function clickablelink($text = '') { $text = pregreplace('#(scriptaboutappletactivexchrome):#is', "1:", $text); $ret = ' ' . I have used ip check to make user restricted to there posts or comments. $(a.morerecords).livequery(click, function(e){ var next = $(this).attr(id).replace(more,); $.post(posts.php?showmorepost=+next, { }, function(response){ $(#bottomMoreButton).remove(); $(#posting).append($(response).fadeIn(slow)); }); }); 1234567891011121314 // I used livejquery plugin to work my code effective for dynamic elements.$(a.morerecords).livequery(click, function(e){var next = $(this).attr(id).replace(more,);$.post(posts.php?showmorepost=+next, {}, function(response){$(#bottomMoreButton).remove();$(#posting).append($(response).fadeIn(slow));});}); . Sep 4, 2017Chrome Developer Tools: Inspect JSON path and extract data quicklyDo you want to query JSON document, extract data, select sub sections or testing a query quickly? This articles explains to do it using Chrome Developer tools. –ndbroadbent Mar 24 '12 at 3:23 nathan.f77 see my reply to stackoverflow.com/a/8438478/257319 above. Jul 16, 2016ASP.NET Core Identity: Add Roles on Application StartupIn ASP.NET Core application, you want to seed roles and users in the database. It runs as a native Windows application and uses Hyper-V to virtualize the Docker Engine environment and Linux kernel-specific features for the Docker daemon. post.php File:. The following environment is used for this post:. PHP " class="commentPanel"> 0) echo date('F d Y', $rows['datecreated']); elseif($days2 == 0 && $hours == 0 && $minutes == 0) echo "few seconds ago"; elseif($days2 == 0 && $hours == 0) echo $minutes.' minutes ago'; else echo "few seconds ago"; ?> " class="cdelete" href="#">Delete 1234567891011121314151617181920 " class="commentPanel"> 0) echo date('F d Y', $rows['datecreated']); elseif($days2 == 0 && $hours == 0 && $minutes == 0) echo "few seconds ago"; elseif($days2 == 0 && $hours == 0) echo $minutes.' minutes ago'; else echo "few seconds ago"; ?> " class="cdelete" href="#">Delete . After you choose a friend, the name of that friend is highlighted with a blueish background, so you know it's a separate entity in that text. Recommended WordPress Themes Stores . –Nicolae Surdu Feb 20 '12 at 13:40 add a comment up vote -5 down vote I would suggest changing the text you want to assign a background inline to to display: inline-block; background-color: #YOURCOLOR;. Ultimately your CSS should look something like this: .name {display: inline-block; background-color: purple;} Then add some sort of event listener in jQuery (not sure how you're identifying that it is a name) and inside that conditional put: $(yourNameSelectorGoesHere).addClass(".name"); shareimprove this answer answered Dec 9 '11 at 3:49 Jesse Atkinson 2,51272944 1 You didn't answer my question (or so I believe): how can I change the style to a part of the text inside a textarea? –Nicolae Surdu Dec 9 '11 at 11:16 The current answer provided does not work. Hope it helps shareimprove this answer edited Sep 27 '12 at 16:49 khr055 16k133047 answered Sep 27 '12 at 16:47 Jos L. –user257319 Nov 7 '15 at 22:01 add a comment Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. available in dropdownlist, listbox or any other control. Actually, I'm looking for something like this for iPhone, but rather more complicated. Popular post. Branches are used to develop features isolated from each other. Join Stack Overflow to learn, share knowledge, and build your career. Node.js has net module which provides an asynchronous network API for creating stream-based TCP or IPC servers and clients. Not the answer you're looking for? Browse other questions tagged javascript html css facebook or ask your own question. Facebook Style Event Creator With jQuery and Ajax. This post explains different ways to read master tables with C# and Dapper. A short example to illustrate the point: Demo * { font-family: sans-serif; font-size: 10pt; font-weight: normal; } .wrapper { position: relative; width: 400px; height: 400px; outline: solid 1px #666; } .wrapper > * { position: absolute; top: 0; left: 0; height: 100%; width: 100%; margin: 0; padding: 0; } .highlighter { background-color: #fff; color: #fff; } .highlight { background-color: #9ff; color: #9ff; } textarea { background-color: transparent; border: 0; } This is a demonstration. $('a.comment').livequery("click", function(e){ var getpID = $(this).parent().attr('id').replace('commentBox-',''); var commenttext = $("#commentMark-"+getpID).val(); if(commenttext != "Write a comment.") { $.post("addcomment.php?commenttext="+commenttext+"&postid="+getpID, { }, function(response){ $('#CommentPosted'+getpID).append($(response).fadeIn('slow')); $("#commentMark-"+getpID).val(); }); } }); 123456789101112131415161718192021 // I used livejquery plugin to work my code effective for dynamic elements.$('a.comment').livequery("click", function(e){ var getpID =$(this).parent().attr('id').replace('commentBox-',''); var commenttext = $("#commentMark-"+getpID).val(); if(commenttext != "Write a comment.") { $.post("addcomment.php?commenttext="+commenttext+"&postid="+getpID, { }, function(response){ $('#CommentPosted'+getpID).append($(response).fadeIn('slow')); $("#commentMark-"+getpID).val(); }); }}); 5a02188284
Add Comment
Please, Sign In to add comment