Hi
I'm trying to get my head round this context problem while using prototypal inheritence (which I've not really played with before). I have an AutoScroller object:
function AutoScroller() {
this.timer = null;
}
AutoScroller.prototype = {
stop: function() {
if (this.timer == null) {
return;
}
clear...
I'm trying to find information on how to serialize a JSON object to query string format, but all my searches are drowning in results on how to go the other way (string/form/whatever to JSON).
I have
{ one: 'first', two: 'second' }
and I want
?one=first&two=second
Is there a good way to do this? I don't mind plugins or whatnots - i...
Hello!
I want to include a 3D Picture gallery on my site.
All I have found were several galleries in flash, but I am looking for one in javascript.
Something like http://www.flashloaded.com/flashcomponents/3dwall/ (FLAT WALL or 180° INSIDE CURVATURE) but in javascript.
Can you help me? It seems to be very difficult writing an own kin...
I need to make a login form with a lightbox effect which should run in internet explorer and mozila. After clicking the login,I want to use only javascript and css.How it will be possible?
...
Hi
I have text inside "textarea" and I was trying to remove the text between: <textarea></textarea> using replace function with some regex. here is what I did so far:
x = '<TEXTAREA style="DISPLAY: none" id=test name=test>teeeeessst!@#$%&*(LKJHGFDMNBVCX</TEXTAREA>';
x.replace('/<TEXTAREA style="DISPLAY: none" id=test name=test>.*</TEXT...
I've implemented autocomplete on an input field, but the box does not show up and firebug returns "this.source is not a function". I've used autocomplete on other fields of the same page without any problems. (two textarea's).
I'm using the following code to debug, same effect if I run from script file or Firebug command line.
var fake...
In my drupal config I have created a video page, which I'm using to create video titles.
I also created a course page, which will be displaying all the video titles available in that course using views and node reference combination. It only displays video title list.
Now,
Take a look here
http://www.lynda.com/home/DisplayCourse.aspx?...
I'm trying to insert a form dynamically using document.write but for some reasons the form is not working anymore.
Here is the code which calls the javascript http://pastebin.com/iMQ3FxHM and here is the javascript which writes the form http://pastebin.com/vMn9BrKQ . I'm using pastebin because stackoverflow doesn't escape the html tags ...
Hi
I'm trying to preload a number of images generated on the server to a small website. The preloading is done using setWindowTimeout and uses an Image object, sets the onload callback and then applies the new request uri.
For some requests, the server may have to signal that the image is 'unchanged' and I'm doing it by sending done a...
Hi
I have strange issue with like buttons on my site. When I enter a page it shows up correctly, than after refresh it doesn't appears and I have javascript error
FB.provide is not a function
[Break on this error] FB.provide('Array',{indexOf:function(a...|c.hasOwnProperty(d))a(c[d],d,c);}});
Initialization and asynchronous including...
how to convert this json to database:
var obj = {
'one' : ['qq','rr'],
'pizda' : { }
}
and then retrive it and use it?
...
Hi Folks,
I'm recently fooling around with some ajax polling techniques. However, it seems like I can't overwrite the onreadystatechange handler from a XMLHttpRequest object in FireFox (3.6.7).
On tracking the problem why FF throws an exception when trying to access onreadystatechange, I realized it depends whether the send() method wa...
I would like to implement a background image transition effect using jquery. The images should change from one to the other with a fadeIn fadeOut effect. The image names are in the database but retrieved from a folder on my PC.I want the transition to take place automatically without listening to any events like click events.
This is my ...
Hello, Can you please help with my problem
I have the following JavaScript object:
var data = {
'rows[0][name]': 'foshka',
'rows[0][tel]': '096',
'rows[0][opt]': 'none'
};
The problem is that i get an error while trying to pass variable as rows index:
var i = 0;
var data = { ...
I have developed a webpage containing charts using HighCharts. It works fine on the PC safari browser, but takes a long tim to load on an iPhone. What could be the issue?
...
I wrote a Proxy in C# using sockets and a TCPListener listening to a particular port. Currently the listener gets the "GET" request from the clients browser, and then uses the Socket.Send() class to forward the request on behalf of of the client. The response is recieved using the Socket.Reveive() class and then forwarded onto the client...
I've noticed that calls like setTimeout() work either as :
self.keyword()
or just on their own e.g. keyword().
What is the different between the two calls?
...
Hi. I'm writing a Dreamweaver CS4/CS5 extension to allow users to insert HTML5 video tags but with a dialog box that allows them to customize it. It also inserts a JavaScript library in the head of the page along with a CSS stylesheet link. Here's what the user needs to be able to do:
See a dialog box that allows the setting of any nu...
I'm creating a simple 2D game in javascript/canvas.
I need to figure out the angle of a certain object relative to my position.
So: say I'm at (10,10) and the object is at (10,5) - that would result in 90 degrees (as positive Y is down, negative Y is up)
(10,10) vs (10,15) would be 270 degrees.
How would I go about this?
...
In JavaScript, all Objects act a bit like hashmaps. However, the keys to these hashmaps must be strings. If they're not, they're converted with toString(). That means:
var a = {foo: 1};
var b = {bar: 2};
var o = {};
o[a] = 100;
o[b]; // 100
JSON.stringify(o); // '{"[object Object]":100}'
That is, since the toString() o...