Hi guys,
I got this code on here recently
<script type='text/javascript'>
$('#discountselection').hide();
$('#No').click(function(){
$('#discountselection').hide();
});
$('#Yes').click(function(){
$('#discountselection').show();
});
</script>
The aim being to hide a drop down box depending on wheth...
I am trying to register below mentioned javascript for using with GridView to add freeze functioality on GridView.
When compiling an error is thrown Microsoft JScript runtime error: 'Sys' is undefined
How it can be fixed.
<script language="javascript" type="text/javascript">
// This Script is used to maintain Grid Scroll on Partial...
Hi,
Im building a small webshop in .net .The webshop solution will contain several "webshops" that use the same server. My question is this: When i have a product menu and product listing. Will there be any performence problems with using jQuerey Ajax calls to get the selected product/products? There will be many calls to the same webse...
Hi ,
I am looking for to fetch current tab (loaded or blank ) URL of Firefox browser.
How to acheive this ? using currentURI property in javascript.
Thanks a lot,
-Pravin
...
I know, I've found many examples to sort an Object. But that makes me a little bit confused (I am not so pro to check wich is the fastest and cleanest method for me).
I hope somebody can help.
My Object looks like
tt_results = {};
tt_results[6815631] = new Array('85', 'blibee', 'blaerb', 'bluo', 'tkone', 'tkeeee_seve', '382261471' );...
Hello.
I want to create an component like Adobe gradient picker in Javascript and jQuery. I want to use the jQuery gradients plugin. there is a div with 2 markers left and right. when I clicked in bound of div this automatically add a marker, and when I double click on this it open a jQuery color to select a color. Also the marker shou...
In jQuery is there a way of having something like:
if (button.click() || (keydown == 39)) {
//stuff
}
...
Hello,
I ran across a bug with form submitting with the Return key in IE and wasn't able to find any documentation.
Take a HTML form with an image submit button, then change the "disabled" attribute to true on one or more fields in that form, than change it back to false or remove it and IE won't submit the form with the Return key any...
Hey again (on a roll today).
In jQuery/Javascript is there a way of effectively having this:
var myArray = [ 'zero', 'one', 'two', 'three', 'four', 'five' ];
//get input from user
if (inputFromUser == anythingInArray) {
alert("it's possible!);
}
...
I am having a textarea and a button. There are two classes buttonEnabled and buttonDisabled. I want to apply buttonEnabled only when there is some text in the textarea. So if user is typing in a textarea then button looks enabled and when he clears all the text either by selecting and cutting it or by backspace. I want my button to look ...
Is there a framework that I could integrate into my web application in order to automatically log and upload error messages, exceptions and profiling stats produced by the JavaScript client to the server?
I believe that TestSwarm or Selenium could be adapted to suit my needs, but it would be great if you could recommend a specialized so...
Hello All,
I am having a textbox in my jsp and would like to send an e-mail to the receipent which his/her e-mail is entered in the textbox.
Can you please guide me on how to do that.
I have just checked out this code:
<html>
<head>
<title>mailto Example</title>
</head>
<body>
<form action="mailto:[email protected]" method="post" enct...
Hey everyone, I've been creating a little chat bot (for fun and practice).
I have the following function which isn't working correctly (FULL CODE HERE):
function runAI() {
if (i.val().length > 0) {
if ($.inArray(i.val(), helloInputArray)) {
r = Math.floor(Math.random()*4); ...
Hi,
I'm trying to add the user's Google StreetView as the background in a php page after he is authenticated, but in Chrome(Windows) it is not considering the z-index of the div (it is in), and also the value of wmode parameter is being "" (empty), I'm trying to update the wmode parameter value to "transparent" then sometimes it works f...
Hi I am trying to create one draggable iframe and got success in that but problem is if i pass pdf or doc file to iframe location like parent.frames.iframe2.location='file://test.pdf' am not able to move iframe from position and iframe not showing selectable area for drag.
...
Hi everyone,
I am looking into implement a lazy load feature on image on a website, however I am wondering if there is any SEO downfalls to this. The script i'm looking into is the following:
http://www.dynamicdrive.com/forums/showthread.php?t=46393
Bascially, when an image tag appears in the users viewing area of the browser, javascr...
Hi guys,
I have this piece of javascript which is supposed to validate on the clientside. I created it using this tutorial:
http://www.php-mysql-tutorial.com/wikis/php-tutorial/form-validation-using-php.aspx
Unfortunately I'm getting this warning:
"There is a syntax error on line 48. Code hinting may not work until you fix this error...
Hi,
I am transferring the focus to a control on onblur event of a dropdown, the focus is transferred to the desired control and also the onblur event written for that control is getting executed which I don't want. How do I prevent this from happening?
Thanks
Kishore
...
I am developing widgets using JMAKI. In this I have data in JSON file. what I have to do is,I have to read the json data through java script and to display that data in a HTML file as like in JMAKI widgets.
...
If I have a function as such:
function doStuff(arg) {
arguments[0] = "4" + arg;
console.log(arg);
console.log.apply(null, arguments);
}
Clearly doStuff("name") prints "4name" twice.
Do arg and arguments[0] point to the same thing? Can I use them interchangably. Is javascript doing anything internally that I should be aware a...