javascript

Estimated number of search results Google search API

When you search google, it estimates the number of search results e.g. Results 1 - 10 of about 103,000,000 for hello world How do I get the number 103,000,000 programmically? I'm not interested in the results, just that number, and I need to do about 100 of these searches at a time so webpage scrapping is not an option since googl...

When you write a Titanium app, is the source code visible to users?

When you write an HTML/CSS/JavaScript app for Adobe AIR, the source files sit in a directory visible to anyone who looks. Appcelerator Titanium lets you code in JavaScript, Python, and Ruby. Is the bundling similar to AIR, with all the source exposed? ...

How does Stackoverflow do the "You earned a new badge" window?

Possible Duplicates: Notify panel similar to stackoverflows How to show popup message like in stackoverflow How does Stackoverflow do the "You earned a new badge" window? (the orange one that pops up at the top of the screen, I believe its the one that shows you the FAQ when your not logged in). Anyone have a code sample to ...

reading in utf-8 file (javascript XMLHttpRequest) gives bad european characters

Hi there, can anyone help? I have small procedure to read in an UTF-8 file with javascript using XMLHttpRequest.. this file has european characters like miércoles sábado etc.. Notice the accents.. But when being read in .. the characters are all messed up.. I have checked the file and it is perfect.. it must be the procedure for readin...

catch image dragged into a text field in javascript

Hei, i want to allow a user to drag an image from a web page into my web app and then store and use the image url elsewhere in the application. So i'm creating an input field as the drag target. But since that allows to drop any draggable web object (like links), i need to do some error checking. I could put a button there, but it woul...

Referencing Javascript libraries with Tomcat

I am using Eclipse Ganymede and Tomcat 5.5. I would like to add some javascript and especially ajax functionality to a dynamic web project and need some help. I would like to use jquery (but I am open to other suggestions, if you tell me why another library would be better in this case, but I have chosen jquery because it is supposed to...

Access to the 'this' object in methods higher in the call stack

I have the following JavaScript: function b() { alert(arguments.caller[0]); } function X(x) { this.x = x; } X.prototype.a = function(i) { b(); } new X(10).a(5); This will show the message "5". However, I want to show "10", i.e. in the function b I want to access the "this" property of the caller. Is this possible, and h...

Creating website

Hi, I want to create a website over banking. I just wanna know what's more do I have to know to create website. Is the knowledge of servlet, JSP, HTML, CSS is enough to make a website? Or do I have to know Javascript as well? Thanks in advance. ...

JSON stringify error on Silverlight event argument

I have the following Silverlight code: [ScriptableType] public partial class Page : UserControl { [ScriptableMember] public event EventHandler<UploadChangedEventArgs> OnFileProgressChanged; private void FileProgressChanged_Click(object sender,RoutedEventArgs e) { // test reasons only OnFileProgressChanged(null...

jquery tablerow click function question

Hi, I have a function that allows users to edit a row in a table by opening the data in a modal. Right now the whole row will fire the modal. What I want is to isolate the last td that contains a link that fires a function that readies the data for processing. What happens is that when that last td is clicked the modal opens AND the r...

Can I pass a linked list from a C# Web Service to a JavaScript function?

Hi, I've created a linked list class in my JavaScript code and then translated that code into C#. Right now I have a JavaScript function that calls a Web Service in order to get an array of names, the JavaScript onComplete function then takes that array and makes it into a linked list. Is there any way I can create the linked list i...

Hiding/Unhiding Control in Gridview's column using javascript

In gridview's column i have a linkbutton and a label under it. I want to hide/unhide label when linkbutton is clicked. I want to use javascript because i don't want any postbacks. My java scripts function needs to receive the reference of label which corresponding to the linkbutton that was clicked. (then i will use document.getElement...

Why document.cookie hasn't show all the cookie in the site???

I go to a forum which was use vBulletin 3.8. When i login, i use firebug to see what cookies was set. I see those cookie: __utmb, __utmc, __utma, __utmz, bbsessionhash, vbseo_loggedin, bbpassword, bbuserid, bblastactivity, bblastvisit They all were set value, and those domain was same. But when i you javascript to see them, it only sa...

How to select value of adjacent hidden input with Jquery?

When a user clicks on the img at the end of the following "li", I want to get the value of the hidden input two elements previous. <ul id="theLists"> <li> <input class="checkbox" type="checkbox" name="row"/> <input class="contentId" type="hidden" value="64" name="id"/> <div id="64" class="editable">Peanuts for me</div> ...

Jquery validation plugin and switching required field

Yup, basically, I am building a web form that need to provide different required form and validation function fallow by selected country. I am using <script type="text/javascript" src=" jquery-1.3.2.min.js" charset="utf-8"></script> <script type="text/javascript" src=" jquery.validate.js" charset="utf-8"></script> and here is my JS c...

how to trigger a function on defined date

hi i am doing a project where i need to notify a user through email if his account has expired, that is when a user signsup his sign up date and expire date is inserted into the database now what i need to do is , i need to fire a function when the users expire date is passed and send an email notifying user about the expiration of ...

title bar is missing in YUI

I'm using the YUI Rich Text editor on my site. I'm loading it using the load javascript from Google. When I try to create a link (or any other action that creates an "settings" box, the title bar is missing, see picture here. You can see how it supposed to look over here at Yahoos site for YUI. I'm using this code in the <head>-tag: <!...

Grails: Javascript files in views folder

Hi all, I'd like to split my views in Grails into 2 files a .gsp file and a .js file so that I get a cleaner Javascript separation from my views. So here's an example: views/index.gsp views/index.js views/home/index.jsp views/home/index.js But when I simply add the index.js script reference like this: <script src="index.js" type="te...

subtle differences between javascript and Lua

i simply love javascript ... it's so elegant (imagine the quiet sound of lovestruck fanboy sighing in the background). so, recently i have played with Lua via the löve2d framework (nice!) - and i think Lua is also great. they way i see it, those two languages are very similar. there are obvious differences, like syntax problem domain...

Hiding/Unhiding Control in Gridview’s column - shifting problem

This is a follow up to my previous question: link text In gridview's column i have a linkbutton and a label under it. I want to hide/unhide label when linkbutton is clicked. I use javascript because i don't want any postbacks. The code: protected void gvwComments_RowDataBound(object sender, GridViewRowEventArgs e) { if (e....