When the user inadvertently double clicks on the table rows or anchors in the example below using Firefox, the Grow effect is stopped and the page becomes unusable. Any suggestions as to how to force FF to ignore the double clicks? I tried using Prototype's Stop.event and that didn't seem to help.
<table border=1>
<tr onclick="Effect....
I need to build a live preview in Flash which will show a user a customised version of a product - for example with their own text on the site. I don't use Flash normally but understand a little bit of Actionscript 3.
I am using jQuery to embed and communicate with my SWF. I have a SWF movie to which I am passing an initial value via ...
Hi everybody...
I'm just curious how I go about splitting a variable into a few other variables.
For example, say I have the following javascript:
var coolVar = '123-abc-itchy-knee';
And I wanted to split that into 4 variables, how does one do that?
I know how to do something of the sort in php... but javascript.. I'm a newbie.
To...
Hi,
I have rssfeed website on which I have put some video/audio podcasts .
How can I embedded flowplayer so that it can show small icon for video to play with each link of podcast rssfeed.
If any one know this Please help me.
Regards,
lnj.
...
Hey all, I'm looking at building an ajax-heavy site, and I'm trying to spend some time upfront thinking through the architecture.
I'm using Code Igniter and jquery. My initial thought process was to figure out how to replicate MVC on the javascript side, but it seems the M and the C don't really have much of a place.
A lot of the JS w...
Hello,
I have a web application for which I am trying to use Twitter's OAuth functionality. This application has a link that prompts a user for their Twitter credentials. When a user clicks this link, a new window is opened via JavaScript. This window serves as a dialog. This is accomplished like such:
MainPage:
<div id="promptDiv"><a...
I use this code to gathering the information from Wiki:
http://en.wikipedia.org/w/api.php?action=query&rvprop=content&prop=revisions&format=json&titles=apple
And I can get a JSON String like this
{
"query": {
"normalized": [{
"from": "apple",
"to": "Apple"
}],
"pa...
Do you know a good cross-browser way of knowing how wide will be a text line so you can break it exactly to fit a fixed width?
Suppose you want to break a long text like so it doesn't overflow a fixed width container, but you want the line to break the closest to the border possible, so guessing where to insert s isn't a clean solution....
Hi All,
This may not be possible (or might be dead easy! :) ) so here it is...
I want to be able to create objects of a type that is dependant on a variable set, without the need for a big switch statement.
I think it is possible in PHP to do something like...
$objectType = "myNewClass";
$newObject = new $objectType();
where the $n...
I have a commenting tool that can be included on a page simply by adding a script tag to the <head>. This works fine, and I've made a Greasemonky script and Firefox plugin that do just that, and putting it manually on a site works fine too. However I'm trying to make a bookmarklet:
javascript:(function(){var%20ormeo=document.createEleme...
Hello,
This question is a more specific description of the problem I asked on this thread. Basically, I have a web application for which I am trying to use Twitter's OAuth functionality. This application has a link that prompts a user for their Twitter credentials. When a user clicks this link, a new window is opened via JavaScript. T...
I'm at a stage in which I did not learn internet scripting languages yet, but I do understand JavaScript enough to edit scripts I find on the web to suit my needs. Lately, I've been searching for an RSS to HTML converter, and was surprised to find out that it usually involves PHP. I don't see a reason for JavaScript to not be adequate f...
Hi all!
I'm writing an Air application which uses sockets. I need to connect to nexus.passport.com:443 using SSL. Is this possible? If so, how?
I use JavaScript for the programming.
Thanks in advance.
...
ok, I start with a very simple method:
alert(someText);
"someText" is a variable, which users will pass a value in by a form.
Will there a chance that the user pass following text, and inject some code in my Javascript?
For example, can the user pass this in this method:
"anotherText"); alert("the nextText"
If so, how can I prev...
I'll soon be coding some JavaScript in Adobe Acrobat Pro, but I hate coding in notepad because it doesn't show me my mistakes. I know the JavaScript implemented by Acrobat Pro is a little different from web JavaScript. I'm wondering if there are software (Visual Studio, Notepad ++ or the like) that would help me highlight my code and hel...
I've got a list of elements and I want to use the header divs to separate them after the pages loaded up. So the code below,
<div class="header">Header 1</div>
<div class='test'>Test 1</div>
<div class='test'>Test 2</div>
<div class='test'>Test 3</div>
<div class="header">Header 2</div>
<div class='test'>Test 4</div>
<div class='test'>...
This is bizarre, I was wondering if anyone could shed some light on why this happened.
Basically, I've been pulling my hair out trying to test JSONP out so I can implement a JSON web service that other sites can use. I'm doing development on localhost--specifically, Visual Studio 2008 and Visual Studio 2008's built-in web server.
So as...
I have various links which all have unique id's that are "pseudo-anchors." I want them to affect the url hash value and the click magic is all handled by some mootools code. However, when I click on the links they scroll to themselves (or to the top in one case). I don't want to scroll anywhere, but also need my javascript to execute and...
I'm trying to do some network analysis for a client. The provided road-network GIS layer is of bad quality; therefore, I have to resort to Google maps to provide me shortest path between 200 points, to produce time and distance matrices between each point.
is there a way i can input the layer as a set of KML points to obtain outputs of ...
I am using the jquery form validation plugin to validate a long form. If a user submits the form with multiple fields that fail to validate, the cursor returns to the last field that did not pass. Instead, I want the cursor to be returned to the first field in the form that failed validation. Rather than modifying the plugin, I would lik...