Tagged Questions
-4
votes
2answers
50 views
Session Handling (PHP vs. JavaScript) [closed]
I am currently working on a little webshop and I need a good session handling for the shopping cart.
I worked with PHP and I never used JavaScript, but what is the diffrence when working with session ...
0
votes
10answers
114 views
Remove JSON entry by value [duplicate]
Possible Duplicate:
Delete from array in javascript
I have the following JSON object:
[id:84,id:92,id:123,id:2353]
How would I go about removing the item which the value is "123" using ...
1
vote
1answer
82 views
How to inherit all event handlers from a custom object in Javascript
My JavaScript application is based on prototypal inheritance. Consider a chain of constructors, whereas a new instance of a higher member is used as a prototype of a lower member. By that, properties ...
1
vote
1answer
1k views
Capturing the newly created node with JSTree contextmenu
I'm trying to capture the name of the newly created node with jstree's contextmenu. I can capture the name of the parent node that I'm adding the new node under (with obj.text()), however, what I ...
0
votes
1answer
112 views
JavaScript function data handling
I'm newbie to javascript and I need to now one small thing.
I have this code
http.get(options, function(res) {
res.setEncoding('utf-8')
res.on('data', function (chunk) {
...
2
votes
1answer
169 views
Handling Javascript Event Order in IE
How does IE handle event propagation and is there any way to know which HTML element is currently handling the element?
The problem is something like this.
<div id="someDiv">
<input ...
-1
votes
1answer
90 views
Event listener seems so disappear once I use the same code to add the listener to another element
So, this has been bugging me for quite a while.
I have a javascript constructor that goes smth like this:
function TimeBlock(c, local_count){
/* creates a timeblock */
.
.
.
...
6
votes
3answers
981 views
can I catch exception of Iframe in parent window of Iframe
I have an IFrame in a page and IFrame has some java script
At run time java script in Iframe gives exception which i want to catch on parent window
please help
Edit:
The code taken from comment:
...
1
vote
3answers
2k views
jQuery: binding a single event listener that can handle events of its children
I encountered a question to which I didn't know the solution for.
Suppose I have this HTML markup (dynamically generated by the server or simply a static file):
<ul class="myList">
...
0
votes
3answers
250 views
handling ajax return value
I searched a lot, but I could not find anything. The function below is making a database request and getting the data through $.post. I get the data in the inner function but I need it outside to ...
0
votes
1answer
50 views
javascript - dom searching for id returns an error - how to handle?
for (i=1; i<=4; i++) {
try {
timer = document.getElementById("timer"+i).parentNode.parentNode.parentNode.childNodes[1].childNodes[0].childNodes[0].className;
}
...
1
vote
2answers
983 views
Javascript mouse event not captured properly when mouse moved very fast
I am using JavaScript mouseover and mouseout events when I move my mouse very quickly the events are not triggered. Can you tell me what the problem is?
Please let me know how to solve this. Also let ...
0
votes
1answer
301 views
how to save a captured screenshot locally in chrome plugin?
how to save a captured screenshot locally in chrome plugin?
I m stuck badly.
If it can be done by only npapi than please give me some examples. Please do help me.
Thanx in advance.
0
votes
9answers
2k views
Check if user closed the page in PHP?
I made a chat using PHP and JavaScript chat and there is a disconnect button which removes user from the chat removing him from user list first. But if the user closes browser then he will remain in ...
0
votes
1answer
293 views
java script on event handler and color contrasts
The radio buttons when selected work fine in terms of outputting a selected color via the radio buttons onto the page or screen.
Each radio button represents a different color.
I was wondering if ...