Hey everyone,
I'm new to Django and trying to set up a Facebook connected site. There seem to be three available options at the moment:
Use middleware with PyFacebook. I was able to get the django-facebookconnect app going fairly easily and mod it to suit my needs, but it is currently unclear whether PyFacebook even supports extende...
Hi all, I'm familiar with generating office documents server-side by including the following at the top of the response:
<%
Response.Buffer = True
Response.ContentType = "application/msword"
Response.AddHeader "content-disposition", "inline; filename = ASP_Word_Doc.doc"
%>
I'm currently facing the challenge of doing this purely client...
document.all["" + object.getAttribute("EndDate", true) + ""].value;
does work in firefox but work in IE.
what is the alternative way other than the code above to work in multiple browsers?
...
Hi,
I am trying to create a java script function to keep track of the changes made in a web form while submitting the page. For normal .net textbox or textarea I can compare the value with default value.
var ele = document.forms[0].elements;
for ( i=0; i < ele.length; i++ )
{
if ( ele[i].value != ele[i].defaultValue ) return true...
If you use append() to insert a new DOM node, is it possible to move the chain context to the new element?
This sample code illustrates the subject:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title></title>
<script type="text/javascript"...
Hi
I have this map
I'd like to change the marker image, when zoom is greater then 5.
I know how to detect zoom change, but I don't see how to change the image.
...
I'm looking for framework which provides unit tests for JS. Later, I'll have to integrate it with CruiseControl.NET. I have a lot of asp websites using JS and I need to automate testing for them. For example I used local JSUnit (may be other framework), which was quite easy for me, but I have no idea how to integrate it with CC.NET. Mayb...
html
<div contentEditable="true">testing....</div>
jQuery
$(document).ready(function(){
$('[contenteditable]').removeAttr('contenteditable');
});
above codes is fine and working. you can feel it here.
Now, try this
$('[contentEditable]').removeAttr('contentEditable');
// notice the CamelCase of the string contentEditable
in...
function get_request(url) {
var request = new getXMLObject();
request.onreadystatechange = function () {
if (request.readyState == 4) {
alert(request.responseText);
var data = eval('(' + request.responseText + ')');
alert(data);
return data;
}
}
request.open("GET", url, true);
//alert(document...
Hi,
I dynamically have to call a Javascript after a tag is rendered. Is it possible? I am doing some Ajax call which on return should repaint a DIV tag. And it is repainting successfully. I need to fire a Javascript method AFTER the DIV tag is repainted. How to do that?
Thanks
...
Hai,
I have one HTML page with Javascript functions included in it.
In that HTML page, I have a table with 2 rows and 2 columns.
Also I have an array with 4 values.
What I need is, when the user clicks on one table cell, a value from the array should be displayed inside that cell.
Can any one post some sample code here?
Thanks.
...
Here's the code I currently have.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script>
function draw()
{
var diagCanvas = document.getElementById("diag-cnvs");
diagCanvas.height=window.innerHeight;
di...
If you have i.e. an onlineshop and you want your visitors to be able to like (with fb-like-button) every product in your shop, how can you make this?
i mean, the like button should be corresponding to each produkt, to say: the product A is liked by 20, the product B is liked by 45 and product C by 13.
i only have found solutions, where...
Could anybody provide me the regular expression for the following patterns?
$1234
$31234.3
$1234.56
$123456.78
$.99
My requirement is the digits before decimal should not exceed 6 and after the decimal point it should not exceed 2 digits. Please help me. Thanks in advance..
...
Hey all, i am in need of some help trying to figure out why this code is not working as it should:
$('#slickbox').hide();
$('#slick-show').click(function () {
$('#slickbox').show('slow');
$('#userSetupP').text('User Custom Panel (click to close)');
$('#slick-show').attr('id', '#slick-hide');
return false;
});
...
{"0":{"name":{"name_id":"How to battle","tab_level":"2"},"job_reward":{"job_money":"10000","job_exp":"50","job_energy":"23"}},"job_required_items":[{"filename":"sword.gif","no":"2"}],"1":{"name":{"name_id":"Check for battle","tab_level":"2"},"job_reward":{"job_money":"1000","job_exp":"12","job_energy":"10"}}}
i want to parse this json ...
I am using an EL expression inside JavaScript for rendering Chinese value.
alert('#{bundle.chinese}');
But it renders question marks (?) instead of actual characters.
When I use it outside a script tag in the same XHTML page, e.g.
<p>#{bundle.chinese}</p>
It renders the right chinese Characters. View source shows the html UTF enc...
Hi,
I am using Jquery.
I have an xml returned from a webservice.
So I want to extract some value from it.
This is an xml example returned from webservice:
<ns3:ExecuteResponse xmlns:ns3="http://www.opengis.net/wps/1.0.0" xmlns:ns1="http://www.opengis.net/ows/1.1" xmlns:ns2="http://www.w3.org/1999/xlink" statusLocation="http://webse...
Hi,
Based on user's preferences I inject into my application a jason_encoded(translation array) which is later converted to javascript object and used by the application. Which, in your opinion, is the better way to do it?
Solution 1:
<head>
<script type="text/javascript" src="lang.php"></script>
</head>
Solution 2 (code is execu...
How to create a downloadable link in a website.
...