Hello,
Am trying to find some text only if it contains english letters and numbers using Javascript/jQuery.
Am wondering what is the most efficient way to do this? Since there could be thousands of words, it should be as fast as possible and I don't want to use regex.
var names[0] = 'test';
var names[1] = 'हिन';
var names[2] = 'لعر...
I am trying append some XML retrieved via a dojo.XHRGet to a dijit.layout.ContentPane. Everything works ok in Firefox (3.6) but in Chrome, I only get back 'undefined' in the particular ContentPane.
My code looks something like this:
var cp = dijit.byId("mapDetailsPane");
cp.destroyDescendants(); // there are some existing Widgets/cont...
I need to present millions of rows of data to users in a grid using JavaScript.
I don't want the user thinking about viewing finite pieces of data (ie. pages); it should appear that all of the data are available. Rather than downloading all the data at once, small chunks are downloaded as the user comes to them (by scrolling, keying in ...
Hello All,
I have a long string arrays, which looks like that
var callinfo_data=new Array(
"1300 135 604#<b>Monday - Friday: 9:00 a.m. to 5:30 p.m. AEST</b>", //Australia
..
"0844000040#<b>lunedì-venerdì ore 10:00 - 17:00 CET</b>", //Switzerland (it)
"212 356 9707#<b>Hafta içi her gün: 10:00 - 18:00</b>", //Turkey
"08451610009#<b>M...
i have tried jQuery('#form_id').serialize(). this returns only the form data as a url encoded string. is it possible to get the form data as an object?
...
For reference, please look at mobilityidaho.org. I am using the superfish plugin with jquery and everything works great except in IE6 (I guess I shouldn't be that surprised). If you go to a secondary page http://mobilityidaho.org/travelers-guide for example, and hover over the "traveler's guide" menu link, the child ul displays on hover,...
Hi all,
I have one question. I try to develop a little WYSIWYG editor.
I would like create a <h1> button which allows me to generate a <h1> title (by clicking on button after text selection in <p> element).
I obtain the selection with window.getSelection().... But now, I would like to put my append("<h1>my text selected</h1>") just b...
I want to build an upload-centric app using Django. One way to do this is with nginx's upload module (nonblocking) but it has its problems. Node.js is supposed to be a good candidate for this type of application. But how can I make node.js act as an upload_handler() for Django? I'm not sure where to look for examples?
...
I have a dropdownbox (percent), a input box(price) and a input box (total)
When you select a percent from the dropdown, it multiplies the value of the selected dropdown times the price value and input the result in the total input box.
This works well with one input box, but what I am trying to do is to use asp and when you select a perc...
I am using the jQuery $.ajax() function. I have put this into a parent function, which passes some values into the ajax function. What I would like to do, is have a user defined callback function, which gets the data param passed in from the ajax success function.
Here is what I was thinking would work, but it is not:
testFunc = func...
Hey guys,
I want to create a form which has a text entry box where a user can enter their name and then I want a button as well. But what I want this button to have a function called ReadName() where what will happen is when the user clicks on the button it will come up with a message saying "Hello user name will appear here
I have trie...
Obviously when you're creating an actual string literal yourself, you backslash escape the double quote characters yourself.
var foo = "baz\"bat";
Just as you would with the handful of other control characters, like linebreaks and backslashes.
var bar = "baz\\bat\nmynew line and a \"quote\" ";
but if you're just wrapping that ...
<script type="text/javascript">
(function () {
var ButtonGroup = YAHOO.widget.ButtonGroup;
var onCheckedButtonChange = function (p_oEvent) {
};
YAHOO.util.Event.onContentReady("mediaFilterButtonsFieldset", function () {
var oButtonGroup = new ButtonGroup("mediaFilterButtons");
oButt...
I have an application (a widget) where I use $.getScript() on a 5 minute timer, loading a file every five minutes. I then take the contents of the file I just downloaded, and rebuild my page, so that my widget can update. Most of the time, however, the file is unchanged, and firebug displays a 304 Not Modified header every 5 minutes, a...
I'm using jQuery to bind an event to the onChange handler of a as follows:
$("#accounts").change(function() { DoSomething(); });
The problem I'm having is that, while everything works fine in Firefox, the event never gets fired in IE. I'm aware of the fact that IE handles the onChange event differently than Firefox as mentioned here...
I asked this question a few weeks ago and didn't get the answer I was looking for, so figured I'd ask again a little differently.
I need to construct a form in my UI which will allow users to view and edit complex, nested objects. If I were doing this the JSP way, I would use Spring's bind functionality to associate form fields with bac...
http://developer.yahoo.com/yui/button
More specifically, I want radio buttons. that can be checked/unchecked.
...
What exactly is DOM Load time?
Is it time to just get complete html from server or does it include the rendering time?
Please explain.
...
I have a constructor that has a series of classes and functions within it - in each function I check if the param is set to show the error and output if so. Like so using an inline if. The issue and question is short of keeping two versions is this approach not wise in that each IF has to be evaluated thus adding to the time it takes to ...
I'm making AJAX calls to a server that sometimes return unparseable JSON. The server isn't under my control, so I can't fix that.
function eventFunction(evt) {
$('div#status_bar').show();
$.ajax({
url: 'http://buggyserver.com/api/',
type: 'GET',
data: { 'mode': 'json', 'q': 'get/data' },
dataType:...