javascript

How can i change Markers images in This javascript

I want to change Images of my markers in this javascript can anybody help me out from this ... thankx <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; ch...

CSS or jQuery problem: Website not behaving correctly.

Go to this beta of my new website (link redacted). If you hover over one of the colored squares, a popup box à la Panic's Coda pops up, except there are two problems: a) The text inside the popup does not show up. It is programmatically set to :) using the following code: $('td.middle', this).text(':)');      td.middle is the class ...

Using YUI in Javascript, How do I draw overlays on datatable/ScrollingDataTable?

I need to draw overlays spanning one or more rows on YUI datatable/scrollingdatable based on the mouse activity ( drag and drop ). I have no issues with drawing overlays on top of datatable. But I want the overlays to be moving along with the rows when I scroll the datatable. As of now after drawing the overlays they remain static ...

Is there a way to trigger an event with jQuery (or the regular DOM API) without invoking any handlers

I want to trigger a form submit, but not have my usual handlers for that form's submit be called. I could just unregister any listeners, before calling, but that feels ugly (and specific to form submits since they're the only type of event that I can guarantee will be the last to occur). ...

Trying to put a variable in a selector in Jquery.

Im trying to put a variable in a selector but it doesn't work what am i doing wrong? <a class="button left" href="#">left</a> <a class="button right" href="#">right</a> $('.button:not(.disable)').show(); //Works var oButtons = $('.button'); $(oButtons+':not(.disable)').show(); //Doesn't Work why? ...

Could this regex be more efficient?

I modified a regex I got here. I needed to change it because I needed it to match the following additional criteria: Dates with only Month and Year Full dates in the form mm dd, yyyy Dates with year only Input with extraneous info (like Vol. 51, No. 1, Mar 2008) This is what I have so far. I did this with RegexBuddy to help me parse ...

jQuery: How to overwrite tables width?

I have the table that goes like this: <table style="width:375pt">. How can I overwrite its width to 50%? I need to select just this one table with this width and not other tables on the page. So the question is how to select the table with specific width? Thank you. ...

How do I open one Fancybox after another closes?

Hi, I have 2 fancyboxes and am trying to open the second from the first (either by button or by closing the first).. <div id="firstFancybox" style="display:none"> <p>I'm the first Fancybox!</p> <a id="fancyboxButton" href="#secondFancybox">Close first Fancybox</a> </div> <a id="hiddenLink" href="#firstFancybox"></a> <div id="se...

[jQuery] give element same width as previous sibling

Using jQuery I want to give a specific element the same width (or min-width in this case) as the element before (sibling). In my case there is an unordered list (UL), which I want to give the same width as the div before. For example: <div style="width:300px;"></div> <ul class="list"><li>item1</li><li>item2</li></ul> <div style="width:2...

JavaScript: document.getElementById slow performance?

Hi I repetitively use document.getElementById a lot on common CSS elements. Would there be a significant performance gain if I created a global array to store all of my document.getElementById element in instead of refetching the element each time? Example, instead of: document.getElementById("desc").setAttribute("href", "#"); docume...

Test jQuery & JavaScript on IE6

What is the best way to test my web app on IE6. Obviously I have IE8 installed on my machine, I've tought about using a Virtual Machine, are there any other options?. I wan't to make sure my jQuery and JavaScript code functions properly.... ...

JavaScript take part of an array

How can I create a new array that contains all elements numbered nth to (n+k)th from an old array? ...

php: pass large arrays of data through pages

I am trying to to solve a problem where I need to pass large arrays of data to another page, this is my scenario: The user input his/her gmail login information inside a form, I then send this information to an ajax page where i authenticate and fetch all the contacts, if the login is invalid they can try again but if it authenticated I...

binding event handlers in prototype and still maintain reference to element

I want to be able to use a bound event handler in prototype and retain my "this" context. But doing so seems to destroy the convenient default binding that prototype gives event handlers. From the docs: The handler's context (this value) is set to the extended element being observed (even if the event actually occurred on a descend...

Open links in new tab in Firefox

I am developing an Firefox extension. How can all the links on a webpage to be opened in a new tab? ...

why cant I pass this variable to the javascript function?

I have a variable inside my php file, which I want to pass to a javascript function whenever the user clicks a link on my php page. here is the php in brief: $delete_img=$image_id.'_'.$newfilename; $display_image.="<td><img src='../temp_images/$newfilename'>"; if ($i==$extra_pic){ $display_image.="<br><a href='#' onclick='window.paren...

Adobe AIR canvas dimensions messed up

I'm messing about with Canvas in Adobe Air. But their seems to be some issue with the mouse coordinates. The more I click towards the right, the difference between the draw position and actual click increases. My code is Wb.canvas.fillRect(evt.clientX-canvasTag.clientX, evt.clientY-canvasTag.clientY, 50, 50); ...

DHTML popup window

I am trying to make a DHTML window on my website and I can actually get it to popup for me. The problem I am having with it is when it pops up it moves the text around on the page. I have seen examples of DHTML popups where this doesn't occur for instance here: http://dhtmlpopups.webarticles.org/basics.php or here: http://www.php-devel...

Tell bots apart from human visitors for stats?

I am looking to roll my own simple web stats script. The only major obstacle on the road, as far as I can see, is telling human visitors apart from bots. I would like to have a solution for that which I don't need to maintain on a regular basis (i.e. I don't want to update text files with bot-related User-agents). Is there any open s...

How to insert custom html tag using YUI Editor

I've got YUI set up and working. I've created a custom button and it shows up fine. What I would like that button to do is wrap selected text with my own custom 'span' tags, just like clicking the 'bold' button wraps selected text with 'strong' / 'bold' tags. Does anyone have any examples they could point to to make this work? ...