Okay I have the below code, which will allow me to either click the link or hover over the link to show the pop-up. I would like to be able to edit it to make it open on page load. I would also like to be able to have it open only once per visitor per week.
I am new to this so any help would be great!
Thanks
<head>
<style type=...
var x = 20;
xhr.open('GET','http://127.0.0.1:8000/insert/x);
How can i pass the value of x in the http string , so as to get
xhr.open('GET','http://127.0.0.1:8000/insert/20); as request?
...
So, I have web page that uses javascript to let a user select different audio files to listen to (using this player: http://www.macloo.com/examples/audio_player/) which works great in every browser except for any version of IE. After the audio starts playing I can't figure out a programmatic way to make the audio stop playing after the u...
Platform: Server - ASP.NET 3.5 / C#; client side - javascript/jQuery
This is what I want to do
Scramble a string in ASP.NET WebMethod (called through a jQuery Ajax call) before sending to the client
Unscramble it in javascript and display
I'm not looking at any sort of heavy duty encryption AES SHA whatever. I'm only interested in s...
I have the id of my element. I need to add a given value (determined by a variable in the javascript) to one of the element's css attributes. I.e. given an element id=my_id how do I add x to that element's margin-top attribute?
...
any one knows a way to get all the URLs in a website using javascript?i only need the links starting with the same domain name.no need to consider other links
...
Hi guys,
I have a registration form where a customer selects their desired package via a dropdownlist. They then select whether they wish to avail of a multiyear discount by choosing Yes or No radio buttons. If the yes radio button is selected, a dropdownlist is shown (using javascript) with a selection of years 1-3.
I'm not familar a...
Two Default Grids Defenition:
initialise(){
$("#ExpenseTable").jqGrid({
datatype : "local",
mtype : 'GET',
colModel : [ {name:'expnsId',label:'ID', width:150 },
{name:'userName',label:'NAME', width:150 },
{name:'catName',label:'CATEGORY', width:150 },
{name:'date',label:'DA...
Hello,
I am using jquery ui for drag and drop. I am trying to get mouse position relative to div, here is my code:
$( "#db_tables " ).droppable({
activeClass: "ui-state-default",
hoverClass: "ui-state-hover",
drop: function( event, ui ) {
var x = ui.position.left - ui.offset.left; // tired event.pageX - this.offsetLeft;
v...
I have an array of items as follows in Javascript:
var users = Array();
users[562] = 'testuser3';
users[16] = 'testuser6';
users[834] = 'testuser1';
users[823] = 'testuser4';
users[23] = 'testuser2';
users[917] = 'testuser5';
I need to sort that array to get the following output:
users[834] = 'testuser1';
users[23] = 'testuser2';
us...
I have a textbox with id kTb. When I click the button after entering some value in the textbox, the below changeV(str) is called inside a javascript ('onClick="changeV(kTb.value)"'). The 'alert(str)' gives me the value I entered in the textbox but when I pass it 'urll = "uSetENV.cgi?kullaTest=str"', I am NOT getting the entered value, it...
Hey,
I am working on submitting values into a database through AJAX. It currently uses JQuery Ajax object.My Ajax code basically looks like this:
enter code here
var genre = form.new_album_genre.value;
form.new_album_genre.value="";
$.ajax({
type: "POST",
data: "genre="+genre+"&app="+app,
url: 'apps/PVElectronicPres...
document.getElementsByTagName('a').item(0)
and
document.getElementsByTagName('a')[0]
will return the same result...
Is the former faster than the latter, maybe someone knows of test results?
...
Hello,
I have built a Vista Gadget. It grabs a local XMl file called "settings.xml".
It loads it and I change a few things. then I call the xmldoc.Save("settings.xml") method which works fine of you run it in Internet Explorer... but if you run it in the sidebar it does not write to the xml - only loads from.
how do I get it to write to...
I have noticed this in Chrome . Anyone has a idea about what's wrong or a workaround ?
...
Hello,
I have a few annoying problems.
The thing is, that when I am looking with Firefox every thing work perfect, after I try it with Chrome, sometimes happens that the code appears one web page (it is not all the time).
So, it appears in input text it display " />" or some piece of code of java script, which is written inside input t...
I'm having a problem with Autocompleter.Local. In my list of strings, I have some choices that are substrings of others. For example, "Office" is a substring of "Office park". If I type "Offic", both choices show up. If I type "Office", only "Office park" shows up as a choice. I have tried messing with partialSearch and fullSearch o...
Test here: http://jsperf.com/test-for-speed-of-various-conditionals
I'm interested if others are getting the same results, and what people might think of why the results vary (esp. w/ Safari) across browsers. Interesting is how democratically Firefox handles the various cases.
Please inform if there is something terribly wrong with my ...
alert(Date.parse('Mar 1 1990'));
in jsFiddle, this returns a datetime integer, as expected. On my machine, it returns... a timestamp string?
Thu Mar 01 1990 00:00:00 GMT-0500 (EST) vs 636267600000
...
Hi Guys,
I have a script that on.DocumentReady posts data to another page. That page responds with some HTML encapsulated in one div tag.
My goal is to have this post response/data open in a new window.
Any hints or clues?
Here is the snippet I created from Dr. Mille's advice.
<script type="text/javascript" src="http://ajax.google...