javascript

Jscript runtime error object required

I am getting this error in .js file as d.style.visibility='hidden'; What is d here I dont know,I have used a ckeditor replaced with the textbox as txtEditorAnswer. Can anybody help me?? ...

Highlight cells with past dates

Hi guys I dont know if this is something that a new programmer should true or not, but heres my problem. I have a table of 13 columns at at present about 400 rows. yes i nkow this is a large table and unfortunatley it will only be getting bigger. what i am trying to achive with this table, somehow, is to have a function that checks the ...

Javascript handling of php readfile octet stream

OK, I've had a good read through the "Related Questions" section and I haven't found this answer. I'm using an ajax request to force a php download. Things are working fine on the PHP end. Let's say I've got a stream of data called DATA. Now, I want to pop up a "Save as..." dialog. The browser has received a string of hex values....

Session timeout response in AJAX

In my application, I'm loading some table using AJAX. But when user's session times out it gives me login page as response that gets loaded in table area. I would like to redirect to login page may be in javascript when session timeout occurs during AJAX call. ...

Is scrollHeight of <textarea> in MSIE8 and FF differ

Hi, Thanks for your time, I have calculated scrollHeight of <textarea> and run it on Microsoft Internet Explorer 8 and Firefox. I am getting different scrollHeight in above mentioned browsers. Code used in my application function getScrollHeight(id) { textareaObj = document.getElementById(id); var scrollH = textareaObj.scro...

update/clear fields automatically or by event etc. by specific date

hi im new to programming i have this small system for room reservations (school requirement). i have this question that is it possible to update the fields of my table on specific date? for example is today is 2010-10-14. if the field matches on the same date. it will clear/update my field automatically? i dont really know where to sta...

Decrypting images using JavaScript within browser.

I have a web based application that requires images to be encrypted before they are sent to server, and decrypted after loaded into the browser from the server, when the correct key was given by a user. [Edit: The goal is that the original image and the key never leaves the user's computer so that he/she is not required to trust the s...

How to consume this wsdl webservice using Javascript client (assume cross-domain issue is no problem, ignore that issue)

Hello guys,i'am a newbie, and i need some help.. Here is the offline wsdl file about webservice: www.mediafire.com/?23266wtqkewbugc#1 And the online wsdl file:lontar.cs.ui.ac.id/Lontar/services/PenelusurDokumen?wsdl, but the server now is down. I want to call some method/function from webservice via javacript client. I have tried the ...

Make widget that will follow user behavior at webpage/web application

Hi all! I would like to make/implement an widget that will show statistics for specific user at webpage (number of clicks at some links or butons, etc.). Initial idea is that user can click at some small button in corner of window and widget with his statistics will appear. That will later also be packed as Firefox plug-in. Regarding ...

javascript runtime error

I am using a ckeditor in replacement with a textbox id txtEditorAnswer but on running i found the following error in these lines x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0; o.modes={wysiwyg:!!n.element.$.form}; if(x.elementMode==1&&y.is('textarea')) var z=y.$.form&&new h(y.$.form); can anybody plz help me o...

how to show exception variable value in alert box in asp.net using C#

i have the code... try { do something.. } catch(Exception ex) { Response.Write("<script>alert('"+ex+"')</script>"); } but the alert box is not displaying... if i use the code. try{do some thing} catch (Exception ex) { Response.Write("<script>alert(\"an error occur\"...

javascript preloading images - check whether an image is cached/loaded to prevent preload

I have a few doubts which i am already sure of it but still want to be very precise about it. If this is a duplicate question then please give me links so that i will delete this question and will refer the provided links I need to preload few images. I dont want to preload if they already exists in the browser cache. if we are preloa...

How To write a server side script using jsp and java and How to run it?

I am new to this technology, I dont no how to write a server side program and how to run before jsp page start to load. Any one can you please guide me how to do it? Thanks in Advance, Ver ...

How to write script for pinging Program for blogger

Hai i want to write a automaic pinging for my blogger when ever i update my blog , suggest me if any script already available or how to start ...

Draggable jQuery UI elements using wrong start position when browser is scrolled?

I have been using jQuery 1.4.2 and jQuery UI 1.8.5 to create draggable elements that revert back to their original position. There is a problem though; when you've scrolled the browser window the start position will be changed to start somewhere higher. It looks like an absolute position is used but the amount that has been scrolled is n...

Cakephp: Saving a Form via Ajax

i have a User Module where users can set their status message (tweet) from the profile page. When some one clicks Share it should go to an action and save the status message. I am not sure how to do this in CakePHP. I would wnna use jQuery. If you can point me to the right document. it would be of great help I am new to Ajax. ...

Controlling browser window through Javascript

Hi, i have a web app that launches an URL in other windows/tabs. I would like to check if the window/tab exists; if not, i want to create it else i would like to pick it in first position. I use: wf=window.open(address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450'); if(wf!=n...

How to replace image with flash video file?

I have video gallery written in ASP.NET. Each video has an .flv file hosted on FMS and image. I want to replace image with flash file each time use mouseover on video. ...

Javascript saving xml using Ruby on Rails

Hello, First, what I am trying to do is: I am trying to create a browser application that works on clientside. The basic idea is the user uploads a xml file into javascript. Javascript does calculations on this data and displays results onto the browser. The user is able to interactively edit the result (something like an image/video) ...

$ is not a function - jQuery error

I have the jQuery loaded fine, I've quadruple-checked, though I'm getting this error in FireBug "$ is not a function" and my code doesn't work. Here's my code: <script type="text/javascript"> $("ol li:nth-child(1)").addClass('olli1'); $("ol li:nth-child(2)").addClass("olli2"); $("ol li:nth-child(3)").addClass("olli3"); ...