FAQ Database Discussion Community


How to add value from the title to the value of the class to the same element with jQuery?

jquery,title
How to add value from the title to the value of the class to the same element with jQuery? For Example, I will add word "new1" to title name for picture of 1.jpg. And then in class of picture 1.jpg it will get class of "new1" by jQuery. <script> $(...

How to change title of button A when button B is pressed?

swift,button,title
In Swift, I want to change the title of Button A when Button B is pressed. I tried sender.ButtonA.setTitle("Title", forState: UIControlState.Normal) under IBAction Button B but it couldn't work.. it was just a guess anyway.....

UI Router dynamic tag</a> </h2><b><a href='http://databasefaq.com/index.php/tag/angularjs'>angularjs</a>,<a href='http://databasefaq.com/index.php/tag/angular-ui-router'>angular-ui-router</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> I'm adding a title to every state in the ui-router like that: .state('projects', { url: '/', templateUrl: 'projects/projects.html', ncyBreadcrumb: { label: 'Projects' }, data : {title: 'Projects'} }) And then the title attribute takes that data: <title ng-bind="$state.current.data.title"></title> How can I take data from the state parameters and add it...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/182243/matlab-image-processing-title-matlab-figure-figure-my-plotted-lines-arent-appearing-on-my-output-figures'>My plotted lines aren't appearing on my output figures</a> </h2><b><a href='http://databasefaq.com/index.php/tag/matlab'>matlab</a>,<a href='http://databasefaq.com/index.php/tag/image-processing'>image-processing</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a>,<a href='http://databasefaq.com/index.php/tag/matlab-figure'>matlab-figure</a>,<a href='http://databasefaq.com/index.php/tag/figure'>figure</a></b><br/> so I'm processing a bunch of images at the one time, trying to display them all as figures with a series of plotted lines on each individual image as a result of the process. With some help I fixed the figure title issue, However the plotted lines are not appearing...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/245838/ios-objective-c-uibutton-uistoryboard-title-uibutton-different-alignment-for-title-and-image'>UIButton different alignment for title and image</a> </h2><b><a href='http://databasefaq.com/index.php/tag/ios'>ios</a>,<a href='http://databasefaq.com/index.php/tag/objective-c'>objective-c</a>,<a href='http://databasefaq.com/index.php/tag/uibutton'>uibutton</a>,<a href='http://databasefaq.com/index.php/tag/uistoryboard'>uistoryboard</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> Hello I am creating UIButton which is displaying image and title at the same time. I want title and image to be both centred, button to be above image. Problem is that because of localisation of string from button, string length is changing, and alignment from UIStoryboard combined with edge...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/34963/aspnet-mvc-razor-parameters-title-actionlink-get-column-title-in-view'>Get Column title in View</a> </h2><b><a href='http://databasefaq.com/index.php/tag/asp.net-mvc'>asp.net-mvc</a>,<a href='http://databasefaq.com/index.php/tag/razor'>razor</a>,<a href='http://databasefaq.com/index.php/tag/parameters'>parameters</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a>,<a href='http://databasefaq.com/index.php/tag/actionlink'>actionlink</a></b><br/> MVC5 did a great job on automatically creating the View page (Razor). It currently displays my list of Students for example with table heading like this: <th> @<a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="072d474f736a6b294664736e68694b6e696c">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script>("", "Index", new { sortOrder = ViewBag.NameSortParm })*@ @Html.DisplayNameFor(model => model.LastName) </th> Now. DisplayNameFor take a Lambda Expression as its parameter. However, I...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/88443/javascript-jquery-list-click-title-how-to-click-a-list-item-where-title-attribute-equals-a-specific-variable-using-javascript-jquery'>How to Click a List Item Where Title Attribute Equals a Specific Variable Using Javascript/Jquery?</a> </h2><b><a href='http://databasefaq.com/index.php/tag/javascript'>javascript</a>,<a href='http://databasefaq.com/index.php/tag/jquery'>jquery</a>,<a href='http://databasefaq.com/index.php/tag/list'>list</a>,<a href='http://databasefaq.com/index.php/tag/click'>click</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> I've got the following lists in my web application: <li class="ui-corner-all" title="#3100ff" style="border: none; background-color: rgb(144, 0, 255);"></li> <li class="ui-corner-all" title="#9330ff" style="border: none; background-color: rgb(144, 0, 255);"></li> <li class="ui-corner-all" title="#500055" style="border: none; background-color: rgb(144, 0, 255);"></li> Basically, I am trying to get JS and/or JQuery to click the list item...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/272565/wordpress-wordpress-plugin-wordpress-theming-title-wordpress-plugin-dev-wordpress-change-title-title-from-a-plugin-without-template-edit'>Wordpress change <title> … from a plugin (without template edit)

wordpress,wordpress-plugin,wordpress-theming,title,wordpress-plugin-dev
I have made a google search about this but i did not find any answer Is it possible to change the wordpress title without template edit? I want to change <title> Change this from a wp plugin </title> thank you for your help...

jQuery: How to show a checkbox value on mouseover (without title attribute)

javascript,jquery,mouseover,title
I am pretty new to jQuery and need some help with the following. I have a HTML page with a large, dynamic number of checkboxes and would like to show a checkbox' value on mouseover without having to add a title attribute in the code for each of them. Also,...

Style sheets break with TITLE attribute on tags?

html,css,hyperlink,title
Okay, this is the weirdest thing. Wondering if anyone else has seen this, or has an explanation. I'm helping with an effort to upgrade a very old corporate intranet. Our users are on IE8 and IE9. Most of our sites are written to work in IE5 - IE9. We're on...

add icon to html code title

html,title
This is not a favicon as others had corrected another post. This is how Expedia page source code looks: <title data-sctid="title" data-sct-hidden="true">🏨 Atlantic City Hotels: Find 122 Cheap Hotel Deals in Atlantic City, NJ | Expedia</title> the result page in google shows this http://goo.gl/YEjujq I tried to insert 🏨 into...

Wordpress Yoast plugin update seo title

php,html,wordpress,seo,title
I´ve been looking around to see where I can change the seo title in my database, but i cannot find my answer. We changed names, and now all my seo titles look like: PRODUCT_NAME bij OLD_NAME Now I want to replace OLD_NAME by NEW_NAME in the database, or where ever...

Set action bar title corresponding to ActionBar tab title

android,android-actionbar,title
When the active tab in my app is changed and an other tab gets the active tab, I would like the ActionBar title to be set to a certain text. How can I do that? Thanks...

Show page title for all pages when we print XSLT Report using XML

xml,xslt,header,report,title
I want to print report by having PatientID in all pages as heading or title so that it will print page title in all the pages when we print I'm not sure how to write XSLT for showing title in all pages Any help will be really appreciated Below is...

Xcode NsCoding navigation title disappears

xcode,crash,title,nscoding,initwithcoder
I have added this code to the "MasterViewController.m" in my project: - (void)encodeWithCoder:(NSCoder *)encoder { [encoder encodeObject:_savedText forKey:@"savedText"]; } . - (id)initWithCoder:(NSCoder *)decoder { if((self = [super init])) { _savedText = [decoder decodeObjectForKey:@"savedText"]; } return self; } When I added the "initWithCoder-code" the navigation title disappears and when I click...

PHP and title tag

php,title
I have already tried searching on the web but I didn't find the solution. How can I add a 'title' tag with spaces on php code? I have this: echo "<li id='".$folder.'/'.$entry."' title=".$entry.">".$entry."</li> In this example the variable $entry = "Test one two three", but when my mouse is over...

How to add title to all id's with jquery

jquery,title
How to add titles to all id's for td in table. Code: <table> <tr> <td id="A">TextA</td> <td id="A">TextB</td> <td id="A">TextC</td> </tr> </table> $('#A')[0].title = "new title value"; Here is jsfiddle: http://jsfiddle.net/3hocugmj/ I have try with for loop like this: for (b = 0; b < 3; b++) { $('#A')[b].title =...

Changing title based on included file in PHP

php,include,title
I have to make some changes on my old website where I'm not using any templating system. I'm loading the content for some pages from a database based on ?page parameter. So I have something like this: <title>Page title</title> ... ... ... $page_id = $_GET['page']; include 'page.php'; //escaping is done...

How can I make a title not show up on a template?

php,wordpress,templates,visibility,title
I am working out of wordpress, and I would like to add a php code to a template file. I only want the title to NOT display on this template. Is there a certain code that I can place on a template file to make only THIS TEMPLATE NOT DISPLAY...

Does the title tag have content?

html5,tags,title
From my point of view, content has come to be defined as two separate things in HTML: 1) All of the information between the open and closed body tags that is visible on a webpage. 2) That which is visible on a webpage that is placed between any open and...

