javascript

How to change background of TinyMCE ?

I have just install TinyMCE editor for my website. But the default background is black and text colour is gray. Anybody can tell me how to change background to white and text colour to black. Thanks you verry much. ...

putting php codes on onclick event of a button

<input type="button" name="continue" id="continue" value="Continue" onclick="<? if($_POST['rules']==null) { echo "hello();"; } elseif($_POST['rules']!=null) { echo "myRedirect();"; } ?>" > i have a form with a textarea. when the user hits the button when the textarea is null it should d...

How to reorder a row of html input fields without getting into AJAX

Hi, I'm generating a set of rows of html input text fields, which I want my endusers to be able to reorder. I dont want to use AJAX, but am okay with javascript. I'm okay with some arrow buttons placed on the side of each row, which when pressed move the fields up and down. My issue with AJAX is that its too heavy (50-60kb) for just t...

Methods to make a layout compatible with window resize as well as font resize

Hi Guys, Is there a good advisory / best practice manual etc. out there which outlines methods to make a page layout fluid in the following two ways: a) The layout should be robust under window resize b) The layout should seamlessly handle font resizes committed by the user Every time I design a page layout I end up using different, ...

Use Javascript to open/activate Firebug

I've been looking for a solution to use Javascript to open or activate Firebug. You see by default, Firebug is deactivated/closed at the corner of the status bar. You need to click the icon to activate Firebug (the icon becomes coloured). Is there a way to activate Firebug via Javascript in the javascript code? see following: // ch...

Creating 'form' in javascript without html form.

I am trying to submit a form thru javascript on the fly (using jquery-form) Is it possible to create 'FORM' update bunch of values in that 'FORM' using javascript without having HTML-form ? ...

Using javascript instant.js library for images doesn't work with ajax

I have an asp.net-mvc site and I use the below javascript library for a photos page to put borders around all of my photos http://www.netzgesta.de/instant/ i just changed my site to load my photos via ajax instead of reloading the whole page and although when i debug it the correct html is built up, i dont see any of the images: <div...

query regarding website design using jsp

will a java script javascript work without jsp? ...

Find (x,y) or (top,left) location of a text box or button using jquery

I am using jquery in my php web page. I want to find the location of a textbox or button in a page. Please give me a sample jquery to find this. Please provide with any suggestions u have. Thanks in advance. ...

Ajax request using mootools not working

Hi everyone, I try loading content into a div with this tutorial. Unfortunately, this simply loads the HTML file as a new page. This is the javascript that should do the job window.addEvent('domready', function() {      $('runAjax').addEvent('click', function(event) {          event.stop();          var req = new Request({           ...

how to use dojo.query with button

how can i call dojo.query with button on my page. so that i save data in mysql using php i need to run following code on button click dojo.query("img",dojo.byId("div1")).forEach( function() { // this is now the image dojo.xhrGet( { url: '/somepage.php', data: { image_name: this.title } // ???: depends on w...

printing text in a certain position using javascript

how can i print a text in a specific position in a page? when i use document.write() the text prints in a new page. ...

Image editor component in Flex / JavaScript

Hi everyone, I'm looking for a simple Flex or JavaScript based image editing component which can be embedded in a web application. It shouldn't be a web service but rather a component that I can download and customize (i18n etc.). I only need some basic features: most important is cropping, optional features would be rotating and adjus...

how to send email by using javascript or jquery

now i developed a web-form for a blog then first question then how to send email by using jquery or javascript ...

using sql scripts in javascript

can i use javascript to save an item to a database using sql script? ...

Avoid Multiple (40) jquery confirmation dialog boxes - reuse?

I'm working on fixing up a legacy web application with jQuery. I have a form that has 40 buttons that each have some type of confirmation that use javascript confirm. I want to switch these over to use the jquery modal dialog. I have programmed several of them like below and they work fine. Problem is that there is 40 of them on th...

What is the major difference between a framework and a toolkit?

Does a framework allow you to abstract generic code - but not in a complete way (Ex: Abstract a network connection - but not what you actually do with the data), and does not solve any particular common requirement whereas a toolkit has solutions to generic problems(Ex: Dialog box widget)? Real world Example: Prototype is a "framework",...

get the value of "onclick" with jQuery?

Is it possible to get the current value of the onClick attribute of an A tag via jQuery? For example, I have: <a href="http://www.google.com" id="google" onclick="alert('hello')">Click</a> I want to get the onclick code so I can store it for later use (as I'll be changing the onclick event for a little while). Is it possible to do s...

Javascript Function and Form Name conflict

I have a javascript function that would not run and threw an error. It took about an hour to realize that my form had the same name as the function. It seemed odd that a form name would be in conflict with a function name, but I change the name anyway and everything worked fine. Does anyone know why this would even happen? If you run th...

Parsing a date in long format from ATOM feed

I get this date in javascript from an rss-feed (atom): 2009-09-02T07:35:00+00:00 If I try Date.parse on it, I get NaN. How can I parse this into a date, so that I can do date-stuff to it? ...