javascript

Firefox : features addons

Firefox is one browser without which i cant even think of developing web application. This comes with so many handy add on and features which makes developers life easy. However features that Firefox has are huge and not every one is aware about them. So i request you all to add unique features/Add on of Firefox which are/will be helpfu...

No dynamic page is in script document when I debug my aspx page

I'm trying to debug javacript code in my aspx page, I insert a breakpoint, and press F5 for debugging, but there is no dynamic page created in script documents. Why the asp.net development server not create the dynamic page? any ideas? ...

Is there any way to turn off form *filling* (not remembering) in Firefox using a plugin?

I'm developing a Firefox plugin that needs to be able to temporarily disable all types of autofill. Both the case where the fields come immediately pre-filled and the case where it suggests data for you when you start typing. I can turn off the gathering of new form data using the Firefox settings, but the form data that's already saved ...

HTML coding and mixing of PHP or Javascript code

I am assigned a task to revise a website and at present I am working on index.html page. the previous coder has mixed a lot of javascript and CSS code in between and it is becoming difficult to read. I want to know whether it is necessary to include tags and CSS code in between? What about PHP code? Where each must reside? Edited: If...

Removing javascript code from within a Table column

This question is in continuation to my existing thread. Below given is a code section. There is a javascript code embedded inside a Table column tag. I want to get rid of the script tag. What can be the other way of calling that javascript function that resides in a separate .js file. <tr> <td width="599" height="154" valig...

Google Calendar embeds - but won't respond

Hi, I successfully embedded the Google Calendar IFRAME, however, without any JS error -- it won't respond to any of my clicks, nor display any events. After double checking the calendar settings and googling this issue I'm finally without a clue as to how to resolve this. Any ideas? ...

How to set popup menu values programatically in Dashcode

I am trying to set the values for a popup menu in Dashcode programatically. I can change the text/value of some statically defined default ones (from the inspector), but not add or remove them. When the view is initialised it must take a variable number of options. var popup = document.getElementById('popup'); //popup.options = ...

Call PHP method with Ajax.Request

Whats the best way to call a certain method in a PHP file with Ajax.Request (using prototype)? I am submiting a form with Form.serialize, so I thought of adding a parameter (like the name of the method to call) and then check it on the server script. Something like: var params=Form.serialize("someform")+"&=method='check_data'"; new Ajax...

select multiple files in file upload in php?

i know that php doesn't allow you to select multiple files to upload in one box. is there a work around or do you have to learn another language for it? ...

How to reverse String.fromCharCode ?

String.fromCharCode(72) gives H. How to get number 72 from char H? ...

Event for textarea changes

I have a JavaScript library that updates a hidden <textarea> HTML element with some data based on some things. In my (JavaScript) application I'd like to know when these updates occur without having to go through the existing library code. I was hoping there was an event for this, but apparently not. How would I listen for changes of ...

Oracle 9i - Convert Varchar2 to javascript escaped UTF-8?

Hi, I need to write a plsql function that will take a varchar2 column containing Polish national characters to escaped UTF-8, which will be then used in javascript, So I need to convert: zażółć gęślą jaźń to: za\u017c\u00f3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144 To be exact, my goal is to build a json encoder directly i...

Reading querystring param with jQuery returns null

I'm trying to read a querystring parameter ("ssip") via jQuery and the query plugin, but it seems to return null instead of the actual value. Here's is my code: <script src="jquery-1.3.2.min.js" language="javascript"></script> <script src="jquery.query-2.7.1.js" language="javascript"></script> <script language="JavaScript" type="text/...

Shifting elements in a div with overflow auto

Hi, I am experiencing problem with the layout of a page where my controls are shifting when I attempt to change the class using a javascript event. Can anyone help with some ideas around the problem. It only seems to be a problem in IE when the left scroll bar appears. Here is an example of the html <div id="container" style="overfl...

Trigger select tag to show options

Im doing my own ajax thing with dropdowns. Ive positioned an imput over a select tag. When stuff is typed into input it collects from db and populates the select menu. Problem is its not noticeable. Is there a way to make the select menu open as if a user has clicked on it? ...

HTML validation and loading times

Does having (approx 100) HTML validation errors affect my page loading speeds? Currently the errors on my pages don't break the page in ANY browser, but I'd spend time and clear those anyhow if it would improve my page loading speed? If not on desktops, how about mobile devices like iPhone or Android? (For example, N1 and Droid load pag...

Get Element in div with Javascript

Hello, I want to disable/enable a button with Javascript. Because the Javascript is called, after a Flash animation is rendered, the button exists at the time of the execution. The button is in a hierarchy: <html><body><form#form1><div#control><asp:Button#Export1> I tried for hours to get a reference to that button, but nothing (doc...

Live stream 'push' with Ajax

Hi, I just found an interesting demo of what can be done with the cappuccino framework; Push with Cappuccino and Tornado As far as I understands it, It keeps an async client/server connection, which is great to keep a "content" updated. I would like to know if there is any way I can do the same thing using JQuery or another library. ...

Read UDID from Iphone with javascript on mobile safari

How can I Read UDID from Iphone with javascript on mobile safari? ...

loading java applet on DOM load

Hello, I searched for it a lot but probably I am searching wrong strings. A Java applet is feeding live bits into my pages, java applet accesses the input fields on my page and places the information <input type="hidden" id="F1" value="Nothing Yet"> and then it calls a javascript functionon the page say LivePicker() and then i...