javascript

Using Javascript to change all textareas in an html page.

I am creating a project in Django, and I am using the Django Admin pages along with TinyMCE. But I would like to be able to toggle TinyMCE on and off like in this example: http://tinymce.moxiecode.com/examples/example_01.php but since the admin page is generated automatically I imagine I need to overide the base_site.html template whic...

Trigger Jquery autocomplete via scripted event on 1.2.6

I'm attempting to trigger Jquery autocomplete from outside the field. I'm running an on screen Jquery keyboard, so the normal keyup keydown events are not fired. I can not use Jquery.Event or trigger() because I'm stuck with Jquery 1.2.6. I am aware there are other onscreen keyboards out there, but all the other ones I've tested have ...

How to determine presence of HTML5 drag'n'drop file upload API (like the one from FF3.6)

I am writing an application that's supposed to support HTML5 drag/drop API for file, much like the on described here. I would like to perform a programmatic check on whether the browser support this kind of madness :) A solution that works for now is checking whether the browser provides a FileReader class, like this: if (typeof(FileR...

Adding <a> tag links to your Twitter XML feed.

Using a simple PHP call and Jquery script I'm displaying my twitter feed on my site, it all works fine but I'd like the links on my tweets to be in tags like on twitter.com. example XML: <text>There are over 20,000 design based businesses in London alone - http://icanhaz.com/designbusinesses&lt;/text&gt; I'd like to get <a href="......

Google Local Search PHP to Javascript

Hi All, My apologies in advance, this question may not be the clearest, but I will try my best to articulate. In my PHP script I'm processing a string. I want to grab whatever is in between brackets [ ] and execute a google local search (see http://code.google.com/apis/ajax/playground/#show_driving_directions) on the string. Once the ...

Modifying the 'className' property is extremely slow in IE7

On my website, I dynamically modify the javascript 'className' property of a DIV. However this is an extrememly expensive operation, as the DIV contains a lot of child nodes. Sometimes it takes up to 1.5secs. Is there a way of speeding up this operation? Like, hiding the content, performing the operation, then showing the content again?...

GWT DatePicker Locale

is possible to set a Locale for com.google.gwt.user.datepicker.client.DatePicker? I need to show the days and the weeks in italian style. thanks ...

Vertical scroll in one div and horizontal in another.

My webpage is divided in two boxes (divs) A in the left and B in the right. Using the main scrolls of the browser window, I want to scroll A vertically only and B horizontally only. With position:fixed in B is trivial to have A scrolling up and down, but then B dont scroll horizontally. How can I do this? Thanks ...

JQuery DatePicker

Hi I am creating one web application. here I am facing one issue with jquery . Actually in my concept when user clicks on the Plus button one new row will be added. When user clicks on the minus button that specific row will be deleted. Row is having drop down lists and text boxes in it. Depending upon user selection the will be created...

How would I go about getting the title, date, and url of the last ten blog posts from multiple sites?

I need to read multiple rss feeds from different blogs and get just the title, date, and url for the last 10 posts of each site, and then format those lists however I like. I'm working on creating a buzz type website. Somewhat like affbuzz.com. Please let me know the easiest and cleanest way of doing this, either in php, or jquery etc....

Javascript Internet Explorer 8/7 Not Posting in Ajax Call

Hi Guys new to this site but a big fan. Right the problem. It's come to our attention that sometimes on Internet Explorer the post variable don't come through. This is our basic ajax function function GetXmlHttpObject(handler){ var objXmlHttp=null if (navigator.userAgent.indexOf("Opera")>=0){ xmlHttp=new XMLHttpRequest(); xmlHt...

Jquery Datepicker trigger after changing month (after month renders)

I want to highlight some days in the current month. I can do this on the first month, but not on a new month after "next month" or "prev month" is clicked. I tried using onChangeMonthYear event but this executes before the new (or prev) month renders. any ideas? thanks! ...

setting some page as homepage...

Is there any chance to forcible set some page as a homepage?? I mean without any user notification or confirmation... ...

Can I turn ON XSS in my browser locally?

I am developing a widget (HTML, JavaScript) for a platform which allows the (trusted) widget to make XSS calls. I can test the code by packaging the widget, and using the emulator, but that takes 2 or 3 minutes to reboot every time I make a simple JavaScript code-change. Is there a way to turn ON XSS support in Firefox, or any other br...

How to invoke three ajax functions together?

hi, Below is the code in my asp page Ajax.asp <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Ajax.asp</title> <script type="text/javascript"> function Delay(SECOND) { var xmlHttp; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject...

Why would Bing Maps' VEMap.Find be failing silently?

I'm doing some research on using Bing Maps for a proposed application and I've run into a wall. The general idea is that I want to show the locations of various items we have within X distance to a location. The start point is the US map and we're using the user's click to get lat/long, and using that to pick the nearest city. We'll cent...

IE6 Memory Leak on Refresh?

Hello all, I reload a page every few seconds to get an update from the server, this page can be open and this can happen forever - I am guessing, espcially since this browser is on a remote server which isn't turned off. I do this: setTimeout(function () { location.href = location.href; // forces a reload from the server }...

JavaScript switch with logical operators?

for( count = 1 ; count < 6 ; count++ ) { switch (count) { case (2): document.write("hi"); break; case (count > 3): document.write("bye"); break; case (count >= 4): document.write("lol"); break; } } Because it's not working the way I expect, not printing bye and lol, it makes me think this is invalid in Java...

javascript is not working in mozilla but working in other browers.

Technology Used:- Asp.Net 2.0 Code:- See Below Description:- hello code given below is working fine in i.e. and other but not working in all mozila version.javascript is simple to devide two textbox's value. you can easily understand. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="javascript_test.aspx.cs" Inherits="javascript_...

Applying a class to the :first-child once only when creating a list dynamically with PHP?

Ok, so I'm loading a list of images by directory using PHP: <?php # fetch image details $images = getImages("marc/img/livingrooms/"); # display on page foreach($images as $img) { echo "<li><img src=\"{$img['file']}\" title=\"\" alt=\"\"></li>\n"; } ?> Then I'm using the Galleria JQuery plugin to style thos...