Hi guys :)
Chrome for me has always been a reference on web standards, unfortunately the defer isn't supported and IE supports it since version 5.5. Why ?
<!--
js.js
document.getElementById ("hi").innerHTML = "Hi :)";
-->
<!DOCTYPE html>
<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en" lang = "en">
<head>
<meta http...
Hi,
I am using formcheck mootools plugin.
On clicking edit button:
I need to trigger when form submit; when validation is success.
I need to see error messages when validation fails.
new FormCheck ('editForm',
{
submit: false,
onValidateFailure: function() {
alert('fail');
},
o...
If given an array of arrays creating an n x n map of tiles, is there a way to loop through an algorithm that would highlight tiles which form a diamond shape? (the key problem is not to hardcode it, so it could work for any sized map)
For example: if the map was 5x5 tiles like so:
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
How could an algorithm ...
http://www.quirksmode.org/dom/domform.html
I was reading through the site as mentioned above and tried to implement it in my project. But it just doesn't work when i click on "get me more fields" button. Here is the code:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//...
i have this code to populate the option in my select box(i have 7 select box in this page) with json response from the server(ajax)
for (j=1; j <= 7; j++){
$.getJSON('mobile_json.php', {id:j}, function(data) {
var select = $('#userAccess' + j);
var options = select.attr('options...
Hi - I've a question about implementing a slider control in a browser.
I need to playback data over time, in a browser. I will have one Worker filling the playback buffer by making calls to a REST api. The UI thread will then consume the buffer and playback the data to the user.
I want to simulate youtube progress UI control. It shows ...
I have some ajax calls in my document.ready()
like :
for (j=1; j <= 7; j++){
(function(index) {
$.getJSON('my.php', {id:index},
function(data) {
$.each(data, function(index2, array){
........
});
});
})(j)
}
//DO NOT CONTINUE UNTIL FINISH AJAX CALLS
........
MORE JQUERY CODE
...
So, I said this might be possible to my client, and i said I'd research it and let him know. Anyways, with JS or a CSS hack, is it possible to make text stretch 100% of the window? What i mean by this is, how can I make the title of his site, no matter the window size, fit exactly 100% inside the window by dynamically changing the font s...
Is it safe to store a password in a sessions variable?
For example, usage would be in a form which is submitted to itself.
For example a change classifieds page, where users first enter a password, and then if pass=ok, show the form to change the classified. All on same php-page.
But Whenever a picture is uploaded in the "change" part...
Hello Hello
I have a SWF loaded via a "swfobject.embedSWF()"
I use Javascript's methods to pass calls via the flash APIs: http://developer.longtailvideo.com/trac/wiki/Player4Api#Sendingevents
call.player.sendEvent('LOAD', theFile)
Using a XMLHttpRequest() call via GET to a PHP script I get a file url:
http://xx.yy.com/protected/5dd...
I am relatively new to javascript and I have watched two tutorial videos by Douglas Crockford on the subject. He recommends creating object oriented design in javascript in the following way, through the use of nameless functions and closures:
function Class() {
var privateVar1,
privateVar2;
function privateMethod1() {
}
functi...
I'm trying to parse HTML in the browser. The browser receives 2 HTML files as strings, eg. HTML1 and HTML2.
I now need to parse these "documents" just as one would parse the current document. This is why I was wondering if it is possible to create custom documents based on these HTML strings (these strings are provided by the server or...
Possible Duplicate:
Store password is ok in php Session variable?
I have a "change classifieds" section where users may change their classified information, pics etc.
Each classified has a password, which the user must enter before being able to change.
The problem occurs when the PHP-page gets submitted to SELF, for example...
It's a known fact that a lot of websites use javascript codes to prevent from browsing them using iframes. I would like then my iframe to behave like this: if the site doesn't have such a code and isn't trying to redirect the user, its content should be shown in the iframe. But if it's trying to redirect, it should be opened in a new tab...
I have a "messages" page where it is possible to comment on every message. I'm doing a facebook-like textarea where when you focus it shows the submit button and when you onblur it hides it again. So far i've tried some different things:
<script type="text/javascript">
function focusTextarea(id) {
var form = document.forms[id];
...
I have an application that requires the down arrow, or the letter s for a specific function (both down arrow and the letter "s" trigger the function in the application).
The user cannot use the keyboard so I have to make a button on screen for the user to click. The application is displayed in an HTML page and I have made other buttons...
I notice that javascript have several way to set and get attribute with an element.
I am not sure is there any diffrence between them. especially, is there cross browser problems.
...
I have this :
p['record_id'] = 2;
$('#trcode').val($(this).load('url_to_PHP_methode',p,function(str){}));
The value returned from PHP method is like this -> "Just String"
In firebug, there is correct response value, "Just String", but in text input with ID #trcode it shows [object Object].
So, my question is: How to show the corre...
Hello!
I have a HTML document which llokes like this:
<div class="this_can_be_selected">Some text here</div>
<div>No text in the div above is selected</div>
<div class="this_can_be_selected">Some text here</div>
<div>No text in the div above is selected</div>
<div class="this_can_be_selected">Some text here</div>
<div>No text in the ...
Are there any text selector in jquery ?
My Code
<anything>Hello World! Hello World!</anything>
Reslut Should be (Using Jquery)
<anything>Hello <span>World</span>! Hello <span>World</span>!</anything>
...