I have started my web application as website. I am calling JavaScript in it. Problem is in the script: the first time through, the script is working while debugging, but if I make any modification to the script and then try to debug it, control is moved to old lines and not new lines. I tried to rebuild, but still get the same result.
...
We have an ASP.Net application hosted on our network and exposed to a specific client. This client wants to be able to import data from their own server into our application. The data is retrieved with an HTTP request and is CSV formatted. The problem is that they do not want to expose their server to our network and are requesting the i...
This is a very low-level, conceptual question.
I have a content site where the users can rate comments left by other users using a dropdown form with two choices, +1 or -1.
I'd like to "transform" this into a nice-looking up/down arrow, a la reddit comments.
I understand that there's a way to do this through CSS + javascript, but I do...
Suppose I load a webpage which contains the following anchor:
<a class="someClass" href="#" onClick="gotoPage('http://somepage.org')">Link</a>
What I want is: as soon as the page is loaded, I want to generate onClick for this anchor which has text as "Link".
Note that the anchor does not contains any id or name associated wi...
I want to post parameters to a URL using the POST method but I cannot use a form. Even if I do use a form, it would have to be auto-posted with out user interaction. Is this possible? How can I do this?
...
Greetings
I have extended my admin add screen (tabularinline) by using the http://www.djangosnippets.org/snippets/1594/
Now I have a field in my model:
start = models.CharField(max_length=5)
this is intended as a special time format, it will be in a HH:MM format such as 16:30 . Now I want to implement a way that site auto assigns ":"...
I'm displaying PDF file that are generated on-the-fly within a ASP page. The PDF generation (and download to the client) can take some time and I'd like to provide the user with some feedback (a loading message or something).
AFAIK there's no way to know when the PDF is viewed because the DOM events get triggered when the Adobe Reader p...
How can I prevent users from using the backspace or delete keys in a textbox using JavaScript?
I have a text box in my web form. I want to use JavaScript on keypress of the textbox to disable the delete and backspace keys.
Can anyone help?
...
I have a chat application, I want that whenever user accidentally or manually closes the browser ,he should get an alert so that various clean up operations could be carried out. I have more thing i itried to use on before event but I want that to be used for a particular web page as all other web pages are also called on before load. Pl...
Hello, I'm using a json object to store different bits of content, one of which can contain javascript & html relevant content (like quotes, semicolons, tags etc) which without encoding can break the page. To work around this I'm using:
"content":"<%=StringEscapeUtils.escapeHtml(StringEscapeUtils.escapeJavaScript(content))%>"
(I'm usi...
Hi guys,
I've got this function to check my form:
function checkFrm() {
$.each($('select'), function() {
var $this = $(this);
if( $this.val() === 'null') {
// do nothing
} else {
if($this.next('input').val().length < 1) {
return false;
}
}
});
}
When the user submits this, it runs...
<img src="images/butAdd.png" onclick="addField(1,1);" />
<div id="divField"></div>
<script type="text/javascript">
function addField(count, type) {
var bid = document.getElementById("bid").value;
$("#divField").append("<a href='#' onClick='javascript:removeField(\"#bow" + bid + "\"); return false;'><img src='images/closeSmall...
Hi guys,
First of all apologise for creating my third Javascript question in as many days - I'm really trying to push myself in this field on this project, and feel my skills are developing at a fairly good rate thanks to my research and your fantastic help on here, particularly redsuqare!!
I've got a table where people can enter times...
Hi Guys,
I am trying to rotate random CSS sheets via JS - I have the following script but when I am using it - it doesnt seem to work ?
function getRand(){
return Math.round(Math.random()*(css.length-1));
}
var css = new Array(
'<link rel="stylesheet" type="text/css" href="css/1.css">',
'<link rel="stylesheet" type="text/css" href=...
I open a page in browser. There is a link where I click, its fade the page, by putting a layer in the Z-index. At the mean time another Pop up window is also open.
When I close the pop up window, the browser remain still faded.
I can’t disable the z-index layer that I put in the parents window.
Enter code is done in Java Script.
...
I have an HTML input field linked to a button with an onclick function in javascript that can pass the textfield value to a textfield of another page. While passing the values from one page to another via an URL request of a JSP, I found out that encoding the values with encodeURI() gets :
£ --> £ (2 signs !!)
ö --> ö (2 signs !!)
...
Using VS2008 and ASP.NET 3.5 (or VS 2010 / .NET 4.0?), how can I include a bit of dynamic ASP.NET server-side code in mostly-static JavaScript and CSS files?
I want to do this to avoid cloning entire JS or CSS files to vary just a small part of them multi-tenant sites. Later, I want to extend the solution to handle localization inside...
I have a master page which contains everything that inherits it within a form. A page inheriting from it needs to run some javascript to act on a text field on a page. However, I can't seem to reference that text field through the javascript, since the form begins on the master page.
The following line will come up bogus:
document....
I have an array of objects with various objects within to hold UI values. I wanted to have a button so that element 0's values are replicated through the whole array. However I noticed that setting one set them all. Here is an example without using any looping:
console.log('manual 3: ', lis[3].spacer.divider.type); // prints 'none'
lis[...
I've been looking around for a decent jQuery plugin that can handle both dates and times. The core UI DatePicker is great, but unfortunately I need to be able to take time in as well.
I've found a few hacks for the DatePicker to work with times, but they all seem pretty inelegant and google isn't turning up anything nice.
Do any of yo...