Hi
I'm trying to give a fadeout & delete to a DIV(id = "notification"), when a image is clicked.
This is how I'm doing that:
<a onclick="$("#notification").fadeOut(300,function() { $("#notification").remove(); });" class="notificationClose "><img src="close.png"/></a>
This seems to not be working.
What I need to do to fix this?
Than...
I'm initiating an email create, by calling the code below, and adding an attachment to it.
I want the user to be able to type in the receipient, and modify the contents of the message, so I'm not sending it immediately.
Why do I get a RangeError the 2nd time the method is called?
(The first time it works correctly.)
function NewMailIt...
Hi ,
I have an application which embeds a xulrunner based browser.
I have to load some flash content in it which talks to some javascripts to update
the browser title.
The flash content works fine when launched from Firefox but not inside my app. I tried a sample html file which has some javascripts and they work fine. It even work...
Hello,
I am a bit of a beginner with javascript and I can't think of a way around the folowing problem. I am using Mootools in this example, though this is not a Mootools question:
for (var i = 0; i < 5; i++) {
myElement[i].addEvent('click', function () { otherFunction(i); });
}
Whenever someone clicks on myElement, otherFunction...
I am having trouble escaping special characters in as3.
trace( escape("who are ü?") );
returns who%20are%20%uFFFD%3F
or
trace( encodeURIComponent("who are ü?") );
returns who%20are%20%EF%BF%BD%3F
while in javascript this
alert( encodeURIComponent("who are ü?") );
returns who%20are%20%C3%BC%3F
and
alert( escape("who are ü?")...
Hello,
I'm trying to do make the following selection:
$(".program", row)
Where "row" is a jQuery object containing two table rows. One of the tr's has the class 'program". This selector doesn't seem to find it. However the following works:
$(".title", row)
where div.title is a descendant of tr.program.
If I use a jQuery object ...
I have a system where items are locked (with a flag in the database) when a user is vieiwing that item.
Currently the item is only unlocked when a user performs a certain action.
However, when a user leaves the page through any method, I'd like to make a call to a webservice / ashx page that will unlock the item, but not stop the pag...
I am trying to get a vertical Superfish menu to display correctly inside of a jQuery Accordion widget but am running into some rendering issues such as the child elements only rendering inside the accordion div (they don't spill out and therefore are cut off), the superfish menus pushing the accordion elements down and causing alignment ...
I have created a SCORM API for our LMS and right now I am using hard coded userID and courseID variables (variables that reference things in the database). I need to pass the real userID and courseID instead of using hard coded ones. I know the userID is stored in the session and the courseID is passed over from the launch page.
How do ...
I need to generate very big html files based on data entered in a huge form. The project is done in AdobeAIR (js). What templating techniques would you recommend other than Dojo dtl?
...
Hello,
I'm trying to optimize a sortable table I've written. The bottleneck is in the dom manipulation. I'm currently creating new table rows and inserting them every time I sort the table. I'm wondering if I might be able to speed things up by simple rearranging the rows, not recreating the nodes. For this to make a significant differen...
I have TestGen4Web script for automating testing on a web-based user interface that has a popup window (hey i didn't write that ui..). In order to write a complete test script that branches the flow based on the some presence of some content in the popup window, I need to write a simple if condition that does something like if document.g...
We have an application that behaves really badly in IE6, the application relies heavily on javascript and most of the activity happens in one page.
In IE6, it seems that memory keeps piling up and never gets cleared even when you navigate to a different site!
Since there's not so little code running within the browser, I'm looking for ...
I have an HTML page with some textual spans marked up something like this
...
<span id="T2" class="Protein">p50</span>
...
<span id="T3" class="Protein">p65</span>
...
<span id="T34" ids="T2 T3" class="Positive_regulation">recruitment</span>
...
I.e. each span has an ID and refers to zero or more spans via their IDs.
I would like to ...
I reviewed the 981 lines of code for the current version of http://supergenpass.com and did not find anything, however I could have missed something. I just want to confirm that it does not transmit anything so I can use it and suggest it to others. I already use KeePassX to store passwords and other information. And I like the theory be...
Hi,
My DOM looks like this:
<div id="d1">
<div class="c1">
<a href="#"><img src="img1_on.gif"></a>
<a href="#"><img src="img2_on.gif"></a>
</div>
</div>
When anyone clicks on an image, I want the image src to change to where x represents the image number 1 or 2.
Is this possible or do I have to use CSS...
There is DWR which satisfies my needs in Java. I'm interested if there is any Groovier way to do the same thing - with convention over configuration, dynamic method invokation, etc.
...
I am trying to display a Facebook user's profile picture using XFBML. I am using the following code:
var container = document.getElementById("profilePicture");
var profilePic = new FB.XFBML.ProfilePic(container);
//profilePic.setAttribute("uid", userId);
FB.XFBML.Host.addElement(profilePic);
How do I set the uid attribute of the eleme...
How can I find the closest intersection of the street I have coordinates of?
For instance, say I have street A running from south to north that is crossed by street X on the north and by street Y on the south.
Does the Google Maps API allow for finding coordinates of the nearest crossroad (either X or Y) of street A? I couldn't find it...
I have the following situation:
<table><tr><td width="50">
<select name="angle">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
</td><td>
<input type="text" name="what" value="" />
</td></tr></table>
<...