Hi!
I'm trying to learn new technology called Web Sockets.
I've got the setup (pywebsocket as Apache2 module) working and I'm playing with examples.
http://code.google.com/p/websocket-sample/wiki/samples?ts=1262888726&updated=samples
One thing is bothering me - all the examples use shared file to monitor changes in message counter, ...
i have seen lots of solution, but what is the best stable solutin for no-administrator user who cant config server. i found some of these:
using apc extension
perl cgi instead of php
flash based
using js framework
im not sure i could use extension, not understand perl to control over the process, and totally not use flash in mywebsit...
i have to display auto-generated images from a folder in html.
how can i check if file exist in javascript/jquery so i can do a for-loop and display them all. they will be numbered 1.jpg, 2.jpg and so on.
...
Hi,
Given a form with the following elements.
<input name='button' value='Submit' type='submit'/>
<input name='button' value='Cancel' type='submit'/>
I want to submit the form using javascript with a completely new value.
this.form['button'] = 'MYVALUE';
this.form.submit();
How do I submit the form with a completely new value for...
Hi I've read the articles and the excellent piece on scope and closures by Robert Nyman.
However i cannot get this to work. I'm trying to assign a mouseover event to various markers and then set an iframe src depending on the marker moused over. I get the infamous last entry for every mouseover event. I've played with it for the better ...
Hi,
I've been looking into doing inheritance in JavaScript the correct prototypal way, according to Douglas Crockford: http://javascript.crockford.com/prototypal.html
He writes: "So instead of creating classes, you make prototype objects, and then use the object function to make new instances"
I figured this was the way to do it:
var...
Hello,
I have searched various sites and haven't found anything I can extrapolate a successful answer from. Either that or my spectacle wearing is justified and I have forum fatigue.
Here is my issue: I need a dynamic string within a line of HTML:
<a href="#" onClick="$.scrollTo('#xxxjump', 800, {easing:'elasout'}); javascript:animate...
Servus Ninjas,
this is what ecmascript 5 spec. (page 118) in the section Function.prototype.apply(thisArg, argArray) says:
NOTE: The thisArg value is passed without modification as the this value. This is a change from Edition 3, where a undefined or null thisArg is replaced with the global object and ToObject is applied to all othe...
I am a long-time, generally very happy user of Prototype. I recently switched to jQuery because of the massive community support, basically amounting to a unanimous choice and de facto industry standard. Since then I have not been so happy. Yes, I have read the comparison threads, and I can live without the handful of ported Ruby/Rail...
I need to implement for my Grails web site something similar to the orange and closable dialog that appears on the top of the StackOverflow website whenever SO detects that it is your first visit. (for a demo, just start your browser in Private/Incognito mode and go to
www.stackoverflow.com)
I am interested mainly in the front-end com...
im using a jquery image preview plugin for showing preview of my link images when having the mouse over them.
http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/
it works on links with images like:
<a href="http://website/1.jpg"><img src="http://website/1_thumbnail.jpg"></a>
however, it doesnt work ...
I have INPUT element and I want to reset the previous value (not necessary original value). There are 2 ways:
Save the value in another variable and pull it out again
Press ESC key. But I don't want users to press ESC but click a button.
So for #2, how can I create a ESC keystroke using jquery?
...
I have 3 button-images in one page, such that when you press 1, it should show the iFrame related to it, and hide the others. I just started learning about webdev, and I've browsed online, but i can't seem to make it work. :o
Here's my code:
<div id="tabs">
<div id="overview">
<a href="#wrapper">Overviews</a>
</div>
<div id="ga...
i've got a jquery image preview plugin that i use. i use it like this:
$('a.preview').live('mouseover', function() {
$(this).imgPreview({
preloadImages: 'true',
});
});
i want the imgPreview function to be executed after an jquery ajaxcall that will insert an image in the DOM. so i wanna execute it to preload the i...
How can I use jQuery to trigger a callback of a JavaScript function when I scroll down and see a picture? I wish to delay loading certain images until they actually appear on-screen... Ideally, I'd be able to do something like:
$('#img#').look_on() { ...
So no images are loaded apart from those I have seen.
...
Hi,
I've written a greasemonkey script that modifies craigslist search results to appear in two frames, a frame on the left with the results listed and a frame on the right to display each posting if clicked on from the left frame (I modify the URL of each result to say target="rightframe").
The problem I have is that the 'visited' stat...
I am trying to build a ajax feedback form but I am having problems getting it to display. The feedback image displays but when I click it nothing happens.
My Form:
<div id="feedback">
<img id="feedback_link" src="images/feedback.gif" href="javascript:open('feedback_form_wrapper');" />
<div id="feedback_form_wrapper" styl...
Hi,
I am writing a jQuery plugin which makes use of two nested <DIV> elements.
The outer div has a fixed width with overflow:scroll and the inner div (which is much wider) contains the content which I want to scroll around.
This all works fine apart from the fact that I want to use some JavaScript (with jQuery) to set the height of th...
Class A (mine) implements event handlers for class B (3rd party). Within these event handlers, I would like to access class A's properties.
Using this in class A's handlers does not work because it references class B's scope.
Global variables seem like the only option. Am I missing a better alternative?
...
I have this piece of code:
var categoryDetailId = $("#createEventForm-categoryDetail-idCategory").val();
and this html from myrendered page:
http://erxz.com/pb/22844
When I hit the button it goes to Nan
Update:
I went in and set that and it didn't work still. I also have this one.
var eventInformationId = $("#createEvent...