How can I set set a title that start with coma,semicolon or equal sign?

batch-file,cmd,title,titlebar
Obviously it is possible to set title that contains cmd's standard delimiters but through TITLE command looks impossible to set a title that starts with a delimiter. It is possible to create a new instance of CMD with such title: start "==" cmd.exe but not possible for the same instance....

Adding Image And title both to UIsegmentControl IOS

ios,uiimage,title,uisegmentedcontrol
Is there a way so that you can set both image and title of UISegmentControl simultaneously, so that image appear next to the title , just like image appear next to title in UIButton. I am trying but if I set image of Selected segment of UISegmentControl then title disappears...

Only first word of title retrieved with PHP showing

php,html,title,simple-html-dom
So I am trying to display a list from another website in mine, it all works fine but only the first word of the 'title' attribute is stored. I know that the whole title is retrieved from the other website so how do I get it to store all of...

How to dynamically change document title via function?

javascript,jquery,document,title
I'd like to change document's title dynamically. In the first instance I tried this snippet: var milis = 3000, titles = [ 'Setting up color scheme' ], count = 0; titles.push(document.title); setInterval(function(){ document.title = titles[count % titles.length]; ++count; }, milis); This works perfectly, but I need to put the snippet...

How to get Title Value by Clicking List Item With a Class Used by Multiple List Items

