I have an html page that people access using an affiliate link, so it has affiliate code in the url (http://www.site.com?cmpid=1234&aid=123). I want to add the cmpid and the aid to the form action url (so when submitted, it submits to the url /form.aspx but adds the cmpid and aid to the end, ie: form.aspx?cmpid=1234&aid=123).
I hav...
I'm using shadowbox for some html/iframe links, which effectively opens up the page in a lightbox. Everything works great - except when someone clicks before the javascript is done loading.
Now, the obvious answer is to not use links as the targets of loading the shadowbox. But this poses usability problems if javascript is disabled. Do...
I'm interested in developing a web-based application with rich time series charting functionality, where the charts can be constructed and manipulated on the client side. I would like the chart surface to be highly interactive, with the ability to pan and zoom with the mouse, click on lines, axes, etc. Importantly, I would prefer not to ...
What is the maximum number of entries a simple ListBox (ComboBox) should contain? There are fifty states in the US - is 50 too many? There are over 270 countries and territories in the world - is 270 too many?
When should a ListBox include search or type-ahead capabilities? When should the designer consider something other than a L...
I want to screen-scrape a web-site that uses JavaScript.
There is mechanize, the programmatic web browser for Python. However, it (understandably) doesn't interpret javascript. Is there any programmatic browser for Python which does? If not, is there any JavaScript implementation in Python that I could use to attempt to create one?
...
I have a menu of checkbox menu table column names and would like the checking/unchecking of the column name to result in the table column being hidden or shown. I would like to be able to get the column to change via it's cell.name property rather than it's index.
Currently, I am accomplishing this by generating an associative array o...
How do I user the JavaScript "filter" attribute as filter my JavaScript object?
I've been reading the following StackOverflow post, and am in a similar situation.
I have the following JavaScript object:
{
'cars' :
[{
"car_id" : "1",
"price" : "42999",
"make_id" : "050",
"year_built" : "2007",
"color_id...
Let say that I have many Javascript inside pages. At this moment is pretty easy to initialize variable by simply using some Print/Echo statement to initialize JavaScript value.
Example: var x = <?php echo('This is a value');?>
I first thought that I could pass all variables value by parameter of function BUT it's impossible because we...
I'm looking for a JavaScript portal but the ones I've found so far haven't been very good. Here's what I've found:
jPolite
http://www.trilancer.com/jpolite2/index1.html
This one, inexplicably, seems to be the most popular. It's super sluggish and doesn't even seem to work right, though.
jQuery Portlets
http://host.sonspring.com/port...
Hi,
I'm using jquery to parse some HTML, something like:
$(html).contents().each(function(){
var element = this.tagName;
...
I can access the tagName, children, parent... using the DOM or the more friendly jQuery functions.
But at one point a need the whole HTML of the current element (not what innerHTML or .html() return) and I...
If you have IE8, you may have noticed a really handy feature that MS has added. Hit F12 and Developer Tools, a firebug like debugger, pops up. This is extremely useful for debugging purposes, and i'm wondering if there is a way to pop up the Developer Tools from a WebBrowser control inside a .NET application.
My situation is this: I hav...
When I'm trying to run the following code in IE:-
<html>
<head>
<script language="javascript">
window.onload=function(){
alert("Window.onload is working");
}
</script>
</head>
<body onload="alert('body.onload is working')">
</body>
</html>
It seems that the body.onload overrides window.onload. I want both of them because I have a page...
I want to benchmark some Javascript code in the browser, but it may trigger Firefox's "Warning: Unresponsive script" popup. This allows the user to click "Stop script" in the event that the browser is caught in a runaway function. While the pop-up is displayed, the currently running function has been halted. This isn't ideal, so is th...
For once, I am getting the intended results in IE6, but not FF (or Chrome).
I have a select box (listing locations) which is dynamically generated using JS.
I have a button that allows the user to add more of the select boxes, so they can choose more than one location.
When the JS code adds the new select box, the already present sele...
Hello,
I want to pass javascript variables to php using hidden input of a form.
But i have met a problem here, the $salarieid can't get the value from $_POST['hidden1']. Is there something wrong?
Here is the code:
<script type="text/javascript">
// view which the user has chosen
function func_load3(name){
var oForm = document...
I'm struggling with the value of knowledge between JavaScript base functionality and JavaScript libraries.
While I understand the underlying concepts used by many of today's popular libraries (JQuery as an example: $.ajax, $.animate, etc), I find that the more I rely upon these libraries, the less and less I actually know about JavaScri...
How might one go about obtaining a reference to the DOM script tag that called a function?
For example:
<script type="text/javascript">
var globalfunc = function(){
//obtain a reference to the script block that globalfunc() was called from
}
</script>
<script type="text/javascript">
globalfunc();
</script>
I know...
I work for a web development firm, and I designed a page for some of our marketing people to add custom footers to various pages in our application. We have various test environments before we deploy our product for the world to see.
The problem is, when someone tries to add a javascript:(void) call to the footer HTML, they are presente...
Is there a capture the on load event when dynamically adding a script tag with JavaScript in IE?
The code below works in FireFox and Chrome but not in IE.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head r...
I want to parse the CSS files that are loaded with an HTML page but I don’t want to make AJAX calls to reload the CSS files that have already been loaded. Is there any way to access the pages unparsed CSS text?
For example, it would allow one to access -moz-* declarations in Safari.
...