Hi,
I am using Uploadify Plugin to upload images, the parameter response of the uploadify function will hold the value 1 if something goes wrong.
i did something like this and works perfectly fine.
if(response != 1) {
$('#t_fileUploadName').append('<p>'+response+'<p/>');
$("#t_fileUploadField").append("<input type='hidden' ...
I have a jquery plugin for textbox hints.
Refer to the link below for the hint plugin:
http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
May I know how can I change the hint dynamically? Thank you.
...
Hi,
I have a draggable image within a div. I can click on the image to bring up a pop-up menu, which works fine. Quite often when I click on the image I drag it by about 1-5 pixels, therefore on click event doesn't get fired up, instead, a dragstart event gets fired up, so the pop-up menu doesn't appear on the screen.
Is there a way to...
Hi All,
I have a jQuery script that appends a row to a table. In short, the user can select a value from a drop down menu, then enter in 'x' amount of months and hid 'add' which appends the row to the table, for example the following row is appended by the user:
<tr>
<td>Some Value</td
<td>2</td>
</tr>
Now, if the user performs ...
OK, I'm sure I'm justing having a brain-fart after 2 weeks Honeymoon in Tuscany... by brains clear, and I'm googled out looking for keywords and how to do it, even scanned down the JQuery Valdate.js looking for the bit that does it...
What I want to do is this; but don't know where to start.
if ($("#errorMessage").exists()){
// Jump b...
Hi,
I have an embedded youtube API player (example code) which is controlled via javascript. Everything works fine, but I have problems getting and setting the video quality.
Please have a look at the following piece of code:
ytplayer.loadVideoById("MXRa0DkBc2I", "0");
ytplayer.playVideo();
//alert("foo");
ytpl...
I want to use a PHP variable as a javascript variable - specifically I want to user the PHP variable session_id(); and use this as a javascript variable.
<?php
$php_var = session_id();
?>
<script language="JavaScript" type="text/javascript">
js_var = <?php echo($php_var ?>;
</script>
This seems like it should work for me but it doesn...
For example I have a function that has one argument, it can be DOM element ID or className.
How can I select only first element wrapped with jQuery?
$(value).get(0) and $(value)[0] returns just the plain DOM element, not a jQuery wrapped element.
...
I'm trying to remove any character except 0-9 a-z A-Z....
var file_name = file.name;
file_name = file_name.replace(/[^A-Z0-9\._\-]/i, '');
any obvious reason the above isn't working?
...
I want to figure out 5 worst things about javascript.
Few which I hate are:
1) variable = 5; //variable gets appended to global context
2) DOM properties and methods differences
Please add more which you find most irritating parts in javascript. I am talking about bad parts of javascript which can be avoided while programming (ex. eva...
Hi, I have a custom validator (.net 3.5) that checks if four dropdown lists in my form have repeated values. It works on the server-side but I would like to add a client-side function to go with it. I have no knowledge of JavaScript. Could you help? Mant thanks.
<asp:CustomValidator id="CustomValidator1" runat="server" ErrorMessage = "...
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head> <title>Full featured
example</title> <script
type="text/javascript"
src="../tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
m...
I'm currently working in a system with a bit of a legacy presentation layer -- it uses frames (actual, in a frameset frames).
To get some event handling up and running I would like to get events when the frame resizes or at least be able to measure the height of the frame somehow. There seems to be no cross browser way to do this. Has ...
I got to have a tag inside a table because PHP writes a code there that adds stuff to an earlier created Javascript array. However, I get a validation error (4.01 strict).
Is there any way I can do this or is it simply forbidden to keep a script like this:
<TABLE>
<TR>
<SCRIPT></SCRIPT>
<TD>
</TD>
</TR>
<...
I have a literal array that is loaded when the page loads... See below:
<script type="text/javascript">
var members = [
{
name:"Alan Lim",
id:"54700f06-a199-102c-8976-b1732b7ffc74",
positions:[
{
id:"4cdeb2a2-8897-102d-80ee-95364de284f0"
}
]
},
{
name:"Ben S...
Hello all. My issue is similar to http://stackoverflow.com/questions/2613627/how-to-use-the-value-of-a-selected-value-from-a-dropdownlist-populated-with-ajax but I am using ASP.NET, not PHP.
I have a dropdownlist that is populated by another dropdownlist's current value through ajax. So if DDL A is 'NY', DDL B is populated with differe...
How can I get an indication of what part of a long document is currently being displayed?
E.g. if my html contains 1,000 lines
1
2
3
...
999
1000
and the user is near the middle showing the 500th line then I would like to get "500\n501\n502" or something like that.
Obviously most scenarios would be more complex than t...
Hello,
we have a Java software to receive and send customer and contracts data from and to our servers. The software runs in a web browser. Sometimes our agents complain about the lag, but it is related to their network connection.
It's our thought to build in some kind of network monitor to show the current network speed. My first thoug...
I used the Jquery calculation plugin successfully to perform two calculations on both subtotals and a grand total much like the last example on the demo page:
http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm
However I'd like to also get a total count of the number of beds that are selected but can't seem to ...
Hello.
I have a website which uses some functionality implemented in the Firefox extension, which I developed. JavaScript script on one of my webpages requires UniversalXPConnect privilege for communicating with XPCOM component implemented in my Firefox extension.
By default, when my script tries to enable this privilege for accessing ...