0
votes
1answer
53 views

Recursive function for DOM to JSON

I'm trying to create a JSON index of a particular section of HTML. Here is the HTML that I have: <div class="box span12"> <div class="row-fluid"> <div class="item span12" ...
0
votes
2answers
32 views

Appending option to select field using jQuery

I'm using this code: var tempObj = { "noselected" : "", "option1": "item1", "option2": "item2", "option3": "item3" }; $.each(tempObj, function (val, text) { ...
1
vote
2answers
33 views

Jquery refers always to the starting DOM

I'm trying to understand way the function, triggered by the event click, is executed also after the first time. I thought that changing the id of my the function would no longer be performed. Seems ...
0
votes
2answers
49 views

How to create an HTML link?

I have created a JSON file with various data: [ { "date": "17.06.", "event": "The Stoles gig", "url": "http://thestoles.com/" }, { "date": "25.06.", "event": "The Editors ...
0
votes
2answers
34 views

jQuery Append order?

I'm creating a series of comments, with replies to the comments below them. I use this code to append the new reply underneath the comment. $(document).on('click', '.sub-reply1-send', function() { ...
0
votes
1answer
32 views

attr() on <link> doesn't take right effect

My jQuery code doesn't work properly when trying to change a 's attribute using attr(), href is set to null, instead of day or night Here is my code, does anyone have idea how I may fix it? ...
0
votes
1answer
27 views

Read response of a file called with script src tag from external sever

So basically we are trying to read a text or html file from external server which we don't have control off . We are using script src tag to fetch the file but we are unable to read it <script ...
2
votes
2answers
45 views

Get height at which scroll bars will appear in javascript

Here's a couple of ways to ask this question: How can I get the height (in pixels) at which the page will start having scroll bars? In other words, how do i get the window height at which a scroll ...
0
votes
0answers
21 views

How do I prevent jQuery.append() forcing the user to the bottom of the website?

I have a div on my page that I add to with jQuery.append(), but I've noticed when I do so, it forces the user to the bottom of the entire website. What can I do to prevent this?
0
votes
1answer
7 views

Destroying jQuery TreeTable instances

This seems like a simple question, but I'm not how to go about it. I'm using ludo's great jquery treetable plugin, however, I want to be able destroy it on call. Does anyone know how to destroy an ...
0
votes
2answers
48 views

javascript/jquery remove relative path from url

I'm using jquery to find and retrieve several img src's from the DOM, however the src's are in relative path format like this: ...
0
votes
2answers
21 views

Removing options from select using jQuery

Suppose I have a Select element: <select> <option value="Name 1">Simon</option> <option value="Name 2">Frank</option> <option value="Name ...
2
votes
2answers
34 views

Trying to fire JQuery from 'onchange' in an Html.DropDownFor helper

What I am trying to do is set the selected value in dropdown 'b' from dropdown 'a' when the user selects different options from dropdown 'a'. I'm using the html helper 'DropDownFor' for dropdown 'a' ...
0
votes
1answer
18 views

Get hex value of from x-offset of element with gradient background

I have an element, a $slider that has a css3 background-image: linear-gradient(); applied to it. How can I dynamically get the hex value of a the element at a given offset? HTML <div ...
0
votes
1answer
39 views

replace element in angularjs directive linking function

I'm creating a <row> AngularJS directive that needs to replace itself (the <row> tag must not be present in the DOM after execution) with a dynamic template that can contain any HTML code. ...

1 2 3 4 5 254
15 30 50 per page