javascript,jquery,click,title
In my web application, I have the following list items: <li class="ui-corner-all" title="#3100ff" style="border: none; background-color: rgb(144, 0, 255);"></li> <li class="ui-corner-all" title="#9330ff" style="border: none; background-color: rgb(144, 0, 255);"></li> <li class="ui-corner-all" title="#500055" style="border: none; background-color: rgb(144, 0, 255);"></li> When I click a list item with the class "ui-corner-all", I am trying...

Replace links with html link and </a> </h2><b><a href='http://databasefaq.com/index.php/tag/php'>php</a>,<a href='http://databasefaq.com/index.php/tag/url'>url</a>,<a href='http://databasefaq.com/index.php/tag/replace'>replace</a>,<a href='http://databasefaq.com/index.php/tag/hyperlink'>hyperlink</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> I want to convert all links in a string. For example: http://google.de Result: <a href="http://google.de"><title> of google.de</a> I created the following code snipet: function getTitle($Url){ $str = file_get_contents($Url); if(strlen($str)>0){ preg_match("/\<title\>(.*)\<\/title\>/",$str,$title); return $title[1]; } } function linkToHref($text){ $text= preg_replace("/(^|[\n ])([\w]*?)((ht|f)tp(s)?:\/\/[\w]+[^ \,\"\n\r\t<]*)/is", "$1$2<a href=\"$3\" target=\"_blank\">".getTitle($3)."</a>",...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/96272/java-android-title-toolbar-android-center-the-title-of-the-toolbar-duplicate'>Android - Center the title of the Toolbar [duplicate]</a> </h2><b><a href='http://databasefaq.com/index.php/tag/java'>java</a>,<a href='http://databasefaq.com/index.php/tag/android'>android</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a>,<a href='http://databasefaq.com/index.php/tag/toolbar'>toolbar</a></b><br/> This question already has an answer here: Android toolbar center title and custom font 5 answers i have a Toolbar in my app like that: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" android:background="#263355"...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/148945/javascript-jquery-attributes-title-uncaught-typeerror-why-does-empty-attribute-break-script'>why does empty attribute break script?</a> </h2><b><a href='http://databasefaq.com/index.php/tag/javascript'>javascript</a>,<a href='http://databasefaq.com/index.php/tag/jquery'>jquery</a>,<a href='http://databasefaq.com/index.php/tag/attributes'>attributes</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a>,<a href='http://databasefaq.com/index.php/tag/uncaught-typeerror'>uncaught-typeerror</a></b><br/> It is my lovely title. So I tried to manipulate with title for Scrollme.js. And here my script code which it got it from here. I have some manipulate with that and: $("[title*='aniscroll']").each(function() { $(this).addClass("scrollme animateme"); var title = this.title, when = this.title.match(/when=(.*?)(\s|$)/), from = this.title.match(/from=(.*?)(\s|$)/), ... crop = this.title.match(/crop=(.*?)(\s|$)/)...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/223919/ruby-on-rails-ruby-testing-rspec-title-test-title-with-rspec-in-rails'>Test title with rspec in rails</a> </h2><b><a href='http://databasefaq.com/index.php/tag/ruby-on-rails'>ruby-on-rails</a>,<a href='http://databasefaq.com/index.php/tag/ruby'>ruby</a>,<a href='http://databasefaq.com/index.php/tag/testing'>testing</a>,<a href='http://databasefaq.com/index.php/tag/rspec'>rspec</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> Starting up with this: it "doit avoir le bon titre" do get 'home' response.should have_selector("title", :content => "Simple App du Tutoriel Ruby on Rails | Accueil") end I ended up with that because I'm not on the same version of rspec or rails than the tutorial I'm following: it "doit...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/217288/ajax-facebook-image-share-title-custom-title-and-image-for-facebook-share-button-on-ajax-result'>Custom title and image for Facebook share button on AJAX result</a> </h2><b><a href='http://databasefaq.com/index.php/tag/ajax'>ajax</a>,<a href='http://databasefaq.com/index.php/tag/facebook'>facebook</a>,<a href='http://databasefaq.com/index.php/tag/image'>image</a>,<a href='http://databasefaq.com/index.php/tag/share'>share</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> This question exists in different flavors, but not for AJAX pages. I use AJAX to pull a single video into my page and I want a custom FB share button for it. Everything I've read so far says that FB pulls the required title and image from meta-tags in the...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/153581/javascript-title-space-decodeuricomponent-title-does-not-work-with-decodeuricomponent-and-space'>title does not work with decodeURIComponent and space</a> </h2><b><a href='http://databasefaq.com/index.php/tag/javascript'>javascript</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a>,<a href='http://databasefaq.com/index.php/tag/space'>space</a>,<a href='http://databasefaq.com/index.php/tag/decodeuricomponent'>decodeuricomponent</a></b><br/> I am trying to write with javasctipt line of code, but decodeURIComponent ignore everything after %20 (space). How to solve this? $(".intome").append($('<img title=' + decodeURIComponent(filename) + ' src=' + dir + ' />')); Instead of: <img title:"some text" src="img.png"> I am geting this: <img title:"some" text src="img.png"> JSFiddle: https://jsfiddle.net/emnLy1t5/9/ I...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/71663/java-android-title-toolbar-textcolor-toolbar-title-first-letter-other-color'>Toolbar title first letter other color</a> </h2><b><a href='http://databasefaq.com/index.php/tag/java'>java</a>,<a href='http://databasefaq.com/index.php/tag/android'>android</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a>,<a href='http://databasefaq.com/index.php/tag/toolbar'>toolbar</a>,<a href='http://databasefaq.com/index.php/tag/textcolor'>textcolor</a></b><br/> I want my toolbar to have a colored title. That's not the problem. But how can I achieve that the first letter of the tile e.g. is black and the rest white? Is this possible?<br/> <h2> <a href='http://databasefaq.com/index.php/answer/236201/php-wordpress-hyperlink-category-title-remove-title-link-for-specific-category-in-wordpress'>Remove Title Link for Specific Category in Wordpress</a> </h2><b><a href='http://databasefaq.com/index.php/tag/php'>php</a>,<a href='http://databasefaq.com/index.php/tag/wordpress'>wordpress</a>,<a href='http://databasefaq.com/index.php/tag/hyperlink'>hyperlink</a>,<a href='http://databasefaq.com/index.php/tag/category'>category</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> I'm running Wordpress 4.1. I have two blog pages on my site, and though I don't really know php, I've done some tinkering and figured out how to modify the page templates so each page only displays posts for a specific category. That bit of code looks like this: <?php...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/198350/wordpress-title-subtitle-page-title-how-can-i-change-the-title-of-my-home-page'>How can I change the title of my home page?</a> </h2><b><a href='http://databasefaq.com/index.php/tag/wordpress'>wordpress</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a>,<a href='http://databasefaq.com/index.php/tag/subtitle'>subtitle</a>,<a href='http://databasefaq.com/index.php/tag/page-title'>page-title</a></b><br/> I am using wordpress , I would like to change the name of the home page. At the top , on the browsers tab , it displays (HOME} and it shows up in google as well as (Home - mydomain.net) and then followed by the meta description. I want it...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/153504/javafx-window-title-javafx-window-settitle'>JavaFX window setTitle</a> </h2><b><a href='http://databasefaq.com/index.php/tag/javafx'>javafx</a>,<a href='http://databasefaq.com/index.php/tag/window'>window</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> I have a main class which is the following: public class Window extends Application { @Override public void start(Stage foablak) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("Foablak.fxml")); Scene scene = new Scene(root); foablak.setScene(scene); foablak.setWidth(900); foablak.setHeight(700); foablak.setResizable(false); foablak.setTitle("Window"); foablak.show(); } public static void main(String[] args) { launch(args); } } How can...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/222766/php-class-dynamic-title-how-to-set-dynamic-title-to-extended-public-variable-with-oop'>How to set dynamic title to extended public variable with OOP?</a> </h2><b><a href='http://databasefaq.com/index.php/tag/php'>php</a>,<a href='http://databasefaq.com/index.php/tag/class'>class</a>,<a href='http://databasefaq.com/index.php/tag/dynamic'>dynamic</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> I hope someone can help me. How can I best dynamically change page title, desc, or key vs..vs..by extending the original class? Here is what I have so far: <?php class siteGlobal { public $arr = array('title'=>'Page Default title','desc'=>'Page default description'); public function pageHeader() { ?> <!doctype html><html> <?php }...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/18559/php-echo-title-echoing-webpage-title-from-the-defined-list'>echoing webpage title from the defined list</a> </h2><b><a href='http://databasefaq.com/index.php/tag/php'>php</a>,<a href='http://databasefaq.com/index.php/tag/echo'>echo</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> I got a way to display custom page titles using include fuction. Header: <title><?php echo $pageTitle ?></title> Include: <?php $pageTitle = "Pets:"; include '../header.php'; ?> So as to handle titles easier I'd like the name to come from the predefined list: <?php define('ANIMAL', 'Dog'); ?> How do I add 'ANIMAL'...<br/> <h2> <a href='http://databasefaq.com/index.php/answer/186591/php-post-title-variable-php-title-tag-doesnt-work'>Variable php title tag doesn't work</a> </h2><b><a href='http://databasefaq.com/index.php/tag/php'>php</a>,<a href='http://databasefaq.com/index.php/tag/post'>post</a>,<a href='http://databasefaq.com/index.php/tag/title'>title</a></b><br/> The following code doesn't seem to work and I wonder why? <head> <?php $pageTitle = $_POST["title"]; "<title>". $pageTitle."</title>"; ?> </head> I get the following message: Notice: Undefined index: title All I want to do is to set the title of a webpage based on the input of the user. I...<br/> </body>