Is there a way to make jquery wait a certain about amount of time before mouseout event is fired?
It is firing too early at the moment and I'd prefer to wait 500ms before it evaluates the mouse out. An example of the code I'm using below.
$('.under-construction',this).bind({
mousemove: function(e) {
setToolTipPosition(this,...
<script type="text/javascript">
/* ... */
</script>
vs.
<script language="Javascript">
/* ... */
</script>
Which should be used and why?
(edit) Or, the third alternative: omitting either of these, such as the example code in jQuery's API reference:
<script src="http://code.jquery.com/jquery-latest.js"></script>
...
I have the following javascript code:
$.get("categories/json_get_cities/" + stateId, function(result)
{
//code here
}, 'json'
);
And the PHP code which processes it basically outputs something like this:
function json_get_cities($stateId)
{
//code here
echo json_encode(array('citie...
Essentially I'm trying to
navigate to a webpage
wait for that webpage to load
execute a JS function/alert/whatever on that page
all from a single bookmarklet. Is this possible? I can't seem to get onload to work for me, but that may be because of my own personal failings here.
...
Hello. I've got some text where some words are "real" words, and others are masks that will be replaced with some text and that are surrounded with, say, "%". Here's the example:
Hello dear %Name%! You're %Age% y.o.
What regular expression should I use to get "real" words, without using lookbehind, because they don't exist in JavaScrip...
There are lots of quasi-duplicates to this question, I know: http://stackoverflow.com/questions/106646/webpage-template-where-content-takes-full-height-of-viewport-if-has-1-line-minus is one, but that's not what I want; there's this hilarious question: http://stackoverflow.com/questions/371781/how-to-create-an-html-css-page-with-header-f...
Hello stackoverflowers, hope you all are doing great.
I admit I got kinda confused with Http requests and responses, so I'll begin by presenting my problem.
I made a webpage that takes user input, processes it and uses XMLHttpRequest POST to send the processed data to another page and display said data into said page.
Now, I can form ...
I have a small javascript pricing calculation that is not working on a friend's PC, but it works fine on my Mac. I'm guessing it's a semi-colon or something small that's not in the correct spot? Please help if you can?! The full page can be found @ http://procollage.com/pricing/photo-collage-pricing.html. Thank you all, again, in advance...
strong text
how can i access an image using javascript
strong text
Help me with the exact working code inhtml tags
...
I'm using Asp.NET MVC and have a huge dependency on JQuery throughout my entire application (not sure if that's important here or not). I'm trying to build a set of js library files to go along side my views. The problem that I'm faced with is that I need a way to manage the server side location of my files and action links for all of my...
In the program I'm writing I need to be able to access the node that is sending an event in javascript.
I have been unsuccessful in using this, as it is referring to the object in my code. So the following doesn't work.
var node = new node();
// Node Object
function node() {
// Create Sibling Node
this.createSibling = function() {
...
<script type="text/javascript">
var str="Jestem bardzo, bardzo zadowolony. Można powiedzieć, że jestem również uszczęśliwiony i uspokojony.";
patt1=new RegExp( "\bi\b", "g"); //<--- (to find the single word: "i")
document.write(str.match(patt1));
</script>
It works well as var pattern = /\bi\b/g; but not when using RegExp("\bi\b","g...
On a website I'm working on, I need to load a tracking script 10 seconds after the page loads. I found a snippet to do so, but I've hit a snag. After waiting 10 seconds, the page goes white. The URL doesn't seem to change, but the page is no longer visible and the throbber starts spinning.
Here's what I'm using to load the script:
func...
Hi,
I'm looking for an object browser (in sense of smalltalk class browser) either desktop or better through web, for Rhino. Could anybody point me to such?
...
I am stuck in implementing the following:
User starts typing in a textbox.
The javascript on page captures the first character typed, validates that it is an english alphabet (a-z,A-Z) and converts it to lowercase (if necessary).
Make an XMLHttp request based on the input (i.e. if first input character is a, get a.xml, if b get b.xml a...
I know both languages are from the same ECMA standard. It seems that the two are becoming very similar with JavaScript adding event listeners and the such. I was wondering what the differences are?
...
I have a simple asp.net website.
In JavaScript, I added a handler to the window.onerror event.
When I debug in Visual Studio, their handler seems to override mine. When any JavaScript error occurs, it enters their debugger and my onerror function never gets called.
Is there anything I can do to make mine still operate without disabli...
I am developing the back end of a CMS that I have been working on.
I have a HTML table that I want the user to be able to add and remove rows from. Each row will contain various user inputs (textboxes, checkboxes..). Then when the users has finished it will be saved in the database.
I am wondering what the best way to approach it is.
...
I'm Working with form validation and fields for the first time without inline event handling. I can't find an example of how to pass a integer value, do a operation on it and pass to another field. This is what I'm up against:
FORM LOOKS LIKE THIS:
ITEM CONTAINER QUANTITY PRICE EXTENDEDCOST
Small Beer Bottle,Can ...
string jSFile = ResolveUrl("~/MyProject/JavaScripts/dir/test.js");
if (!System.IO.File.Exists(jSFile))
{
...
}
This code doesn't work and I guess it's the jSFile that doesn't work well with the IO.File.Exists but I know the jSFile has a valid path because when I use few line later
Page.Clien...