Hi,
When you send a private message to someone on FB in the TO field when typing the first letter a suggestion appears then it becomes a little box with the name of the user you selected which can be deleted, anyone got a tutorial on this?
thanks
...
Hi,
hi have a question, is it possible to get the url from the history.go(-2)?
Asuming i don't know that url.
thanks,
Sebastian
edit
i need the url, because i want to check where the visitor was redirected from. there are two cases: 1 facebook, 2 directly on the website. the second step is an automatic user check. the third step is m...
I have always used this code to sort items in a list then submit the order back intot the database.
But the code doesn't work in Firefox, or Chrome. It jumps and then clears out the contents of the list. It's been used since 2002 works very fine in IE only..
var list;
function moveUp() {
list = document.forms[0].lists;
var ind...
I won't tell you I've searched and tried dozens of syntaxes from the internets. You couldn't tell if I'm lying or not. So...
This is part of my html (the relevant part):
var jsonData = {
address: 'address',
address1: 'address1',
address2: 'address2'
};
var out = JSON.stringify(jsonData);
$.ajax({
type: "POST",
con...
I have an index.html which has a huge form in it.
The form is submitted by this javascript:
byId("p").value = page;
byId("nav_container").focus();
document.forms["nav_form_main"].submit();
The focus part doesn't work here...
I want the browser to focus on a specific part of the page (almost at top).
Any tips of what to do?
PS: I ha...
<% if(empRecNum != null && !(empRecNum.equals("")))
{
empSelected=true;
}
boolean canModify = UTIL.hasSecurity("PFTMODFY") && empSelected;
%>
<script type="text/javascript">
function add(){
alert('hello');
df('ADD');
}
</script>
On the click of add button, i need to pass...
Hi All,
Adding a loop option does not make my carosel loop!
`jQuery('#third-carousel').jcarousel({
vertical: true,
loop: true
});`
Using: /jquery/jquery-1.3.2.min.js
Carosel script:http://sorgalla.com/projects/jcarousel/lib/jquery.jcarousel.min.js
Can you help?
...
I'm attempting to make a class in javascript. I create it with the JSON type object thing.
Doing this:
Foo = {
PubId: '',
Init:function( oCallback )
{
this.sendCommand( 'INIT', {}, oCallback );
},
sendCommand : function( sCommand, aParams, oCallback )
{
setTimeout( oCallback, 1000, '{"response":"...
Hi everybody,
I'd like to develop a web sample application that can send and read audio on the fly.
The idea is to develop a website with HTML5/JS.
So, the admin part (in php or whatever server side language) will allow me to send audio
from a mic.
Then, on the client side, the user can listen to the stream with the <audio> tag for ex...
Hi,
I want to delete a folder when the page is refreshed on closed. Here is my code, what exactly is wrong, why is it not deleting the directory
window.onunload=closed;
function closed()
var FolderName = "uploads-temp/"+<? echo $create_temp_dir; ?>+"*";
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.DeleteFolder(...
I have a button when i click it, some text from a textbox is got and written inside a p tag via javascript. I have another button that cause page postback. But after postback, contents which added by javascript are disappearing.
Is there a way to solve this problem ?
...
Hi
I would open a GMarker (the openInfoWindowHtml) on Google Maps with JavaScript. How can I do that?
Thank you very much
Code of the Marker:
function createMarker(point, id, name, address, type, city, image) {
var marker = new GMarker(point, customIcons[type]);
var html = "Information";
GEvent.addListener(marker, 'click', fun...
<% if(empRecNum != null && !(empRecNum.equals("")))
{
empSelected=true;
}
boolean canModify = UTIL.hasSecurity("PFTMODFY") && empSelected;
%>
<script type="text/javascript">
function add(){
alert(canModify);
df('ADD');
}
</script>
I need to alert the canModify in my JavaSc...
Is there a way to create JavaScript API to control the embedded video such as CNN Videos http://www.cnn.com/video/ even though CNN doesn't provide an API to control it?
...
function add(){
<%if(empRecNum != null && !(empRecNum.equals("")))
{
empSelected=true;
}
boolean canModify = UTIL.hasSecurity("PFTMODFY") && empSelected;
%>
df('ADD');
}
When i click on add, i need to check whether the empSelected is true or not and pass this canModify value. Will this...
function fkey(a) {
a || (a = {});
if (!a.fkey) a.fkey = $("input[name='fkey']").attr("value");
return a
}
I guess a is actually a function, but how to understand (!a.fkey) ?
...
Hi Brilliant SO Minds,
-- Full disclosure -- this is homework, and this is my capstone project. --
I've written my first big Obj-Oriented Javascript charting application (bar charts, gantt charts, etc) and I'd like to give users the option to customize output -- things like font size, charting colors, etc.
Right now, I'm passing in a ...
I'm developing a off-line web-page for iphone safari.
For highlighting the user's selection in web-page. I've implemented following code.
function highlight() {
if (window.getSelection) {
sel = window.getSelection();
if (sel.getRangeAt) {
range = sel.getRangeAt(0);
}
document.designMode ...
I have button on my HTML page. Initially i was using
<input name="op" id="changepass_submit" value="Change Password" disabled="disabled" class="form-submit" type="button" onClick="change_passwd();" />.
Using this i am able to call the javascript function change_passwd() which has it's definition as,
function change_passwd()
{
v...
Hallo,
I have 3 Different function in Javascript, the first one replaces HTML Selectboxs width custom selectbox created with ULs.
and the other 2 replace Checkbox and Radio buttons respectivly.
Now I want to derive classes out of these functions, and need your suggestions, what will be the best way to organize these functions into cla...