I need to make an image change its size according to the window size, that is, if the window is re-sized the image needs to be re-sized to fit the window.
This problem is easy enough with Chrome and Firefox, I just set 'width=100%', but IE isn't as kind...
This problem was raised several times, but I couldn't find a coherent answer, it ...
Ok so my problem is this im trying to get a Pixel collision.
When im using getImageData in a single function call it works.
But if im using Setinterval its like getImageData becomes a Break.
The code after getImageData essent being compiled anymore.
Why is this happening??
If I do this its works:
checkCollision();
function checkCollisi...
I want to check if a mobile browser has javascript enabled before displaying a page to the user. The code I've found from my research is:
System.Web.HttpBrowserCapabilities browser = Request.Browser;
Response.Write(browser.EcmaScriptVersion.ToString());
So to ensure that javascript is enabled on a browser, you need to check wheather t...
My callback code (js file) is something like
function addcontent(Title, tUrl, bURL, Id,purl){
alert(Id)
var runcontent = new Ext.Panel({
id: 'tt' + Id,
region: 'center',
autoLoad: {
url: tUrl,
callback: function(el){
addwindow(el, Id, bURL,purl);
},
scripts: true,
nocache: true...
Hi all
i need to disable the security pop up when i use https:// in the IE browser
and i need the js code or php code to do that thaanks.
...
hi,
i want to send a json string from a html webpage using javascript to a WCF.. is there any good tutorial for that?
this is the code i am using
<head>
<title>Test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" ...
I have a ListView in which I set the following:
- the 'tr' of the ItemTemplate has an id set to 'credits<%#Eval("ID")%>'
- the first column is an asp:Literal control named "literalTreeIcon".
In the OnItemDataBound event I am doing the following:
Literal treeIcon = e.Item.FindControl("literalTreeIcon") as Literal;
if (treeIco...
Hi everyone!
I've got this validation script for my form (a survey). It loops through all answers, and checks if it is a radiobutton, a checkbox, input or textarea question. Based on that, it respectively checks for an input with the value checked (both radio and checkbox), or a value other then "" (input/textarea) (it's not that much,...
I have two objects, and one inherites from the other.
the parent object sends an ajax request to send some contact email.
if i use the child to send the request, all data is empty ... why is that?
the ajax request is sent (to the right url as well) but the data object is empty.
var contact_A = function(){
var self = this;
this....
Hello,
Using easySlider 1.7 I've got it all configured how I'd like it but the last image of my 3 shows up then disappears. Then it loops the 2 images again.
The other 2 hang around for 5 seconds then the 3rd moves in and it gets swallowed up.
This is my easySlider code:
$.fn.easySlider = function(options){
// default configuratio...
Hello everyone,
Sorry for my poor English, my system want to change javascript tree from KoolTreeView to jsTree and I read the document and implement it. The result is something like this
Food
* Fish
* Beef
* Chicken
my javascript and div code
<script class="source" type="text/javascript">
$(function () {
$("foodtree").jstree({
...
I'm using the latest version of Opera (11 alpha), but I ran into this issues with 10 (stable) a while back as well.
I am using the following code to animate opacity:
if($('#detailsLM').length>0){ $('#detailsLM iframe').
animate({opacity:.5},20,'linear').hover(
function(){
$('#detailsLM iframe').animate({opacity:1},600,'lin...
Possible Duplicate:
JavaScript - Array.map and parseInt
I've run into something strange:
["1", "3", "5"].map(parseInt) returns [1, NaN, NaN], but ["1", "3", "5"].map(function(str){ return parseInt(str);}) returns the expected [1, 3, 5].
Why?
I've only tested this in Google Chrome 7.
Edit: Thanks for all the answers. Now ...
in a php file:
<script type="text/javascript">
function click(input){
img = new Image();
img.src = '/click.php?id=' +input;
}
</script>
<a href="http://www.out.com" target="_blank" onclick="click('IDinmysql')" >outlink</a>
click.php updates mysql after I click this link
it works for chrome,but not for IE,what is the problem?
...
I've a Date column in 'dd/mm/yyyy' format and Time column in 'HH:MM AM/PM' format in Google App spreadsheet. In app script, I want to join these 2 values as a datetime. How can I do this?
Example- date : 13/12/2010, time : 4:30 PM
Then I want to get a combined value like '13/12/2010 4:30 PM' as a datetime object.
I tried to parse date ...
My web app includes an ActiveX control. However, when I run the app, I got error "object expected" error intermittently. It seems sometimes the control is not ready when I call its properties/methods. Is there a way that I can detect whether an object is ready using JS?
Thanks a lot.
...
Here's my problem: I'm writing a WordPress plugin that helps budding CSS authors see how css applies to their theme in real time. It's got a numer of nifty features, except one, which is pretty crucial in my mind.
I want to allow them to click an element, see the full selector path to that element (that part is done), and then show th...
hi guys i have a html form where i have a textfield which is having capabilities to enter two digits the first digit is autopopulated to be 0 and i donot want users to change that hows that possible using javascript or jQuery or anything else.
...
Hello!
Is it ok to do this:
var myString="Hello!";
alert(myString[0]); // shows "H" in an alert window
Or should it be done with either charAt(0) or substr(0,1)?
By "is it ok" I mean will it work on most browsers, is there a best practice recommandation that says otherwise etc.
Thank you.
...
ok my slideshow is my body background and the imgs are in img tags like this
<img name="pic" src="../../Content/images/bg.jpg" style=" width: 100%; position: absolute; top: 0; left: 0; z-index: -1;width: expression(document.body.clientWidth + 'px'); " alt=""/>
my problem is it plays but then stops on the last image instead of bei...