javascript

an addition needed in highslide js

Iam using highslide js for my image blow up section and its working fine. But now i need that once an image is clicked and is blown large then if a person clicks anywhere on the page except that image then the image should get back to its original self i.e. blow up should get removed.You can check it here http://highslide.com/ Even on or...

Troubles with jquery jdMenu pluggin , updatepanel and partial postbacks

Hello everyone, I have a menu which contains a delete button to delete items from it. I put all inside an updatepanel to make partial postbacks. The problem is after i made the post back the jquery jdmenu pluggin stops work. I suppose i should include something like this Sys.WebForms.PageRequestManager.getInstance().add_endRequest(Ini...

Hidden variable Vs Server variable accessing on client side in javascript

I'm evaluating two options of accessing a server side data on client side. Little bit confused about the efficiency or may be you can call it as finding best approach to do it. I need to access a server side data may be an integer value in javascript on client side. I know about two options to do it. Create a public variable or proper...

JSON decoding without each function

Hi All i have a json formatted out put as {"baseUrl":"\/","success":true} how get the value of success ?? ...

Is there a virtual machine for javascript ?

Is there a virtual machine for javascript? ...

About Ajax and java script onkeyup function in asp.net

In my webpage iam using ajax in asp.net but in this iam facing one problem that is i have two tex boxes after that 4 dropdown lists are there those are in update panels in one div and in another div i have two labels .finally my intention is to get first div texbox content into second div labels for that one i have written javascript fun...

Is it possible to send mail using OAuth for GMail

I want to send mail from user gmail account using OAuth to all user contacts. It's easy to get all contacts of user with google API, but i cant send email to these contacts from user gmail account without request his password. ...

How do I search in Discussion Boards from a Form Web Part?

I want to create a "stackoverflow.com" solution in a sharepoint, for one of our internal projects. I have choose a Form Web Part for searching and Discussion Boards for asking questions and replying to them. How I can create a search algorithm that searches the discussion board? I type some keywords in the form web part and click Go...

What is the jQuery equivalent to these javascript DOM objects/methods?

I am trying to figure out what would be the jQuery equivalent to the following code: var temp = $('#logoutFrame2').contents().find('html').html(); try { var temp1 = document .getElementById('logoutFrame2') .contentWindow .document .getElementById('theCBO...

Getting the cursor position using javascript not working in firefox

Hello, I have a javascript like function getCursorPosition(e) { e = e || window.event; var cursor = {x:0, y:0}; if (e.pageX || e.pageY) { cursor.x = e.pageX; cursor.y = e.pageY; } else { cursor.x = e.clientX + (document.documentElement.scrollL...

Can I access variables from another file?

hello folks., is it possible to use output of first.js file as input to another second.js file. first.js contains some colorcodes.i need to use this colorcodes into my second.js file. any pointers? ...

Frames + Internet Explorer oddities

I'm running into some very odd beheaviour regarding frames and internet explorer. The situation is like this: I have my web application on www.webapp.com I have a client that wants to have a login box to my www.webapp.com on his website: www.vendor.com The vendor his website is setup by his webdesigner at www.vendor.com. It consists o...

How to convert onchange="this.form.submit()" to jquery

How to convert the onchange="this.form.submit()" to jQuery format? <form action="process.php" method="post"> <select name="qty" onchange="this.form.submit()"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </form> I got a problem because...

add 10 text boxes one by one on clicking add more button.

In my form i am having a button to Add More EmailId where i have to give ten textbox one by one can anybody please tell about appropriate javascript.. ...

how to delete specific number of rows using jquery provided by argument

i have a sample code. This will delete entire row if nor args provided. If provided it will delete the given rows. function deleteTableRows(tableID) { rowsToDel = document.getElementById('getrows').value; if(document.getElementById(tableID) !== undefined) { var tbl = document.getElementById(tableI...

jQuery and JavaScript in Firefox 3 and IE7+

Hi, I'm learning developing in javascript and jQuery. I'm puzzled on why the firefox and IE are soo different in handling javascript and jquery functions. Firefox seems to be doing exactly what I want it to do, when the IE is all over the place and quite often I can't find a reasonable explanation why certain event didn't fire off or ...

How do I remove an element from the DOM, given its id?

In this specific case, the element is a table row. ...

onfocus stop work after reload content in parent object

I load content to the using AJAX. in content you can find this line of code: <input onfocus='searchItems("sContainer", this)' onblur='searchItemsStop()'/> first time when I load the content onfocus and onblur events works. But when I reload the content onfocus and onblur stop working. in firebug I noticed that for every reload of co...

Regex to replace first occurence of match in javascript

Hi All, I have below test cases as input: [This is my test] [This is my test] My name is xyz. Want Expected output as : [This is my test] My name is xyz. . [This is my test] My name is xyz. Want Expected output as: My name is xyz. For above test cases I want to replace only first occurrence of '[This is my test] ' with blank. I...

Refresh an iframe

How to refresh an iframe? For example: <iframe src="http://google.com"&gt;&lt;/iframe&gt; I click on "Videos" in this iframe ,then click on a button to refresh the iframe and I want when the iframe is refreshed ,to be on that "Videos" page. ...