javascript

How to implement YQL paging?

I've read the YQL guide, and I keep reviewing http://developer.yahoo.com/yql/guide/yql-o...entables-paging and I have been looking at a few examples, but I'm still left pretty confused how YQL paging works. The problem that I am trying to tackle is creating a YQL open data table for the Mozilla labs Jetpack Gallery's jetpacks pages htt...

Editing a labels text value through JavaScript in VB ASP.NET

I have a simple form containing two text boxes, I am attempting to apply some validation to the first text box using JavaScript. This is the first time I have attempted this and am having some trouble. I have a label beside the text box stating an error, this labels visibility property is set to False. I wish the labels visibility to tu...

Google Maps Marker Click Event

I'd like to populate a google map with several markers. When the user clicks on a marker I would like it to send the user to a different webpage which is designated for that location. (for example: lets say the markers represent homes, when you click on a marker it takes you to a page with more information about the home) What is the s...

How do I dynamically create a document for download in Javascript?

I'm writing some Javascript code that generates an XML document in the client (via Google Earth plugin). I'd like the user to be able to click a button on the page and be prompted to save that XML to a new file. If I were generating the XML server-side this would be easy, just make the button open the link. But the XML is generated clien...

How to show server errors in Rails 2.3.5 with JSON and jQuery

I've got in-place editing on a page in my app (using Rails 2.3.5 and jQuery). I want to know how to display an error on the page when the update fails. I'm using ajax (an XMLHttpRequest) to save an update to a Comment object. The controller has an update method like this: def update @comment = Comment.find(params[:id]) respond_to d...

Traversing/Manipulating new window from parent window with jquery

I found a question already with a possible solution, but I had already tried the method suggested before reading it, and it even says it's inconsistent. So I guess I'm wondering why this doesn't work: $("img").click(function() { var imgwindow = window.open('imgwin.html','','width=460,height=345'); alert(imgwindow.find("img").att...

Textarea for my web application

Hello ... I am developing an application web based which would let the users extend a part of an applcation using javascript via java.scripting http://java.sun.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html The problem is that the user should write only some coditions and i want if possible to colour some speci...

jquery - Create a List of all LIs Name's

Given the following block of HTML: <ul id="taglist"> <li><a name="45" href="">Product 1</a></li> <li><a name="1146" href="">Product 2</a></li> <li><a name="13437" href="">Product 3</a></li> <li><a name="51" href="">Product 4</a></li> </ul> Is it possible for JQUERY to return a STRING, one variable with the name values: alert(taglists...

In Javascript/Jquery, how do I display a div for 5 seconds, and then have it fade out?

For example, when someone clicks on a button. ...

How do I reset a form in an ajax callback?

I am sending a form using simple ajax and returning the results in a div above the form. The problem is that after the form is submitted and validated, I display a thank you and want to reset the form so they don't just press the submit button again... Can't seem to find the right code to do this... <form id="myForm" target="sendemail...

Slimbox 2 Plugin, jQuery Flickr, and IE8

Hello, I am currently developing a site that I make use of two jQuery plugins: jQuery Flickr plugin jQuery Slimbox plugin The first plugin is used to pull in flickr photos from a specific account. These photos are displayed as thumbnails on the page. I am then using the second plugin to display larger views of these images. Because...

context.scale() with non-aspect ratio preserving parameters screws effective lineWith

I am trying to apply some natural transformations whereby the x axis is remapped to some very small domain, like from 0 to 1, whereas y is remapped to some small, but substantially larger domain, like 0 to 30. This way, drawing code can be nice and clean and only care about the model space. However, if I apply a scale, then lines are a...

Why click event not work when I click a image at runtime?

Now I am developing a Firefox extension , and when web page I want to create a image at runtime, now I can show the image , but When I click it to invoke a method , why it is not work? it is my code: var _img = doc.createElement("img"); _img.setAttribute("id", "floatImage"); _img.setAttribute("src", "abc.jpg"); _img.setAttribute("onc...

Performance of browser plugin based RIA vs. Java Script based RIA

Hello. For my data intensive web application (heavy forms & complex reports), from performance standpoint, which is better ... a browser plug-in based RIA (say SilverLight) or Java Script based RIA (say ExtJS)? At this moment, we can avoid the discussion of plug-in availability, etc. My only focus is performance. Reasoning will be app...

IE will ignore javascript files included that's using a different encoding ?

Anyone experienced this? Is it a bug? ...

2 IE8 behave differently

Hi, I am having a problem where 2 IE8 (with the same version number 8.0.6001.18702) behave differently in processing a webpage. The misbehaving one is of course used by the client :) , and I just cannot reproduce it on my machine or on our test machine. It is all good on Firefox btw. How can I narrow down what is causing this problem? ...

Does anyone know where I can find this HTML code?

I'd like 3 SELECT boxes that allow people to select the month, day, and year. I'm sure there are HTML pre-sets like this, right? January 5 2006 And the user can select the date, which is just option boxes. ...

how the google obtains IP address for Last Account actiivty

can anybody let me know the logic they use to get the ip? ...

Can we use javascript in C# ?

Hi, I want to use Javascript functionality in c#. Is it possible to use Javascript in c#? If yes how? Can anyone provide me some guide or sample code? Thanx ...

Where do I put the JQUERY UI theme folder?

This is my code. It turns my text box into a date picker. <script type="text/javascript" src="{{MEDIA_URL}}template/js/jquery-1.4.1.min.js"></script> <script type="text/javascript" src="{{MEDIA_URL}}template/js/jquery-ui-all.min.js"></script> <script type="text/javascript"> $(function() { $("#start_date").datepicker(); ...