I had a textarea, when i post that content in textarea, I only get only first word before a space is given. For example if my value in textarea is 'He is mad man', i get only 'He'.
plz Help me to sort out this problem;
Code:
<form name="SendSMS" method="post" action="admin_main.php">
<div class="reg_item">Category </di...
I have a TinyMCE that is set over a TextArea, and I want this editor area to ocuppy all the space of its parent div, all times.
I have a JS function that get the current space and set the textarea.style.height to it, but when I enables TinyMCE it seems to stop working.
Also, the textarea has width: 100%; it doesn't resize by HTML rende...
How can I add a span tag from a code behind? Is there an equiv HtmlControl? I am currently doing it this way. I am building out rows to a table in an Itemplate implementation.
var headerCell = new TableHeaderCell { Width = Unit.Percentage(16)};
var span = new LiteralControl("<span class='nonExpense'>From<br/>Date</span>");
headerCell.Co...
I have prototype 1.5 and I can't get the "next" function to work:
Event.observe('sameAsBefore', 'click', function(item){
checkbox = Event.element(item);
if (checkbox.checked == true) {
checkbox.next('address1').value = $('hidden_address1').value;
}
}
Together with the following html:
<div class="some_div">
<a ...
pic_display+="<img src='"+pic_url+"' onClick='swapImage("+pic_url+");'>
I am adding an image to the innerHTML of a div with the code above.
I want to call the function swapImage(pic_url) whenever I click on the image.
I have still not figured out the syntaxes in javascript, always confuse them with php.
How should it be written ?
Th...
If I have a variable 'path' which contains a full path with directories and all, to the filename, how can I strip everything except the filename?
ex:
Convert dir/picture/images/help/filename.jpg into filename.jpg
Thanks
...
hello, I'm trying to get the selected option via jQuery everytime I change it, and eventually the value attribute, buy I always have problems with js!!
HTML
<select>
<option value="us">United States</option>
<option value="gb">United Kingdom</option>
<option value="de" selected="selected">Germany</option>
<option value="fr">France<...
If a web page is zoomed out/in in any modern browser, then how I can find size of a DIV element at 100% zoom?
EDIT:: I asked another similar question here, which was unanswered.
...
Usually, when a refresh is made on an HTML page, the values for input fields are kept (unless you do Ctrl+F5).
Is there a header or other type of setting than can change this behavior, without chaging anything on the form or input itself?
I have a site where the input value is not kept after a page refresh in Production. However I do n...
I have an HTML document (here), which creates an iframe-based media player for a collection of songs within albums (I just used letters to define these albums and songs in the mymusic array, for simplicity).
Focusing on the top 3 iframes, the way I have set out the user interaction is to generate the HTML for forms of available albums a...
I have an unordered list I'm using for a menu. Each item has a background image and a :hover image. The background image on the first element is different that the rest, so I use the following to style it, which works fine:
#prodNavBar ul:last-child li:first-child {...}
Since I want a roll-over image on this element as well, I've trie...
I ran the Google Page Speed Firefox extension on a few pages, and under "efficient CSS selectors" it listed various things that are inefficient in my CSS.
But some of the messages seem a bit cryptic - what do these (in bold) mean:
div#menu h3.soon small
Tag key with 2 descendant selectors and ID overly qualified with tag and Class...
I currently have the following html which does not show the ordered list properly on IE7:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<style>
li {
min-height: 20px;
}
</style>
<ol id='id-booking-steps'>
<li>Stackoverflow</li>
<li>Superuser</li>
<l...
http://www.winteradagency.com/Arvin/advantages/advantages.htm
I need the logo in the top left corner to link back to the home page for this site. I can't figure out how to make a tag have an anchor tag in it.
thanks!
...
I have a div tag which is filled with script via an ajax call, but the script does not execute.
Is there a way to cause the script to execute?
...
Hello
I have a while loop that goes through a table and I echo the results within it, I also have a while loop that looks at a image directory and I can output the paths to images. My problem is I want to output the image path in the other while loop where my html and image tag reside. I have tried putting one while loop inside the othe...
Hi, I just want to do some straight conversion (almost just search and replace) but I'm having trouble just getting things to sit in place - I'm ending up with links out of place and duplicated content. I'm sure I'm doing something silly with my attempts at traversing the xml : )
I'm trying with:
builder = Nokogiri::HTML::Builder.new d...
I've put up the standalone page at http://stevenxu.ca/uploads/layouttest.php.
The page experiences a peculiar failure when running in IE7 (strictly IE8 in Compatibility View). A similar error occurs in IE6 when I use XP mode (along with a few other errors), but I'm not too worried about IE6 compatibility.
Namely, the input box is left-...
I am doing iphone web development and I've noticed that: gesture events can also be touch events, which means a touch event handler also fires up when there is a gesture event.
Any way that I can add specific event handler to gesture (not touch)? Or how can I know if this is a pure touch event or a pure gesture event?
...
I have a small application that gives the current location: longitude and latitude.
Now I have to browse to google maps with the longitude and latitude.
Please suggest how I can do this.
...