how can i measure cursor position in a div..?

i don't know what should be the question title..sorry for this. but i explain that what i want to do. i have a div with class name "scroll-inner-container" this div height is 70vh. when my mouse hover into this div from top to 10% (this is the mouse ...
more »

2017-10-04 20:10 (2) Answers

Select specific quantity of li in ul block

I have an ul-block in wich there are 15 li positions. First 5 li-s are pre-shown, another 10 are hidden. I have a function that toggles this UL - and if i click the button - it shows that 10 li-s but hides first 5. I need such Jquery selector, so ...
more »

2017-10-04 12:10 (4) Answers

Using 'this' in nested functions

Wow.. to get real information about 'this' is not easy as google basically ignores the word. The code opens an image from a database using the information from thumbnail.. the onlick works, and the hover code works, but I can't figure out how to get...
more »

2017-10-04 11:10 (2) Answers

How to group rows in sap.ui.table.TreeTable?

I am using sap.ui.table.TreeTable to display the data but i want to group the existing table based on some common property in model just like grouping in list. Currently i am using sap.ui.table.TreeTable like this <mvc:View controllerName...
more »

2017-10-03 11:10 (0) Answers

How to add json value in P tag in Javascript

Onclick of some tab I am creating para tag and on that I want to add some text. How to add those value dynamically. Here is what I am trying. Onclick of tab I am calling this method. SomeMethod = function(){ var para = document.createElemen...
more »

2017-10-03 08:10 (5) Answers

JQuery conditional handler

I need to select a li element based on a "aria-selected" attribute that is affected to this element after its initialization by a plugin (specifically, it's a JQuery UI tab element, I want to handle the click on "selected" tabs, and those tabs are ad...
more »

2017-10-03 07:10 (3) Answers

saveSnapshot does not work after modifying the DOM

I have a web site with inline CKEditors, on which I modify the HTML DOM with javascript and then try to fire the saveSnapshot event to save the modifications to the server. And here's the tricky part; if I make only one DOM change (remove an element)...
more »

2017-10-02 23:10 (1) Answers

Getting JSON [Object object] from rest interface

I have a simple web service using apache camel that, on HTTP GET, returns column names from a database as JSON. The GET is bound to my front end by a button click. On click in the developer tools I can see the XHR data returning the values I expect,...
more »

2017-10-02 18:10 (1) Answers

JQUERY DOM: Select Elements Created After Dom Load

I am working on a project where I need to change the value of all select inputs of a certain class when a function is called. The problem is some of the select inputs do not exist when the dom is first loaded, they are created dynamically via Javasc...
more »

2017-10-02 16:10 (1) Answers

JavaScript Sort by Date on table not working

Hi I cannot get sort function working on date. It changes order of the rows but it doesn't sort properly and dates are all over the place. I would like upcoming events to future events. See my code below. $('tr.Entries').sort(function(a,b){ ...
more »

2017-10-02 07:10 (2) Answers

How to handle Facebook javascript SDK events?

I have a javascript code that should execute some functions using Facebook API. According to the documentation I'm including the SDK as follows. This code is included in a template for all the pages of my web application. (A template in my case is s...
more »

2017-10-02 03:10 (1) Answers

Custom URL with Javascript

I basically want to go from this http://website.com/post.php?post_id=456734 to http://website.com/post/456734 with Javascript its ok if it ca be done with jquery EDIT: It can be done with RewriteEngine if you are using apache just add this to ...
more »

2017-10-01 21:10 (0) Answers

Windows mimicking portfolio

I am currently building a portfolio in wich i intend to mimic the windows workflow to display my projects and to have a familiar user interaction. The problem i am facing now is with creating multiple explorer windows. I can create multiple ones at t...
more »

2017-10-01 17:10 (1) Answers

jQuery element show and slide down on button click

So Im learning jQuery / JavaScript. I believe the title says it all trying to get a div section which is set to display: none show whilst slowly sliding down on button click As per jQuery manual, W3schools and other few places where I've tried to r...
more »

2017-10-01 12:10 (2) Answers

Display an image from JSON using jQuery

I have the following jQuery code at the moment. Note that to run the snippet here you need to click and allow this first: https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topTvEpisodes/json (function() { var iTunesAPI = ...
more »

2017-09-30 12:09 (2) Answers

Contact form error dose not send email

i am facing a problem in contact form it gets validated successfully and i get the Jquery response " your email has been sent successfully" but the problem is the email dosen't get delivered. i am pasting the code here please help me. its an html bas...
more »

2017-09-30 11:09 (0) Answers

Get search box to filter results

I have a list of filter buttons that filter gallery items. The filtering works well, and the filter state is saved in session storage. I'm trying to link up the search box and button. The behavior I'm trying to achieve is when someone types into the...
more »

2017-09-30 02:09 (2) Answers

jQuery one() handler executed twice

I have a bug in my jQuery/animate.css code. The problem is an event handler that is called twice but it should be executed only one. You can find the code here, the important line is below: JSFiddle $('#tiles').addClass(tiles_in).one(animation_end,...
more »

2017-09-29 19:09 (2) Answers