Google AJAX search api

Using the Google AJAX search api How can I call a search from my own text box? And parse the results in javascript?

Passing Vbscript to Javascript

I’m using VbScript to get the current hour from the server, then want to pass it to a JavaScript function as shown below. Can you please advise as to the correct way to write this. <% Dim currentHour currentHour = Hour(Now) %> <script type=”text/javascript”> $(function() { var dd = 0 var dsc = (‘”&currentHour&”‘); if […]

How to declare and use the name of a function from a json object?

I have a json object collection of geo locations that I build in the server. Each of those objects has two properties: “marker” and “onClick”. Marker is for storing a Google Maps marker object and the onClick stores the name of the function to be called when that marker is clicked on the map. When […]

JScript: How to give focus to popup window

I’m making new window this way: var WSHShell = WScript.CreateObject(“WScript.Shell”); WSHShell.Popup(“This is popup.”); But window appears under another ones. How can I move it to the front?

multiply in javascript can't get correct answer

Possible Duplicates: Why 81.66 * 15 = 1224.8999999 in Javascript (or Perl) and not 1224.9 ? Is JavaScript’s math broken? var t1 = 5000; var t2 = 0.07; alert(t1 * t2); Here is very simple code that return incorrect result; I predict the result is 350 but the result is 350.00000000000005 How can I get […]

ASP:Checkbox how to autopostback only on checked?

I’ve got a checkbox that’s set up as below: <asp:CheckBox ID=”myCheckbox” runat=”Server” OnClick=”showLoadingScreen(this.checked);” AutoPostBack=”true” Text=”Check me for more data!” /> The function showLoadingScreen is as below: function showLoadingScreen(isChecked) { if (isChecked) { document.getElementById(‘form1′).style.display=’none’; document.getElementById(‘img_loading’).style.display=’block’; } else { return false; } } I’ve added the else clause in hopes that I can get it to only […]

control loaded flash file using php or js

is there a way to write a program in php or javascript that can load a flash file and interact with it? (click on buttons and such)

Auto Slider / Scroller to display dynamic content

Can any one tell me how can i implement a auto slider/scroller in my web page. The slider should show dynamic data from a database. (Ex : Hot jobs tab in the site’s home page ( . Is there any easy way to do this with jQuery ?

Invoking WCF Service through Javascript

How can I access the WCF Service through JavaScript? My problem is, I have to access the operation contracts through the JavaScript (my website is not Ajax enabled). Previously for calling .asmx web services, I am using the following code snippet var xmlHttp = new ActiveXObject(“Msxml2.XMLHTTP”);“POST”, URL, false); xmlHttp.setRequestHeader(“Content-Type”, “application/x-www-form-urlencoded”); xmlHttp.send(payload); xmlData = xmlHttp.responseXML; […]

Assigning function within function object without invoking the function itself

I am trying to assign an function within an function object property without actually invoking then function itself. for instance, I have the following function object class definition function objectOne(name, value, id){; this.value=value;; this.methodOne=methodFunction(this); } the last line this.methodOne=methodFunction(this); I want to pass the current object to the function but at the same […]