javascript

Creating a null hyperlink

Hi, I want to create a hyperlink that does not link to any page. When clicked it executes a javascript function i have defined. So, i created a link as follows: <a onclick="fun()"> SomeText </a> But, the mouse pointer does not change to the hand symbol when we hover a mouse over the link. So, i changed the link to <a href="#" oncli...

What are the scan codes for:

What are the scan codes for: PageUp PageDown Up Arrow Down Arrow Space Bar ...

JavaScript libraries

Hi Its kinda difficult to get into Web development. I've been working on winforms for the last 5 years. So i'm struggling to switch from the one to the other. Some time ago, I worked with JavaScript, but no-a-days there are tons of JavaScript libraries - JQuery, JSON, MooTools... My Question: Perhaps this is a stupid question. What ar...

Change the width and height of a swf dynamically

I'm trying to use the following js to change the width and height of a swf. $('object').attr({'width':100,'height':100}); $('object embed').attr({'width':100,'height':100}); The script works well on firefox, safari, IE8. However, it doesn't work on IE7. Is there any solution? ...

Hide link text from statusbar in wordpress

Hi, I have a text widget in my wordpress blog. Inside the text widget, i have a link. When mouse is hovered over the link, the link text shows up in the status bar. To prevent the link text from showing in the status bar i tried using: <a href="#" onmouseover="window.status=''" onclick="fun();return false;" > </a> But, still the lin...

Using Ajax.Request response inside of an object ? - PrototypeJS

Hi there, for past two hours i've been trying to pass responseText to the object i'm calling Ajax.Request in. And it just isn't happening :) Here's the code; var traziSuggest = Class.create({ initialize:function( elemenat, sugDiv ) { this.elemenat = $( elemenat ); this.elemenat.onkeyup = this.uzmiSug.bindAsEventList...

Is it possible to make JqGrid send a JSON QueryString to server ?

Is it possible to tell jqGrid to send all search options in JSON format ? Hence I won't have to reformat it on the backend side. ...

Bookmark function & Opera 9, 10

This code function bookmark(url, title) { var a = document.createElement('a'); a.setAttribute('href',url); a.setAttribute('title',title); a.setAttribute('rel','sidebar'); a.click(); } doesn't work in Opera 9 and 10. It just takes you to the page I set in url param. Is there code compatible with Opera? ...

Window.open location =no does not work.

Hi. I need to create a popup in my web app to load a unity file. For that I'm using Javascript's Window.Open. I don't want the user to see the popup's URL or to give him the chance to alter the URL. According to this link: http://javascript.about.com/library/blpopup10.htm "location can be set to yes or no to indicate whether or ...

Window opens with toolbar even when using toolbar=no

I'm working on an app that uses this to open the homepage of the application after they have successfully entered the login details: window.open("app_homepage_url","myApp","toolbar=no,status=yes,scrollbars=no,location=no,menubar=no,directories=no"); This normally works as expected and hides the toolbar but one user has reported that t...

How to call my onchange function after my blur function in javascript

hi, I have a blur function already attached to my dropdown, now I want to call another function onchange after my blur function is called in javasript. <select onchange="CheckAccommodation(this)" onblur="return UpdateFormSelect('UpdatePrice.aspx', 'BookNow_accommodation1', 'select', 'BookNow_accommduration');javascript:test()" id="Book...

Javascript check all checkboxes in a table / asp.net

I have a table with rows in, and each row has a few <td> elements. The last element has a checkbox in. They are in a <div> which is set to runat="server". I have another checkbox on the page called "chkAll" that when clicked, I want to javascript check or uncheck all of the checkboxes in my table. I'm not very good at Javascript, so I a...

javascript setTimeOut function within a jsp

I am trying to use the timeout function within a jsp. But it doesn't work. <script language="javascript"> function hol_logs() { var myAjax = new Ajax.Request( "getlogs.jsp", { method: 'get',parameters: 'jobId=<%=job%>', onComplete: zeige_logs } ); setTimeOut("hol_logs()", 10000); } function zeige_logs( orig...

html and js help needed.. strange behaviour...

Hi all, I have a web page http://www.maryveale.com/sculpture/index.html that loads a js at /media/js/bill-studio.js that causes the following problem. When the web page is loaded there are some images shown. Clicking on the first image should open the page /sculpture/1986/index.html and it does if you right click open in new window, ...

Whats the best way to implement an AJAX timeout?

I trying to make the AJAX request time-out if the web server goes down. Does anyone have a good way of doing this? ...

ASP.NET Javascript Resource Handler

I would like to make a Handler that takes all of my Javascript files i need and compresses and merges them, something like the scriptmanager of asp.net does. Is this possible? i thought on an .ashx handler, but i'm not sure if this works.. would be cool if you also could do this with the css files. ...

Javascript Dbconnectivity

Can any tell me is there any way that we can pass values using javascript that would execute in manipulating data in DBase ...

Simple Javascript MYSQL checking function

Hi friends, I'm not very skilled in web developing by the moment but i've managed to create a web application with PHP that queries a MYSQL Database and shows data in HTML. I would like to check if the table has changed using a timestamp field that I already created and that updates on every insertion. Comparing two timestamps (the pre...

Unable to get data using document.getElementById() in IE7

Hi all, I am trying to retreive the value from select tag for selected option in Javascript This is working fine in Mozilla but not in IE7. Example: function uploadFiles() { var x = document.getElementById('fileName').value; alert(x); } ...

What is this form element called and how to do it

I dont know what this is called, but you have 2 lists, and a button(s) in the middle to switch options back and forth. Question [a] What is this called. Question [b] How do you make one. ...