Do anyone know how do use javascript to redirect user login using Google Accounts?
I know there is "users.create_login_url(self.request.path)" but how do that integrated to "`window.location"
Or there is alternative??
...
I have an optgroup like this:
<optgroup label="Eller välj Län" title="Eller välj Län" style="background-color:#FC9;">
<option value="Blekinge Län">Blekinge</option>
<option value="Dalarna Län">Dalarna</option>
<option value="Gotlands Län">Gotland</option>
</optgroup>
Problem is, only in Firefox, the class applies to all options i...
i want to chek is the user is loggedin before hitting the ajax request
or i want to chek in ajax handler(ashx file)
i have httpContext there in ashx file
can i chek thru dis?
...
I am trying to implement this JqueryGallery to my website(big gray box). Now my problem is that the images doesn't appear.
Here my website
here is my header code:
<link href="css/galleryview.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src...
How do I use jQuery with Dojo toolkit? I've heard of both libraries being used simultaneously, jQuery for DOM-related and Dojo for UI (dijit), but I can't find any tutorials or examples of this. Will I run into any conflicts or issues if I load both libraries?
...
I have this function for adding options to a Select list:
function addOption(selectbox, value, text, cl )
{
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
if (cl==1){ optn.className = "nav_option_main"; }
selectbox.options.add(optn);
}
I have just discovered the "optgroup" tag, but I don't know h...
Hello all! Quick question
I originally had a submit button.
<input class="submit" type="submit" class="input" value="Add" name="command" />
but now I would like to use a <a href> instead. The issue is, the value="Add" is very important.
I'm currently making the <a href> like this.
<a href="javascript:document.register.submit();">...
Hi
im using java script to upload multiple images but some how its no working ...only the first file gets uploaded. javascript works standalone but when i integrate it with my existing code it doesnt. im refering the same php file after submit and then using if($_REQUEST['Submit']).
i have tried fixing the number of elements it works......
Let's say I have a web page (/index.html) that contains the following
<li>
<div>item1</div>
<a href="/details/item1.html">details</a>
</li>
and I would like to have some javascript on /index.html to load that
/details/item1.html page and extract some information from that page.
The page /details/item1.html might contain things...
I want to display a certain message on a certain page.
Suppose the name of the page I want to display something on is called "foo_page.html",
How can I do this using javascript?
...
The following code works in Firefox 3.6, but not in Internet Explorer 8:
<html>
<head>
<title>Example</title>
<script type="text/javascript">
function init() {
alert(document.designMode);
document.designMode = "on";
alert(document.designMode);
}
</script>
</head>
<body onload="init()">
</b...
I am making a web page which will allow users to input and view data for different dates, and to change the date, there are two buttons, one of which will display the previous day, and one which will show the next day. I know that I can do this by submitting forms and reloading the page every time they press one of these buttons, but I ...
I am searching for an expression builder GUI (like the one used in Microsoft Access). It can be plain Javascript or JQuery plugin. I am loathe to build my own and reinvent the wheel if one already exists - and yet, a search on Google does not find anything remotely useful.
Is anyone aware of any such library/plugin or article that cover...
I have the following JavaScript code:
function parentFunc() {
function childFunc() {
...
}
...
}
// outside of myParentFunc, how do I call myChildFunc() ?
childFunc(); // doesn't work
How do I call childFunc() from outside of parentFunc()?
UPDATE:
I know the obvious answer would be to move childFun outside of ...
Having problems with IE8...
I have a button that onclick fires the showImageBrowser() function.
function showImageBrowser(params) {
var open = window.open('http://localhost/admin/browse?'+params,'newwin','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=950,height=500');
if (!open) {
aler...
Hi i am developing a web app.I am retrieving options of the select box from database and i want to write these records to selectbox.My page structure is like that:
main.php=>there is a selectbox in this page <select id="my_select"></select>
retrieve_data.php=>i make a ajax call to this page and this page gets the phone numbers from ...
function createXMLHTTP() {
xmlhttp = =new XMLHttpRequest();
return xmlhttp;
}
I'm trying to create 3 instances of this, but it all has the same variable name which is xmlhttp. How can I dynamically create different variable names? I'm not sure if that's the right way to ask the question.
I want to create like xml...
i have a select tag, with some options
<select id="sel">
<option>text1</option>
<option>text2</option>
<option>text3</option>
<option>text4</option>
</select>
i want to delete all options except second, i.e i want to get
<select id="sel">
<option>text2</option>
</select>
i think it must looks something like...
Hello ,
What I need to implement is to
find patterns in a string , store matches replace the matches with unique tokens so that later on the token could be replaced by its match found earlier.
To explain
for eample I have an array of patterns
paterns = [/Mr\.\s/,/Mrs\.\s/];
stringSubject = "Mr. john is an expert. mrs. john is no...
I am using Uploadify to enable my users to upload images via my web application.
The problem I am having is that every now and then (at what appears to be random) when the progress bar reaches 100% it 'hangs' and does nothing.
I was wondering if any developers familiar with uploadify may have any idea how to solve this? I am in despera...