This might seem like a really dumb question, but I am writing an application and I have come across where my mouse-over, mouse-click and mouse-hover need different events bound to them. Now on Internet Explorer, Firefox, and Safari. It all works as expected.
However, on my iPhone the actions will not trigger. Now my question is are the...
I currently have a page that contains an unordered list. That list is initially populated by querying my db, with each list item having a time stamp and text. Using javascript and AJAX, this page updates the unordered list dynamically every 10 seconds, if new data has come in.
What is the easiest and most efficient way to remove lis...
Howdy,
My brain is fried ATM and I have a looming deadline, I am looking for a way to grab the currently viewed pages url and place it into another link for bookmarking/social links.
Facebook link:http://www.facebook.com/share.php?u=[PAGEURL]
Myspace link:http://www.myspace.com/Modules/PostTo/Pages/?u=[PAGEURL]
Twitter link: http://twi...
Hello,
I've written a small lightbox plugin for jQuery (yes, there are several ready made packages -- unfortunately, the designer in my co. does not like any of them).
I have one small problem -- I am using .load() to load dynamic flash content into the lightbox div. I am appending the div to the DOM, presetting visibility to hidden, a...
hi,
does anybody knows how to place an image in the webpage, but both position and clipping (maybe also resizing) are interactively done by user ?, i need it for my registration page, i've done some clipping and resizing from css and javascript, and it's not really solve the problem. If it's can be done by php, it will be perfect !
thx.
...
I have a project where a user needs to define a set of instructions for a ui that is completely written in javascript. I need to have the ability to parse a string of instructions and then translate them into instructions. Is there any libraries out there for parsing that are 100% javascript? Or a generator that will generate in javascri...
Basically:
I have this HTML:
<div id="foo"><img src="/foo/bar/{var}/foo" alt="{var}"></div>
When calling (using jQuery in Firefox):
$("#foo").html()
I get:
<img src="/foo/bar/%7Bvar%7D/foo" alt="{var}">
My desired output is:
<img src="/foo/bar/{var}/foo" alt="{var}">
What's going on here? Any tips for how to resolve this?
I...
I am looking for javascript for enabling/disabling two date range/date
prompts in Cognos.
Does anyone have any javascript for disabling/enabling two date range prompts? If I select the Date1 prompt, then the Date2 prompt has to be greyed out and vice versa.
I am using Cognos 8.3 SP2.
...
Hi guys, i'm trying to get the longitude and latitude for an address with the google maps api, but I don't know how to do it?This is an example of what i'm trying:
GoogleObjectAdress("New york") -> and it should return the longitude and latitude for me!
Any solutions?
...
Hey everyone,
I'm a GUI designer/interactive musician wanting to improve my programming chops. I already know the basics(variables, loops, arrays, if/else, some logic), but I'm looking to learn in a structured way. I've seen some great books/tuts on Python and Processing (and even Flash)that aim to teach the fundamentals of programming ...
I have a form with a special widget that fills in a text input. When the text input has focus, the widget appears above the text input (intentionally above it) and the user clicks options in it, when they're done it disappears and fills in the input. There is a problem with this in IE, when the widget appears above the input, the field's...
I have not really used JavaScript before but I am trying to validate form elements as they are being filled out. I have an X and a Check mark that I am trying to display next to the field to show if it is valid or not. I know that this is partially right because I can use an alert but I am not sure how to alter the fields of the graphics...
A cut down version of my code sort of looks like this:
string="test test testtest testtest test";
replacer="test";
string=string.replace(new RegExp(' '+replacer+' ','gi')," REPLACED ");
Now, I want to replace a word only if there's a space surrounding it, The code actually works fine but I'm just wondering why the one below which woul...
top.on('click', function(){
anim.run();
});
I have an anim function, and was wondering why I can't call it like this
top.on('click', anim.run);
...
hi Friends,
I have a js function
I want to assign a variable to a variable
my variable is in a forloop
I have two variables
ie;
var spcd_1= "http://www.colbridge.com";
var spcd_2 = "http://www.google.com";
below is my js function
function openNewWindow(spcd) {
//alert("hello");
var tt = spcd;
alert(tt);
var i=0;
var spcd_1= "htt...
In javascript, how can we detect which row of the table is clicked? At present what i am doing is, i am binding the the method at run time like this.
onload = function() {
if (!document.getElementsByTagName || !document.createTextNode) return;
var rows = document.getElementById('my_table').getElementsByTagName('tbody')[0].getEl...
I am using the rowIndex property of TR but it is not working. Please let me know if i am doing something wrong here.
function myMethod(){
alert ( this.parent.rowIndex ); // parentNode is also used
}
Html
<table border="1">
<tr>
<td onclick="myMethod();">1.1</td>
<td>1.2</td>
<td>1.3</td>
...
Hi all:
Background: I have used JsTestDriverCoverage and generated a test coverage report for my Javascript unit tests. However it is in LCOV format. As a Windows user running on Windows 2003, I can't just read the file since its perl/lunix friendly.
Question: are there any ways to either convert the file to a more readable format (u...
Hi,
is it somehow possible to open a HTML popup window from within Flash and have it receive text data from Flash which should be printed ... and this all only in AS3 and Javascript (since no server-side scripting is available)?
...
I want to do some functionality on log-out, if the user directly closed his browser then same functionality want to do, we can not do on page unload because there are more than 100 pages in my website because this will work on redirection from each page
Thank You
...