|
Well if you want help you might start of by posting the code that isn't working as well as what firefox is reporting as errors in the error console.
Without that we can't do much, we aint mindreaders.
|
|
|
|
|
hi!
I want to add new cell in page through javascript.
my query is: when i press tab button and when tab button reaches on last cell , the new cell has been added
please help me.
thanx & regards
|
|
|
|
|
What have you got so far? When you say new cell, do you mean you want a new TR with relevant TD items in it? The basics of adding the row are covered here[^].
|
|
|
|
|
sir,
ya, this is my need. but in my last control is dropdownlist. when i press tab on ddl the new TR has been appeared with TD.
thanx
|
|
|
|
|
<html>
<body>
<a href = "http://www.hotmail.com" onmouseover="window.status = 'wanna goto hotmail';return true"
onmouseout = "window.status = '' ; return true"> hotmail</a>
</body>
</html>
what does 'return true' statement means here
|
|
|
|
|
without 'return true' its not wokring
|
|
|
|
|
It means that the function return s a value of true , hence return true;
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
My guess is so that you can use it in a variable. Its mandatory however.
|
|
|
|
|
It doesn't mean to return, you can delete the return statement
sunaSaRa Imdadhusen
+91 99095 44184
+91 02767 284464
|
|
|
|
|
<html>
<body>
<script type="text/javascript">
var date = new Date();
var time = date.getHours();
if (time > 12 )
{
document.write("<b>Good Afternoon</b>");
}
if (time > 17 && < 24)
{
document.write("<b>Good Evening</b>");
}
else
{
document.write("<b>Good Morning</b>");
}
</script>
</body>
</html>
output is a blank page
|
|
|
|
|
if (time > 17 && < 24)
should be
if (time > 17 && time < 24)
(apart from which, as it is, it will write bnth Good Afternoon and Good Morning...)
May I suggest you use Firefox and open the error concole (Tools menu) - this will highlight such erros immediately and greatly help you in debugging your JavaScript code
|
|
|
|
|
I think the statement
if (time > 17 && < 24)
should read
if (time > 17 && time < 24)
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
thanks bro its working now
|
|
|
|
|
I have a page where I need to trigger a function (I'll call hideBox) when another function (which I will call unChecked) is triggered. So let's say unChecked is called when a checkbox is clicked, as soon as unChecked runs, I need hideBox to run as well. The catch here is that i do not have access to the .js that holds the code for unChecked, and even if I did, I know it is being used by several other pages and I can't risk messing them up in the process.
To further complicate things, I can't change any of the properties on the element that calls unChecked since the server side code is really picky about that sort of thing (the rest of the functionality breaks if I change any aspect of the input element. Needless to say, I did not write it.)
I have tried just binding the event with jQuery, but jQuery actually changes the attribute array in the DOM, which screws up the post-back behavior. I have done this exact thing before, but that was using prototype, which isn't an option here (and was for another company so I can't go back and see what I did).
Any ideas?
______________________
Oh Hamburgers!
|
|
|
|
|
If you don't have access and can't change anything there is nothing you can do.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Not exactly true; I have been hamstrung in the past like this and was able to capture the function and essentially add functionality to it, but that was a year ago and I sadly have no access to that code.
______________________
Oh Hamburgers!
|
|
|
|
|
I know of a way that may work, pending on if this hideBox should always override the unChecked when its javascript file is included.
You could opt to override the unChecked javascript method as follows:
var unChecked = (function() {
var original_unChecked = unChecked;
original_unChecked();
hideBox();
});
Its not the neatest way to do it but will do what you want.
|
|
|
|
|
Does anyone know a really good site for codes for the following:
Flash Images
Vertical Scrolling, etc
|
|
|
|
|
|
There are PLENTY around google. If you cant find what ypou want just make it yourself. Its fairly simple , i made one im my first week of learning javacript and jquery (it was simple some buttons and show hides)
It all depends on what your looking for. Although i created a very simple one you could make it much more advanced. You could add little thumbnails instead of buttons , make the background black so the user can see better , add ability to zoom in , just off the top of my head. Probably so many other things i havent even though about.
Again it all depends on needs...
|
|
|
|
|
I would like to replace one interlaced image with another depending on the value a client selects from a dropdown. I currently have it working in that it replaces the image, but the new image isn't displayed until the entire image file has been transferred from the server. I am wondering if there is a way to display the new image as it is downloaded since it is an interlaced png file? My current javascript code is as follows:
function ShowImage() {
var selElmt = document.getElementById('dropdown');
var selection = selElmt.options[selElmt.selectedIndex].text;
document.images['mainImg'].src = selection + '.png';
} And the associated HTML is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<title>Image Selector</title>
<script type="text/javascript" src ="Sample.js"></script>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="application/xhtml+xml" />
</head>
<body onload="ShowImage();">
<select onchange="ShowImage();" id="dropdown" name="dropdown">
<option>Image1</option>
<option>Image2</option>
<option>Image3</option>
</select>
<img id="mainImg" src="" width="100%" title="Sample Image" alt="Sample Image" />
</body>
</html> I know that I could pre-load the images if there were only a few options (as in the example), but I have hundreds of thousands of images which makes that approach unfeasible. Most users will only view about 10 of the possible images, and there will be no pattern to their access so I can't try to predict which images will be accessed. The issue that I am attempting to solve is that when I first load the page, the image loads as it is downloaded (ie, I get a low-resolution image displayed immediately, followed by improved resolution as the interlaced pixels arrive). However, all subsequent calls to the function "ShowImage();" on the "onchange" event of the select object waits to display the image until the file has been downloaded from the server in its entirety. Is there some way to make the "onchange" event show the new interlaced image as it is downloaded?
BEGIN EDIT
I am seeing this behavior in Firefox, but in IE7 it does display the image in an interlaced fashion. However, IE7 only downloads one image at a time since I am really displaying multiple images simulteaneously. So I guess the question is, is there a way in IE7 to download/display all images simultaneously, and for FF is there a way to display the images as they are downloaded? Thanks in advance for any help,
END EDIT
Sounds like somebody's got a case of the Mondays
-Jeff
modified on Wednesday, September 22, 2010 10:41 AM
|
|
|
|
|
Hi
I think you would be able to load images according to value selection from dropdown. you should have to define an Array which have loaded all the images during page load.
Then after you can find the index of selected item from dropdown and you will get the item based on index from an Array.
I hope this will help you to resolve the issue.
Please do let me know, if you want something more...
Thanks,
Imdadhusen
sunaSaRa Imdadhusen
+91 99095 44184
+91 02767 284464
|
|
|
|
|
"All of the images" includes 250 GB of data, with somewhere around 1,000,000 images. Therefore, I cannot load all of them into an array (which is what I would normally do), nor can I predict which of the million images will be viewed by the client. I guess I am hoping to find a way to generate 4-16 simultaneous http requests and display the data as I receive it for all images, instead of downloading one at a time. At least then the client would get a blurry approximation of each image right away, instead of waiting until all prior images are completely finished downloading. Any additional help is appreciated,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Hi, could you please tell what is Ajax. what is javascript?
I am using ASP.Net for developing web application and some one suggest to learn Ajax and Java Script. could you please give me what ara thoese. what is the difference between Ajax and javascript?
|
|
|
|
|
You probably need much more information than can be added to these forums. I would suggest trying a Google search for both subjects and read some of the information you find. You could also look here[^] for more information related to ASP.Net.
It's time for a new signature.
|
|
|
|