Hi!
This code in firefox is working. In IE the alert is empty.
<select id="ronny" name="ronny" onchange="AjaxPost();alert(document.getElementById('ronny').value);">
<option id="selected_ronny">All</option>
<?php
foreach($d_ronny as $ronny )
{
if($ronny == $_POST['ronny_select'])
{
echo "<o...
Firstly, I did look at related posts, but none of them quite stoops down to my stupidity levels. Its my first time working with web technologies and I'm trying to work with Ajax/JQuery and Django.
Here is the code:
$(document).ready(function() {
$('#result').ajaxError(function() { ...
Hi,
I often find myself wondering what is the best way to do a JavaScript based web application. The server may be PHP, Perl or whatever -- but when the client-side is ExtJS or something similar, how do you construct your application? What is the work flow exactly?
For example, how is the authentication handled? In a current applicatio...
I need to implement a Checkbox tree and I came across this component called jstree. It is a jQuery component and unfortunately I have no experience with Jquery. I followed the documentation and I have implemented my checkbox tree. The problem is with finding the selected checkboxes upon some event,say form submit. The API says,.get_check...
if i have a string like
<p>this is some content</p><script>alert('hello');</script>
i want to get the string without any scripts, but with the formatting, how do i do it?
<p>this is some content</p>
i tried
var html = "<p>etc</p><script>alert('hello world');</script>".replace("<script*</script>", "p");
but that gave me somethin...
Hello!
I have a problem using the Carousel component of the Sencha Touch Framework. I have a component extended from a simple Panel that does the following:
var cardItems = [];
this.basicCard = new Ext.Component({
scroll: 'vertical',
html: 'Hello Carousel 1!'
});
this.basicCard2 = new Ext.Component({
...
I am trying to get a date picker working and I am really struggling with my limited javascript knowledge. I have been basing this on this tutorial.
I have the following code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="sc...
var foo = 'hello';
var myfunc = function() {
console.log(foo);
var foo = foo || 'world';
console.log(foo);
}
myfunc();
why is the first foo logged to be 'undefined' ?
...
I tried different ways to do this but i cant get it work. this is the code:
$.ui.dialog.defaults.bgiframe = true;
$(function() {
$("#category_edit_dialog").dialog({
width: 960,
hide: 'slide',
position: 'top',
show: 'slide',
close: function(event, ui) { redirect here? how? }
});
});...
What is the difference between
alert("abc".substr(0,2));
and
alert("abc".substring(0,2));
They both seem to output “ab”.
...
Hi,
in my main js file where I put all my jQuery stuff I have following new funcitons:
function getDate(){
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
return day"."+month+"."+year;
}
function getTime(){
var current...
Hi
How to convert from Hex String to ASCII string in javascript ??
Ex:
32343630 it will be 2460
Thanks alot..
...
Hello I am using jQuery UI Accodions
By default, the first accordion is shown and other are hidden. I would like to hide all the accordions by default until the user clicks it.
How do I do that ?
Thank You
...
Is it possible to use a method from the parent class in the overwritten version in its child in javascript?
...
Is it possible to use the tag to capture an electronic signature using a stylus?
I have an example that works on Desktop Opera, however it fails on windows mobile version of opera.
when I tap on the canvas area Opera simply "zooms" the screen.
here is my html
Canvas Paint - Example 5
Drawing tool:...
http://js1k.com/pleaseDontHotlinkMe/435
in javascript?
...
All math functions in JavaScript use radians in place of degrees.
Yet they are either unequal, or I am way off base.
The conversion from degrees to a radian is:
var rad = angle * Math.PI / 180
A 90 degree angle equals 1.57079633 radian
The cosine of a 90 degree angle equals 0.
The cosine of a 1.57079633 radian equals -3.20510345 × 1...
Hi. I have for example this array (each number is singolar, no one duplicate) called pvalue : 1 2 3 15 20 12 14 18 7 8 (sizeof 10).
I need for example to pop the value "15", and after this pvalue should be 1 2 3 20 12 14 18 7 8 (sizeof 9). How can do it?
the pop() function take the value at the end of the array. I don't want this :)
ch...
How can i make a div to consume maximum height available? Like Google Calendar does.
...
Basically what I am after is this,
var foo = 'I am foo!';
alert(window['foo']);
// output = I am foo!
This does not work in a jQuery wrapper, I understand that it may be due to jQuery having renamed the window object or whatnot. If anyone has any inkling as to if this may be possible in a jQuery wrapper, I would appreciate the knowle...