javascript

Running Swf Upload in Dojo Dijit Dialog

I have a dijit dialog which runs and opens my requested href fine, it also runs an onLoad function fine. I am trying to get swfupload to work in this dialog. I have the href loading the page with the required html, the required javascript included in the parent (not loaded) document and it all seems to work ok.... that is swf upload is ...

jQuery : displaying a div according to which image i clicked on

Hello, i'm having a trouble to display text according to images i clicked on. <ul id="boutique1"> <li><a href="#first"><img src="images/image1.jpg">nothing</a></li> </ul> When i click on these first link, i want to display that : <p id="first" style="display:none;">Hello World</p> Into this div : <div id="alert"></di...

Best way to implement a Web 2.0 navigation system

Now here is my situation: I'm making a CMS. When links are clicked, i would like the pages to load dynamically using Ajax. The problem in the links! The only way to change the address in the address bar real-time is to use anchor tags. But PHP doesn't get the anchor tags, thus I can't load page content on site load using PHP. And if i w...

Problem understanding javascript multi-dimention arrays

I've been struggling with this for hours. I'm obviously missing something completely. I want to get some values out of TinyMCE textboxes, along with IDs. Then post these via ajax to the server. jQuery 1.4 and JSON library are loaded var send_data = []; $('.contact_check').each(function (i, item) { var this_id = $(it...

How to obtain jquery post return values?

I want to retrieve the height and width of an image on a server by using an ajax post call to a php file which returns a double pipe delimited string 'width||height' My javascript is correctly alerting that requested string from the php file so the info is now in my script but i cannot seem to access it outside the $.post function. Thi...

Publish/Subscribe Messaging in Adobe Air using HTML/Javascript API

I'm trying to build a small app using real-time messaging. I don't know flash, actionscript, or flex, but I'm very comfortable with HTML & Javascript so I thought I'd give that a go. I was able to get a sample running using the XmlSocket, but I'm interested in upping the ante to RTMP using FluorineFX. As I understand it, I should just ...

How to click a javascripted' radio button and fetch next page using Python (urllib2)? [WebScrape, selenium]

I am struggling with this. I have a fully tested python script. I have to make a small change wherein I have to first click on a radio button which in turn automatically executes a javascript function forwarding the page to a search form. My working platform : Linux Language : Python Radio button code : <input type="radio" language...

What would be a complete way to check for null cross browser

I'm looping through an array in JavaScript to check for null in each object using jQuery, what would be the best cross browser solution for this? ...

How can I rewrite a piece of JS that uses XHR with FormData to be backwards-compatible?

I have a piece of Javascript code that uses an XHR to POST data to a URL, but it uses FormData, which is not supported in earlier versions of Chrome. This is very handy, but I want it to be backwards-compatible, so what is the best way to rewrite the makeFormData method to return the data ready to send? The offending code is here: http...

JQuery Datepicker needs to fire onclick

I need to fire the jquery datepicker from a link click. Right now if i click on the textbox the datepicker opens which is great but i have a button next to the textbox that someone can click and it needs to open the datepicker next to it. Also I would like a label instead of a textbox, is that possible. The code is below: $(document).re...

Longpress event on Google Maps API?

Hi all, I'm creating a web app for mobile phones where if they longpress a certain part of the map, something happens. Unfortunately I can't use a window.setTimeout(..) with a mousedown/mouseup combination because the Maps API doesn't contain those events as it would disrupt the drag events. Is there another way to do this? There has to...

Does Google read external Javascript Files that are included

Does Google read external Javascript Files that are included? If I were to append non-keyword information using jquery or such would this affect keyword density? Now I would normally stick to plain HTML/CSS generally but I am curious about this, has anyone tested this before or know factually not I THINK but know or have some evidence ...

NEED HELP. Author has abandoned to fix this jQuery plugin!

Hi, I am trying to implemented this jQuery news ticker style plugin from http://www.makemineatriple.com/2007/10/bbcnewsticker Like mentioned in the comments (around May) there is a bug and the author lost its will to give a bug fix. The bug is: In Mac browsers (Firefox, Opera and Safari, all OSX) - links (a href) don’t ‘work’ until ...

Setting an object to a split array

I'm not a javascript guru. I've got the following code below: var aCookieValues = sCookieContentString.split('&'); // split out each set of key/value pairs var aCookieNameValuePairs = aCookieValues.split('='); // return an array of each key/value What I'm trying to do is split the first string via & and then create another array tha...

creating a configuration pane in javascript

I am looking to create a generic config pane for a grease monkey plugin. I was wondering if there exists a lib to make this easier? I am looking for some tool where you might give it some name/value pairs and it will generate a nice looking UI. I think ive seen this somewhere but forgot the search terms. ...

Make a "Perfect Classroom"

This is NOT a homework question, actually I am doing this for fun. Here is the problem: I have one classroom with a specified "width" (in chairs), and I must place all student so there is no conversation in the classroom. There is a conversation if one student is next to the other. (Diagonals count) For this example, the classroom wi...

jQuery AJAX request is returning a false positive

I have a site where users can enter Area Codes into a text field, but not every Area Code is in our database. I'm trying to do a very simple AJAX request to validate that the Area Code they entered is in our database, but for some reason I'm having trouble with it. Here is the stripped down version of the code I was using originally. Thi...

Will a page taking 2-3 mins to render cause a javascript 'taking too long' warning

I'm using the jQuery document ready method - $(function() If the page takes too long to render (say 2mins+), will this be the reason for the page throwing a javascript taking too long to execute error/warning? ...

asp.net / TextBox - Javascript - i want TextChange event Not On Blur Fire

Hi My Dear Friends: I Have A TextBox That i want do somthing(i am using it's text) with it's Text Change... onkeyup - onkeypress - onkeydown not help because at first these events fire and then entering character applied(i want to use textbox text in changing it) onchange not help because it is fired on blur... what event should i us...

Break up a string into text/http links

I am trying to take a string of text and create an array from it so that the string: var someText='I am some text and check this out! http://blah.tld/foo/bar Oh yeah! look at this too: http://foobar.baz'; insert magical regex here and the array would look like this: theArray[0]='I am some text and check this out! ' theArray[1]='h...