javascript

Set and Read/Retrieve cookie using javascript within a java file(.java)

Let me refrase it. i am writing a new http-server using sockets in java-language(not javascript) and i want to tell client to set cookie. I would like to do that in javascript(setin reading the cookie). If that is not possible, Are there other solutions? Thank you all. ...

Jquery autocomplete

I want to activate jQuery auto-complete in a text-box when user enters any particular character like @. means when user enters his email address like [email protected] in text-box after typing "john" when user enters "@" in text then auto-complete should be activated, and should display the list of mail extension ("Gmail.com," "Hotmail.com...

MVC: capture route url's and pass them to javascript function

Short:Is there a way to have a route-definition that will pass the "CONTROLLER/ACTION" string value to a javascript function in stead of actually going straight for the controller action? More:I have a masterpage which contains the navigation of the site. Now, all the pages need this navigation wrapped around it at all times, but becaus...

This is an invalid webresource request. javascript datetimepicker

Hi I have a datetimepicker for one of the textbox control see below the code <script src="../client-scripts/date-picker.js" type="text/javascript"> "<td class="datafieldTBL" align="left"> <asp:TextBox ID="txtenddate" runat="server" Text='<%# Bind("EndDate")%>'></asp:TextBox> onclick="javascript:displayDatePicker('<%=formViewUser.Fi...

Django tag for compressing in-page javascript

Django-compress is great, but it doesn't offer any tags for compressing in-page javascript. Are there some solutions out there? Even removing newlines (and adding ";" where needed) would be just great. ...

dynamically generated Elements are not appended in document correctly in IE.

I have written a Javascript calender, that is dynamically generated by Javascript. But if does not functions in IE. here is the link to my script. http://asexpress.de/calender/ We one looks at IE Developer tool, the newly generated contents are there but do not show in browser. Any help please. ...

mouseover on text html

In my javascript file there is, var htm = '<div style="overflow:hidden;height:24px;width:150px;" onmouseover="tooltip(this)">' ; function tooltip(sp) { sp.title = sp.innerHTML; } So on mouse over a text the tooltip is displayed.But the tool tip does not stay longer. meaning the position is not fixed. Can the code be modified such...

Updating a select box without causing onChange

Here's what I want to achieve, I have a select box that loads in a few rows, when the select is changed (onchange) the key is AJAXed to a PHP function that returns an array in the JSON format, my code then clears the select box options and applies the values I have just returned from my PHP function, great. The problem is when the new v...

JQUERY AJAX LOAD Function Error

I loaded a second.php file in first.php using jquery ajax load function $(".divclass").click(function(){ $("#divid").load('second.php', { id : $(this).attr('id') }); // alert("view Clicked"); }); the second.php loaded second php content in first.php file success. but second.php contains some jquery function... in second.php ...

Is it possible to send special character in parameter values in url path?

Hi All: I have an url link "Change", a pop up window will get open when the user clicks the link. During that time, some parameters with values also sending in the url. Some parameter values contains special characters (' eg: &name=D'LOREY&lname=VALENTINE). If the value is full of alphabets it is working fine but throwing javascript erro...

How to get typing status of the other side with javascript?

I've seens this in various places, during chat,I can see whether the other party is typing or not . How do implement this most easily? ...

$(window).load() works differently on IE and FF

Hi All, I was working with $(window).load() ...and found one issue. Actually as per this function first window should load and then any implementation under this function should start working. This works fine for IE but not for FF. in FF its working like $(document).ready() can somebody suggest any alternate approach, or the reason why ...

Retrieve coords for google map

I have this data... 45°25'02.98" 10°11'30.39", how can retrive Latitude and Longitude to pass at gLatLng? ...

print div content from user control without opening a new window

Hi, I have a USER CONTROL with a <div> tag and a button. I want to print the content of the <div> when the button is clicked. Only the content of the div and nothing else no matter where the control is used. This without opening a new window. I cannot find a solution that works with every browser! Thank you! ...

javascript validation for dynamic element

How can I validate dynamically created text inputs? I have an "add more" link that creates new ones, and a link to remove them. Each one has a uniqe ID. Also, at least two text boxes must be filled. ...

JAVASCRIPT - DevExpress - ASPxButton - Client Event

Hi, Can anyone see why this code block wont execute? I am using DevExpress v 9.2.9, VS2008 If I change the top function to an Alert it runs. However, If I chop the bottom block to an Alert, nothing happens. Its as if nothing is getting sent to my second function. I can't for the life of me get Firebug or any JS debugger tools to see...

javascript function - the correct way to do this...

Hi all and thanks for looking, What is the correct way to do this: <script language="javascript"> function flag(nation) { this.nation=nation; document.getElementById("flag").innerHTML="<img src='images/flags/'+nation+'.jpg'>"; } </script> with this in the link tags: onClick="flag(scotislands)"; and the image name being scotislands.jp...

Silverlight toolkit graph sorting problem..

I have a problem with "Line series" silverlight graph from the Silverlight toolkit, where i spit out total views and week number. the problem is: the week numbers are sorted and start from 01 and end at 53 in the graph, though it starts at 05 ? I have two javascript functions with the arrays which to populate from. function weeks() {...

Determining which song the user is listening at the moment with JavaScript and Firefox

Hi, I am creating a Firefox extension which will be using the Last.fm API. Now I want the extension to be able to determine which song the user is currently listening in WMP or iTunes. Does someone know how I can do this? useful edit: I only need the song name, album name and artist Thanks ...

Calling web service using javascript error

Hi , I try to call webservice using json , when i call to web service without excepted parameters , its work , but when i'm try to send parameter , ive got an error : This is my code: function GetSynchronousJSONResponse(url, postData) { var xmlhttp = null; if (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); ...