Tagged Questions
-3
votes
1answer
39 views
opening new window and loading css and js from parent window, also share session [closed]
I am building a website and need to open a new window on an image click. I need to take care of following in doing this.
I must be able to share session between the two windows, newly opened and ...
1
vote
3answers
41 views
How can I pass a local variable from function to event listener function in JavaScript?
Good day!
I began writing my own basic JavaScript library for personal use and distribution a few days ago, but I am having trouble with one of the methods, specifically bind().
Within the method ...
0
votes
0answers
28 views
Remove all the plus sign of the string outside the brackets [duplicate]
I am working on some kind of project where i am using code block as follows:
var string = .row-4 .col-2.grid-unit+.grid-unit+.grid-unit,.row-4 .col-3 .grid-unit .row-4 .grid-unit:nth-of-type(2n+3) ...
0
votes
0answers
153 views
Modern JavaScript idle timeout
Is there an updated idle timeout library for JavaScript. I want users to be redirected back to the homepage if they are taking too long entering info in a form (with an appropriate dialog box asking ...
0
votes
3answers
43 views
how to do Date Comparision in javascript?
I need to create the javascript Function based on Date Comparison.which means,To compare the Currentday with Currentday+7.
function a(value)
{
//here how to get current date
//here how to ...
0
votes
1answer
44 views
How to change running site content with javascript?
Assume that, there are many checkboxs in any site and they are unchecked. Site works in any server. I have not site code. I want to make checked some of those checkboxs. To find checkboxes by value of ...
0
votes
1answer
114 views
checking the range that a time variable falls in with javascript
I want to take a particular value of time (given in seconds by html5 htmlmedia timerange.end) and check where it falls in a list of times i already have that looks like this
00:00:00.00
00:00:22.00
...
0
votes
3answers
73 views
Is it possible to turn all html images into links via javascript?
I want to turn every <img> into a link to itself (the file) via an external js file.
My thought process was that I could target all img elements, then grab the image src and place a link to it ...
0
votes
2answers
122 views
Jquery promises: Is there a reusable alternative?
I'm building a web app which has a set of functions that the user may perform a few times but involve enough asynchronous actions for callbacks to get a bit out of hand.
What are realistic ...
0
votes
2answers
88 views
What's wrong with my Javascript code?
These two javascript functions are supposed to convert serial numbers (2-9999) for example into a number , but the functions below are not working for some reason .. they were originally written in ...
-2
votes
3answers
143 views
How can I make Jquery to check multiple values?
The Jquery code below works very well and checks for input values based on conditions .. But for the ESNList text field in the HTML form , many ESNs(numbers) can be entered and separated by a comma in ...
0
votes
3answers
67 views
javascript, can not override function
how can I override function length in other file js ?
jQuery(function ($) {
$.fn.normal_text = function (text) {
$.fn.normal_text.length = function(){
...
...
1
vote
3answers
72 views
What's wrong with my first Jquery code and how can I accomplish this event?
I have a quick Jquery question .. This Jquery code is supposed to show red borders on the input text boxes if they are not filled at all after clicking on submit , this code is from book , I copied ...
0
votes
2answers
233 views
javascript call a click handling function on page load without passing event object
I have a function that expects click event object as parameter.
For example
toggle: function (e) {
//does all the required work and then calls cancelEvent
this.cancelEvent(e);//IMPORTANT TO HANDLE ...
2
votes
4answers
242 views
Detect if an element is visible (without using jquery)
I'm trying to detect if an html element I gave an id is visible or not without using jquery.
The context:
In the forgotten user password page, I have a form where the user enter his login name and ...
1
vote
3answers
164 views
Dynamically loading a script changes its behaviour
I wanted paperjs to load after a button is pressed to turn on animations but it seems the paperscript doesn't work if paper is loaded after page load.
If you comment out the setTimeout and uncomment ...
2
votes
2answers
353 views
How can I find a web visitors location using javascript? [closed]
Google analytics is able to find a visitors location using a javascript library. How can this be accomplished with javascript?
0
votes
1answer
144 views
Loading HTML dynamically using JavaScript (class.js)
I am working on building an application which has a few HTML components.
Use Case:
I am trying to achieve something similar what is present here. I want to call the HTML components on click of a ...
0
votes
3answers
72 views
To get the words that are having the particular special character as its last letter
My Code:
I tried the following code
var str = "Have fun storming the castle!"
var character = "!";
function endsWith(str, character) {
return str.indexOf(character, str.length - ...
0
votes
1answer
230 views
How to call a Javascript function when value of a variable changes?
Usually we call a javascript function, when a button is click.
<button onclick=function1();>Post message</button>
Or sometimes, we may call a javascript function at a particular ...
0
votes
1answer
513 views
Using Javascript if/then/else into ClientScript function
I am not so familiar with java Script, for that reason I need your help and advice!! I have the following code in my asp button when is clicked. When the confirm box is displayed the user has two ...
0
votes
1answer
46 views
How to check dropped text position inside a textbox?
I have a textbox with string, and want to check that user dropped text between textbox string or at end of textbox string. Is there is any javascript function to do this task? I tried ...
-3
votes
2answers
1k views
jquery resizable drag and drop tutorial [closed]
Can I have a link that will teach me how to create re-sizable and drag drop using jQuery.
How can I create a dialog like jQueryUI dialog.
I want to learn how to create it manually.
Please send me ...
0
votes
3answers
3k views
accept input only number with 2 decimal javascript
i want to make user control to get number like this
125.00
125
125.27
125.20
1231545.25
2566.66
i have tried with mask textbox but its length can be any thing
i have used textbox with javascript who ...
0
votes
1answer
121 views
Generate ID dynamically based on position in DOM
I need to generate a value of element based on the level in the DOM. e.g. If I have a click event at document level (i.e. listening to any clicks on the pages) and the rendered HTML like this, it ...
1
vote
2answers
47 views
javascript undefined in IE 7 but works in IE 8
I am trying to get 1st character from the clsname i.e '+' or '-' in variable 'n'.
This works in IE 8 but in IE 7 I get 'undefined'.
please let me know how do I fix.
var clsName = ...
-1
votes
1answer
110 views
what is the event to handle row scrolling in EXTJS Gridpanel? [closed]
I am displaying data in a GridPanel. My requirement is to hide some menu items based on the row selections. I have this perfectly working when a user clicks or rightclicks - i am handling the event ...
0
votes
1answer
71 views
How to hide a label tag in javascript that has a certain value for the “for” attribute?
The label's "for" attribute has the ID of a Radio button. I 'm able to hide the radio button but not the label. how can I hide the label.??
0
votes
0answers
127 views
How to refresh all frames when someone clicks menu frame link
I have two frame menu and content. Menu frame all link show on content frame. I want that If visitor click menu frame any link at first all frame refresh then show link info on content frame. here is ...
1
vote
2answers
910 views
Regular expression for all printable characters in JavaScript
Looking for a regular expression for that validates all printable characters. The regex needs to be used in JavaScript only. I have gone through this post but it mostly talks about .net, Java and C ...