I recently realised that Actionscript and Javascript are both implementations of ECMA script. Now I'm wondering what this means in practice.
I have a Flex application written in Actionscript and I'm looking at porting parts of it to Javascript for use in AJAX apps. I have had virtually no exposure to JS so far (not counting occasional o...
I've just starting learning jQuery and AJAX. I'm able to load a local page (on my disk) into a div via jQuery.load(), but external sites don't seem to work. I've even used wireshark to check if the data is being sent from the server (it is). Sample code is below:
<html>
<head>
<script src='jquery-1.4.2.min.js'></script>
<script>...
Hello,
I want to trigger on click of a button this:
<asp:Button runat="server" ID="submit" Text="Submit" OnClientClick="country(this.form);" PostBackUrl="http://www.google.com/" />
In javascript I m checking validation of the form.The problem is when I m clicking on the button it is not waiting for the validation but its postback to...
Hello,
I'm trying to find a javascript way to display all the plugins that are installed for Internet Explorer 7.
Something like navigator.plugins (which works in Firefox), but for IE 7.
Thank you.
...
I have this code:
for(var i in this.units)
{
if(this.units[i].x==att.x && this.units[i].y==att.y){}
//... some more code
}
and sometimes, randomly, I get an error this.units[i] is undefined.
Anybody got any idea how this is possible?
...
I have a super fish menu, the delay is set to 800, but when I move from one drop-down to another it still shows the previous drop-down and the new drop-down at the same time. until the 800ms delay is over then the previous drop-down goes away. I do not want to change the delay, but if a new drop-down is opened, I want the previously open...
I have a form where I've specified onSubmit="validate()", but I want to ignore the validation if the submit-button was clicked. Is there a good cross-browser way of detecting if the submit button was clicked and thus ignoring the validation?
...
Does anyone know if I can hack google's visualization ColumnChart api chart somehow, to make a single column stand out with a different color, like so:
I know you can do it with ImageChart, so I don't need that (it fires no events and has no x/y labels).
Can I traverse the result with javascript somehow and change the CSS style, if i...
Hi!
Problem exists only on FireFox, other browsers are fine. My code looks like this:
jQuery.extend({
AnchorFromUrl : function(url) {
var anchor = url.substr(1).replace('.html','');
$.fizzer_anchor = anchor;
window.location.hash = anchor;
return anchor;
}
});
The most weird thing is that if I p...
What is the proper cross-browser encoding for the href when using window.open() in JavaScript? First I was using
var href = "http://127.0.0.1:8000/etf/admin/escola/t34atividade/?pop=1&copy=1";
var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
IE8 opens: http://127.0.0.1:8000/etf/admin/escola/...
Hi,
I have need to move the mouse cursor position in the browser, I can use any method as long as its in Google Chrome or Firefox, one or the other.
In the best case, I would like to control the mouse position with javascript.
Any easy way to do this? Thanks! Phil
...
I am building a site here but having a problem with linking to pages. This site is a one pager site that has a menue and a javascript that triggers it. Not if you visit the link I wanted to link the 3 green boxes to level1,level2,level3 like the main menu. But having a problem on how to do it.
here is the code for the Top Menu
<div cla...
Does anybody know how to disable the default CKEditor behavior that changes the RichCombo label on click? I want the label to remain untouched regardless of the user selection.
...
Hi all, this is my first question here - hope I'll get started on a positive note.
Refrasing (since I am still stuck):
I am writing a IM client via the XMPP protocol to connect to a Openfire server. For this I am using the Smack API. There are two ways of checking if new messages have been received:
registering a listener with the XMP...
I have a process where a user puts in a comma delimited list that is then processed one item at a time. I want to be able to indicate to the user that it is processing and let them know when it is done. So I used the curtain idea from Borgar's replay to ... Div Over Page.
This worked but the curtain disappears well before the process is ...
Say I have an array, that contains data that I want to display in a html table. (sort of how gmail has all the data in js objects)
I have this data in an array so I can do ajax type operations like updating/deleting/sorting of the data.
Does jQuery have templates where I can create a template for a given row, and then just loop through...
So I have a rather basic javascript problem which I have been slamming my head into a wall over for awhile:
<div class='alist'>
<ul>
<li class='group_1'> An Item </li>
<li class='group_1'> An Item </li>
<li class='group_2'> An Item </li>
</ul>
</div>
<div class='alist'>
<ul>
<li class='group_1'> A...
I'm using a javascript function to submit my form. This works in every browser except safari and I can't figure out why
My javascript function looks like this
function submitForm() {
var selectBox = '';
sel_guide_options = document.subForm.sel_guides;
if (sel_guide_options.type == "select-multiple") {
for (var i...
Does jquery/javascript have any event model that you can attach to your objects?
Basically I want an object to have an event, and I want other objects to be able to subscribe to these events?
...
I need to quit firefox and restart it in order for the applet to be refreshed...
its anoying since i'm still programming it an the class files changes... am i missing some codes which makes it unable to refresh the applet and still take the one from the cache???
So I have a .jar applet in my website, a simulation game that spawns army ...