I have this: 2010-04-08T01:01:00Z
I want to remove the 'T' and everything behind it as well.
Also I would like to rewrite the date into this format: 08-04-2010
How can I do this the easiest way?
Thanks
How do I use JQuery to get number from the drop down select?
<select aria-invalid="false" id="RatePercent" class="wpcf7-form-control wpcf7-select ratePercent" name="RatePercent">
<option value="">---</option>
<option value="Floating-6.5%">Floating-6.5%</option>
<option value="6 Months-5.65%">6 Months-5.65%</option>
<option value="1 Year-5.85%">1 Year-5.85%</option>
<option value="18 Months-5.99%">18 Months-5.99%</option>
<option value="2 Years-6.19%">2 Years-6.19%</option>
<option value="3 Years-6.85%">3 Years-6.85%</option>
<option value="4 Years-7.19%">4 Years-7.19%</option>
<option value="5 Years-7.40%">5 Years-7.40%</option>
</select>
If you choose 1 Year-5.85%, it returns '5.85', instead of '1 Year-5.85%'?
I have a square <div> (70px x 70px) which will contain an image of a variable dimensions(Square, landscape or potrait). I want this image to be symmetrically centered inside the <div>. how do I get it..?
<div class="img-polaroid" style="width: 70px; height: 70px; background-color: black; text-align:center;">
<image src='.base_url("images/store/images/".$image->image).' />
</div>
The actual size of the image can be greater than 70px x 70px. But it should fit symmetrically in the center.
I also have to make it cross-browser compatible..
Help Appreciated...
I have multiple dynamically generated buttons with a class name of ".button". Each of these are given an unknown ID value used to uniquely identify them. In jQuery I must select one and alert the values.
<div class="button" id="3"></div>
The ID value is dynamically generated, therefore I do not know it. I'm new to jQuery but am basically looking for something like this:
$(".button").attr("id").val();
How do I target one button when there are many? Thanks!
I use Solr in my website, and now I am about to configure my VPS account.
I am at the stage where I need to install java in order to make Solr work.
Now, I only plan on running solr, and using it as it is (I have no java programming skills at all), so my Q is, do I need the entire JDK which includes JRE, or is JRE enough?
Thanks
BTW: My server OS is Linux (ubuntu 9.10).
Thanks
I have a page that scrolls through images, some taller than the others. When a tall image loads it auto-creates a scrollbar in the browser window, causing a width jerk. Is there a way to load a scroll bar regardless of if it is needed, and when a tall image apears it activates itself accordingly, then deactivates its self accordingly when the image changes to a shorter image?
Thank you!
Hi, I have this code which I am trying to change the ID of on.hover.
<span id="slidingProd">
<a href="{link controller=order action=addToCart id=$product.ID returnPath=true}" rel="nofollow" class="addToCart" title="Bestill"
onclick="addToBasket(); return false;" id="fly_to_basket"> </a>
</span>
I tried to use this jQuery, but it doesn't change the ID.
$(function() {
$("#fly_to_basket").hover(function() {
$(this).parent().attr("id",slidingprod(1));
});
$("#fly_to_basket").hover(function() {
$(this).attr("onclick",addToBasket(1));
});
What am I doing wrong?
Thanks :)
On Single page the comment form of Text area is moves Forwarded with threaded comment. Please click on reply to have a look.
A wordpress site.
demo sites example :
http://dikkers.rtcamp.info/?p=205
var element = document.getElementById("divname");
var pagerHtml ='<a href="#" class="prev">< Prev</a>';
for (var page = 1; page <= this.pages; page++){
`pagerHtml += '<a href="#" class="'+ page> + page + '</a> ';`
}
pagerHtml += '<a class="dotline" style="display:none;">........</a>
pagerHtml += '<a href="#" class="next"> Next ></a>'; element.innerHTML = pagerHtml;
if(this.pages > 9){
`for(var i=this.buffer;i<(this.pages-this.buffer);i++){`
`("."+i+1)).hide();`
}
}
I want to add class "dotline" so that when pages are hidden I would do $(".dash").show(); and it would look like 1,2,.....,8,9,10. any ideas would be appreciated.
I recently filled out a form and when I got to the phone number textBox I noticed some really cool things going on. As I entered my number, general phone symbols were getting added automatically. Example:
I start entering my area code '555'
and my input was changed to 1 (555)
to test what just happened I backspaced on the ) and it quickly added it back in.
So my question is, how do I get this input to happen?
In php how would I grab all javascript from a page given it's url? Is there a good regular expression to get the src of all javascript script tags or the script inside of them?
I have my own server (with root access).
I need statistics of users who visit my website etc etc...
I have looked at an app called Webalyzer...
Is this a good choice?
I run apache2 on a Ubuntu 9 system...
If you know of any good statistics apps for servers please let me know.
And a follow-up question: All statistics are saved in log-files right? So how large would these log-files become then? Possibility to split them would be good, dont know if this is possible with Webalyzer though...
I'm newbie in css. My jsfiddle here
http://jsfiddle.net/PAHdH/
<div>
<label>Name: </label><p>John</p>
<label>Age: </label><p>35</p>
<label>Level: </label><p>60</p>
<label>Score: </label><p>5000</p>
</div>
label{
display: inline-block;
float: left;
clear: left;
width: 150px;
text-align: left;
color:black;
}
p {margin-bottom:2px; padding:0;}
?
I would like to change to
Name: John Age: 35
Level: 60 Score: 5000
It should be like a table with 4 columns.
You can view the page I'm referring to here:
http://portal.escalatehosting.com/cart.php?a=add&pid=9
Just enter a random domain name and then you'll see 2 buttons at the bottom. The first button (smaller one) works properly, but the second button (bigger one) isn't adding the order to the shopping cart.
Here's the code for the first button:
<input type="button" value="{$LANG.checkout} »" class="checkout" onclick="addtocart();" />
Here's the code for the second button that isn't working:
<input type="image" src="http://www.escalatehosting.com/images/continueorder.jpg" style="border:0px;" onclick="addtocart();" />
I'm simply trying to replace the first button with the second one so that an image is being used, but can't seem to get the second button to work properly. What have I done wrong? I changed the type to image and the added a src.
It's simple to observe the documents scroll event but I can't seem to find anything relating to the scroll of any other element with css property overflow being set?
To get around this myself i've been observing mousemove which only fires while you hold down on the scrollbar but this would need to be teamed with a mouse wheel observe also to get the full effect.
Could anyone point me in the right direction for a better way of implementing this?
Pretty much all in subject, do i need use javascript to acheive this pr maybe css will fit well? Also I need that solution to work fine with IE6.
If javascript is only solution then how to animate div to change position smoothly?
Thanks in adavnce for any help
for example if I want to put an image wrap another object,possible?
<img src='pic.png'>
<div id='block'>
<p>Somebody
</div>
</img>
I know I should just use div and background-image but I want to use the property auto
img{width:50%; height:auto;}
If I use div , using auto won't works because it won't know the background-image size and will not adjust the div depends on the image ratio aspect.
I am working on a website which needs a header with full background image & 650 height.
At the moment i am using background-size: cover; property with 100% width.
While, it's working it leaves an awkward horizontal scroll of about 50px on right side. Which is lot more prominent in smaller resolutions.
I tried applying background to body instead of header div too. But same thing happens there as well.
You can see a preview here -
http://nitingarg.com/projects/tfe/
I have two div tags. One contains text and one contains an image. They are both side by side and I want the text in the first div to align to the bottom of the image. The image is to the right of the text.
Or should be this way. When I play with various CSS options things start jumping around... HELP !!!
I'm referencing my js files before the closing body tag, hoping they will be parsed last (as they're not needed untill last). However when I analyse activity with PageSpeed in Firebug, the images seem to be requested last.
How can i make the images higher priority than the js?
Why when you buy a online store system that's advertised as Easy for you to manage and allows to change and tweak the look of store pages with unseen ease is it exactly the opposite? When you're offered six months free support do you never get an answer and finally when you make layout changes to one page, does a completely unrelated business logic completely break down?
So really two questions:
Why do authors of such systems put them up for sale before they're completed?
How to exact revenge on said author?
Thanks.