Hi everyone,
Ironically, for an IT contractor, I find myself building a website for a recruitment consultancy.
They would like a form which allows users to send them a CV but, from a security point of view would like the CV's sent to an e-mail address rather than stored on a web server. Does anyone know if such a thing is possible wit...
Consider:
File script.js,
function AdaugaComboBox(id, name){
var select_tag = document.getElementById(id);
select_tag.innerHTML += "<select name='"+name+"'><option value='0'>Selecteaza autor</option></select><br/>";
return true;
}
and file index.html:
<html>
<head>
<script src="js/script.j...
Hi,
I just want some simple JQ/JS to check if the current page/window (not a particular element) has a vertical scrollbar.
Googling gives me stuff that seems overly complex for just this basic feature.
How can this be done?
...
Hi,
I have this sample below:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script type="text/javascript">
function test(){
if (test.initialized=='undefined'){
test.initialized = 'true';
}
alert(test.initialized);
};
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID=...
Hi
I have this line:
for (var j = 0; j<1; j = (j + 0.1).toPrecision(1))
I'm trying to set up this statement so I get 0, 0.1, 0.2, 0.3 up to the number 1.
At the moment I get 0, 0.1 and then nothing as if the result goes straight passed 1,
Simply using j = j + 0.1 produces rounding errors and I need the precise decimal place.
Any s...
I have an application where I need to show historical maps. Is there a way to use the Google API for that, ie show a map of Europe for the year 1800, 1900 etc, with different borders and country names?
I am not particular to any language and also welcome solutions that might not involve the Google API but another library or service
...
How should I design a login system so that each username can only be logged on in one place at a time? I want to keep users from giving their username to someone else to login so they can avoid paying for each user.
If a user is already logged in and tries to log in on another machine should I block the 2nd login (which could be a prob...
I'm using a enhanced version of Lightbox called SexyLightbox. It uses jQuery as its framework. When I initialize it, I get this error on regular invervals when the Lightbox isn't running and an infinite amount of times when I attempt to show a picture:
Error: $ is undefined
Source File: http://bagelstreet.se/sexylightbox/sexylightbox.v2...
Hi Folks
How do I limit an event to a single element in a jQuery collection?
In the case below, I've tried using .one() to limit the behaviour (inserting the <li class='close'>Close</li> line of HTML) to a single instance. The behaviour does indeed happen only once, but on EVERY matched element of $( "ul>li>a" ). How do I make it happ...
Hi,
I need help of getting this piece of code to work
1) I want to automatically start a media player when a pop-up is open, by changing is URL params, that the pop-up has
2) When the user clicks on on the link I want to replace the old URL with the one the new one clicked. Try using location.replace just ends up being a constant loop...
Hi, I have two div's.
When they are under eachother and I try to drag and drop items it's no problem!
When I (with css) alter them so they appear next to eachother I can't drag an item from the left box to the right... Maybe an options I'm missing I have to change? Can someone help me?
Here is my code:
<script language="JavaScript">
...
We have a collapsible tree implementation in our web app. I need to add support for simple drag-and-drop to it.
The question is, what should I use? I know YUI has a drag-and-drop component, but people I worked with have stated it's a pain to use with multiple DIVs which overlap and comntain each other (like my tree does).
Are there any...
var arr = [1,2,3,4];
I need to get the last one and then delete it from an array called arr:
var arr = [1,2,3]
...
I'm using QueryLoader (jquery) to preload images for my site and that works great! Is there a way to check if the images were already loaded before or cached so I can skip the animation? It seems like overkill.
Something like
setTimeout(function () { if image loaded else trigger animation }, 1000);
link to page
http://www.gayades...
I've made some integration with the youTube API, and embedded a player with swf object - But im not getting the controls like play, rewind, forward, fullscreen, volume and stuff in my player...
Look at the big player: www.tvskive.dk, there isn't any controls
Any idea to whats wrong?
...
Hi,
Can you help turn the following Javascript to jQuery equivalent?
// Let's use a lowercase function name to keep with JavaScript conventions
function selectAll(involker) {
// Since ASP.NET checkboxes are really HTML input elements
// let's get all the inputs
var inputElements = document.getElementsByTagName('input');
...
Hello,
I'm trying to call a web service from a Mirth Channel transformer javascript using apache axis library (which it's supposed to be deployed with Mirth).
I've tried using the following java script, but it does not work:
/*importPackage(java.net);
importPackage(org.apache.axis.client.Call);
importPackage(org.apache.axis.client.Serv...
Hi
I want to retrieve via regexp javascript figures
1 - preceded by either:
And | or
nothing
2 - followed by either:
Nothing
And | or
I thought of using lookbehind but it seems that javascript does not support lookbehind
thank you for helping me
...
I've looked at the documentation but I've been unable to find an answer. Is there a way to prevent a row from being highlighted when selected? That or even a way to stop the row being selected at all. I like the "hoverrows: true" option, but ideally I would like to stop a row from being selected on-click.
Thanks,
Update:
I've been...
Is there a way to track if a user prints a web page?
Thanks,
Graham
...