javascript

when i use png fix js other js effects are going to messup

i have use this png fix js on my page "http://allinthehead.com/retro/338/supersleight-jquery-plugin" then i tried to use this js effect on my page http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding now it's going to mess up becase this png fix js it is also effect on soo many js pleace do you have any ...

Javascript: TypeError: a is undefined - what's wrong?

Hello! I have an array containing several markers for my googlemap. When I try to add this array to my map I get this error. Any ideas why? Here is my code: markers = []; function create_station_marker(position){ if(position != null){ eval(position); var latitude = parseFloat(position.latitude)...

MS Word ActiveX control - is it possible to access open documents?

Hi, I can use the MS Word ActiveX control in order to access some parameters related to the MS Word application itself. I can also open up new documents and then perform automation on those documents. Is it also possible to access documents that were already open on my machine and then perform actions on them? The code I'm using is th...

How do I change the height of a container div to fit all dynamic content?

Hi, you can find an example of my problem here: http://la.truxmap.com/truckpage?id=buttermilktruck the text content can be whatever size, from 2 lines, to the multiple paragraphs you see in the example. what i want is for the container with the white background to expand to the bottom of the static google map (this map is generated d...

jquery: observe field with frequency

Hi there! I need to use JQuery in order to detect the changes on a text file, so some ajax is invoked. The trick is that I don't really want to bind this action to the blur or keyup events; The former is too cumberstone for the user and the second is "too inmediate": the user types new keys before the ajax call has been completed, so t...

Properly destroying dojo DataStore

I am extensively using declarative dojo DataStores in my application and connecting them to various declarative data driven Widgets. The problem comes in when I attempt to "destroy" the ContentPane that contains the DataStores. All the declarative examples using datastores use the attribute jsId to have the dojo parser set the datastor...

Set position for new window

hello i open a new window with: <a href ="javascript:NewWindow =window.open('Default.aspx', 'NewWindow' , 'width=400, height=450'); NewWindow.focus()">Hilfe</a> at the moment the new window appears in the upper left corner. how can i set the position, so it appears somewhere else? ...

jQuery .Ajax() function selector , store specific data in variable

I am new to jQuery and I have the following problem. My project has say 2 pages, 1.JSP and 2.html. Now I want to pick selected data from 2.html and use it on 1.JSP. Now this was achieved very easily using .load but I want the data to be present in a JavaScript variable rather than put it on the page (div tags, etc.), so that I can work ...

Problem with javascript function while using Jquery.

Hi all, I am very new to Javascript and have only started playing with jquery recently. I have a Javascript function that while used on its own within my project, works flawlessly. as below.. * UPDATE * these 2 functions are declared after the <input> tag and still throw the same error document.getElementById("name_first") is null when ...

How can I populate javascript array using XSLT (Reading values from XML)

Hi, I have the following requirement. I need to populate a javascript array with values reading from an input XML file using XSLT. I just need to read XML using XSLT and populate an array in javascript. Can anybody has any idea regarding this, it would of great help to me. I am struck at this point. i can't proceed any further without ...

Typeface.js not rendering in Internet Explorer?

Hi, just wodering if anyone has experience with Typeface.js ( http://typeface.neocracy.org ) and fixing issues of the font not being rendered in Internet Explorer ( 6, 7 and 8 ). The font renders in Firefox and Safari fine, hover nothing is displayed in the Explorers. The font is not installed locally so I know that the script is workin...

Speed of [].forEach.call(... ?

Hi, I'm a big fan of using the forEach method on nodeLists like this: var nodes = document.querySelectorAll(".foo"); [].forEach.call(nodes, function (item) { //do stuff with item }); I was wondering though, does doing it that way take longer than the regular way? e.g. for(var i=0;i<nodes.length;i++){ //do stuff with nodes[i]...

What is the use of JavaScript?

Why do I need script on an aspx page? ...

How far can I go with JavaScript?

I need to do as much as possible on the client side. In more details, I would like to use JavaScript to code an interface (which displays information to the user and which accepts and processes response from the user). I would like to use the web serve just to take a date file from there and then to send a modified data file back. In thi...

JSF invoke backing bean method and reRender components on ENTER key

Hi, I have a datatable with as search fields. I want a method on the backing bean to be invoked when ENTER key is pressed, as well as the DataTable to be re-rendered. My approach so far only works in IE 6, and 7, not in FF. This is the inputText: <h:inputText value="#{applicantProductListBean.applicantNameFilterValue}" id="applican...

Manipulating DOM of Multiple dijit Widget Instances

I have developed a custom dijit Templated Widget. I have to do some DOM manipulation of the children of the containerNode. Everything works fine, except when I have two of the Widgets loaded, and the manipulation of the children of the containerNode seems to affect all of the Widgets of the same type, not just the particular instance o...

jquery array problem

<?php include_once('db.php'); $location = $_POST['location']; $doctor = $_POST['doctor']; $patient_id = $_POST['patient_id']; if(($location != "") && ($doctor != "")){ $sql = "select Name,Age,Gest_age,Weight from rop_form where Location = '".$location."' and Doctor = '".$doctor."' and Patient_id = '".$patient_id."'"; $result = mysql_quer...

Avoiding too many submits to the page.

I have an HTML page in which a table with innumerable no of cells are placed all over the page. In detail a employees 24 hour day schedule is divided into 30 min cell means 48 cells in row by 100 employees on average. Each cell on click opens a popup which on submit submits the whole page again.This is been in use since ages but a new cl...

JavaScript: display div on index.php

Information: I have a site that has a design on index.php, and then you browse other pages(video.php, news.php) inside a frame on index.php. What i want to do: After a action(inserted to mysql.query) has happend inside the frame(video.php), i want to show a #box that is on index.php. How should i do this? And is it possible to do like...

Problem placing Google Analytics page tracking script in 2 separated Javascript files

I'm including the Google Analytics Script divided into 2 pierces of Javascript code: google-analytics.js: (above) var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + " page-tracker.js try { var pageTracker = _gat._getTracker("U*-********-*...