Hello,
I am trying to dynamically check and uncheck a box with jquery .
The ideal situation would be that if edit project file was clicked this would show the field to upload a new image (edit_project_image) was active ie not removed via either a click again on (edit_project_image) or a click on (remove_edit_image). Also if there is a ...
I have a script that will be inserted into an unknown page at an unknown time. Is it possible to tell from this script if window.onload has fired yet?
I have no control over the host page. I can't add any markup or scripts to it. All I know is that my script will be inserted into the page at some point. It could be before window.onl...
Hi guys,
I am trying to come up with a way to measure how long a user has been on a page in my ASP.NET application. I am storing the userid, pagename, pageenteredtime and pagelefttime in a database. Each record has its own unique id as well, called featureuselogid.
At the moment, I can track when a user comes into the page with the pa...
The code below, produces Xpath. However, it doesn't display @value attribute/property. It is not working very well.
function getXPath(node, path, val) {
path = path || [];
if(node.parentNode) { path = getXPath(node.parentNode, path); }
if(node.previousSibling) {
var count = 1;
var sibling = node.previousSibling
do {
if(siblin...
Hi all:
I'm currently having troubles integrating Jack into my QUnit. Besides from not knowing where to start, I'm also confused on how to actually use it (Jack). There aren't a great deal of examples on the web so I was wondering if anyone who have experience in using Jack to mock AJAX calls/general Javascript can show me an example ...
I'm trying to export XML data from a web page to a spreadsheet using javascript. So far I've just tried the very simple:
Sub Export
Response.ContentType = "application/vnd.ms-excel"
<script>
var XML = document.getElementById("xmldata");
window.open(XML);
</script>
End Sub
This t...
I am trying to setup a fairly simple (imo) Javascript GUI, and am running into issues. I'm using jQuery. Here's what I want to do:
Have a bunch of squares next to some text, like this:
[ ] Text next to square
[ ] Text next to square 2
[ ] Text next to square 3
[ ] Text next to square 4
When you click one of the squares, an absolutely...
hi guys,
I have a textbox for entering date.Textbox should allow only dd/MM/yyyy format.How can i check it using javascript
...
This is more of a best practices question, but it's very important to me because it caused me many times to think that my js or css modifications weren't working.
I work with PHP and have my CSS and JS in separate files. Sometimes when I hit the circular Reload button, my changes don't kick in. I use either Reload or re-hit Enter after...
Is there anyway to check if the character at the cursor in TEXTAREA is a "space"? If it is, return TRUE. Let me know how to do this using jQuery.
Thanks
...
Hi,
I have a short and simple question: Can I use NSSpeechSynthesizer or Mac OS's Text-to-Speech engine from JavaScript (if I'm on a Mac using Safari)? And if so: how?
Thanks!
Johannes
...
I am tracking the window close/navigation event thru following code.
window.onbeforeunload = winClose;
function winClose() {
if (isDataChanged) {
return "Are you sure you want to close?";
}
}
This obviously will popup a confirmation with OK / Cancel. when the browser is closed.
Here i want t...
I commonly use hidden divs on my pages until they need to be unhidden with javascript. I used to do the initial hiding with javascript too, but now moved away to hiding them with css to guarantee that the hiding takes place (js disabled in the browser). Also there was a latency issue with js hiding (waiting for the js to load).
My prob...
I would like to use the gdata API to retrieve some event entries from a public calendar feed. Here is the code that I'm using:
var calendarService = new google.gdata.calendar.CalendarService('GoogleInc-jsguide-1.0');
var feedUri = 'http://www.google.com/calendar/feeds/.../public/basic';
var gquery = new google.gdata.calendar.CalendarEv...
I have a project that I am working on where I am not able to use jQuery. Since using jQuery, I have become very acustomed to the way that parameters can be set in a function. It is very nice doing it the "jQuery" way, so that it does not matter the order, or even if you use all defaults like a normal function method would need.
So, my ...
I'm starting to give a little more attention to making my javascript and ajax degrade gracefully. Which is more recommended:
working on incorporating the graceful degradation into your existing code (can be tricky)
or
developing a different sets of pages for the non-js users.
I'm leaning towards the different sets of pages, because...
In my application i am using asp.net3.5,ajax.dll.
I am calling all functionalities using ajax from javascript.
Sometimes i need to get the condition results from server side, only then i will be able to pass to next condition.
for the above case, javascript passes to next condition before executing the first condition.
So i added the...
Hi,
i currently have a big problem with the rowIndex in the IE8. When i call the page i have an empty table element. With Javascript i now add Rows and Columns to this table.
// Create Elements
tr = document.createElement('tr');
td = document.createElement('td');
// Append Elements to existing Table
tr.appendChild(td);
table.appendChil...
i want draw a circle on my webpage so i have downloaded two different javascript for drawing a circle.one of js file is downloaded from http://jsdraw2d.jsfiction.com/
then i have use its function to draw circle but circle is not shown on html page i have try
both internet explorer and mozilla firefox but niether it give error nor it wil...
Can Somebody please tell me why this script is not working.. Its supposed to work, but doesnt, I am getting the id correctly, but Div's are not displaying properly.. My idea is to display one div based on the click, and hide the other Div's. Please help..
Script
$(document).ready(function() {
$("a").live("click", function(){
va...