<script type="text/javascript" src="jquery-1.js"></script>
<script type="text/javascript" src="mootools.js"></script>
<script type="text/javascript" src="slideshow.js"></script>
<script type="text/javascript">
//<![CDATA[
window.addEvent('domready', function(){
var data = {
'1.jpg': { caption: 'Volcano Asención in Omete...
I am wondering if there is any work-arounds using javascript or whatever to get IE to show border-radius or gradient background?
...
Hello,
I am adding a text box using javascript:
This is what is generated:
<dd id="text3-element" style="width: 350px;">
<input type="text" size="50" id="text3" name="text3" onblur="return getFieldValue(this.id);" value="">
</dd>
This is what is present in the getFieldValue function:
function ge...
First of all, I would like to apologize for posting this again. I am new to this forum. Also, I cannot ad comments on my first post of this question, or send private messages to users who commented, therefore I can't properly communicate with anybody who tries to help. What is the proper way for me to communicate with people who may comm...
I have an ASP.NET checkbox, and I want to run some javascript before it posts back.
Something like:
<asp:CheckBox ID="chkSelected" runat="server" AutoPostBack="True" OnCheckedChanged="chkSelected_CheckedChanged" />
but I want to run a JS confirm dialog when the user click it, and if they were UNCHECKING it, I'd like to ask them if th...
Hi,
I'm using Horde as webmail. I found a sweet option:
Add the Horde Menu as a Mozilla Sidebar
It uses a window.sidebar.addPanel to create a sidebar with Mail folders tree inside. This sidebar is on the left. Is there a way to place this sidebar on the right as bit.ly sidebar?
Thanks
...
I'm trying to make an AJAX GET request, but I simply cannot get it to work. I want to retrieve the HTML source of example.com. I've previously used JQuery to send AJAX requests, but I use JQuery only for its AJAX capabilities so it's a waste to include the 30KB file for one task. What is it that I'm doing wrong?
<script type="text/...
I'd like to know how to keep adding number to a varible. For instance the number starts at 0 then every time you click the button it adds 20. So the first click would change the variable to 20 then the next click 40. This is as far as I can get..
var n = 0;
$('#button).live('click', function() {
newval = n+20;
$('.number').appen...
In a jquery ajax call I get sent back some JSON from the server and want to use some of it in the success callback. I pass in the data, but how do I get at a specific value (say "id")?
I tried this but I get undefined:
success : function(data) {
alert(data["id"]);
...
in HAML, we can write comments using
-# some comment and it won't become HTML and made public
but if it is inside
:javascript
-# comments like this line will break the javascript interpreter as it becomes javascript code
// so we are forced to use comment like this and is publicly viewable
is there a way to make it non-public?...
Hi everyone!
So I have a nav with 3 circles, and a jquery slider.
By default the first circle is lit up, and when a user clicks on the 2nd circle the slider moves to the 2nd div and then that circle is lit and the 1st circle dims out. This works the same way with the 3rd circle.
Everything works fine, this is what the code looks like
...
OK, simple:
self = $(this);
Throws a JavaScript error in IE8 when it's inside an event handler. It works in every other browser.
var self = $(this);
Throws no error. Why?
...
There's a few mentions of Javascript newbies getting starting by checking out some of Douglas Crockford's work (http://stackoverflow.com/questions/11246/best-resources-to-learn-javascript), but none of his resources seem to be for those looking to learn from the ground up.
Are there any suggestions for complete beginners regarding how b...
As I mentioned in an earlier post, I will be using flot for an upcoming project to generate graphs for a user. I would like to protect the formulas used to generate these graphs, so that someone can't simply copy the javascript. Is there a way to do this and still calculate the values on the fly with the ability for a user to change th...
Is there a way that you can pass in a javascript object to a yui aSync request or does it only accept a URI?
...
I'd like to somehow get the target opacity (the final value it is being animated to) of an element that is fading.
For example...
$('body').fadeTo(0.4); // 0.4
$('body').fadeIn(); // 1
$('body').fadeOut(); // 0
$('body').animate({ opacity: 0.7 }); // 0.7
Is this doable in jQuery?
Update
For some background, see my answer here on St...
How can I convert a string into camel case using javascript regex?
"EquipmentClass name" or "Equipment className" or "equipment class name" or "Equipment Class Name"
should all become: "equipmentClassName".
Thanks.
...
var url = relativeURI+'/rest/PPS/Prod/'+encodeURIComponent(prod)+'/Section/'+encodeURIComponent(section);
$j.ajax({
url: url,
type: 'POST',
error: function(){
alert('Error');
},
success: function(){
alert('ItWorks');
}
});
}
In this ajax call, if I have '/' in the parameters prod or sec, then there is an erro...
Hi there,
I am very new to jquery and need some help. I am trying to change a css element when I enter a textbox. I have applied a css class to my textboxes and I have a couple of div tags around my textboxes.
When a user selects the textbox I want to change the desired div tag.
This is how the html looks
<div class="left">
<div ...
i am using gwt.
i need to check some input data.
all checking functions are located in PHP server check.php
i am not using javascript checking executed from locally.
all i am doing is to send user input to server by ajax and validate in that place
and error message comes from server to client's gwt widget.
is it best approach??
i c...