I'm trying to populate a multidimensional array (array with array elements) via Javascript or jQuery... push() is probably the wrong method to use, but I've tried a couple of others and I can't seem to get beyond single dimensional arrays. Here's the latest try so far - any advice or snippets on how I might be able to populate arrays per...
Hindsight is 20/20, eh? What programming languages do you think are most beneficial for a budding SproutCore dev to know?
And yes, I am totally incapabable of R'ingTF'ingM.
...
hi all,
i have come up with a semi-solution to this issue, but wondering if there might be a better way. i am currently running the query validator plugin on a group of inputs and all works fine normally. my issue is i am doing an additional check via an ajax post on one of the inputs to make sure the username is unique before submiting...
Hey all,
The below post was hugely helpful for what I'm trying to do:
http://stackoverflow.com/questions/1981243/multiple-items-with-paypal-button-and-php
This part works beautifully:
var inp1 = document.createElement("input");
inp1.setAttribute("type", "hidden");
inp1.setAttribute("id", "item_number_" + current_item);
...
Hi All,
Having a problem while passing messages using content scripts in Google chrome extension dev
My Code structure looks like this:
popup.html:
var oList;
function getHTML()
{
chrome.tabs.getSelected(null, function(tab) {
chrome.tabs.sendRequest(tab.id, {action:"getHTML"}, function handler(response) {
oList = respons...
A friend and I were discussing Mozilla's latest touch support and got on the question of what Safari provides for this. Searches seem to turn up nothing.
Do you know of anything that provides touch events to Safari on desktop, either via multitouch trackpad or direct screen interaction (I guess a Windows multitouch environment would be...
Given:
var a1 = [{name:'Scott'}, {name:'John'}, {name:'Albert'}];
var sortOrder = ['John', 'Scott', 'Albert'];
How can I sort the first array (by property) based on the order specified in the second array.
// result: [{name:'John'}, {name:'Scott'}, {name:'Albert'}]
Thanks.
...
I wasn't sure if I could ask this kind of question, but after seeing this on Meta Stackoverflow, it looks like this kind of question is ok. Well, onto my question:
A few months ago I wrote a validation framework in Javascript. I know that there already exist validation frameworks like jQuery Validation, but I wanted to take a different ...
How do I loop through a radio buttons group without a form in JavaScript or jQuery?
...
I'm trying to place the Facebook multi-friend-selector in a Facebox (don't want to use fb:dialog as it pops a new window). The problem I'm having probably stems from escaping quotation marks in javascript, but I've been banging my head against the wall trying to figure it out.
Is there a better way to do this?
$('#test_button').click(...
What tips/suggestions do you have for writing more understandable code?
I've been somewhat frustrated by the lack of structure and bad format of some code I've been maintaining lately and would like to propose a series of guidelines for writing more understandable code.
Any suggestion might help, no matter the language.
Regards.
...
How can i program this, the decimal shift needs to be programed that most of it I think , the rest would be just a normal add, any thoughts on how to program this? This is for an incrementer I'm building, the user can press plus or minus and increment a text input.
...
Hey, I'm pretty new to PHP, but I've got a site up and running with a full login/registration script, etc...
I have found ample tutorials on sending data via HttpRequest and getting XML or JSON data back--so I'm pretty comfortable with that. I can't seem to find any information or tutorials on how to write the script that handles tho...
I would like to be able to make an application that uses open layers directly on my WPF application. I found that I can create a browser object and have that invoke JavaScript, but I don't need a full browser. Is there some scripting object that I can use and bypass the browser object all together?
...
Is it possible to trigger the execution of a method within an iPhone application from Javascript on a web page?
For example, I'd like to have a button that opens the iPhone camera application. Is this possible?
...
We try to display the google ad in an iframe that we add dynamically. In an iframe, the field "src" is generally an url, but we want to use the data:text/html format to be able to use directly our ad code. It works for simple JavaScript code like a document.write('hello world')<\script>, but not with the google ad code.
We simulate this ...
I am using Colorbox 1.3.6 with jQuery 1.4.2. Somehow the folowing code did not work for me:
$(document).ready(function() {
$.colorbox({href: "something.htm", open: true});
});
which won't show up automatically, but this one works:
$(document).ready(function() {
$("#some_element").colorbox({href: "something.htm", open: true});...
How would I convert this from js to C#. I've looked but cant find anything useful.
var endDate = new DateTime();
endDate.setDate(startDateTime.getDate() + days);
endDate.setHours(endDateTime.getHours(), endDateTime.getMinutes(), endDateTime.getSeconds());
...
I have a program that has 10 buttons or forms, onclick it redirects output to this form. and it opens another window that does an action.
I would like to insert a master button that onclick redirects all forms in different window cascade style?
Please help.
...
Hi all,
I have been using a jquery plugin called uploadify for handling file uploads as it comes with interactive flash upload. but everyone on my website is complaining its not working. can some one please recommend me one that works in most situations. Thank you
...