javascript

Looking for Tutorial and/or Reference Documentation for TiddlyWiki Plugins

I have a couple of ideas for TiddlyWiki plugins I'd like to write. However, I've been unable to find any good tutorials or referenoe info for the "TiddlyWiki plugin API" (which doexn't seem to be formally defined). Does such documentation exist, or do I just need to look at the TiddlyWiki source and some example plugins? ...

Javascript: Print (to printer...) from var?

Hi all, I have something like this on a $.ajax() success function: var popup = window.open('',titulo,"menubar=0,location=0,height=500,width=800"); popup.document.write(response); popup.print(); My problem is that some browsers block popups, and my only need is to print. I've found jqPrint, it is a jQuery plugin that prints from eleme...

Getting the PDF created using iText as pop up in JSF

Hi. I want create a pdf using iText. The method which does this is a JSF bean. What I want is, on click of a commandButton in JSF page, the PDF is created. It must then open as popup in a new window(or tab) keeping the JSF page unaltered. How can I accomplish this ? I know there is a way in javascript in which we can open a new window us...

Mootools each on childs

Hello everybody, I am working on a script what uses MooTools, and i want to select all input's in one element, but the problem is that I don't know the ID of the element, the element is a variable. (In The function is formElement = $('form#aForm') ) Does someone know how I can use the each function on all input in one element. Now I am...

Multiple infoWindows stacking over same location Google Maps API version 3

Hi, I'm loading a json file for a bunch of markers on my google map (verison 3 api) and then placing infoWindows for each marker. It all works swimmingly well except that the markers are ignoring the latlng information, and when markers are clicked the windows simply stack over the original marker. Everything works perfectly except for ...

Jquery, Cookies and Blogger

On my Blogger Blog I have this code in the template <b:if cond='data:blog.pageType == &quot;index&quot;'> <b:else/> <p><data:post.body/></p> </b:if> This code basically shows the body of the blog post only when it's on an individual blog page. You can see an example here www.spoilertv.com When you are on the homepage only the post t...

I want to change combobox when mouse is on it or when its not

in my application i need ... if a user click on combobox it will work as usual like show all the list and when mouse is not on any of item or on combobox...then that combobox should take its default position .... that mean it must compress again in jquery or javascript..you can post your answer ... i just want solution :( ...

form.submit() taking more time when there is large amount data is there to submit

We have a web page which enables the users to compose email and send. The HTML composer we use is FCK Editor. When they compose and say send We validate the email and subject. To avoid the user not to further manipulate the form we hide the whole form and enable another DIV which says "Mail sending...Please wait" We submit the for...

Make an ASP.net Label with scroll bars scroll to the end using javascript

Hi, I have a an asp.net label control on my page. I have set the style to overflow: auto. What i would like to know, is when there is a lot of text in my label and the vertical scroll bar is showing, is there away i can scroll to the end of the label using javascript? I would like the user to always see the bottom section of the labe...

Disable Check-boxes recursively in RAD tree view

I am trying to select all the check-boxes of the children in a Telerik RAD Tree view when the user checks a parent node and disable the check-boxes of all child nodes. I have a recursive function that is successfully checking the boxes, but i'm not having much luck in disabling all child check-boxes. Here is my code: <script type="t...

jQuery .append() and script behavior and management

According to the discussion comments here: http://api.jquery.com/append/ the .append() of a script evaluates the script, then discards it. IF the script adds jQuery behavior such as for example: $('#mything').click().addClass('hasclass'); is that event management retained (espcially if complex chaining gets added), or discarded, and...

How to use JavaScript to dynamically update the Bugzilla Additional Comments textarea?

I am customising Bugzilla and I need to update the text in the Additional Comments text area on the bug editing page. This text will need to be changed dynamically depending on which status the user selects from the drop down menu. For this im hoping to use the onChange event. Has anyone any suggestions on how to implement this? ...

how to programatically search a jqgrid

I have a jqGrid with lots of data loaded in it. I want to provide three buttons. Clicking on each button the grid will be prompt user to enter a number and based on that input it will search the grid. Please tell me if jqGrid supports this. ...

Close cluetip when mouse out of the link

I there an option to close cluetip when the mouse is of from the link? There is mouseOutClose option but it doesn't close cluetip if you don't hover the cluetip itself first. Here is an example: http://plugins.learningjquery.com/cluetip/demo/ - the first link under the jTip Theme ...

Special characters escaping with JS and PHP

Hi everyone, my application geting Text from a input field an post it over ajax to a php file for saving it to db. var title = encodeURIComponent($('#title').val()); if I escape() the title it is all OK but i have Problems with "+" character. So i use the encodeURIComponent(). Now i habe a Problem with german special characters like...

Input validaton with a function call jquery

I am trying to find the correct jquery plugin to validate a few input elements on my page. I would like to be able to have the validation happen on the fly and if any of the validations fail it will call a function. I have been researching this and I can not find a good example on how to do this or what plugin to use. I ultimately just w...

Disadvantages in using html/css/javascript with phonegap instead of objective C (iPhone)

Hi, I am not fluent in objective-c and thus have decided to take the "easier" approach and use html/css/javascript instead to design and implement an iPhone application. I would be using PhoneGap to gain as many of the cool features which are available to developers using Objective-C as possible. Would I would like to know is if there a...

Read window.location.hash servlet-side not possible?

Hi, In my web app, a user can click an item in a list, and I modify the url in their browser: <li>Horse</li> <li>Cow</li> <li>Goat</li> function onListItemClicked() { window.location.hash = item.name; } this will change the url in the user's browser to: www.example.com#Horse www.example.com#Cow www.example.com#Goat...

How to implement sequntial iteration with asynchronous code

I want to implement sequential upload of files (with XMLHttpRequest level2) to server. Got bunch of DOM elements with File attached (FileAPI - W3C draft). I want to upload in sequence (one after another), but XMLHttpRequest works asynchronously. Little code sample: $thumbnails = $('queue').find('.item'); for (var i = 0, len = thumbnails...

Google's GeoCode Convert City, STATE into Latitude Longitude

The following code works asynchronously. I only have it set up to convert a City, State into latitude and longitude. That value is then alerted. How can I write a function that actually returns these values? var map; var geocoder; function initialize() { geocoder = new GClientGeocoder(); } // addAddressToMap() is called when th...