I want to track what happens inside an iframe when a user clicks on links in the IFrame. The page that contains the iframe (the parent) is to track the user´s navigation through the page in the iframe. Both pages will be hosted on the same toplevel domain, although the subdomains will differ.
I need the parent page to be notified of eve...
I'm trying to debug a Javascript error which only occurs in Internet Explorer. I have Microsoft Script Debugger installed, and have used it successfully in the past. On this error, though, I select "Yes" to do-you-want-to-debug?, and it opens up Script Debugger, which displays nothing. Running documents window is empty, call stack is ...
Need a webpage which displays an image for x number of seconds and then fades into another image which also contains a clickable link.
How do I achieve this with javascript? I know this can be done in Flash but it needs to be iPhone compatible.
...
Based on the other answers on this site, I already feel like I know the answer to this question, but, as it's slightly different, I wanted to ask.
Is it possible to access local files from JavaScript that is running locally on the machine (AKA, my website address will be file:///C:/...)? Or, is this sandboxed as well?
What I am tryi...
I am using jQuery to get results, as xml, from a MySQL database. What is the best way to paginate the results?
Right now my script gets the xml and appends each result as a <li> element to a <ul> element.
I'm guessing it will have something to do with creating a global var that gets changed with the next/previous page button that runs...
There is a way to automatically submit a form without clicking to a "submit" button?
I have a form with one "file" input. I would submit the form after the user have selected one file.
...
Here is the issue...
I am adding some silverlight 3 controls to an ASP.Net Web Forms application. The silverlight application's height can change based on the amount of data in it. The application is part of a web page and not the whole page. My users would like to have only 1 set of scroll bars. Is there a way to dynamically size the d...
Newspapers often style the heading font for each story according to how much space the words take up. For instance, in this spread, you can see text has been styled to fit one line:
http://www.newsdesigner.com/blog/images/feb05/best/hc6.php
And on this one, you can see different sizes for each headline according to the article size.
h...
Strange Question i guess but i have this bit of code in my page...
$(".map-overlay-left").click(function () {
$("#map-holder").hide('slow');
var gmarkers = [];
var side_bar_html = "";
var map = new GMap2(document.getElementById('map-holder'));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl())...
I am using selenium rc and I would like to know if there are any javascript errors occured in the page. Is there any Selenium API to check if there are any javascript errors? Thanks very much.
...
Hi, I'm using a webkit browser (safari), so this question is specific to webkit.
I have safari rendering an XML document (it's not HTML). In order to style certain sections of the document, I've attached a stylesheet (see below) to the document. In the case below, the text within the first "thing" element is displayed in magenta.
This...
I am having trouble settling down to a proper practice for UI JavaScript coding. So I am looking for a smarter way to do things. I’ve been using jQuery with ASP.NET and I have been doing things like below which seems unprofessional and dumb. JavaScript UI programming has always been a mysterious to me. I know how to do it but I never kne...
Hey SO,
I have a sort of vague question that you guys are perfect for answering. I've many times come across a point where I've had a form for my user to fill out where it consisted of many different pages. So far, I've been saving them in a session, but I'm a little worried about that practice since a session could expire and it seem...
I can imagine it will require heavy javascript and ajax to build such editor but couldn't find any sample on internet.
Can someone please provide some sample, reference or anything could help?
thanks very much.
...
i am processing an object in JavaScript that has been returned from an API that may contain variable names that are not valid JavaScript variable names. (these names are valid in the naming convention of the system of the API i am using)
in one case, the name starts with a number, e.g. '5story'
what is the best way to convert this nam...
If I have a 100% wide div element with 12 pixels of padding to the left and to the right, and I have an element inside the div that I want to span from one corner of the screen to another (bridging the 12 pixel gap), do I have any chance of "breaking out" of the surrounding div without using absolute positioning?
Using position:relativ...
See http://jonesonter.notomato.com.au/.
I have a simple fading effect written when you hover on some list elements positioned over a stack of images which are all absolutely positioned on top of each other.
$("#homeNav li").hover(function(){
//make a variable and assign the hovered id to it
var elid = $(this).attr('id');
//hide the ...
to get the selected value from HTML select:
options[selectedIndex].value
what if i want to get the "id" on the selected option?
...
I'm having some trouble finding unique entries in a record set. This is what I have so far.
function project5Part1() {
// Variable Declarations
var zipCode;
var outputDiv;
var records;
var i;
var j;
var null1;
var array = new Array(0);
var count;
// Get the HTML output table so we can add rows
outputDiv = document.getElementById('o...
Hi,
I'm using the tablesorter(http://tablesorter.com) jquery plugin to sort table data... Does anyone know if its possible to change the color of the entire column on click? Even if it isn't with this plugin, some other way?
Thanks,
Mike
...