In normal javascript, I can check either
if (i == undefined)
or
if (i === undefined)
or the "typeof"
however, within facebook, it will have the api_key append as the prefix in undefined.
i.e. it will become
if (a12345_i == a12345_undefined)
which is NOT undefined
so, what can I do to find out the variable is undefined or not...
I would like to open a popup window using javascript in my c#.net app. This is the code in the body tag in my webform
<script language=javascript>
function openWindow(strEmail)
{
window.open('CheckEmail.aspx?email=' + strEmail + , 'Check Email','left=100,top=100,toolbar=no,scrollbars=yes,width=680,height=350');
r...
First of all thanks.
I have installed ckeditor in my joomla and it's working fine, except the uploading section. I got an error message
" 500 internal server errors
The request was not completed. The server met an unexpected condition.
mydomain/plugins/editors/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files&CK...
hi
In this below program i am printing the contents of the div when i click the print button i am receiving an alert message printer error not available why it is so
<html>
<head>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js" > </script>
<script type="text/javascript">
function Print...
I want a widget that allows users to add a request if that request hasnt already been added, or vote for a request if it has already been added. when a user adds a request, i want it to immediately appear as the first element of the list, like what would happen to your timeline if you made new tweet. ive tried to look for a jquery plug...
i want to load user's map-Features not using create a kml file.
how to do it..
thanks
...
Hi,
I have defined a function in which i want to open a page on a new window. The function has following code:
echo"<script>window.location.href='http://localhost/paymentsystem/views/payment.php?id=".$id."'</script>" ;
Right now its opening the page on the same window.
I want to know how can i open this page on a new tab?
R...
i follow the api step by step,but can't load successful..
this is my code:
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
</head>
<body >
<script type="text/javascript" src="http://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22gdata%22%2C%22version%22%3A%222.x%22%2C%5B%22c...
Why bitwise operation (~0); prints -1 ? In binary , not 0 should be 1 . why ?
...
you can load geo-info via two way below:
var g = new GGeoXml("http://zjm1126.3322.org/mymedia/b.kml");
map.addOverlay(g);
or
var g = new GGeoXml("http://tagzania.com/rss/user/blogwatcher/7wonders%2Bnew/");
map.addOverlay(g);
if i want to saving the features(user made on google map,line and point) ,i have to make
a kml or make a ...
How to check for comma separated values in a text box and raise an alert if not found.
And there is should be characters in it like A,B,C,D
function validate()
{
//validate text box;
}
<input type="text" id="val" >A,B,C,D</input>
<input type="button" id="save" onclick="validate()">
Thanks.
...
I've been struggling to get the Browser Dbus Binding working for Webkit/GTK (http://gitorious.org/webkitgtk/stable) port. I have been able to successfully compile the Webkit/GTK port as well as the DBus binding library on my Ubuntu Lucid Beta. I also installed the DBus binding library at the standard location /usr/local/lib. But now when...
The following syntax I wrote
<input id="Button1" type="button" value="Scan" language="javascript" onclick="return Button1_onclick()" /></td>
<script language="javascript" type="text/javascript">
function Button1_onclick()
{
window.open("win1.html","Window1",
"menubar=no,width=430,height=360,toolbar=no");
}
</script
...
I have written the following code. But it is removing only not <br>
var docDesc = docDescription.replace(/( )*/g,"");
var docDesc1 = docDescription.replace(/(<br>)*/g,"");
...
What is the best way to perform client-side form validation using Javascript (with minimal code duplication) when using JSR 303 bean validation on the server side? I'm currently using Spring 3 and the Hibernate Validator.
...
Hello,
I'm a noob but trying vigorously to simply validate email addresses that only end in ".edu" or ".ac" is there a simple function/script/solution to this seemingly simple problem? able to use php,javascript or jquery.
Any help would be great thanks in advance!
...
How do i create message queuing mechanism for real time chat in asp.net ? At least post some points to start with because for now i'm using synchronous calls to DB for any change.
...
Hi,
i have a page with the main content area being big thumbnails, but elsewhere on the page are about 100-200 other (smaller) thumbs that are not important but must still show.
What ways do i have to make the main ones show first (or the unimportant ones show last)?
I was thinking of these ways:
JS load: on page load (once it has fi...
Hi all
I have a question regarding Facebox. When I click a certain link on my page, the Facebox modal window opens just fine. But inside this modal window I'd like to have a form that users can submit. When the users click the submit-button, the whole page refreshes, and my Facebox-window is closed. This makes sense to me, but I'd like ...
Hi folks,
I want to make a a printable schedule as table with fixed height/width cells.
Cells contains names and i don't want that the names do line breaks.
Is there a way to dynamically adjust the font-size so that there will be no linebreaks or hiding text?
Maybe someone knows a good plugin or snippet for that issue?
...