javascript

How do I pass a searchstring to perform a search?

Hi everybody, again I'm stuck and asking you to help me. I want to enter a search string in an input-field. The search string should perform a search like https://.../=~searchstring The textfield: $("<input id='field-inputSearchString' type='text' name='field_inputSearchString'>").insertAfter('.completed ticket'); I've got two quest...

is there a way to control the iPod Touch’s keyboard orientation using JavaScript?

Hi, I was wondering if there is a way to control the orientation of the iPod Touch’s keyboard from JavaScript? When the using is in landscape, the keyboard is always displayed in portrait mode which is causing problems with my static positioning of many elements. Is it possible to control the keyboard’s orientation in Javascript? Than...

Replacing ? from document.location.search

Hi all, I have the following code which i am using document.location.search in it.. I want to replace the ? with an &.. How i can do that please? <script language="javascript"> document.write("<a href='http://www.gfi.com/downloads/downloads.aspx?pid=fax&amp;lid=en" + document.location.search + "'><img src='http://images.gfi.com...

How to make Selenium IDE as exe?

Hi Friends, I downloaded Selenium IDE code.Now i want to start selenium IDE just by double clicking on it not as firefox plugin.Any Idea which helps me to start IDE as a desktop application is appreciated.Thanks in advance. ...

Javascript Split, change parts number

I have a dynamically generated large string witch I am splitting. var myString="val1, val, val3, val4..... val400" I do a simple split on this string: myString= myString.split(',') getting the following: myString[1] // gives val1 myString[2] // gives val2 myString[3] // gives val3 . . . myString[400] // gives val400 Is there a w...

Is there any problem with using HTML5's "data-*" attributes for older browsers?

I want to associate some custom data with some HTML nodes. I was going to use the new HTML5 style 'data-*' attributes. e.g.: <tr class="foo" data-typeid="7">…, and then I was going to select this HTML node and show/hide it etc. by reading the value with $(node).attr("data-typeid"). However this web page needs to work with older browsers...

Is there any PHP or JavaScript math expression formatters (which adds brackets) ?

Google Calculator formats math expressions this way: 2+2/2 ---> 2 + (2 / 2) 2+2/2*PI ---> 2 + ((2 / 2) * PI) In others words - it adds brackets. Is there any similar PHP or JavaScript solutions to do the same thing? ...

Making a Javascript Yes/No Confirmation Box?

well Javascript confirmation gives the Ok/Cancel Button but I want to create a Confirmation with Yes and No in Javascript can anyone help ?? ...

I want that when the mouse is over one option in my drop-down list, the background color of the option value on my second mask must be changed

Possible Duplicate: I want that when the mouse is over one option in my dropdownlist, the background color of the option value on my second mask must be changed I have 2 dialog mask on my screen On the fist one I have a drop-down list with different option values. On the second I have a div table. I want that when the mous...

validations of text box in javascript

Hi All, I have to do one validation in javascript. I have text box into which user should not allow to enter value which is more that 5.00 means user can enter value which is less than 5.00. so please suggest such validation in javascript ...

How to hide a label message when a div becomes visible

Hi all, I have used a label box to render a "please wait" message when the user clicks "Save" button. Once the processing gets over, the output gets displayed. My goal is to hide the label once the output is displayed. How do i achieve this. My code is as follows, <label id="embedLabel" class="hide" runat="server" visible="false">Ple...

Unable to add canvas-profile view to orkut app

Hi all, I am newbie programmer on orkut platform. I was developing/testing orkut app couple of days ago. It was working fine.But suddenly I am unable to view/add that orkut app. It says app is added but canvas page is not visible. I tried with my friend's account, it still didnot work. Even I tried the same with helloworld.xml given in...

how to calculate control points on a bezier curve?

I do have a bezier curve, and at a certain point, I want a second bezier curve "branching off" the first curve in a smooth manner. Together with calculating the intersection point (with a percentage following the Bezier curve), I need also the control point (the tangent and weight). The intersection point is calculated with the following...

If in jquery does not work

I wrote this script, but it doesn't work in way I wanted: $(document).ready(function(){ if ($('#map_container').find('#point').length == 0 ) { $("#map_container").click(function (e) { var relativeXPosition = (e.pageX - this.offsetLeft); var relativeYPosition = (e.pageY - this.offsetTop); ...

Internet Explorer "setAttribute" onclick workaround?

var tr = document.createElement('tr'); tr.setAttribute("onclick",p.onrowclick+"("+row.id+")"); Hi, the above works fine for me in Firefox. I can't find the correct syntax for a workaround in IE. I'm using IE8. ...

Finding objects in JS array and storing names to new array?

So, I have an array that contains X objects, all named by dates and containing useless data beyond their name. I want to store these dates in an array for later use and objects are, apparently, not found in an array by array[i], so how do I iterate through the array and just save the names to a string in another array? Edit: Ok this que...

How to write a simple jquery plugin

Hi, I wanted to create simple plugin using jquery. Also suggest me standard practice while writing jquery plugin. Please folks suggest me some better pointers. Thanks, -Pravin ...

How to disable link button in a gridview

Hi, I have one grid view that contains some template columns. In this, the first column contains check boxes named as Read, fourth and fifth column contains asp:link button. If the user clicks on the read check box, both link buttons should be enabled (Initially it is in disabled mode). I used this JavaScript code for disabling. But i d...

Facebook post link to wall - image is missing when it's fetched with script

Hi! :) I'm using following code using FB Javascript API to post link to wall: FB.ui({ method: 'stream.publish', message: 'message text', target_id: null, // friend id to post to; if null, posts to own wall attachment: { name: 'applcation name', href: 'http://whatever.com', description: 'descripti...

Ajax -access protected resource

I am just trying to access a webservice or any webpage for that matter through ajax(only ajax is allowed for some reasons).The webservice is protected by coroporate SSO. In the sense, when the webpage X is requested for the first time, you get redirected to the login page Y,which is outside of the app. Upon authentication,you get auto re...