Hi,
Quick question, why does my reference to weekdays inside change_date() give weekdays is undefined error in Firebug?
I also tried this.weekdays, same.
How do I correct this?
var timesheet_common = {
weekdays : ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],
change_date: function() {
$('#text_input').val( weekdays[(n...
Hello, I am trying to capture "Rio Grande Do Leste" from:
...
<h1>Rio Grande Do Leste<br />
...
using
var myregexp = /<h1>()<br/;
var nomeAldeiaDoAtaque = myregexp.exec(document);
what am I doing wrong?
update:
2 questions remain:
1) searching (document) didn´t produce any result, but changing it to (document.body.innerHTML) w...
I'm building an AJAX app. I've got several menus, where there is a list of possible options (provided by the server). The user can choose or unchoose any of those values. When the user makes a choice, it is saved to the server.
So if the total list is [A, B, C, D], it might look something like this:
User has chosen:
-A [Delete]
-B [Del...
Hi, I'm developing a web-application for iPhone and Android. It works flawlessly on the iPhone but when I try to run it on an Android device, it just does not work.
But to the point… I need to access the (JavaScript) error console in the Android default browser. Is there a way to do that?
I tried changing the "Enable tracing" setting a...
Using the scripting framework (javax.script.*), it's really easy to get basic integration between Java and Javascript working. However, once you get to the point of wanting to do something really useful, you run into all the little ways that the bridge from Javascript back to Java (and, to some extent, the other direction too) are messy....
Hi there. I've switched from Mootools to jQuery, because I think it has better support. I've got HTML like that:
<ul class="menuHandler">
<li class="menuTreeElement activeOpt" id="menuOpt1">
<ul id="menuOpt1Content">
<li><a href="#" class="menuOpener">Opcje</a><a href="#" class="sprite menuOpener"></a></li>
<li class="submenuElement">Op...
Hi,
I am looking to build an app similar to santayourself (facebook application) a screenshot below
The application will accept a photo and then the users can move it with controls for zoom and rotate and moving image right, left, up and down. Then once the face is as required then the user can click save to save the image on the serv...
I'm using Javascript with jQuery. I'd like to implement out params. In C#, it would look something like this:
/*
* odp the object to test
* error a string that will be filled with the error message if odp is illegal. Undefined otherwise.
*
* Returns true if odp is legal.
*/
bool isLegal(odp, out error);
What is the best ...
Hi,
I have a .svg file that has the following code:
<svg version="1.1" x="0" y="0" width="256" height="256" viewBox="0 0 335 394">
plus a ton more code (namespaces etc) that is unnecessary to this situation, but the problem I have is that I need to somehow alter that width and height (from 256px to arbitrary size) using JavaScript. T...
This is something that I have noticed the retrieving "owner/viwer" information is not working for past couple of days. Here is the code that can demonstrates the same:
<script type="text/os-data" xmlns:os="http://ns.opensocial.org/2008/markup">
<os:OwnerRequest key="owner" fields="name"/>
</script>
<script type="text/o...
I am creating an Android app using PhoneGap and jqTouch, and I have a JSON object containing a word along with a language which that word is in. How can I sort this alphabetically, by the column on the right (the language), using Javascript? The end result should be Afrikaans as the first entry and Zulu as the last.
var languages = {
...
How can i get access to the Google Finance gadgets JavaScript API (http://code.google.com/intl/de-DE/apis/finance/docs/finance-gadgets.html#JS_API) ??
I see the methods but how can i include the javascript api into a html file? Or must i use the google IDE?
...
Hi, I'm trying to remove a class from a HTML tag along with adding a new one and also doing some other magic.
Right now I just have a procedure style coding going on... which I know there's another way of doing it. Like creating a function within another function? I'm not sure what it's called and sometimes when trying to do it, it neve...
Hi,
I am developing an application in JSPs and Servlets, and I want to know if, and how it is possible to pass an array from my application in to some javascript so that i can use the Autocomplete feature from the jquery ui library.
Thanks in Advance
Dean
...
i can't find how to create it,
i can create it on google maps v2, use :
map.addControl(new google.maps.LocalSearch()
but now my company use v3 now ,
so how to create it .
thanks
...
I am developing a page to display an image, dependent on what the user has previously chosen from a menu. The name of the .jpg is passed in as a parameter ('photo') on the URL and I have been able to parse this as a global variable (myphoto). The .jpgs are all held in one folder.
I now need to do something like (I guess) quoting the ima...
Hello again,
My problem now is trying to send the ID (editable: false) of a row when editing that row.
For example, i have a grid with columns userid(editable: false), username(editable: true), firstname(editable: true), lastname(editable: true). When editing the row the grid is only sending the parameters username, firstname and las...
I have something vaguely like the following:
<div id="body">
surrounding text
<div id="pane" style="overflow: auto; height: 500px; width: 500px;">
lots and lots of text here
<span id="some_bit">tooltip appears below-right of here</span>
</div>
more surrounding text (should be overlapped by tooltip)
</div>
and:
<div i...
Is it possible for a NSTextField to respond to javascript commands??
Thanks!
Elijah
...
I'm not entirely sure how to implement objects in JS.
Here is a constructor:
function FooList(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
{
alert("constructing");
this._arg1 = arg1;
this._arg2 = arg2;
this.refresh();
}
I am trying to call it here:
FOO_LIST = new FooList(
arg1,
arg2,
arg3,
arg4,
arg...