Normally, a file upload dialog is invoked by clicking the button created by <input type="file"/>. But then, I don't want the text field that comes with it. Is there a way to get rid of the text field? Or is there an alternative way to open the file upload dialog without using <input/>?
...
For a specific web application, I would like to implement a scripting language to assist in partially automating certain tasks. I cannot modify the web application itself, but I can send JavaScript code to each client that connects. Because multiple users of this publicly accessible site will be creating and posting scripts, I cannot use...
hi all. i am working on a problem at the moment that I am having a fair amount of difficulty with. thanks to some amazingly wonderful programers I have some javascript code that allows me to highlight a full row on a table if a cell, with id="date", has a date that is in the past. however now I am trying to convert this so that it only ...
I come from a C/Unix background, with a lot of experience in shell scripting, and some on Perl, elisp, etc. too. But now I'm getting into some work where I'll need to be developing interactive web-based interfaces, and I need to learn JavaScript. My problem is that all the resources I've found online for learning JavaScript seem to be ta...
I tried the following code to send request to jsp page on a click of button. I checked on Httpfox but no request is going. I just used the whole of this code in the body of the html code. Am I doing some silly mistake. Kindly suggest..
<button type="button" onClick="handleButtonClick();">Click Me!</button>
<script type="text/javascript"...
I Would prefer not to use javascript if that's possible but a jquery solution would be fine too. I'd appreciate any help.
...
I'm trying to convert texts written in local ascii non-english font to standard unicode. The problem is that we have to use a map file to map each char to which unicode char. Luckily i found a ready open source piece of code within an firefox addon.
It's part of bigger application and i don't understand how I can use it independently. ...
I have a div, I want to set it so that when I click on something else, it would hide the div.
So I did
$('body').click(function(){
if(loginOpened)
{
$('#loginWindow').animate({
'width':'0px',
'height':'0px'
},"fast");
}
loginOpened=false;
});
However, even when I click in the ...
Hi, the recent update to jquery 1.4.3 has introduced a small behavior bug into one of my scripts, and i just cant see what the problem is.
The way i use the scripts means i have to use the latest jquery.
I think it must be in the onClick function.
The odd behavior introduced can be seen here:
And a test page with console log here
when...
Can we access an element of a content page from master page using JavaScript? Suppose I have a link like:<a id="myLink" class="styleLink runat="server"></a> in all my content pages that uses the master page. I want to add one plugin for all links which are having the css class "styleLink". I can do it by adding ('.styleLink').ToolTip() t...
I want to use a WebSocket to transfer binary data, but you can only use WebSockets to transfer UTF-8 strings.
Encoding it using base64 is one option, but my understanding is that base64 is most desirable when your text might be converted from one format to another. In this case, I know the data will always be UTF-8, so is there a better...
Is there a syntax for getting the class name by id. The class name is dynamic so I can't use
if(Dom.hasClass('id-name-here', 'class-name-here')
{
Dom.removeClass('id-name-here', 'class-name-here');
Dom.addClass('id-name-here', 'class-name-here');
}
I can get the src attribute using the id by doing this,
Dom.get('id-name-here').sr...
I want to be able to send all the selected values from a dropdown box (which allows multiple selection) as a hidden field using JQuery.
I was able to send/retrieve a single value on form submission.
If anyone can share some code snippet, that would help.
Thanks in Advance!
...
I have this web application where users are able to fill out and submit reports. The reports and scripts are part of a whole system, that is, they are used on a couple of different clients written in both vb and c#. This is the web-version of those clients.
The scripting language is javascript and is executed using different script engi...
The production VariableStatement :
var VariableDeclarationList ;
is evaluated as follows:
Evaluate VariableDeclarationList.
Return (normal, empty, empty).
I want to know about meaning of normal and empty.
...
I have a parent window from which i open a modal dialog on button click. In WinXP with IE8 it works just fine, but in Win7 with IE8, upon opening the modal dialog it brings me to the login screen. If i enter my credentials, close the dialog and open it again, it works.
The explanation i figured out is that the session isn't transfered b...
Hi,
I have a code like this:
(this is a pop-up)
<body onblur="window.focus();">
<form id="ronny">
<select id="select1" name="select1">
<option> 1b </option>
<option> 1a </option>
</select>
<select id="select2" name="select2">
<option> 2b </option>
<option> 2a </option>
</select>
Now, my problems are:
In FF - when i move to the ...
In this page:
http://pastehtml.com/view/1biylhs.html
You can see the book in the center needs more height space than the other two books in the same row because its title has more text.
Currently, each book is contained in a <li> and has a height of 175px.
I can set their height to auto but it still can't make all list items in the sa...
Hi
I am interested to know about the possibilities of reducing http requests on servers by sending different kind of contents in a single compressed files and later uncompress on client's browser and place the stuff(images,css,js) where it should be.
I read somewhere that firefox is working on plan to give such features in future relea...
how can i extract all addresses,corresponding latitude & longitude of a city(eg:Bangalore) from google map using php/js and store in mysql table .can anyone help me.Its urgent.Thank Yo
...