javascript

Cross browsers mult-lines text overflow with ellipsis appended within a width&height fixed div?

I made an image for this question, it's faster to me and should be easier to understand. I've tried some jquery plugins out here and there, but cannot find the one i'm looking for. Any recommendation? ideas? ...

Table scrollbar without changing headers and provide sorting in headers

Hello All, Here is mytable and need the headers to remain while there is a scrollbar only to the results and provide the sorting facility in the name. <table> <tr> <td>id</td> <td>name</td> <td>type</td> </tr> <% while(resultSet.next()) { %> <tr> <td><%=resultSet.getString...

Identify whether the selected text in a web page is bold nor not

Hi I am trying to identify whether a selected text (in Firefox) is bold or not? For e.g.: <p>Some <b>text is typed</b> here</p> <p>Some <span style="font-weight: bold">more text is typed</span> here</p> The user can either select a part of bold text, or the full bold text. Here is what I am trying to do: function isSelectedBold(){ ...

What is the difference if("test") and if(!!"test")

What is the difference if("test") and if(!!"test"), only judged the false or true; ...

php/ajax browser problem

This could be considered a browser problem. It works in firefox, but not IE or Chrome: http://robotslacker.com/test.php the php file it's posting to is simply outputting a number. If you load it in Chrome it loads at 99. So the question is, how can i achieve the same affect on chrome/ie ...

What does a client side javascript templating framework offer ?

What is the use of frameworks like PURE or jQote etc. I can do dynamic things in plain javascript or JQuery using AJAX calls or an advanced library like DWR. What new stuff do these templating frameworks bring to the table? I need to know since I have been asked to use a browser side templating framework without being explained why :( ...

how to setCookie and getCookie using domain name

when i save cookie, it stored with the current URL link., also when i get cookie that search for the current URL only. i need to save and retrieve cookies with my own defined URL links. can you help me ...

jQuery best Practice: hide / doSomething / show sequence

Hi all What is the best practice to carry out following workflow: $("#myDiv").hide(); $.getJSON("url", function(data) { ... snorrr ... hours later ... }); $("#myDiv").slideDown(); This above mentioned sequence slides the div long befor hours have passed :-( Thanks Er ...

How to figure out if the window is closing in the callback of jQuerys unload(); method

Hi, Is it possible to figure out just wich type of event triggered $(window).unload();? To be a bit more specific, I'm only interested in the event when a user has closed the window (a popup), not when he's just navigating away from the current page. I've looked into the event parameter passed to the callback of unload(); but there doe...

Infinite carousel not working in IE but working in firefox or chrome

The following link of my carousel is not working as it is supposed to be in IE. However it works just fine in any other browser like chrome or firefox. Here is the link for the same: http://web.enavu.com/demos/3dcarouselwip/ What changes i have to make in the source code as I perfectly have gone through the code more than 10 times. ...

smarty variables inside javascript

i am trying to use smarty variables inside javascript inside tpl http://pastebin.com/PXmy8jxf can you suggest me solution please update: http://pastebin.com/J4ibLz1m ...

Applying DIV/Span tag to a word by specific co-ordinates

Sample HTML Data <body style="width:300px;"> <h3>Long-Text</h3> A simple tool to store and display texts longer than a few lines. The search button will highlight all the words matching the name of objects that are members of the classes listed in searchedClasses, itself a member of the KeySet class. The highlighted words are hyperte...

javascript function modification

Hi, I am trying to write a logger object which logs messages to screen. here is my code. http://github.com/huseyinyilmaz/javascript-logger in every function that needs to log something, I am writing loggerstart and loggerEnd functions at start and end of my functions. But I want to run thos codes automaticalls for every function. is ther...

I want my tabs to be loaded dynamically (only when clicked)

Possible Duplicate: Jquery Tabs- Load Contents only when clicked Hi, I am relatively new to jquery and web development. I am using jquery tabs to create tabs. here is the code <div id="tabs-1"> <%@ include file="page1.jsp"%> </div> <div id="tabs-2"> <%@ include file="Page2.jsp"%> ...

encodeURIComponent, trouble with ü,ç,İ,ı,ğ,ö

Hi everyone, My problem is. I'm sending values to Generic Handler via Ajax like that way. xmlHttpReq.open("GET", "AddMessage.ashx?" + (new Date().getTime()) +"&Message=" + encodeURIComponent(Message), true); when message contains İ,ç,ö,ğ,ü,ı they are looking like that on Handler İ,ç,ö,Ä,ü,ı I write this in AddMessage.ashx Handl...

getCookie using javascript

Possible Duplicate: how to setCookie and getCookie using domain name when i getcookie using javascript, that will get for the current URL. i want to getCookie by passing domain name, how to get it? ...

jqGrid: Disable form fields when editing

I'm currently developing a web application designed for the administration of vending machines and such. I decided to use jQuery, jQuery UI and jqGrid for this project, so I can easily provide a great and highly customizable user interface. Unfortunately, the jqGrid documentation is pretty outdated and doesn't cover all the features of t...

pdf from javascript

How can i get the number of pages in a PDF document from javascript? ...

Javacript - Cancel Scroll event

Hello all I want to disable the scroll in one of my pages. I dont want to write scroll(0,0) or scrollTo(0,0) in the scroll event which will give a 'jumpy' nature. Can't i have something like event.preventDefault() for canceling the event? NLV ...

How to make a rating image like imdb.com

Hi, I am trying to make some raing part in my website. I want a rating image, when the user moves mouse over over first star to ninth star, all stars in the sequence are lighted. And when the user clicks for example 9th star then the movie's rating is going to be nine. How can i do that? ...