Tagged Questions
0
votes
0answers
34 views
Why does javascript only do the line breaks once (The first time)?
I have a span.value element, which has nl2br('lots of text') in it, which I will edit with a textarea, which upon click of a button appears in place of the span.value, containing the current text.
...
0
votes
1answer
20 views
how to create a popover when someone move cursor over an image?
I want to show a movable popover with some links and info when someone move cursor over an image. I'm using Bootstrap 3.
Here is an example.... ...
1
vote
1answer
12 views
JQuery animate firing late in Chrome
I have an image sprite which, on mouseenter, changes the background position and moves text over. On mouse leave, the background position and text both move to the left to display the original image. ...
0
votes
3answers
31 views
javascript alert is not returning any value
I have a particular function that should execute only after I click OK in the alert box
my code is like this.I dont know whether there is 'dialogueresult'in javascript,like that in c#
function ...
0
votes
3answers
17 views
My JSFiddle works but not in my system
Even though I have loaded jquery in , there is no response from my code.
but My JSfiddle works properly. Please help me where am I missing. No error caught on firefox console. I cannot figure out ...
0
votes
0answers
16 views
how to force page refresh on browser back click?
Is there a cross-browser compatible way of forcing page refresh when clicking the navigator back button?
i am trying to access to actualised cookies :
i have a js setcookie function that record ...
0
votes
0answers
18 views
Input Field Validation with min max values coming from database
as the title says i want to validate (dynamically created) input fields (there could be many). HTML 5 is not supported by the browsers that i have to support :( - so i can't use the build in min max ...
0
votes
3answers
22 views
How to get ip address using javascript or jQuery?
I need to show IP address in page footer in static site is it possible to get IP address using JavaScript or jQuery...
I tried this but it is giving same value in all computers
<script>
var ...
0
votes
1answer
24 views
Binding more than one 'id' to On click of body tag and to perform actions depending on the button clicked?
I am developing a hotel application in mvc4 with the help of razor and jquery. And in my app, I am trying to bind a click event to 2 buttons in my page and do appropriate action based on the button ...
0
votes
0answers
5 views
use window.getSelection get selected or cursor located text line from textarea
I am dynamically filling textarea using Ajax call's. In my code, I want to get the cursor's current line content using window.getSelection. I tried following code,
var range = ...
0
votes
0answers
7 views
Javascript extend: inherit class with props as in extjs?
I have object Gui.
Gui = {
extend: function(parent, props) {
var proto = $.extend({}, parent.prototype, props);
var child = proto.constructor;
child.prototype ...
0
votes
2answers
33 views
Replacing source of an image with Jquery
Im building an app with Phonegap. It takes xml from an rss feed and creates html from it to present a news feed. The problem is the image paths are relative. I need to replace the relative path with ...
0
votes
0answers
9 views
SudoSlider (javascript). Different view in different browsers
I inserted SudoSlider in my website. It works fine in all major browsers, but safari chashes my slider. Can you tell, please where the problem is?
http://81.198.86.35:8084/nv/course/10/
0
votes
0answers
21 views
“input type = file” not giving file object in Internet Explorer 9 or lower browsers
HTML source
<input id="UploadFile" type="file" name="UploadFile" />
<button type="button" onclick="UploadDocument();" class="RemoveButtonDefaultStyle">
Javascript function
function ...
1
vote
1answer
8 views
Backbone error cannot call method Deferred
I'm getting an error 'cannot call method 'Deferred' of undefined in the file.
error in backbone.marionette.min.js:20
Why? Thanks
config:
require.config({
baseUrl:"/static/js/portalApp/",
...
1
vote
6answers
37 views
Convert string to datetime-javascript
i am looking to convert a date in string in javascript/jquery like '20/11/2013' to datetime for code behind like 2013-11-20 00:00:00.000 to be passed to the SQL.I cant add any extra jquery plugin to ...
0
votes
0answers
7 views
Google Map: How to filter markers?
Sorry if it is not a specific question, but i have been looking around and did not find any answer. So there is left only Stack Overflow!
I have this problem: I have a map with a series of markers ...
0
votes
1answer
41 views
Get first TD of THIS row
Fairly easy yet i did not find how to do this online.
I want the first TD of the this element (row)
$(document).on("click", "#posTable tr", function() {
alert($(this).('td:first').text());
...
0
votes
0answers
10 views
How to cancel/pause download using jquery and then discard the file.?
I am novice. I am trying to calculate the download/upload speed of my network for that i want to download a file from my server. i am able to download the file but i am unable to stop the download ...
0
votes
1answer
22 views
XML to HTML with jQuery
So I have a XML file with some data in it. I'm trying to grab it and output it as a HTML table on another page. Found a piece of jQuery but it doesn't seem to work. Can someone help me fix it or come ...
0
votes
1answer
33 views
How to use href of an anchor with AJAX page navigation
I have the following problem: I'm trying to create a HTML5 page based on pure AJAX page navigation. So I have on main page called "index.html". This one holds my css, scripts and the menu. The menu ...
0
votes
1answer
38 views
individually number visible elements in div
I've got some sections that contain boxes which need to be numbered sequentially, just like an ordered list (though, sadly, using OL is not an acceptable option). Each box can be manually hidden, and ...
2
votes
5answers
54 views
How do I remove an element but not its content with javascript?
I have a string which is a simple <a> element.
var str = '<a href="somewhere.com">Link</a>'
Which I want to turn into:
Link
I can remove the </a> part easily with ...
0
votes
1answer
21 views
Save Form using localstorage HTML5
Is there a way to Save from into localstorage
and reuse it again, like this logic:
form ::::::::::::saveINTO:::::::::::::::> localstorage
form <::::::::::::getFROM::::::::::::::: localstorage
...
0
votes
2answers
9 views
Pass return values as arguments between Backbone View methods
I am trying to make a little application with a view that handles mousedown and mouseup jQuery events.
I have a getCoords method that returns the coordinates of a given mouse event
I call that ...
0
votes
1answer
16 views
Make navigation div appear when scrolling past certain div, breaks on window resize
I want a certain navigation div (fixed, top) to show up after scroll past a certain div. This works but not if you resize the screen after page load. Any thoughts about how to solve this?
JS:
...
0
votes
2answers
30 views
Button remains toggled with preventDefault
I have a <button> inside a form. In its event handler, I call to preventDefault so clicking the button doesn't cause the form to be submitted.
Problem is, this causes the button to remain ...
0
votes
1answer
21 views
Need Sequence .css() For multi div
I have 5 divs #BS1,#BS2,#BS3,#BS4,#BS5 ..
i need to make every one when hover on the container div ( left-section ) i need to hidden each one and delay maybe from 5000 to 2000 and back it visible ...
0
votes
0answers
18 views
Get tag name of clicked element inside cross domain iframe
The idea is simple: popup the tag name of the clicked element. The Javascript code:
function inspect(event) { alert(event.target.tagName); event.preventDefault(); }
Then, in the HTML:
<body ...
-1
votes
2answers
33 views
hide/show selected form with jQuery and css
i try to make an jQuery function for hide/show a form based on the user's choice!
Here is my code that you will understand better.
…
<p id="joinChoice" class="parent">
<a ...
7
votes
4answers
66 views
How to convert table th into li and td into <p> with javascript?
Hello I have table like this
<table>
<tbody>
<tr>
<th>PROVINSI</th>
<th>KABKOT</th>
<th>KECAMATAN</th>
...
0
votes
2answers
31 views
Run a function after ajax call is completed?
I have different pages ex1.php ,ex2.php, ex3.php
All of these pages have different ajax call and they have some code in the respective success function.
I want to run a function myfunc() when i ...
0
votes
2answers
29 views
Placeholder text issue in IE browsers(8-9)
I am working on form(input field) validation.
Problem - IE browsers(8-9) consider the placeholder text as value and during validation it accepts the same value, however it should be considered as an ...
0
votes
0answers
31 views
run Javascript-jquery function on two classes with same name
i have this Jquery photos slider script to slide photos on my website:
function Slider() {
$(".slider #1").show("fade",500);
$(".slider #1").delay(5500).hide("slide",{direction:'left'},500);
...
0
votes
0answers
31 views
JQuery validation for phone number
I am use jquery validation.In validation file, i find phone no. validaion (in additional-methods.js) but it is support Uk or US phone number format.
so my quetion is :
(1) I need expression that ...
0
votes
1answer
5 views
Image Zoom Utility with Tiles for the web
I'm searching for an script to zoom and image like this tool:
http://www.magictoolbox.com/magiczoom/
But I want the large zoom image to be loaded from small tiles like this page does:
...
0
votes
3answers
38 views
jQuery selector to select a text immediate to img tag?
I'm having the following html code and trying to select text which is located immediate to img tag while clicking the respective img tag.
For example in the first <p> tag I should get ...
0
votes
6answers
43 views
Show or hide div in a page, using jQuery, based on the textbox value.
Hi i have a textbox and i want to show/ hide some div in my page depending on the textbox value can anyone tell me how to show or hide divs based on the textbox value thanks
...
0
votes
0answers
5 views
bootstrap x-editable name send to server side
I'm using bootstrap x-editable and I'm really need a help to figure this out.
I don't get it it the docs of how to get the new value edited in the editable and send it out to the server side:
...
0
votes
0answers
11 views
html2canvas, proxy to read facebook images
I am trying to use the html2canvas to render a img from a div, which contains some images, and they could be or not from facebook servers, but I don't know how to use the proxy option for this ...
0
votes
2answers
13 views
delay and fade in smoothly reset form function
I just discovered the reset function for all the fields in my contact form. I would like that this function is applied after some seconds and with a smooth fade in.
This is the code I have for the ...
-2
votes
2answers
56 views
Button not working using java script
I added html code using javascript. All the headings and divs are working fine except the Button. The Button is not added or may be not working for some reasons. Please check my code give some ...
0
votes
0answers
13 views
Pull Date Range from Datepicker into Form Value
We have a codeigniter setup which is utilizing a custom built date range picker being called through JQuery. We have this in our main.js file, and it outputs ranges with an "End Date" and "Start ...
0
votes
2answers
12 views
create web form from XSD and then output xml form
I am creating a tool that allows someone to input recipes which should then be saved as an XML file, I have created my XSD but I was wondering how I can make a form on my web page that will allow the ...
0
votes
0answers
27 views
Toogle maximize width and height div using jquery
Hello i want to maximize and minimize div using jquery.
I use remove and add class method, when it maximize and minimize.
But when it already maximized it wont to minimize.
Here id my jquery code :
...
2
votes
3answers
56 views
How to fix the size of div?
Hi i have taken one <a> tag and on hover of it one other div opens.
and below tag i have taken other div which display.
but when I hover mouse on <a> tag other div opens but the regular ...
0
votes
1answer
22 views
Read Java Object in JQuery
I have a code like this :
function () {
var field=$('#bomPartModels').val();
START.bom.addIcons({
"ABC123-2": {"name": "", "qty": 4, "image": "images/UK_OO_HR2000_IT.jpg", ...
0
votes
0answers
9 views
Resize video player and give it different video urls
I have many video thumbnails and I'm trying to display the original video-player above the thumbnails when someone clicks on the thumbnail. I'm using jwplayer and I want to display the original video ...
0
votes
1answer
27 views
How I change jQuery datatables default row count shown
Datatables has 4 sizes of records to show: 10,25,50,100. I just want table show 15 records as default.
am doing this but this is not work for me
"aLengthMenu": [ 15, 25, 50, 100 ],
and
...
0
votes
1answer
20 views
Is there any cross browser way to get width of a DIV with scrollbars(if present)?
$('#div').width() returns the width of div without scrollbars. Is there any jquery or any other cross-browser solution that can return width of div with scrollbar? `