Ok, this one is driving me crazy.
I have a html table with about 100 rows. I want the rows to change color when you move the mouse above it.
I tried :
:hover in CSS,
onmouseover/onmouseout events in javascript
jquery .hover
jquery .mouseover/.mouseout
mouseover on the table with e.target etc
All work perfectly fast in Firefox, an...
Hello there!
I'm new to Telerik MVC controls, so excuse me if this is something simple.
I started out with making a new TelerikMvcApplication solution.
Site.Master:
</div>
<%: Html.Telerik().ScriptRegistrar().DefaultGroup(group =>
group.Combined(true).Compress(true).Add("Index.js")) %>
</body>
</html>
Index.aspx:
...
All,
This should be a pretty simple question, but I haven't found quite the answer I'm looking for yet.
I have a parent HTML window. When a user clicks a button on that window, it opens a child window (e.g., "childA.asp")
That child window includes a form. Here's what I'd like to happen when the user submits that form:
The data in t...
I am using Google maps API version 3. I would like my double click event handler to work as follows:
google.maps.event.addListener(map, 'dblclick', function(e) {
if (/* ctrl is pressed */) {
doSomething(e)
} else {
doSomethingElse(e)
}
});
It looks the the event handler only provides a MouseEvent which does not contain ...
I am using javascript to run a XMLHttpRequest to a PHP script which returns data. Basically I want to be able to provide the user with a progress bar (instead of a spinning circle or something) that shows the progress of getting and receiving the data. I know if I was getting a file, I could just check the content length header and use t...
I know that certain changes to the DOM of a web-page (by JavaScript) will result in the rendering engine calculating a new layout for rendering (not sure if my terminology is correct).
I have a process that updates data fairly frequently with comet style long-polling requests. Some of these updates are fairly frequent. I know that a...
I get a date back from rails that looks like:
"2010-10-29T00:00:00+00:00"
And I'd like to convert a javascript date created by 'new Date()' to that format. Is there an easy way?
...
I have the following scroll script, which scrolls round the page fine, works exactly how i want it too.
$(function(){
$('a[href*=#]').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {
var $target = $(this.hash);
$...
Is there any way to restrict what types of files the yahoo mediaplayer plays? We don't want it to play flv files but we do want it to play MP3s.
Background
Yahoo provides a really nice browser based mp3 player in the form of a simple javascript include. It will find any link to media file on your web page and adds a nice little player ...
I'm trying to allow the user to draw a rectangle on the canvas (like a selection box). I'm getting some ridiculous results, but then I noticed that even just trying the code from my reference here, I get huge fuzzy lines and don't know why.
it's hosted at dylanstestserver.com/drawcss. the javascript is inline so you can check it out. I ...
I want to create a invisible form anywhere into a HTML page dynamically using JavaScript and then submit automatically.
I want to create the form given below:
<form name='myForm' method='post' action='http://www.another_page.com/index.htm'>
<input type='text' name='myInput' value='Values of my input'>
<input type='hidden1' value='Hid...
I have developed a script that receives json data from a php script using $.getJSON. The JSON data looks like '[{"options":"smart_exp"},{"options":"user_intf"},{"options":"blahblah"}] '
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text...
This my page here, the header and left nav collapse. the problem when the header is collapsed the left one wont work at all. If the left is collapsed. The header always will. Any suggestions.
<!DOCTYPE HTML>
<html>
<head>
<title>Myrexis CTMS » Login</title>
<script type="text/javascript" src...
Hi,
I need to open a specific SSL secured site inside an iFrame of an Adobe-AIR application written in Javascript.
For that reason I've build a small test application which opens the site in a iFrame - this works well, but the server certificate is not accepted. A Popup shows up and prompts the user to accept the untrusted certificate....
When using minified or generated javascript I would like to be able to see the original source an step through the original rather than the generated output.
This would be in much the same way debugging symbols for compiled binary files let you see the original source.
The original source might not even be javascript but some equivalen...
I have the following code
Response.TransmitFile(filePath);
Opens the new window using the following line of code
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Download", string.Format("window.open('{0}', target = 'new');", downloadURL), true);
This works on IE8 however doesn't work on IE6 and IE7
anyidea what might...
I have been using the url intercept method to pass data from javascript to objective C by passing the data as url encoded parameters and using NSURLProtocol to intercept the request however I am now wanting to send larger amounts of data like say 10,000 character long strings but this does not seem practical to do in a GET request. Righ...
How do I remove the selection from the input type=file, when something is entered in the textarea. The following Jquery fails, because IE replaces the local drive and directory path to something like, C:\fakepath\file.txt.
Many thanks in advance.
$("textarea#txt_id").live('keyup', function(){
$('input[type=file]').val('');
});
<tex...
Possible Duplicate:
Include javascript file inside javascript file?
Hello,
I want to include a javascript file in a javascript file.
include('filename.js'); is not working
What is the right code.
Thanks
Jean
...
hi!
this is my first post so i am sorry for any mistakes i make :)
i know the title is confusing, but i will try to explain what i want :)
i got this website, on the website there is a schedule, this schedule change when you change different values so that it consist with the appropriate person. when you change a value a javascript fu...